@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;700;900&display=swap');

html {
    scroll-behavior: smooth;
    /* Removed scroll-snap for better UX */
}

/* Performance Optimizations - Professional */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Enhanced Lazy Loading for Images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.dark img[loading="lazy"] {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

img[loading="lazy"].loaded {
    opacity: 1;
    background: none;
    animation: none;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

body {
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll triggers */
    color: #0f172a; /* Professional primary text - high contrast */
    background-color: #ffffff; /* Pure white background */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dark body {
    color: #f8fafc; /* Professional light text - high contrast */
    background-color: #0f172a; /* Deep dark background */
}

/* Professional Typography Scale */
h1, .h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3, .h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
}

p, .p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
}

/* Base Card Style - Professional Color System */
.card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 1px 2px 0 rgba(15, 23, 42, 0.03),
        0 1px 3px 0 rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.dark .card {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 
        0 1px 2px 0 rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.25);
}

.card:hover {
    border-color: #cbd5e1;
    box-shadow: 
        0 4px 12px -2px rgba(17, 82, 212, 0.08),
        0 8px 24px -4px rgba(17, 82, 212, 0.06),
        0 12px 32px -6px rgba(17, 82, 212, 0.04);
    transform: translateY(-4px);
    background-color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .card:hover {
    border-color: #475569;
    background-color: #334155;
    box-shadow: 
        0 4px 12px -2px rgba(0, 0, 0, 0.4),
        0 8px 24px -4px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(96, 165, 250, 0.1);
}

/* 3D Tilt Support */
.card-tilt {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Animations State (controlled by JS) - Performance Optimized */
.fade-in, .slide-right, .slide-left, .scale-in, .bounce-in, .rotate-in {
    opacity: 0;
    will-change: transform, opacity;
    transform: translateZ(0); /* GPU acceleration */
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-10deg) scale(0.9); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

/* Active Animation Classes (Added by JS) */
.animate-in.fade-in { animation: fadeIn 0.8s ease-out forwards; }
.animate-in.slide-right { animation: slideRight 0.8s ease-out forwards; }
.animate-in.slide-left { animation: slideLeft 0.8s ease-out forwards; }
.animate-in.scale-in { animation: scaleIn 0.8s ease-out forwards; }
.animate-in.bounce-in { animation: bounceIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards; }
.animate-in.rotate-in { animation: rotateIn 0.8s ease-out forwards; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 0.625rem 1.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

/* Professional Button Styles - Harmonious Color System */
.btn-primary {
    background: linear-gradient(135deg, #1152d4 0%, #2563eb 50%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 
        0 2px 4px -1px rgba(17, 82, 212, 0.2),
        0 4px 12px -2px rgba(17, 82, 212, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d3da3 0%, #1d4ed8 50%, #2563eb 100%);
    box-shadow: 
        0 4px 8px -2px rgba(17, 82, 212, 0.3),
        0 8px 20px -4px rgba(17, 82, 212, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    transform: translateY(-2px) translateZ(0);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0) translateZ(0);
    box-shadow: 
        0 1px 3px -1px rgba(17, 82, 212, 0.3),
        0 2px 6px -2px rgba(17, 82, 212, 0.2);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(17, 82, 212, 0.2),
        0 2px 4px -1px rgba(17, 82, 212, 0.2),
        0 4px 12px -2px rgba(17, 82, 212, 0.15);
}

.btn-secondary {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1152d4;
    border: 1px solid #bfdbfe;
    position: relative;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
    color: #0d3da3;
    transform: translateY(-1px) translateZ(0);
    box-shadow: 
        0 2px 4px -1px rgba(17, 82, 212, 0.12),
        0 4px 12px -2px rgba(17, 82, 212, 0.08);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:active {
    transform: translateY(0) translateZ(0);
    box-shadow: 0 1px 2px rgba(17, 82, 212, 0.1);
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(17, 82, 212, 0.15),
        0 2px 4px -1px rgba(17, 82, 212, 0.1);
}

.dark .btn-secondary {
    background: linear-gradient(180deg, rgba(17, 82, 212, 0.15) 0%, rgba(17, 82, 212, 0.1) 100%);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
}

.dark .btn-secondary:hover {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.2) 0%, rgba(96, 165, 250, 0.15) 100%);
    border-color: rgba(96, 165, 250, 0.5);
    color: #93c5fd;
    box-shadow: 
        0 2px 4px -1px rgba(96, 165, 250, 0.15),
        0 4px 12px -2px rgba(96, 165, 250, 0.1);
}

/* Button Override Support - Allow inline background overrides */
.btn.bg-white {
    background: #ffffff !important;
    border: 1px solid rgba(17, 82, 212, 0.2);
}

.btn.bg-white:hover {
    background: #f9fafb !important;
    border-color: rgba(17, 82, 212, 0.3);
}

.btn.bg-white\/10 {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn.bg-white\/10:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Utility Classes - Enhanced */
.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    transform: skewX(-20deg) translateX(-150%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: skewX(-20deg) translateX(-150%); }
    100% { transform: skewX(-20deg) translateX(150%); }
}

/* Reduce animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .shimmer-effect::after {
        animation: none;
    }
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hover-lift:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hover-scale:hover {
    transform: scale(1.08) translateZ(0);
}

/* Professional Navigation Links - Harmonious Colors */
.nav-link {
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1152d4, #3b82f6);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #1152d4;
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: #1152d4;
    font-weight: 700;
}

.nav-link.active::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #1152d4, #3b82f6);
}

.dark .nav-link {
    color: #94a3b8;
}

.dark .nav-link::before {
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
}

.dark .nav-link:hover {
    color: #60a5fa;
}

.dark .nav-link.active {
    color: #60a5fa;
}

/* Professional Badge Styles - Harmonious Colors */
.tech-hint-badge {
    font-family: 'Space Grotesk', 'Courier New', monospace;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(219, 234, 254, 0.9) 100%);
    border: 1px solid rgba(17, 82, 212, 0.25);
    backdrop-filter: blur(8px);
    box-shadow: 
        0 1px 2px 0 rgba(17, 82, 212, 0.1),
        0 2px 4px -1px rgba(17, 82, 212, 0.08),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
    color: #1152d4;
}

.dark .tech-hint-badge {
    background: linear-gradient(135deg, rgba(17, 82, 212, 0.15) 0%, rgba(17, 82, 212, 0.12) 100%);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
    box-shadow: 
        0 1px 2px 0 rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(96, 165, 250, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Professional Pulse Animation - Harmonious Colors */
@keyframes pulse-neon {
    0%, 100% {
        box-shadow: 
            0 0 8px rgba(17, 82, 212, 0.4),
            0 0 16px rgba(17, 82, 212, 0.2);
        border-color: rgba(17, 82, 212, 0.6);
    }
    50% {
        box-shadow: 
            0 0 16px rgba(59, 130, 246, 0.6),
            0 0 32px rgba(17, 82, 212, 0.4);
        border-color: rgba(59, 130, 246, 0.8);
    }
}

.dark @keyframes pulse-neon {
    0%, 100% {
        box-shadow: 
            0 0 8px rgba(96, 165, 250, 0.5),
            0 0 16px rgba(96, 165, 250, 0.3);
        border-color: rgba(96, 165, 250, 0.7);
    }
    50% {
        box-shadow: 
            0 0 16px rgba(147, 197, 253, 0.7),
            0 0 32px rgba(96, 165, 250, 0.5);
        border-color: rgba(147, 197, 253, 0.9);
    }
}

.animate-neon-pulse {
    animation: pulse-neon 3s infinite;
}

/* Roadmap Node Active State - Fixed */
/* Roadmap Node Active State - Refactored below */


/* Professional Roadmap Animations - Fixed and Improved */
.roadmap-step {
    scroll-snap-align: center;
    scroll-margin-top: 20vh;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .roadmap-step {
        min-height: 240px;
    }
}

.roadmap-step-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-step-animate.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.roadmap-step.active .roadmap-step-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure nodes are perfectly centered - Fixed and Improved */
.roadmap-node-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    width: 64px; /* Fixed width for container to ensure center alignment */
    height: 64px; /* Fixed height for container */
    pointer-events: none;
}

.roadmap-node-container > * {
    pointer-events: auto;
}

/* Desktop: Perfectly center nodes on timeline line */
@media (min-width: 768px) {
    .roadmap-step .roadmap-node-container {
        right: 50%;
        top: 50%;
        left: auto;
        transform: translate(50%, -50%); /* Center perfectly relative to the line */
    }
}

/* Mobile: Align nodes with timeline line */
@media (max-width: 767px) {
    .roadmap-step .roadmap-node-container {
        right: 2rem; /* Matches the line position: right-8 = 2rem */
        top: 50%;
        left: auto;
        transform: translate(50%, -50%); /* Center relative to the line itself */
    }
}

/* Enhanced Roadmap Node Animations - Fixed and Improved */
/* Enhanced Roadmap Node Animations - Stateful & Vibrant */
.roadmap-node,
.roadmap-node-mobile {
    position: relative;
    transition: background-color 0.4s ease, border-color 0.4s ease; 
    background-color: #cbd5e1; /* Slate 300 */
    border: 4px solid #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 20;
    /* Maintain centering while scaling */
    transform: scale(var(--road-scale, 1));
}

.roadmap-step.active .roadmap-node,
.roadmap-step.active .roadmap-node-mobile,
.roadmap-step[style*="--road-finished: 1"] .roadmap-node,
.roadmap-step[style*="--road-finished: 1"] .roadmap-node-mobile {
    background-color: #ffffff;
    border-color: rgba(17, 82, 212, 0.3);
}

.dark .roadmap-node,
.dark .roadmap-node-mobile {
    background-color: #334155; /* Slate 700 */
    border-color: #0f172a;
}

.dark .roadmap-step[style*="--road-finished: 1"] .roadmap-node,
.dark .roadmap-step[style*="--road-finished: 1"] .roadmap-node-mobile {
    background-color: #0f172a;
    border-color: rgba(96, 165, 250, 0.4);
}

.roadmap-node {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.roadmap-node-mobile {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border-width: 3px;
}

.roadmap-node-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    /* Extra vibrant gradient for current focus + persistence for finished */
    background: radial-gradient(circle, rgba(17, 82, 212, 0.6) 0%, rgba(17, 82, 212, 0) 70%);
    opacity: calc(var(--road-intensity, 0) + (var(--road-finished, 0) * 0.4));
    transform: scale(calc(1 + var(--road-intensity, 0) * 1.2)); 
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dark .roadmap-node-glow {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.6) 0%, rgba(96, 165, 250, 0) 70%);
}

.roadmap-node-inner {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1152d4 100%);
    /* Stays visible if finished OR high intensity */
    opacity: calc(var(--road-intensity, 0) * 2 + var(--road-finished, 0));
    z-index: 10;
    transition: opacity 0.3s ease;
}

.dark .roadmap-node-inner {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

.roadmap-step-animate {
    opacity: 0.2; /* Dimmest base */
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    will-change: transform, opacity;
}

.roadmap-step-animate.animate-in {
    /* Persistent visibility once reached, intensifies at center */
    opacity: calc(0.4 + var(--road-intensity, 0) * 0.6 + var(--road-finished, 0) * 0.3);
    transform: translateY(calc((1 - var(--road-intensity, 0)) * 15px));
}


@keyframes roadmap-pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes roadmap-node-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1.5);
    }
    50% {
        opacity: 1;
        transform: scale(2);
    }
}

