/* =========================================
   1. GLOBAL & RESET
   ========================================= */
:root {
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-tech: #f0f9ff;
    --primary: #000000;
    --accent-core: #0ea5e9;
    --text-main: #111111;
    --text-sub: #4b5563;
    --border-light: #e2e8f0;
    --font-main: "Inter", sans-serif;
    --font-code: "JetBrains Mono", monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-white);
    color: var(--text-main);
    overflow-x: hidden;
    /* height: 200vh;  <-- REMOVED: Only use this if you need scroll space for testing */
}

/* =========================================
   2. SHRINKING STICKY HEADER
   ========================================= */
.sticky-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Centers the header */
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999; /* Higher than slider */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px 40px;
    transition: padding 0.4s ease;
}

/* SHRINK EFFECT STATE */
.sticky-header.shrunk {
    width: 70%;
    top: 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.sticky-header.shrunk .header-inner {
    padding: 10px 30px;
}

/* Navigation Links */
.logo {
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo img {
    height: auto;
    width: 220px;
}
.nav-links {
    display: flex;
    gap: 30px; /* Increased gap slightly for better aesthetics */
}

.nav-links a {
    text-decoration: none;
    color: #555; /* Default gray */
    font-weight: 500;
    font-size: 0.9rem;
    position: relative; /* Needed for the underline line */
    transition: color 0.3s ease;
}

/* Hover State */
.nav-links a:hover {
    color: #000000;
}

/* ACTIVE STATE (The new function) */
.nav-links a.active {
    color: #000000; /* Pure black */
    font-weight: 700; /* Bold */
}

/* Animated Underline Effect */
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #000000;
    transition: width 0.3s ease-in-out;
}

/* Show underline on Hover OR when Active */
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-demo {
    background: #000000;
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: transform 0.2s;
}

.btn-demo:hover {
    transform: scale(1.05);
}

/* =========================================
   3. HERO SLIDER STYLES (REQUIRED FOR SLIDER)
   ========================================= */
.bw-hero {
    position: relative;
    height: 100vh; /* Full screen height */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
    background-color: var(--bg-white);
    margin-top: -80px; /* Pull up behind the transparent header if needed */
    padding-top: 80px; /* Compensate for header height */
}

/* The Slider Container */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individual Slides */
.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
    z-index: 1;
}

/* White Overlay for Readability */
.bg-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.8)
    );
}

/* Content Wrapper */
.hero-content {
    max-width: 900px;
    z-index: 10;
    position: relative;
}

/* Typography & Animations */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    display: inline-block;
    position: relative;
}

.hero-title::after {
    content: "|";
    display: inline-block;
    margin-left: 5px;
    animation: blink 1s infinite;
    color: var(--primary);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #000000;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px auto;
    opacity: 0;
    animation: slideUpFade 0.8s ease-out 0.5s forwards;
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    animation: slideUpFade 0.8s ease-out 0.7s forwards;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-solid {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}
.btn-solid:hover {
    background-color: #333;
    border-color: #333;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Slider Controls (Dots) */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .btn-group {
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        width: 100%;
    }
}

/* =========================================
   3. MOBILE NAVIGATION & RESPONSIVENESS
   ========================================= */

/* Default State (Desktop): Hide Hamburger and Mobile Elements */
.hamburger {
    display: none;
    cursor: pointer;
}

.mobile-only {
    display: none;
}

/* CHANGED BREAKPOINT: 
   Set to 1023px.
   This ensures 1024px (Laptops/iPad Landscape) get the NORMAL Desktop header.
   Anything smaller (Tablets/Phones) gets the hamburger.
*/
@media (max-width: 1023px) {
    /* 1. Adjust Sticky Header for Mobile */
    .sticky-header.shrunk {
        width: 95%;
        top: 10px;
    }

    .header-inner {
        padding: 15px 20px;
    }

    /* 2. Hamburger Icon Styling */
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: #000000;
        border-radius: 2px;
    }

    /* Hamburger Animation to 'X' */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 3. Navigation Menu (Side Drawer) */
    .nav-links {
        position: fixed;
        left: -110%;
        top: 0;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        height: 100vh;
        text-align: center;
        padding-top: 100px;
        transition: 0.4s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 998;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        display: block;
        padding: 15px 0; /* Reduced padding slightly */
        font-size: 1.1rem;
    }

    /* 4. Handle the "Book Now" Button */
    .header-actions {
        display: none !important;
    }

    /* FIX: Button Width Control */
    .nav-links .btn-demo.mobile-only {
        display: block; /* Ensures margin auto works */
        width: fit-content; /* Only takes necessary space, not full width */
        min-width: 160px; /* Ensures it's not too tiny */
        margin: 30px auto 0; /* Centers the button horizontally */
        padding: 12px 30px; /* Nice touch area */
    }

    .logo img {
        width: 150px;
    }
}
/* =========================================
   4. LAPTOP & SMALL DESKTOP FIX (1024px - 1350px)
   ========================================= */
/* This targets devices that are too big for mobile menu, 
   but too small for the tight 70% header */
@media screen and (min-width: 1024px) and (max-width: 1350px) {
    /* FIX: Increase width from 70% to 95% so elements fit */
    .sticky-header.shrunk {
        width: 95%;
    }

    /* Adjust padding to prevent squashing */
    .sticky-header.shrunk .header-inner {
        padding: 10px 30px;
    }

    /* Reduce gap between links slightly to save space */
    .sticky-header.shrunk .nav-links {
        gap: 20px;
    }

    /* Ensure button doesn't wrap */
    .header-actions {
        flex-shrink: 0;
    }
}

/* =========================================
   HERO FIX FOR LAPTOP & TABLET (1040px - 768px)
   ========================================= */

@media screen and (max-width: 1040px) {
    .bw-hero {
        /* 1. Stop forcing exact center, let padding do the work */
        align-items: flex-start !important;

        /* 2. Push content down significantly to clear the header */
        padding-top: 180px !important;

        /* 3. Ensure height doesn't clip content */
        height: auto !important;
        min-height: 100vh;
        padding-bottom: 80px;
    }

    /* 4. Reduce Title Size for Laptops so it doesn't dominate */
    .hero-title {
        font-size: 3rem !important; /* Reduced from 4rem */
        line-height: 1.2;
    }

    /* 5. Adjust Subtitle width */
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 80%;
    }
}

/* =========================================
   HERO FIX FOR MOBILE (480px and below)
   ========================================= */
@media screen and (max-width: 480px) {
    .bw-hero {
        padding-top: 180px !important;
        align-items: flex-start !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }
}
