/* ============================================
   Animations & Transitions
   ============================================ */

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    5% { clip: rect(70px, 9999px, 71px, 0); }
    10% { clip: rect(29px, 9999px, 24px, 0); }
    15% { clip: rect(68px, 9999px, 6px, 0); }
    20% { clip: rect(50px, 9999px, 29px, 0); }
    25% { clip: rect(15px, 9999px, 33px, 0); }
    30% { clip: rect(2px, 9999px, 36px, 0); }
    35% { clip: rect(20px, 9999px, 98px, 0); }
    40% { clip: rect(75px, 9999px, 53px, 0); }
    45% { clip: rect(56px, 9999px, 89px, 0); }
    50% { clip: rect(91px, 9999px, 33px, 0); }
    55% { clip: rect(58px, 9999px, 73px, 0); }
    60% { clip: rect(35px, 9999px, 67px, 0); }
    65% { clip: rect(14px, 9999px, 52px, 0); }
    70% { clip: rect(85px, 9999px, 21px, 0); }
    75% { clip: rect(62px, 9999px, 98px, 0); }
    80% { clip: rect(23px, 9999px, 45px, 0); }
    85% { clip: rect(71px, 9999px, 12px, 0); }
    90% { clip: rect(8px, 9999px, 82px, 0); }
    95% { clip: rect(44px, 9999px, 39px, 0); }
    100% { clip: rect(59px, 9999px, 77px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(19px, 9999px, 32px, 0); }
    10% { clip: rect(88px, 9999px, 78px, 0); }
    15% { clip: rect(34px, 9999px, 15px, 0); }
    20% { clip: rect(5px, 9999px, 67px, 0); }
    25% { clip: rect(72px, 9999px, 49px, 0); }
    30% { clip: rect(41px, 9999px, 84px, 0); }
    35% { clip: rect(93px, 9999px, 28px, 0); }
    40% { clip: rect(11px, 9999px, 96px, 0); }
    45% { clip: rect(77px, 9999px, 43px, 0); }
    50% { clip: rect(26px, 9999px, 61px, 0); }
    55% { clip: rect(84px, 9999px, 17px, 0); }
    60% { clip: rect(48px, 9999px, 92px, 0); }
    65% { clip: rect(3px, 9999px, 55px, 0); }
    70% { clip: rect(67px, 9999px, 38px, 0); }
    75% { clip: rect(21px, 9999px, 81px, 0); }
    80% { clip: rect(95px, 9999px, 24px, 0); }
    85% { clip: rect(52px, 9999px, 70px, 0); }
    90% { clip: rect(38px, 9999px, 13px, 0); }
    95% { clip: rect(79px, 9999px, 59px, 0); }
    100% { clip: rect(16px, 9999px, 86px, 0); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .glitch::before,
    .glitch::after {
        animation: none;
    }
}

/* ============================================
   Scroll Animations (Intersection Observer)
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animations for children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Hover Animations
   ============================================ */

/* Float animation */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Pulse animation */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* ============================================
   Loading Animations
   ============================================ */

/* Skeleton loader */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-card) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Dots loader */
.dots-loader {
    display: flex;
    gap: 8px;
}

.dots-loader span {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: dots-bounce 1.4s infinite ease-in-out both;
}

.dots-loader span:nth-child(1) { animation-delay: -0.32s; }
.dots-loader span:nth-child(2) { animation-delay: -0.16s; }
.dots-loader span:nth-child(3) { animation-delay: 0s; }

@keyframes dots-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ============================================
   Button Animations
   ============================================ */

/* Ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.btn-ripple:active::after {
    transform: scale(0);
    opacity: 1;
    transition: 0s;
}

/* Arrow slide */
.btn-arrow-slide svg {
    transition: transform 0.3s ease;
}

.btn-arrow-slide:hover svg {
    transform: translateX(5px);
}

/* ============================================
   Card Animations
   ============================================ */

/* Tilt effect (enhanced by JS) */
.card-tilt {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.card-tilt:hover {
    transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
}

/* Glow on hover */
.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.3s ease;
}

.card-glow:hover::before {
    opacity: 0.5;
}

/* ============================================
   Text Animations
   ============================================ */

/* Underline slide */
.underline-slide {
    position: relative;
}

.underline-slide::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.underline-slide:hover::after {
    width: 100%;
}

/* Letter spacing on hover */
.letter-expand {
    transition: letter-spacing 0.3s ease;
}

.letter-expand:hover {
    letter-spacing: 0.1em;
}

/* ============================================
   Image Animations
   ============================================ */

/* Zoom on hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Reveal animation */
.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-primary);
    transform-origin: left;
    animation: reveal 1s ease forwards;
}

