:root {
    --primary-color: #323232; /* A clean blue */
    --secondary-color: #FEE440; /* A contrasting yellow/gold */
    --text-color: #333;
    --background-color: #f4f7f6;
    --nav-height: 60px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
}

.topnav{
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    height: var(--nav-height);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.nav-brand {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 0;
    list-style: none;

    /* Transition for dropdown animation */
    transition: max-height 0.4s ease-in-out;
}

.topnav a {
    color: white;
    text-decoration: none;
    padding: 25px 24px;
    font-size: 0.95;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.topnav a:hover
/*.topnav a.active*/ {
    background-color: rgba(255, 255, 255, 0.15);
}

.hero {
    /* No background gradient needed, the image will be the background */
    color: white;
    text-align: center;
    position: relative; /* **KEY CHANGE:** Essential for positioning the image and content absolutely */
    height: 50vh; /* **KEY CHANGE:** Define a height for the section (50% of viewport height is a common hero size) */
    min-height: 400px; /* Ensures a minimum size on large screens */
    overflow: hidden; /* Important for clean edges */
    /* Remove padding as the content will be centered */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content { /* Center the text container */
    position: absolute;
    top: 50%; /* Start at 50% from the top */
    left: 50%; /* Start at 50% from the left */
    transform: translate(-50%, -50%); /* **KEY CHANGE:** Shift it back by half its own width/height to perfectly center */
    z-index: 3; /* Ensure it's above the image and overlay */
    padding: 0 20px;
    max-width: 900px;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    /* Removed max-width/margin-auto as hero-content is centered */
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px; /* Keep this to limit line length */
    margin: 0 auto; /* Keep this to center the paragraph within hero-content */
    font-weight: 300;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

#home-img { /* Targeting the image by ID for specificity */
  width: 100%;
  height: 100%; /* Make it fill the height of the hero container */
  object-fit: cover; /* **KEY CHANGE:** Scales the image to cover the container while maintaining aspect ratio (cropping if necessary) */
  position: absolute; /* **KEY CHANGE:** Allows the text to float over it */
  top: 0;
  left: 0;
  z-index: 1; /* Keep it behind the text */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -0.5px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow:  0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 30px;
   margin-top: 40px; 
}

.service-item {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow:  0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.service-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-card p {
    color: #666;
    font-size:  1.05rem;
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

.footer {
    background-color: #2c3e50;
    color: white;
}

.footer p {
    opacity: 0.8;
    font-size: 0.95rem;   
}

/* 🍔 HAMBURGER BUTTON STYLES & HITBOX */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    position: relative; /* Context for absolute icon positioning */
    
    /* Create a large, mobile-friendly tap target area */
    padding: 10px; 
    margin: -10px; 
}

/* ⚙️ ICON STYLING AND ANIMATION */
.hamburger .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  
    /* ICON SIZE & COLOR */
    font-size: 36px; /* Set your preferred size here */
    color: white;

    /* ANIMATION SETUP */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition */
    position: absolute; /* Overlap the two icons */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Initially hide and rotate the close icon */
.close-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg); 
}

/* When the menu is OPEN (.hamburger.active class is set by JS) */
.hamburger.active .menu-icon {
    opacity: 0; /* Fade out the menu icon */
    transform: translate(-50%, -50%) rotate(90deg); /* Rotate away */
}

.hamburger.active .close-icon {
    opacity: 1; /* Fade in the close icon */
    transform: translate(-50%, -50%) rotate(0deg); /* Rotate into view */
}
/* ------------------------------------- */


@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-container {
        
        padding: 0 30px;
        
        flex-direction: row;
        height: 100%;
        justify-content: space-between;
    }

    /* DROPDOWN MENU SETUP */
    .nav-links {
        display: flex; /* Must be flex for children to stack */
        overflow: hidden;
        max-height: 0; /* Start hidden (triggers animation) */

        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-links a {
        padding: 12px 16px;
    }

    .nav-links li {
        width: 100%;
    }

    .topnav {
        height: var(--nav-height);
    }

    .topnav a {
        padding: 15px 20px;
        width: 100%;
        text-align: left;
    }

    .nav-links.active {
        max-height: 500px; /* End state (drops down) */
    }

    .hamburger {
        display: block; /* Show the hamburger button on mobile */
    }
}