/* Color Palette (derived from images) */
:root {
    --primary-color: #D22B2B; /* A subtle red from Mr. Singh's shirt */
    --secondary-color: #4A4A4A; /* Dark grey from text on door/card */
    --accent-color: #A0A0A0; /* Lighter grey from building/card background */
    --background-light: #F8F8F8; /* Very light grey/off-white */
    --text-color: #333333; /* Standard dark text */
    --white: #FFFFFF;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Header */
.header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between; /* Ensures logo and menu icon/nav are spaced out */
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px; /* Adjust as needed for the extracted logo */
    margin-right: 10px;
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.2)); /* Slight shadow for logo */
}

.logo .tagline {
    font-size: 0.9em;
    color: var(--accent-color);
    margin-left: 10px;
    border-left: 1px solid var(--accent-color);
    padding-left: 10px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Ensure it takes a good portion of viewport height */
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap; /* For responsiveness */
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1em;
}

/* Services Section */
.services-section {
    background-color: var(--background-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.service-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item p {
    font-size: 0.95em;
    color: var(--text-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--white);
}

.contact-details {
    text-align: center;
    margin-bottom: 50px;
}

.contact-details p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.contact-details a {
    font-weight: 600;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

/* NEW: Hamburger Menu Icon Styles */
.hamburger-menu {
    display: none; /* Hidden by default on larger screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other elements */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger menu open/close animation (X shape) */
.hamburger-menu.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}


/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.4em;
    }

    .hero-content h2 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header .container {
        /* Keep logo and menu icon on one line, spaced out */
        flex-direction: row;
        justify-content: space-between;
    }

    /* NEW: Hide main navigation by default on mobile */
    .main-nav {
        display: none; /* Crucial: hides the nav bar */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100px; /* Adjust based on your header's actual height */
        left: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        animation: slideIn 0.3s forwards; /* Smooth slide-in effect */
    }

    /* NEW: Show navigation when 'open' class is toggled by JS */
    .main-nav.open {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        padding: 8px 0;
        display: block;
    }

    /* NEW: Show hamburger icon on mobile */
    .hamburger-menu {
        display: flex;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .hero-section {
        padding: 100px 0;
        min-height: 50vh;
    }

    .hero-content h2 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    /* NEW: Animation for mobile menu appearance */
    @keyframes slideIn {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8em;
    }

    .hero-content h2 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}
/* ADD THIS CLASS to your style.css */
.hidden {
    display: none !important;
}

/* --- New Profile Section Styling (Optional but Recommended) --- */
.profile-section {
    background-color: var(--background-light);
}

.profile-group, .profile-grid {
    margin-bottom: 50px;
}

.profile-group h3, .profile-column h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.experience-item {
    background: var(--white);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.experience-item h4 {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-bottom: 5px;
}

.experience-item .dates, .experience-item .employer {
    font-size: 0.9em;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
}

.experience-item ul {
    list-style: disc; 
    margin-left: 20px;
    padding-left: 10px;
}

/* Responsive adjustment for the profile grid */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}