/* ==========================================================================
   ICETME-2027 | Premium Custom Styles (Paired with Tailwind)
   ========================================================================== */

/* --- Base & Scrollbar --- */
html {
    scroll-behavior: smooth;
}

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f7f9fb; /* surface */
}
::-webkit-scrollbar-thumb {
    background: #c3c5d9; /* outline-variant */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #737688; /* outline */
}

/* --- Typography Utilities --- */
.gradient-text {
    /* Signature CTAs: Gradient from primary to primary_container */
    background: linear-gradient(135deg, #003ec7, #0052ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* --- Navbar Link Underline Animation --- */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: linear-gradient(90deg, #003ec7, #0052ff); /* Primary blue gradient */
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 100%;
}
/* --- Glassmorphism Components --- */
.glass-card {
    /* Tier 2: surface_container_lowest @ 70% opacity + backdrop-blur */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Ghost Border Fallback: outline-variant @ 15% */
    border: 1px solid rgba(195, 197, 217, 0.15);
    
    /* Subtle inner glow to simulate light hitting a lens */
    box-shadow: inset 0 1px 0 rgba(221, 225, 255, 0.5); /* primary_fixed tint */
}

/* --- Motion & Transitions (The "Oiled" Feel) --- */
.oiled-transition {
    /* Sub-pixel motion: cubic-bezier for an expensive feel */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    /* Lift and scale slightly (1.02x) */
    transform: translateY(-4px) scale(1.02);
    
    /* Shift ghost border opacity from 15% to 40% on hover */
    border-color: rgba(195, 197, 217, 0.40);
    
    /* Ambient Shadow using on-surface (#191c1e) at 8% opacity */
    box-shadow: 0 32px 64px rgba(25, 28, 30, 0.08);
}

/* --- Custom Backgrounds --- */
.hero-mesh {
    /* Optional: A very subtle dot mesh for the hero background */
    background-image: radial-gradient(rgba(195, 197, 217, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
}
/* Animation styles for the Reveal-Up effect */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
@keyframes float {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}
.animate-float-1 { animation: float 15s ease-in-out infinite; }
.animate-float-2 { animation: float 18s ease-in-out infinite reverse; }

        /* 2. Scroll-triggered entrance animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
        
        /* Staggering delays for list items */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

        /* 3. Button Shine Effect */
@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}