/* Node visibility - Already handled above, removed duplicate */

@keyframes roadmap-node-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Roadmap Icon Animations */
.roadmap-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-step.active .roadmap-icon {
    animation: roadmap-icon-bounce 0.6s ease-out;
}

@keyframes roadmap-icon-bounce {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.15) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Floating Background Elements */
.roadmap-floating-icon {
    opacity: 0.3;
    transition: all 0.3s ease;
    animation: float-gentle 6s ease-in-out infinite;
}

.roadmap-floating-icon:hover {
    opacity: 0.5;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) translateX(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-25px) translateX(5px) rotate(3deg);
    }
}

.animate-float-delayed-1 {
    animation-delay: 0s;
    animation-duration: 7s;
}

.animate-float-delayed-2 {
    animation-delay: 1.5s;
    animation-duration: 8s;
}

.animate-float-delayed-3 {
    animation-delay: 3s;
    animation-duration: 6.5s;
}

.animate-float-delayed-4 {
    animation-delay: 4.5s;
    animation-duration: 7.5s;
}

/* Floating Particles */
.roadmap-particle {
    animation: particle-float 4s ease-in-out infinite;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.7;
    }
}

.animate-pulse-slow-delayed {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 1.5s;
}

/* Glow Pulse Animation */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(17, 82, 212, 0.5),
            0 0 40px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(17, 82, 212, 0.7),
            0 0 60px rgba(59, 130, 246, 0.5);
    }
}