@keyframes reveal {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* ============================================
   Background Animations
   ============================================ */

/* Gradient animation */
.bg-gradient-animate {
    background: linear-gradient(
        -45deg,
        var(--accent-primary),
        var(--accent-secondary),
        #10b981,
        #06b6d4
    );
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particles (CSS only - simple version) */
.particles {
    position: relative;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: particle-float 20s infinite;
}

.particles::before {
    top: 20%;
    left: 20%;
    animation-delay: -5s;
}

.particles::after {
    bottom: 30%;
    right: 25%;
    animation-delay: -10s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(50px, -100px) scale(1.5);
        opacity: 1;
    }
    50% {
        transform: translate(-30px, -200px) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translate(20px, -100px) scale(1.2);
        opacity: 0.8;
    }
}

/* ============================================
   Page Transitions
   ============================================ */

/* Fade page transition */
.page-transition {
    animation: page-fade-in 0.5s ease;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Enhanced Hero Effects
   ============================================ */

/* Floating Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: particle-drift 20s infinite ease-in-out;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { top: 60%; left: 20%; animation-delay: -5s; animation-duration: 20s; }
.particle:nth-child(3) { top: 40%; left: 60%; animation-delay: -10s; animation-duration: 22s; }
.particle:nth-child(4) { top: 80%; left: 80%; animation-delay: -15s; animation-duration: 18s; }
.particle:nth-child(5) { top: 30%; left: 85%; animation-delay: -3s; animation-duration: 24s; }
.particle:nth-child(6) { top: 70%; left: 40%; animation-delay: -8s; animation-duration: 21s; }
.particle:nth-child(7) { top: 10%; left: 50%; animation-delay: -12s; animation-duration: 23s; }
.particle:nth-child(8) { top: 90%; left: 30%; animation-delay: -7s; animation-duration: 19s; }

@keyframes particle-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(100px, -150px) scale(1.5);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50px, -250px) scale(0.8);
        opacity: 0.2;
    }
    75% {
        transform: translate(80px, -100px) scale(1.2);
        opacity: 0.5;
    }
}

/* Animated Gradient Orbs */
.gradient-orb {
    animation: orb-float 15s infinite ease-in-out;
}

.gradient-orb-1 {
    animation-delay: 0s;
}

.gradient-orb-2 {
    animation-delay: -7s;
}

@keyframes orb-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-30px, 20px) scale(1.1);
    }
    50% {
        transform: translate(20px, -30px) scale(0.95);
    }
    75% {
        transform: translate(-20px, -20px) scale(1.05);
    }
}

/* ============================================
   Glassmorphism Effects
   ============================================ */
.glass {
    background: rgba(30, 36, 51, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(37, 44, 61, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(96, 165, 250, 0.15);
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(45, 53, 72, 0.8);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.15);
}

/* ============================================
   3D Tilt Card Effect
   ============================================ */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1.02);
}

.tilt-card-inner {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.tilt-card:hover .tilt-card-inner {
    transform: translateZ(50px);
}

/* ============================================
   Enhanced Button Effects
   ============================================ */

/* Neon Glow Button */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--blue-500), var(--blue-400), var(--blue-300), var(--blue-500));
    background-size: 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    animation: gradient-rotate 3s linear infinite;
}

.btn-glow:hover::before {
    opacity: 1;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Border Button */
.btn-border-anim {
    position: relative;
    background: transparent;
    overflow: hidden;
}

.btn-border-anim::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-300), var(--blue-500));
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-flow 3s linear infinite;
    border-radius: inherit;
}

@keyframes border-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Pulse Ring Effect */
.pulse-ring {
    position: relative;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
    animation: pulse-ring-anim 2s infinite;
}

@keyframes pulse-ring-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(96, 165, 250, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
    }
}

/* ============================================
   Animated Section Dividers
   ============================================ */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider .shape-fill {
    fill: var(--bg-secondary);
}

/* Animated Wave */
.wave-anim path {
    animation: wave-motion 8s ease-in-out infinite;
}

@keyframes wave-motion {
    0%, 100% {
        d: path("M0,32L48,37.3C96,43,192,53,288,58.7C384,64,480,64,576,58.7C672,53,768,43,864,48C960,53,1056,75,1152,74.7C1248,75,1344,53,1392,42.7L1440,32L1440,96L1392,96C1344,96,1248,96,1152,96C1056,96,960,96,864,96C768,96,672,96,576,96C480,96,384,96,288,96C192,96,96,96,48,96L0,96Z");
    }
    50% {
        d: path("M0,64L48,58.7C96,53,192,43,288,48C384,53,480,75,576,74.7C672,75,768,53,864,48C960,43,1056,53,1152,58.7C1248,64,1344,64,1392,64L1440,64L1440,96L1392,96C1344,96,1248,96,1152,96C1056,96,960,96,864,96C768,96,672,96,576,96C480,96,384,96,288,96C192,96,96,96,48,96L0,96Z");
    }
}

