/* Base Utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust for fixed navbar */
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loader Styles */
#loader-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Marquee Animation */
.animate-marquee {
    animation: marquee 25s linear infinite;
}

.animate-marquee2 {
    animation: marquee2 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

@keyframes marquee2 {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0%); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617; /* brand-dark */
}
::-webkit-scrollbar-thumb {
    background: #475569; /* slate-600 */
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6; /* brand-primary */
}

/* Glassmorphism Styles */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-dark {
    background: rgba(11, 17, 32, 0.85); /* brand-navy */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Sticky Navbar Scrolled State */
header.scrolled {
    background: rgba(11, 17, 32, 0.85); /* brand-navy with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Navbar Link Active State */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #8b5cf6, #06b6d4);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: white;
}

/* Animation Delays for Tailwind Custom Animations */
.animation-delay-300 {
    animation-delay: 300ms;
}
.animation-delay-600 {
    animation-delay: 600ms;
}
.animation-delay-1000 {
    animation-delay: 1000ms;
}
.animation-delay-2000 {
    animation-delay: 2000ms;
}
.animation-delay-4000 {
    animation-delay: 4000ms;
}

/* Course Card Hover Effects */
.course-card > div {
    background: linear-gradient(180deg, rgba(11, 17, 32, 1) 0%, rgba(2, 6, 23, 1) 100%);
}

.course-card:hover > div {
    box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.15);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.5s ease;
}

.course-card:hover::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
}

/* Form Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px rgba(30, 41, 59, 1) inset;
    transition: background-color 5000s ease-in-out 0s;
}
