/* --- Navbar / Default --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #111;
    color: #fff;
    position: relative;
}

/* --- HIDE hamburger on desktop by default --- */
.hamburger {
    display: none;
}


/* --- Responsive / Mobile-first --- */
@media screen and (max-width: 900px) {

    /* SHOW hamburger on mobile */
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
        z-index: 1002;
    }

    .hamburger span {
        display: block;
        height: 3px;
        width: 25px;
        background-color: #fff;
        border-radius: 2px;
    }
    
   /* Center logo group on mobile */
    .logo-group {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
    }

    /* Slide-in nav menu */
    .nav-links {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100vh;      /* Full viewport height */
        width: 300px;
        background: rgba(17, 17, 17, 0.95);
        flex-direction: column;
        align-items: flex-start;
        overflow-y: auto;   /* THIS is the only scrollbar we want */
        padding: 80px 0;
        transition: left 0.3s ease;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin-left: 0;
        padding: 0 20px;
        width: 100%;  /* Take full width */
        text-align: left;  /* Align text left */
    }

    /* Mobile submenu */
    .nav-links li .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        display: none;
        padding: 15px 25px;
        background: #615f5f;
        height: auto;       /* Expands naturally */
        max-height: none;   /* Removes the 250px limit */
        overflow: visible;
    }

    .nav-links li.active .dropdown-menu {
        display: block !important;
        animation: slideDown 0.3s ease-out;
    }

    .arrow-icon {
    font-size: 0.7rem;
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}


/* Hover underline */
.nav-links > li > a::after {
  display: none !important;
}

.nav-links li a {
    display: flex;         /* Use flex to align text and arrow */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
}

.nav-links li a:hover {
    background: #098317;
}
/* Rotate arrow when menu is open */
.nav-links li.active .arrow-icon {
    transform: rotate(180deg);
}

/* 4. Animation for smooth opening */
.nav-links li.active .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

    /* Hero content adjustments */
    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0; /* Middle line disappears */
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Add transition for smooth transform */
    .hamburger span {
        display: block;
        height: 3px;
        width: 25px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease; /* Add transition here */
    }

    /* --- Mobile submenu fix (Point 4) --- */

    .nav-links li .dropdown-menu {
        display: none;       /* Hidden by default */
        position: relative;
        width: 100%;
        padding-left: 20px;
        background: #1a1a1a;
        height: auto;
        max-height: none;
        overflow: visible;
    }
    .why-container {
        padding: 40px 20px;
    }

    /* --- Fix Hero Buttons on Mobile --- */
    .hero-content .hero-btn {
        display: block;          /* Force them to sit on their own lines */
        width: 100%;             /* Allow them to grow... */
        max-width: 300px;        /* ...but stop at a nice size */
        margin: 15px auto;       /* Add 15px space Top/Bottom, Center Left/Right */
    }

    
} 

/* Very small screens */
@media screen and (max-width: 768px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-column p {
    line-height: 1.6;           /* Better readability */
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}