/* ============================================
   Text Animations
   ============================================ */

/* Gradient Text Animation */
.text-gradient-anim {
    background: linear-gradient(
        90deg,
        var(--blue-400),
        var(--blue-300),
        var(--blue-500),
        var(--blue-400)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-gradient-flow 6s ease infinite;
}

@keyframes text-gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Text Reveal Animation */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    transform: translateX(-101%);
    animation: text-reveal-anim 1s ease forwards;
}

@keyframes text-reveal-anim {
    0% { transform: translateX(-101%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(101%); }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--accent-primary);
    white-space: nowrap;
    animation:
        typewriter-typing 3.5s steps(40, end),
        typewriter-blink 0.75s step-end infinite;
}

@keyframes typewriter-typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes typewriter-blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-primary); }
}

/* ============================================
   Hover Lift Effect
   ============================================ */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Magnetic Button Effect (enhanced by JS)
   ============================================ */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================================
   Image Parallax
   ============================================ */
.parallax-img {
    transition: transform 0.3s ease-out;
}

/* ============================================
   Spotlight Effect
   ============================================ */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.spotlight:hover::before {
    opacity: 1;
}

/* ============================================
   Card Shine Effect
   ============================================ */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.card-shine:hover::before {
    left: 150%;
}

/* ============================================
   Social Link Effects
   ============================================ */
.social-bounce {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-bounce:hover {
    transform: translateY(-5px) scale(1.1);
}

/* ============================================
   Timeline Animation
   ============================================ */
.timeline-animate::before {
    animation: timeline-draw 2s ease forwards;
    transform-origin: top;
}

@keyframes timeline-draw {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.timeline-marker-pulse {
    animation: marker-pulse 2s ease-in-out infinite;
}

@keyframes marker-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(96, 165, 250, 0);
    }
}

/* ============================================
   Floating Shapes Background
   ============================================ */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: shape-float 20s infinite ease-in-out;
}

.floating-shape.circle {
    width: 300px;
    height: 300px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
}

.floating-shape.square {
    width: 150px;
    height: 150px;
    border: 2px solid var(--accent-secondary);
    transform: rotate(45deg);
}

.floating-shape:nth-child(1) { top: 10%; right: 10%; animation-delay: 0s; }
.floating-shape:nth-child(2) { bottom: 20%; left: 5%; animation-delay: -5s; }
.floating-shape:nth-child(3) { top: 50%; right: 20%; animation-delay: -10s; }

@keyframes shape-float {
    0%, 100% {
        transform: rotate(0deg) translate(0, 0);
    }
    25% {
        transform: rotate(90deg) translate(20px, 20px);
    }
    50% {
        transform: rotate(180deg) translate(-10px, 30px);
    }
    75% {
        transform: rotate(270deg) translate(10px, -20px);
    }
}

/* ============================================
   Noise Texture Overlay
   ============================================ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================
   Skill Item Hover Effects
   ============================================ */
.skill-item-enhanced {
    position: relative;
    transition: all 0.3s ease;
}

.skill-item-enhanced::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.skill-item-enhanced:hover {
    transform: translateX(10px);
}

.skill-item-enhanced:hover::before {
    opacity: 0.3;
}

/* ============================================
   Code Window Animation
   ============================================ */
.code-window-float {
    animation: code-float 6s ease-in-out infinite;
}

@keyframes code-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* Code Line Typing Animation */
.code-line {
    opacity: 0;
    animation: code-line-appear 0.5s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.4s; }
.code-line:nth-child(3) { animation-delay: 0.6s; }
.code-line:nth-child(4) { animation-delay: 0.8s; }
.code-line:nth-child(5) { animation-delay: 1.0s; }
.code-line:nth-child(6) { animation-delay: 1.2s; }
.code-line:nth-child(7) { animation-delay: 1.4s; }

@keyframes code-line-appear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Scroll Progress Indicator
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .float,
    .pulse,
    .shimmer::after,
    .skeleton,
    .spinner,
    .dots-loader span,
    .bg-gradient-animate,
    .particles::before,
    .particles::after,
    .particle,
    .gradient-orb,
    .floating-shape,
    .code-window-float,
    .wave-anim path,
    .timeline-animate::before,
    .text-gradient-anim {
        animation: none !important;
    }
}
