/* Base Styles */
* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box; 
}

html {
    /* Native smooth scroll as fallback */
    scroll-behavior: smooth;
    /* Prevents sections from hiding under the fixed navbar */
    scroll-padding-top: 100px; 
}

body {
    background-color: #0D1117;
    color: #ffffff;
    margin: 0;
    overflow-x: hidden;
}

/* Custom Colors */
.text-gold { color: #FFB347; }
.bg-gold { background-color: #FFB347; }
.border-gold { border-color: #FFB347; }

/* Premium Glassmorphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Navbar Transitions */
.nav-container {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, border 0.4s ease; 
}

.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FFB347;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none; 
}

/* Hover effects restricted to devices with mouse pointer to prevent sticky mobile hover */
@media (hover: hover) and (pointer: fine) {
    .nav-link:hover::after {
        width: 100%;
    }

    .glow-button:hover {
        box-shadow: 0 0 25px rgba(255, 179, 71, 0.4);
        background-color: #ffaa33;
        transform: translateY(-3px) scale(1.02);
    }

    .card-hover:hover {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 179, 71, 0.3);
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    }
}

/* Base states for interactive elements */
.glow-button {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent; 
}

/* Timeline Custom Glowing Dot */
.timeline-dot-active {
    animation: pulseGlow 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(255, 179, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0); }
}

/* Hide Scrollbar for specific horizontal scroll containers (like the hero image on mobile) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Global Custom Scrollbar */
::selection { background: rgba(255, 179, 71, 0.9); color: #0D1117; }

::-webkit-scrollbar { width: 5px; } /* Slightly thinner for mobile feel */
::-webkit-scrollbar-track { background: #090b0f; }
::-webkit-scrollbar-thumb { 
    background: #FFB347; 
    border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { background: #ffa31a; }

/* Mobile Menu Active Class & Staggered Link Animation */
.menu-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-link {
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger delays for premium mobile menu reveal */
.menu-active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.menu-active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.menu-active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.menu-active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.menu-active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.menu-active .mobile-link:nth-child(6) { transition-delay: 0.35s; }
.menu-active a:last-child { 
    transition: all 0.4s ease 0.45s; 
    opacity: 0;
    transform: translateY(20px);
}
.menu-active a:last-child {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Top Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFB347, #ffcc80);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(255, 179, 71, 0.5);
    border-radius: 0 2px 2px 0;
}