* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: white;
    color: black;
    line-height: 1.6;
}

/* Enhanced Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    height: 80px;
}

.logo {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Professional underline hover effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #ff6b35;
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle:hover {
    color: #ff6b35;
    transform: scale(1.1);
}

/* Hero Section - 80vh as requested */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px; /* Account for fixed navbar */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 1000px;
    width: 100%;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Simplified Search Container */
.search-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.4s both;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.search-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-title {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

/* IMPROVED DESKTOP SEARCH BAR - BETTER SPACE MANAGEMENT */
.search-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-width: 0; /* Allow flex items to shrink */
}

.search-input-container {
    flex: 1;
    position: relative;
    min-width: 200px; /* Ensure minimum width for input */
    max-width: none;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3rem;
    border: 2px solid #f0f0f0;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    min-width: 0; /* Allow input to shrink if needed */
}

.search-input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 1;
}

.search-btn {
    background:linear-gradient(118.16deg, #FF6B35 -3.28%, #FF9900 100.51%);
    color: white;
    border: none;
    padding: 1.2rem 2rem; /* Reduced horizontal padding slightly */
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 120px; /* Minimum button width */
    width: auto;
}

.search-btn:hover {
    background: linear-gradient(135deg, #e55a2b, #d14a1f);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loader screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader img {
    width: 100px; /* adjust gif size */
    margin-bottom: 20px;
}

#loader p {
    font-size: 20px;
    font-weight: 600;
    color: #f68b1f;
}

/* LARGE DESKTOP STYLES (1200px and up) - Better spacing */
@media (min-width: 1200px) {
    .search-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 1.5rem; /* Slightly larger gap for large screens */
    }
    
    .search-input-container {
        flex: 1;
        width: auto;
        max-width: none;
        min-width: 300px;
    }
    
    .search-btn {
        width: auto !important;
        flex-shrink: 0;
        padding: 1.2rem 2.5rem; /* More padding on large screens */
        min-width: 150px;
    }
    
    .search-container {
        padding: 2.5rem; /* More padding on large screens */
    }
}

/* DESKTOP/LAPTOP STYLES (769px to 1199px) - Optimized layout */
@media (min-width: 769px) and (max-width: 1199px) {
    .hero-content {
        max-width: 800px;
        padding: 0 1.5rem;
    }
    
    .search-container {
        max-width: 700px;
        padding: 2rem 1.5rem; /* Adjusted padding */
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    /* MAINTAIN ROW LAYOUT WITH BETTER SPACING */
    .search-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 1rem;
    }

    .search-input-container {
        flex: 1;
        width: auto;
        max-width: none;
        min-width: 250px;
    }

    .search-btn {
        width: auto !important;
        flex-shrink: 0;
        min-width: 130px;
        padding: 1.2rem 1.8rem; /* Slightly reduced padding */
    }
}

/* TABLET STYLES (600px to 768px) - Transition zone */
@media (min-width: 600px) and (max-width: 768px) {
    .hero-content {
        max-width: 600px;
        padding: 0 1.5rem;
    }
    
    .search-container {
        max-width: 550px;
        padding: 1.8rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    /* STILL ROW LAYOUT BUT MORE COMPACT */
    .search-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.8rem; /* Smaller gap */
    }

    .search-input-container {
        flex: 1;
        width: auto;
        max-width: none;
        min-width: 200px;
    }

    .search-input {
        padding: 1.1rem 1.3rem 1.1rem 2.8rem;
        font-size: 1rem;
    }

    .search-btn {
        width: auto !important;
        flex-shrink: 0;
        min-width: 100px;
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }

    .search-icon {
        left: 1rem;
    }
}