.animate-glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

.dark .roadmap-step.active .roadmap-node-glow {
    opacity: 0.8;
}

.dark .roadmap-step.active .roadmap-node-inner {
    opacity: 1;
}

/* Node Activation Animation */
@keyframes roadmap-node-activate {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.roadmap-node-container {
    will-change: transform, opacity;
}

/* Roadmap Title Animation */
.roadmap-title {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-step.active .roadmap-title {
    animation: roadmap-title-reveal 0.6s ease-out;
}

@keyframes roadmap-title-reveal {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Tech Hint Badge */
.tech-hint-badge {
    position: relative;
    overflow: hidden;
}

.tech-hint-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tech-hint-badge:hover::before {
    left: 100%;
}

/* Step Content Animation */
.roadmap-step .roadmap-icon,
.roadmap-step .roadmap-title,
.roadmap-step p,
.roadmap-step .tech-hint-badge {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-step.active .roadmap-icon {
    animation-delay: 0.1s;
}

.roadmap-step.active .roadmap-title {
    animation-delay: 0.2s;
}

.roadmap-step.active p {
    animation-delay: 0.3s;
}

.roadmap-step.active .tech-hint-badge {
    animation-delay: 0.4s;
}

/* Professional Custom Scrollbar - Harmonious Colors */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 5px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: all 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    border-color: rgba(100, 116, 139, 0.4);
}

.dark ::-webkit-scrollbar-track {
    background: #0f172a;
    border-color: rgba(30, 41, 59, 0.5);
}
.dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #334155 0%, #475569 100%);
    border: 1px solid rgba(71, 85, 105, 0.3);
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #475569 0%, #64748b 100%);
    border-color: rgba(96, 165, 250, 0.3);
}

/* Logo Glow Effect - Clean Professional Style */
.logo-glow-container {
    position: relative;
    display: inline-block;
    animation: logoFloat 4s ease-in-out infinite;
    padding: 0;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.03);
    }
}

