:root {
    --primary: #FFD700;
    --primary-dark: #FFC300;
    --secondary: #000000;
    --nav-height: 60px;
    --nav-height-scrolled: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    overflow-x: hidden;
    background-color: #ffffff;
}

/* ULTRA COMPACT NAVIGATION */
#mainNav {
    background: transparent !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 40px 40px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

#mainNav.scrolled {
    background: white !important;
    padding: 0 0;
}

.logo-container {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo-image {
    height: auto;
    width: 200px;
    object-fit: contain;
    display: block;

    /* 🔑 Explicit initial state */
    transform: scale(1);
    transform-origin: left center;

    /* Smooth both directions */
    transition: transform 0.3s ease;
}


#mainNav.scrolled .logo-image {
    transform: scale(0.8);
    /* 60px → ~40px */
}


/* 4. Add a media query for large screens specifically */
@media (min-width: 1024px) {
    .logo-image {
        max-height: 120px !important;
        /* Extra safety for large screens */
    }

    #mainNav.scrolled .logo-image {
        max-height: 60px !important;
    }
}

/* Navigation Links */
.nav-link {
    color: #B8860B;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.nav-active {
    color: var(--primary);
}

#mainNav.scrolled .nav-link {
    color: #374151;
}

#mainNav.scrolled .nav-link:hover {
    color: var(--primary);
}

/* Navigation Container */
#mainNav .container {
    padding: 0 1rem;
    height: 100%;
}

#mainNav .flex.justify-between.items-center {
    height: 100%;
    padding: 0;
    margin: 0;
}

#mainNav .hidden.md\:flex.items-center {
    gap: 1.25rem;
}

/* Navigation Button */
#mainNav .btn-primary {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Mobile Navigation */
#hamburger {
    padding: 0.5rem;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
}

.hamburger-line {
    transition: all 0.3s ease;
    display: block;
    width: 22px;
    height: 2px;
    background-color: #1f2937;
    margin: 3px 0;
}

#mainNav.scrolled .hamburger-line {
    background-color: #374151;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    transform: translateX(100%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    max-width: 85%;
    background-color: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    padding-top: 5rem;
    z-index: 40;
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    transition: color 0.3s ease;
    padding: 0.75rem 0;
    display: block;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-nav .btn-primary {
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    width: 100%;
}

.overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30;
    backdrop-filter: blur(2px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section Adjustments */
#home {
    padding-top: calc(var(--nav-height) + 10px);
    margin-top: 0;
    min-height: calc(100vh - var(--nav-height) - 10px);
    display: flex;
    align-items: center;
}

/* Section Animations */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    scroll-margin-top: calc(var(--nav-height) + 10px);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #FFFDE7 0%, #FFF9C4 100%);
}

.gradient-yellow-black {
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

/* Buttons */
.btn-primary {
    background: #191970;
    color: white;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(25, 25, 112, 0.25);
}

/* Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    border-radius: 1rem;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.15);
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    border-radius: 1rem;
}

/* Animations */
.counter {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.counter.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* Form Elements */
input,
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Media Queries */
@media (min-width: 768px) {

    #hamburger,
    .mobile-nav,
    .overlay {
        display: none !important;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    #home {
        padding-top: calc(var(--nav-height) + 20px);
        min-height: calc(100vh - var(--nav-height) - 20px);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 55px;
        --nav-height-scrolled: 45px;
    }

    .logo-image {
        width: 25vw;
        /* Slightly larger on mobile */
        max-width: 100px;
    }

    #mainNav.scrolled .logo-image {
        width: 50px;
        /* Slightly smaller when scrolled on mobile */
    }

    .hamburger-line {
        width: 20px;
        height: 2px;
        margin: 2.5px 0;
    }

    #hamburger {
        width: 40px;
        height: 40px;
        padding: 0.375rem;
    }

    .mobile-nav {
        padding-top: 4.5rem;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.625rem;
    }

    .section {
        scroll-margin-top: calc(var(--nav-height) + 10px);
    }
}

@media (max-width: 640px) {
    :root {
        --nav-height: 50px;
        --nav-height-scrolled: 40px;
    }

    .logo-image {
        width: 30vw;
        /* Even larger on small screens */
        max-width: 90px;
    }

    #mainNav.scrolled .logo-image {
        width: 45px;
    }

    .mobile-nav {
        padding-top: 4rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 375px) {
    :root {
        --nav-height: 45px;
        --nav-height-scrolled: 35px;
    }

    .logo-image {
        width: 35vw;
        max-width: 80px;
    }

    #mainNav.scrolled .logo-image {
        width: 40px;
    }

    .mobile-nav {
        padding-top: 3.5rem;
    }

    .mobile-nav-link {
        font-size: 0.9375rem;
        padding: 0.625rem 0;
    }

    h1 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 3rem;
    }

    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1280px) {
    h1 {
        font-size: 4rem;
    }

    .container {
        padding: 0 2.5rem;
    }
}

/* Touch-friendly buttons for mobile */
@media (hover: none) {

    .btn-primary:hover,
    .service-card:hover,
    .nav-link:hover {
        transform: none;
    }

    .btn-primary:active,
    .service-card:active {
        transform: scale(0.98);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .section,
    .counter {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .floating-element,
    .scroll-indicator {
        animation: none !important;
    }
}


/* Popup/Modal Styles */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Aspect ratio for video */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
}

.aspect-w-16>* {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}



/* Quick fix for header interference */
#mainNav {
    z-index: 100;
}



#videoModal {
    z-index: 9999 !important;
}




/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

.scroll-mt-24 {
    scroll-margin-top: 6rem;
}

/* Subject link hover effects */
.subject-link {
    transition: all 0.2s ease;
}

.subject-link:hover {
    transform: translateX(5px);
    color: #FFD700;
}

/* ============================================
   SERVICES DROPDOWN - MINIMAL STYLES
   ============================================ */

/* Dropdown container */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown menu - positioned absolutely */
.nav-dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 250px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1001;
    margin-top: 0;
    padding: 8px 0;
    border: 1px solid #f1f5f9;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

/* Show dropdown on hover */
.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Make dropdown stay open when hovering over it */
.nav-dropdown-content:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown items with icons */
.nav-dropdown-content a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-content a:hover {
    background-color: #fef3c7;
    color: #92400e;
}

/* Icon styling */
.dropdown-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Category headers */
.dropdown-category {
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}

/* Mobile dropdown */
.mobile-dropdown {
    display: none;
    background-color: #f9fafb;
    border-left: 3px solid #fbbf24;
    margin: 0;
}

.mobile-dropdown.active {
    display: block;
}

/* Mobile icon styling */
.mobile-dropdown .dropdown-icon {
    width: 16px;
    height: 16px;
}

/* Arrow rotation */
.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}