/* 1. SETUP & VARIABLES */
:root {
    --bg-color: #f9fafb; /* Slightly cooler white */
    --text-color: #111827; /* Darker, more modern black */
    --accent-color: #005B99; /* Professional Blue */
    --accent-hover-color: #004471; /* Darker blue for hover */
    --card-bg-color: #FFFFFF;
    --border-color: #E5E7EB; /* Softer border color */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Smoother font rendering */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0; /* Reduced vertical padding */
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}


/* 2. HEADER & NAVIGATION */
header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}


/* 3. SECTIONS */

/* Hero */
#hero {
    text-align: center;
    padding: 6rem 0; /* Reduced hero padding */
}

#hero h1 {
    font-size: 4rem;
    line-height: 1.2;
}

#hero .sub-headline {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1.5rem auto 2.5rem; /* Added more margin-bottom */
    color: #555;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 475px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 6rem;
}

/* Add this new rule for paragraph spacing */
.about-text p:not(:last-child) {
    margin-bottom: 3rem; /* 1rem is typically 16px */
}

/* Justified Text Alignment for About section */
.about-text p {
    text-align: justify;
    margin-bottom: 6rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 10rem;
    align-items: start;
    margin-bottom: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}


/* Projects */
.project-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-bottom: 3rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.project-content h3 {
    font-size: 1.8rem;
    color: var(--text-color);
}
.project-content p {
    margin: 1rem 0;
}
.project-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-stack span {
    background-color: #eef5ff; /* A light blue to complement the accent */
    color: #004471; /* Dark blue text for readability */
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Buttons (CTA) */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--card-bg-color);
    padding: 0.85rem 1.75rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--accent-hover-color);
    transform: translateY(-2px); /* Add a subtle lift on hover */
}

.btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Contact */
#contact {
    text-align: center;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* New Form Styles */
#contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group-split {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column on mobile */
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Make Name and Email side-by-side on larger screens */
@media (min-width: 768px) {
    .form-group-split {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group-full {
    margin-bottom: 1.5rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-family: var(--body-font);
    font-size: 1rem;
    background-color: var(--card-bg-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 91, 153, 0.2); /* Using your blue accent color */
}

#contact-form button {
    width: 100%;
    /* The .btn class already styles this well */
}


/* 4. FOOTER */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: #888;
}

/* Testing git */