/* MOBILE STYLES - ONLY APPLY TO SCREENS 599PX AND BELOW */
@media (max-width: 599px) {
    .navbar {
        padding: 0.8rem 1.5rem;
        height: 60px;
    }

    .hero {
        margin-top: 60px;
    }

    .logo {
        height: 35px;
    }

    /* IMPROVED MOBILE NAVIGATION MENU */
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 3rem 2rem 2rem 2rem; /* More top padding for better spacing */
        gap: 0; /* Remove gap, use margin instead for better control */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto; /* Allow scrolling if needed */
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    /* PERFECTLY ALIGNED MOBILE NAV LINKS */
    .nav-links a {
        font-size: 1.1rem;
        font-weight: 500;
        padding: 1rem 1.5rem;
        text-align: center;
        width: 100%;
        max-width: 280px; /* Consistent max width */
        margin-bottom: 0.5rem; /* Controlled spacing */
        border: 2px solid transparent;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 52px; /* Consistent height */
        position: relative;
        overflow: hidden;
    }

    /* Remove the ::after pseudo-element for mobile */
    .nav-links a::after {
        display: none;
    }

    /* Enhanced hover/active states for mobile */
    .nav-links a:hover,
    .nav-links a:active {
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(229, 90, 43, 0.1));
        border-color: rgba(255, 107, 53, 0.3);
        color: #ff6b35;
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
    }

    /* Add a subtle animation for the first few links */
    .nav-links a:nth-child(1) {
        animation: slideInLeft 0.3s ease-out 0.1s both;
    }

    .nav-links a:nth-child(2) {
        animation: slideInLeft 0.3s ease-out 0.2s both;
    }

    .nav-links a:nth-child(3) {
        animation: slideInLeft 0.3s ease-out 0.3s both;
    }

    .nav-links a:nth-child(4) {
        animation: slideInLeft 0.3s ease-out 0.4s both;
    }

    .nav-links a:nth-child(5) {
        animation: slideInLeft 0.3s ease-out 0.5s both;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    /* MOBILE SEARCH CONTAINER */
    .search-container {
        margin: 0 1rem;
        padding: 1.8rem;
        max-width: none;
        width: calc(100% - 2rem);
        border-radius: 18px;
    }

    .search-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    /* MOBILE SEARCH BAR - VERTICAL STACK ONLY ON MOBILE */
    .search-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }

    /* MOBILE SEARCH INPUT */
    .search-input-container {
        width: 100% !important;
        flex: none;
        max-width: none;
        min-width: auto;
    }

    .search-input {
        width: 100%;
        padding: 1.1rem 1.3rem 1.1rem 2.8rem;
        font-size: 1rem;
    }

    /* MOBILE SEARCH BUTTON */
    .search-btn {
        width: 100% !important;
        padding: 1.1rem 2rem;
        flex-shrink: 1;
        min-width: auto;
    }

    .search-icon {
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.7rem 1rem;
        height: 55px;
    }

    .hero {
        margin-top: 55px;
    }

    .logo {
        height: 30px;
    }

    .nav-links {
        top: 55px;
        height: calc(100vh - 55px);
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
        max-width: 260px;
        min-height: 48px;
        margin-bottom: 0.4rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-content {
        padding: 0 0.5rem;
    }

    .search-container {
        margin: 0 0.5rem;
        padding: 1.5rem;
        border-radius: 15px;
        width: calc(100% - 1rem);
    }

    .search-title {
        font-size: 1.1rem;
    }

    .search-input {
        width: 100%;
        padding: 1rem 1.2rem 1rem 2.5rem;
        font-size: 0.95rem;
    }

    .search-btn {
        width: 100% !important;
        padding: 1rem 1.8rem;
        font-size: 1rem;
    }

    .search-icon {
        left: 0.9rem;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 0.6rem 0.8rem;
        height: 50px;
    }

    .hero {
        margin-top: 50px;
    }

    .nav-links {
        top: 50px;
        height: calc(100vh - 50px);
        padding: 2rem 1rem 1rem 1rem;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        max-width: 240px;
        min-height: 44px;
        margin-bottom: 0.3rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-content {
        padding: 0 0.3rem;
    }
    
    .search-container {
        margin: 0 0.3rem;
        padding: 1.2rem;
        width: calc(100% - 0.6rem);
    }

    .search-input {
        width: 100%;
        padding: 0.9rem 1rem 0.9rem 2.3rem;
        font-size: 0.9rem;
    }

    .search-btn {
        width: 100% !important;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 600px) and (orientation: landscape) and (max-width: 599px) {
    .nav-links {
        padding: 1.5rem 2rem 1rem 2rem;
        gap: 0;
    }

    .nav-links a {
        margin-bottom: 0.3rem;
        min-height: 40px;
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .search-container {
        padding: 1.2rem;
        width: calc(100% - 2rem);
    }

    .search-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .search-bar {
        flex-direction: column !important;
    }

    .search-input-container {
        width: 100% !important;
    }

    .search-input {
        width: 100%;
    }

    .search-btn {
        width: 100% !important;
    }
}