@import url('https://fonts.googleapis.com/css2?family=Arvo:wght@700&family=Montserrat:wght@400;600&display=swap');

:root {
    --primary: #000000;
    --accent: #FFC107;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--primary);
    color: white;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    width: 100vw;
}

.heading-font {
    font-family: 'Arvo', serif;
}

/* Custom cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent);
    opacity: 0.7;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* Custom underline */
.underline-animated {
    position: relative;
    display: inline-block;
}

.underline-animated::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 1px !important;
    left: 0;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease;
}

.underline-animated:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hamburger menu */
.hamburger {
    cursor: pointer;
    width: 24px;
    height: 24px;
    transition: all 0.25s;
    position: relative;
}

.hamburger-top,
.hamburger-middle,
.hamburger-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: white;
    transform: rotate(0);
    transition: all 0.5s;
}

.hamburger-middle {
    transform: translateY(7px);
}

.hamburger-bottom {
    transform: translateY(14px);
}

.open .hamburger-top {
    transform: rotate(45deg) translateY(6px) translate(6px);
}

.open .hamburger-middle {
    display: none;
}

.open .hamburger-bottom {
    transform: rotate(-45deg) translateY(6px) translate(-6px);
}

/* Hero Section */
.hero-bg {
    position: relative;
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 0;
}

.hero-bg video[autoplay][muted][loop][playsinline] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -20 !important; /* Override Tailwind z-[-1], below particles */
    display: block !important;
    opacity: 0.9 !important;
    visibility: visible !important;
    will-change: opacity, display, visibility;
    background-color: var(--primary); /* Fallback during load */
    pointer-events: none;
}

#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10 !important; /* Above video, below content */
    opacity: 0.2 !important; /* Low opacity to prioritize video */
    pointer-events: none;
}

.hero-bg .container {
    position: relative;
    z-index: 20 !important; /* Above video and particles */
}

/* Ensure video persists after main-content animation */
.main-content {
    opacity: 0;
    display: none;
}

.main-content:not(.opacity-0) {
    opacity: 1;
    display: block;
}

.main-content:not(.opacity-0) .hero-bg,
.main-content:not(.opacity-0) .hero-bg video[autoplay][muted][loop][playsinline] {
    opacity: 0.9 !important;
    display: block !important;
    visibility: visible !important;
    z-index: -20 !important;
}

/* Sparkle for Loading Screen */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 99999;
}

/* Glowing button */
.glow-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.glow-btn:hover::before {
    left: 100%;
}

/* Loader */
.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 193, 7, 0.3);
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin-top: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tilt effect */
.tilt-card {
    transition: transform 0.3s ease;
}

/* Loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    margin: 0;
    padding: 0.5rem;
    opacity: 1;
}

/* Active navigation link */
.active {
    color: var(--accent) !important;
    position: relative;
}

.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transform: scaleX(1);
}

/* Floating animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Social icon hover */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--accent);
}

/* Form input focus */
.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

/* Header container adjustments */
header {
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Inner container for header content */
header .container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Footer adjustments */
footer {
    width: 100vw;
    background-color: rgba(0, 0, 0, 1);
    border-top: 1px solid #1F2937;
}

/* Inner container for footer content */
footer .container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Desktop dropdown menu */
#more-menu {
    right: 0;
    left: auto;
    min-width: 200px;
    z-index: 50;
}

/* Mobile menu */
#menu {
    width: 100vw;
}

/* Mobile-specific adjustments */
@media (max-width: 640px) {
    html, body {
        margin: 0;
        padding: 0;
        width: 100vw;
        overflow-x: hidden;
    }

    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }

    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
        margin: 0;
    }

    .hero-bg {
        padding-top: 3rem;
        min-height: calc(100vh - 3rem);
    }

    .hero-bg video[autoplay][muted][loop][playsinline] {
        object-fit: cover;
        width: 100%;
        height: 100%;
        z-index: -20 !important;
        opacity: 0.85 !important;
    }

    #particles-container {
        opacity: 0.15 !important;
    }

    .grid {
        gap: 0.5rem;
    }

    .text-3xl {
        font-size: 1.75rem;
    }

    .text-2xl {
        font-size: 1.5rem;
    }

    .text-xl {
        font-size: 1rem;
    }

    .text-base {
        font-size: 0.875rem;
    }

    .mb-12 {
        margin-bottom: 2rem;
    }

    .mb-8 {
        margin-bottom: 1.5rem;
    }

    .py-12 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .py-8 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .mt-10 {
        margin-top: 2rem;
    }

    .mt-8 {
        margin-top: 1.5rem;
    }

    .main-content {
        width: 100vw;
        margin: 0;
    }

    header {
        width: 100vw;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    footer {
        width: 100vw;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Loading screen mobile adjustments */
    .loading-screen {
        padding: 0.5rem;
    }

    .loading-screen h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .loading-screen p {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .loader {
        width: 40px;
        height: 40px;
        border-width: 4px;
        margin-top: 0.75rem;
    }

    .sparkle {
        width: 3px;
        height: 3px;
    }
}

/* Mobile menu dropdown */
.more-menu.hidden {
    display: none !important;
}

.more-menu {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.more-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}


/* CSS for continuous logo scrolling */
        .logo-slider {
            overflow: hidden;
            white-space: nowrap;
        }
        .logo-track {
            display: flex;
            animation: scroll 20s linear infinite;
        }
        .logo-track img {
            flex-shrink: 0;
            margin-right: 1.5rem; /* Space between logos */
            max-height: 100%;
            max-width: 100%;
        }
        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); } /* Move to half the track for seamless loop */
        }
        /* Pause animation on hover */
        .logo-slider:hover .logo-track {
            animation-play-state: paused;
        }
        /* Responsive adjustments for mobile */
        @media (max-width: 640px) {
            .logo-track img {
                height: 5rem; /* Increased size for better visibility */
                width: 10rem;
                margin-right: 0.75rem; /* Reduced spacing for balance */
            }
            .logo-track {
                animation: scroll 25s linear infinite; /* Slower scroll for readability */
            }
        }


        /* Ensure video controls are accessible over hover overlay */
        .gallery-item video {
            z-index: 10;
        }
        .gallery-item .hover-overlay {
            z-index: 5;
        }