.logo-shimmer {
    position: relative;
    filter: drop-shadow(0 4px 20px rgba(17, 82, 212, 0.5)) drop-shadow(0 0 30px rgba(17, 82, 212, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoShine 2.5s ease-in-out infinite;
    background: transparent;
}

.dark .logo-shimmer {
    filter: drop-shadow(0 4px 20px rgba(96, 165, 250, 0.6)) drop-shadow(0 0 35px rgba(96, 165, 250, 0.4));
    animation: logoShineDark 2.5s ease-in-out infinite;
}

@keyframes logoShine {
    0%, 100% {
        filter: drop-shadow(0 4px 20px rgba(17, 82, 212, 0.5)) drop-shadow(0 0 30px rgba(17, 82, 212, 0.3)) brightness(1);
        opacity: 1;
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 8px 40px rgba(17, 82, 212, 0.8)) drop-shadow(0 0 60px rgba(17, 82, 212, 0.6)) brightness(1.2);
        opacity: 1;
        transform: scale(1.03);
    }
}

@keyframes logoShineDark {
    0%, 100% {
        filter: drop-shadow(0 4px 20px rgba(96, 165, 250, 0.6)) drop-shadow(0 0 35px rgba(96, 165, 250, 0.4)) brightness(1);
        opacity: 1;
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 8px 40px rgba(96, 165, 250, 0.9)) drop-shadow(0 0 70px rgba(96, 165, 250, 0.7)) brightness(1.25);
        opacity: 1;
        transform: scale(1.03);
    }
}

.logo-glow-container:hover .logo-shimmer {
    animation: logoPulse 0.8s ease-in-out;
    transform: scale(1.1);
}

.logo-glow-container:hover {
    animation: logoFloatHover 1s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 20px rgba(17, 82, 212, 0.5)) drop-shadow(0 0 30px rgba(17, 82, 212, 0.3));
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 12px 50px rgba(17, 82, 212, 0.9)) drop-shadow(0 0 80px rgba(17, 82, 212, 0.7));
    }
}

.dark .logo-glow-container:hover .logo-shimmer {
    filter: drop-shadow(0 12px 50px rgba(96, 165, 250, 1)) drop-shadow(0 0 80px rgba(96, 165, 250, 0.8));
}

@keyframes logoFloatHover {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

/* Logo Shimmer Overlay */
.logo-shimmer-overlay {
    pointer-events: none;
    animation: shimmerSlide 3s ease-in-out infinite;
}

@keyframes shimmerSlide {
    0% {
        transform: translateX(-200%) skewX(-12deg);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(200%) skewX(-12deg);
        opacity: 0;
    }
}

.logo-glow-container:hover .logo-shimmer-overlay {
    animation: shimmerSlideFast 1.5s ease-in-out infinite;
}

@keyframes shimmerSlideFast {
    0% {
        transform: translateX(-200%) skewX(-12deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(200%) skewX(-12deg);
        opacity: 0;
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Animated Gradient Text */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    animation: gradient-shift 3s ease infinite;
}
