/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --accent: #a855f7;
    --purple: #a855f7;
    --pink: #ec4899;
    --cyan: #06b6d4;
    --blue: #3b82f6;
    --green: #10b981;
    --yellow: #eab308;
    --orange: #f97316;
    --pixel-size: 4px;
}

/* Prevent text selection on mobile */
.main-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 50%, #0a0a0a 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

.main-container {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Matrix Canvas */
.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* Pixel Grid Overlay - Retro CRT pixels */
.main-container::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 4px 4px;
    pointer-events: none;
    z-index: 4;
}

/* Animated corner accents - retro tech feel */
.main-container::after {
    content: '';
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(168, 85, 247, 0.1);
    pointer-events: none;
    z-index: 3;
    background:
        linear-gradient(90deg, var(--purple) 50%, transparent 50%) top left / 20px 2px no-repeat,
        linear-gradient(90deg, var(--purple) 50%, transparent 50%) top right / 20px 2px no-repeat,
        linear-gradient(90deg, var(--purple) 50%, transparent 50%) bottom left / 20px 2px no-repeat,
        linear-gradient(90deg, var(--purple) 50%, transparent 50%) bottom right / 20px 2px no-repeat,
        linear-gradient(0deg, var(--cyan) 50%, transparent 50%) top left / 2px 20px no-repeat,
        linear-gradient(0deg, var(--cyan) 50%, transparent 50%) top right / 2px 20px no-repeat,
        linear-gradient(0deg, var(--cyan) 50%, transparent 50%) bottom left / 2px 20px no-repeat,
        linear-gradient(0deg, var(--cyan) 50%, transparent 50%) bottom right / 2px 20px no-repeat;
    animation: cornerPulse 4s ease-in-out infinite;
}

@keyframes cornerPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Particle Canvas */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gradient-mesh {
    position: fixed;
    inset: 0;
    background: linear-gradient(45deg, #a855f7 0%, #06b6d4 25%, #ec4899 50%, #a855f7 75%, #06b6d4 100%);
    background-size: 400% 400%;
    opacity: 0.03;
    z-index: 1;
    animation: gradientShift 15s ease infinite;
}

/* Scanlines - Retro CRT Effect */
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.25;
    animation: scanlineFlicker 0.1s infinite;
}

@keyframes scanlineFlicker {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.35; }
}

/* Data Streams - Vertical lines on sides */
.data-stream {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.data-stream-left {
    left: 0;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.1) 0%, transparent 100%);
}

.data-stream-right {
    right: 0;
    background: linear-gradient(270deg, rgba(6, 182, 212, 0.1) 0%, transparent 100%);
}

.data-stream::before {
    content: '10110100101101001011010010110100101101001011010010110100';
    position: absolute;
    left: 10px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--purple);
    opacity: 0.4;
    writing-mode: vertical-rl;
    animation: dataScroll 20s linear infinite;
    text-shadow: 0 0 10px var(--purple);
}

.data-stream-right::before {
    left: auto;
    right: 10px;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
    animation-direction: reverse;
}

@keyframes dataScroll {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Retro Corner UI Elements */
.retro-corner {
    position: fixed;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 100;
    pointer-events: none;
    padding: 8px 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.retro-corner-tl {
    top: 80px;
    left: 20px;
    border-left: 2px solid var(--purple);
    border-top: 2px solid var(--purple);
}

.retro-corner-tr {
    top: 80px;
    right: 20px;
    border-right: 2px solid var(--cyan);
    border-top: 2px solid var(--cyan);
    text-align: right;
}

.retro-corner-bl {
    bottom: 20px;
    left: 20px;
    border-left: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
}

.retro-corner-br {
    bottom: 20px;
    right: 20px;
    border-right: 2px solid var(--purple);
    border-bottom: 2px solid var(--purple);
    text-align: right;
}

.retro-text {
    color: var(--purple);
    text-shadow: 0 0 10px var(--purple);
}

.retro-corner-tr .retro-text,
.retro-corner-bl .retro-text {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
}

.retro-blink {
    color: var(--cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.retro-coords {
    color: var(--green);
    text-shadow: 0 0 10px var(--green);
    font-variant-numeric: tabular-nums;
}

/* Hide retro corners on small screens */
@media (max-width: 768px) {
    .retro-corner {
        display: none;
    }
    .data-stream {
        width: 30px;
    }
}

/* Retro Windows 98 Cursor */
.retro-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s, transform 0.15s ease-out;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5));
    transform: translate(-2px, -2px);
}

.retro-cursor svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(1px 1px 0 var(--purple));
    transition: width 0.15s, height 0.15s;
}

.retro-cursor.clicking {
    transform: translate(-2px, -2px) scale(0.9);
}

.retro-cursor.clicking svg path {
    fill: var(--cyan);
}

/* BIG cursor on mobile touch - visible behind thumb */
.retro-cursor.touch-active {
    transform: translate(-2px, -2px) scale(2.5);
    filter:
        drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.7))
        drop-shadow(0 0 20px var(--purple))
        drop-shadow(0 0 40px var(--cyan));
}

.retro-cursor.touch-active svg path {
    fill: white;
    stroke: var(--purple);
    stroke-width: 1;
}

/* Scroll indicator inside cursor */
.cursor-pointer {
    transition: opacity 0.2s, transform 0.2s;
}

.cursor-scroll {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.scroll-pill {
    width: 24px;
    height: 40px;
    border: 3px solid white;
    border-radius: 12px;
    position: relative;
    background: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 15px var(--purple), inset 0 0 10px rgba(6, 182, 212, 0.3);
}

.scroll-pill::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: linear-gradient(to bottom, var(--cyan), var(--purple));
    border-radius: 3px;
    animation: scrollPillBounce 1s ease-in-out infinite;
}

@keyframes scrollPillBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0.5; }
}

.scroll-arrow {
    opacity: 0.7;
    filter: drop-shadow(0 0 5px var(--cyan));
}

.scroll-arrow-up {
    animation: scrollArrowUp 1s ease-in-out infinite;
}

.scroll-arrow-down {
    animation: scrollArrowDown 1s ease-in-out infinite;
}

@keyframes scrollArrowUp {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-3px); opacity: 1; }
}

@keyframes scrollArrowDown {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(3px); opacity: 1; }
}

/* When scrolling - morph to scroll indicator */
.retro-cursor.scrolling .cursor-pointer {
    opacity: 0;
    transform: scale(0.5);
}

.retro-cursor.scrolling .cursor-scroll {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.retro-cursor.scrolling {
    transform: translate(-50%, -50%) scale(2);
    filter:
        drop-shadow(0 0 20px var(--purple))
        drop-shadow(0 0 30px var(--cyan));
}

/* Scroll direction indicators */
.retro-cursor.scrolling-up .scroll-arrow-up {
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--cyan)) drop-shadow(0 0 20px white);
}

.retro-cursor.scrolling-down .scroll-arrow-down {
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--cyan)) drop-shadow(0 0 20px white);
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}

.trail-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--purple), 0 0 20px var(--cyan);
}

/* Hide default cursor on desktop */
@media (min-width: 768px) {
    body {
        cursor: none;
    }

    a, button, .btn, [onclick] {
        cursor: none;
    }
}

/* Cursor Spotlight */
.cursor-spotlight {
    display: none;
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(100px);
    mix-blend-mode: screen;
    background: radial-gradient(circle, hsl(280 100% 70%) 0%, hsl(190 100% 50%) 50%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    will-change: transform;
}

@media (min-width: 768px) {
    .cursor-spotlight {
        display: block;
    }
}

/* Glitch Effect */
.glitch-active {
    animation: glitch 0.2s ease-in-out;
}

@keyframes glitch {
    0% {
        transform: scale(1.05) translate(0, 0);
        filter: brightness(1);
    }
    20% {
        transform: scale(1.05) translate(-5px, 2px);
        filter: brightness(1.5) hue-rotate(90deg);
    }
    40% {
        transform: scale(1.05) translate(5px, -2px);
        filter: brightness(0.8) hue-rotate(-90deg);
    }
    60% {
        transform: scale(1.05) translate(-3px, -1px);
        filter: brightness(1.3) hue-rotate(45deg);
    }
    80% {
        transform: scale(1.05) translate(3px, 1px);
        filter: brightness(0.9) hue-rotate(-45deg);
    }
    100% {
        transform: scale(1.05) translate(0, 0);
        filter: brightness(1);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 50;
    box-shadow: 0 4px 6px rgba(168, 85, 247, 0.05);
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.15);
    border-bottom-color: rgba(168, 85, 247, 0.2);
}

.nav-content {
    padding: 1rem 1rem;
}

@media (min-width: 640px) {
    .nav-content {
        padding: 1.25rem 1.5rem;
    }
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #a855f7, #06b6d4, #ec4899);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
    position: relative;
    text-decoration: none;
}

@media (min-width: 640px) {
    .logo {
        font-size: 1.875rem;
    }
}

.logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--purple)) drop-shadow(2px 2px 0 var(--cyan));
    animation: logoGlitch 0.3s ease-in-out;
}

@keyframes logoGlitch {
    0%, 100% { transform: scale(1.1) translate(0, 0); }
    25% { transform: scale(1.1) translate(-2px, 1px); }
    50% { transform: scale(1.1) translate(2px, -1px); }
    75% { transform: scale(1.1) translate(-1px, -1px); }
}

.desktop-menu {
    display: none;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-underline {
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #a855f7, #06b6d4, #ec4899);
    transition: width 0.3s;
}

.nav-link:hover .nav-underline {
    width: 100%;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:hover {
    color: var(--accent);
}

.menu-icon, .close-icon {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.mobile-menu-content {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .mobile-menu-content {
        padding: 2rem 1.5rem;
    }
}

.mobile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-label {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.mobile-menu-link {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.menu-link-arrow {
    color: var(--purple);
    font-family: 'Courier New', monospace;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.mobile-menu-link:hover .menu-link-arrow {
    opacity: 1;
    color: var(--cyan);
}

.btn-mobile-cta {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Buttons - Retro Modern Blend */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: none;
    transition: all 0.3s;
    overflow: hidden;
    /* Retro pixel border effect on hover */
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 0 0 var(--purple);
}

.btn:hover {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        4px 4px 0 0 var(--purple),
        -1px -1px 0 0 var(--cyan);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

@media (min-width: 640px) {
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1.125rem;
    }
}

.btn-cta {
    padding: 1.5rem 2rem;
    font-size: 1rem;
}

@media (min-width: 640px) {
    .btn-cta {
        padding: 1.5rem 3rem;
        font-size: 1.25rem;
    }
}

.btn-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gradient {
    background: linear-gradient(135deg, #a855f7, #06b6d4, #ec4899);
    background-size: 200% 200%;
    color: white;
    animation: gradientShift 6s ease infinite;
    position: relative;
    overflow: hidden;
}

.btn-gradient::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-gradient:active::after {
    width: 300px;
    height: 300px;
}

.btn-gradient:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 0 60px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.arrow-icon {
    transition: transform 0.3s;
}

.btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.grid-background {
    display: none;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    bottom: 10%;
    right: -10%;
    animation-delay: -10s;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 2rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .hero-inner {
        gap: 2rem;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(168, 85, 247, 0.1), inset 0 0 20px rgba(168, 85, 247, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 auto;
    cursor: default;
    position: relative;
    overflow: hidden;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0%, 100% {
        transform: translateX(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) rotate(45deg);
    }
}

@media (min-width: 640px) {
    .badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

.badge:hover {
    box-shadow:
        0 8px 25px rgba(168, 85, 247, 0.3),
        3px 3px 0 0 var(--cyan),
        -1px -1px 0 0 var(--purple);
    border-color: rgba(168, 85, 247, 0.4);
    transform: scale(1.05);
}

.sparkle-icon {
    width: 12px;
    height: 12px;
    color: var(--accent);
    animation: sparkleRotate 4s linear infinite;
}

@keyframes sparkleRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@media (min-width: 640px) {
    .sparkle-icon {
        width: 16px;
        height: 16px;
    }
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.star-icon {
    width: 10px;
    height: 10px;
    color: var(--accent);
    animation: starPulse 1.5s ease-in-out infinite;
}

.star-icon:nth-child(1) { animation-delay: 0s; }
.star-icon:nth-child(2) { animation-delay: 0.1s; }
.star-icon:nth-child(3) { animation-delay: 0.2s; }
.star-icon:nth-child(4) { animation-delay: 0.3s; }
.star-icon:nth-child(5) { animation-delay: 0.4s; }

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@media (min-width: 640px) {
    .star-icon {
        width: 12px;
        height: 12px;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    text-shadow:
        3px 3px 0 rgba(168, 85, 247, 0.3),
        -1px -1px 0 rgba(6, 182, 212, 0.2);
    position: relative;
}

.hero-title > div {
    position: relative;
    display: inline-block;
}

/* Typewriter cursor after first line */
.hero-title > div:first-child::after {
    content: '|';
    position: absolute;
    right: -10px;
    color: var(--cyan);
    animation: typewriterBlink 0.8s step-end infinite;
    font-weight: normal;
    opacity: 0;
}

.hero-title:hover > div:first-child::after {
    opacity: 1;
}

@keyframes typewriterBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
        text-shadow:
            4px 4px 0 rgba(168, 85, 247, 0.3),
            -2px -2px 0 rgba(6, 182, 212, 0.2);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
        text-shadow:
            5px 5px 0 rgba(168, 85, 247, 0.3),
            -2px -2px 0 rgba(6, 182, 212, 0.2);
    }
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7, #06b6d4, #ec4899, #a855f7);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite, textShimmer 3s ease-in-out infinite;
    display: inline-block;
    transition: transform 0.3s;
    position: relative;
    text-shadow: none;
    filter: drop-shadow(2px 2px 0 rgba(168, 85, 247, 0.3)) drop-shadow(-1px -1px 0 rgba(6, 182, 212, 0.3));
}

.gradient-text:hover {
    transform: scale(1.05);
    animation: gradientShift 6s ease infinite, textGlitch 0.3s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% {
        filter: drop-shadow(2px 2px 0 rgba(168, 85, 247, 0.3)) drop-shadow(-1px -1px 0 rgba(6, 182, 212, 0.3)) brightness(1);
    }
    50% {
        filter: drop-shadow(2px 2px 0 rgba(168, 85, 247, 0.5)) drop-shadow(-1px -1px 0 rgba(6, 182, 212, 0.5)) brightness(1.2);
    }
}

@keyframes textGlitch {
    0%, 100% {
        transform: scale(1.05) translate(0, 0);
        filter: drop-shadow(2px 2px 0 rgba(168, 85, 247, 0.5)) drop-shadow(-2px -2px 0 rgba(6, 182, 212, 0.5));
    }
    20% {
        transform: scale(1.05) translate(-3px, 1px);
        filter: drop-shadow(4px 0 0 rgba(255, 0, 100, 0.7)) drop-shadow(-4px 0 0 rgba(0, 255, 255, 0.7));
    }
    40% {
        transform: scale(1.05) translate(3px, -1px);
        filter: drop-shadow(-4px 0 0 rgba(255, 0, 100, 0.7)) drop-shadow(4px 0 0 rgba(0, 255, 255, 0.7));
    }
    60% {
        transform: scale(1.05) translate(-2px, 2px);
        filter: drop-shadow(2px 2px 0 rgba(168, 85, 247, 0.8)) drop-shadow(-2px -2px 0 rgba(6, 182, 212, 0.8));
    }
    80% {
        transform: scale(1.05) translate(2px, -2px);
        filter: drop-shadow(3px 3px 0 rgba(236, 72, 153, 0.6)) drop-shadow(-1px -1px 0 rgba(6, 182, 212, 0.6));
    }
}

/* Glitch effect class for random triggering */
.glitch-active {
    animation: textGlitch 0.2s ease-in-out !important;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.8;
    padding: 0 0.5rem;
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.accent-text {
    color: var(--accent);
    font-weight: 600;
    position: relative;
    text-shadow: 1px 1px 0 rgba(168, 85, 247, 0.3);
    animation: accentFlicker 4s ease-in-out infinite;
}

@keyframes accentFlicker {
    0%, 95%, 100% {
        opacity: 1;
        text-shadow: 1px 1px 0 rgba(168, 85, 247, 0.3);
    }
    96% {
        opacity: 0.8;
        text-shadow: 2px 1px 0 rgba(255, 0, 100, 0.5), -1px 0 0 rgba(0, 255, 255, 0.5);
    }
    97% {
        opacity: 1;
        text-shadow: -1px 1px 0 rgba(255, 0, 100, 0.3), 1px 0 0 rgba(0, 255, 255, 0.3);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

/* Services Intro Section */
.services-intro {
    padding: 8rem 0 6rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
    min-height: auto;
}

.services-intro-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 30%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
}

.services-intro-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Content backdrop for better readability */
.services-intro-content::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: calc(100% + 4rem);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 80%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: -1;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.intro-badge-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--cyan));
}

.intro-badge-line:last-child {
    background: linear-gradient(90deg, var(--cyan), var(--purple), transparent);
}

.intro-badge-text {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.intro-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.8),
        0 4px 40px rgba(0, 0, 0, 0.5),
        3px 3px 0 rgba(168, 85, 247, 0.3),
        -1px -1px 0 rgba(6, 182, 212, 0.2);
}

@media (min-width: 640px) {
    .intro-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .intro-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .intro-title {
        font-size: 4.5rem;
    }
}

.intro-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

@media (min-width: 640px) {
    .intro-description {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .intro-description {
        font-size: 1.25rem;
    }
}

/* Journey Timeline - Mobile First */
.journey-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

/* Glowing vertical progress line - Mobile */
.journey-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 1px;
}

.journey-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--purple), var(--cyan), var(--green), var(--pink));
    border-radius: 1px;
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 10px var(--purple);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px var(--cyan), 0 0 40px var(--purple);
    }
}

/* Journey Card */
.journey-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    padding-left: 3.5rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.journey-card:hover {
    transform: translateX(8px) scale(1.02);
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(15, 15, 15, 0.95);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(168, 85, 247, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.journey-card:active {
    transform: translateX(4px) scale(0.98);
}

/* Node on the line */
.journey-node {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.node-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--purple);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--purple);
    transition: all 0.3s ease;
    z-index: 2;
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--purple);
    opacity: 0;
    animation: nodePulse 2s ease-out infinite;
}

.journey-card:nth-child(2) .node-dot { background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.journey-card:nth-child(3) .node-dot { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.journey-card:nth-child(4) .node-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.journey-card:nth-child(5) .node-dot { background: var(--pink); box-shadow: 0 0 10px var(--pink); }

.journey-card:nth-child(2) .node-pulse { background: var(--purple); }
.journey-card:nth-child(3) .node-pulse { background: var(--cyan); }
.journey-card:nth-child(4) .node-pulse { background: var(--green); }
.journey-card:nth-child(5) .node-pulse { background: var(--pink); }

@keyframes nodePulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.journey-card:hover .node-dot {
    transform: scale(1.3);
}

/* Journey Content */
.journey-content {
    flex: 1;
    min-width: 0;
}

.journey-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.journey-number {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--text-tertiary);
    opacity: 0.5;
}

.journey-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.journey-icon.icon-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: var(--purple);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.journey-icon.icon-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.journey-icon.icon-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.journey-icon.icon-pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: var(--pink);
    border: 1px solid rgba(236, 72, 153, 0.4);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.15);
}

.journey-card:hover .journey-icon {
    transform: scale(1.1) rotate(5deg);
}

.journey-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.journey-card:hover .journey-title {
    color: var(--cyan);
    text-shadow: 0 2px 15px rgba(6, 182, 212, 0.3);
}

.journey-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.journey-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.journey-cta svg {
    transition: transform 0.3s ease;
}

.journey-card:hover .journey-cta {
    opacity: 1;
    color: var(--cyan);
}

.journey-card:hover .journey-cta svg {
    transform: translateX(4px);
}

/* Glow effect */
.journey-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glow-purple { background: var(--purple); }
.glow-cyan { background: var(--cyan); }
.glow-green { background: var(--green); }
.glow-pink { background: var(--pink); }

.journey-card:hover .journey-glow {
    opacity: 0.15;
}

/* Desktop: Horizontal Layout */
@media (min-width: 768px) {
    .journey-container {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .journey-line {
        display: none;
    }

    .journey-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2.5rem 1.5rem;
        padding-left: 1.5rem;
        flex: 1;
        max-width: 240px;
        background: rgba(10, 10, 10, 0.9);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .journey-card:hover {
        transform: translateY(-10px) scale(1.02);
        background: rgba(15, 15, 15, 0.98);
        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.6),
            0 0 50px rgba(168, 85, 247, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: rgba(168, 85, 247, 0.6);
        z-index: 10;
    }

    .journey-node {
        display: none;
    }

    .journey-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .journey-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    .journey-title {
        font-size: 1.125rem;
    }

    .journey-desc {
        font-size: 0.8rem;
    }

    /* Connector lines between cards */
    .journey-card::after {
        content: '';
        position: absolute;
        right: -2rem;
        top: 50%;
        width: 2rem;
        height: 2px;
        background: linear-gradient(90deg, var(--purple), var(--cyan));
        opacity: 0.6;
        box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
        z-index: 0;
    }

    .journey-card:last-child::after {
        display: none;
    }
}

@media (min-width: 1024px) {
    .journey-card {
        max-width: 240px;
        padding: 2.5rem 2rem;
    }

    .journey-icon {
        width: 70px;
        height: 70px;
    }

    .journey-title {
        font-size: 1.25rem;
    }
}

/* Intro Features */
.intro-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .intro-features {
        gap: 2rem;
        padding: 1.25rem 2rem;
    }
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.intro-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.feature-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--green);
}

/* Scroll Prompt */
.scroll-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.scroll-prompt:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.scroll-prompt-text {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
}

.scroll-prompt-arrow {
    color: var(--cyan);
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Section Header - Keep for detail sections */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow:
        3px 3px 0 rgba(168, 85, 247, 0.2),
        -1px -1px 0 rgba(6, 182, 212, 0.15);
    position: relative;
}

/* Decorative brackets around section titles */
.section-title::before,
.section-title::after {
    font-weight: normal;
    color: var(--cyan);
    opacity: 0.5;
    font-size: 0.8em;
    vertical-align: middle;
}

.section-title::before {
    content: '[ ';
}

.section-title::after {
    content: ' ]';
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
        text-shadow:
            4px 4px 0 rgba(168, 85, 247, 0.2),
            -2px -2px 0 rgba(6, 182, 212, 0.15);
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3.75rem;
    }
}

.section-description {
    font-size: 1rem;
    color: var(--text-tertiary);
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 0.5rem;
}

@media (min-width: 640px) {
    .section-description {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .section-description {
        font-size: 1.25rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(168, 85, 247, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--purple);
    transform: translateY(-0.75rem) rotateX(2deg) rotateY(-2deg);
    box-shadow:
        0 25px 50px rgba(168, 85, 247, 0.25),
        0 15px 30px rgba(6, 182, 212, 0.15),
        8px 8px 0 0 var(--purple),
        -3px -3px 0 0 var(--cyan),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.service-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--cyan);
    opacity: 0.3;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.service-card:hover .service-number {
    opacity: 1;
    transform: scale(1.2);
}

.card-scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
    transform: translateY(-100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover .card-scanline {
    opacity: 1;
    animation: scanlineMove 1.5s linear infinite;
}

@keyframes scanlineMove {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(calc(100% + 200px)); }
}

/* Pixel scanline effect on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, transparent 100%),
        repeating-linear-gradient(0deg, transparent 0px, transparent 2px, rgba(168, 85, 247, 0.03) 2px, rgba(168, 85, 247, 0.03) 4px);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Retro corner brackets on cards */
.service-card::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid transparent;
    pointer-events: none;
    transition: border-color 0.3s;
    background:
        linear-gradient(90deg, var(--cyan) 8px, transparent 8px) top left / 100% 1px no-repeat,
        linear-gradient(90deg, var(--cyan) 8px, transparent 8px) bottom right / 100% 1px no-repeat,
        linear-gradient(0deg, var(--cyan) 8px, transparent 8px) top left / 1px 100% no-repeat,
        linear-gradient(0deg, var(--cyan) 8px, transparent 8px) bottom right / 1px 100% no-repeat;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::after {
    opacity: 0.5;
}

.service-gradient {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover .service-gradient {
    opacity: 0.2;
}

.gradient-purple-pink {
    background: linear-gradient(to bottom right, #a855f7, #ec4899);
}

.gradient-cyan-blue {
    background: linear-gradient(to bottom right, #06b6d4, #3b82f6);
}

.gradient-purple-cyan {
    background: linear-gradient(to bottom right, #a855f7, #06b6d4);
}

.gradient-pink-purple {
    background: linear-gradient(to bottom right, #ec4899, #a855f7);
}

.gradient-yellow-orange {
    background: linear-gradient(to bottom right, #eab308, #f97316);
}

.gradient-green-cyan {
    background: linear-gradient(to bottom right, #10b981, #06b6d4);
}

.service-content {
    position: relative;
    z-index: 10;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.icon-purple-pink {
    background: linear-gradient(to bottom right, #a855f7, #ec4899);
}

.icon-cyan-blue {
    background: linear-gradient(to bottom right, #06b6d4, #3b82f6);
}

.icon-purple-cyan {
    background: linear-gradient(to bottom right, #a855f7, #06b6d4);
}

.icon-pink-purple {
    background: linear-gradient(to bottom right, #ec4899, #a855f7);
}

.icon-yellow-orange {
    background: linear-gradient(to bottom right, #eab308, #f97316);
}

.icon-green-cyan {
    background: linear-gradient(to bottom right, #10b981, #06b6d4);
}

.service-icon svg {
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

/* Terminal-style prefix */
.service-title::before {
    content: '> ';
    color: var(--cyan);
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Courier New', monospace;
}

.service-card:hover .service-title {
    color: var(--accent);
    text-shadow: 2px 2px 0 rgba(168, 85, 247, 0.3), -1px -1px 0 rgba(6, 182, 212, 0.2);
}

.service-card:hover .service-title::before {
    opacity: 1;
}

.service-description {
    color: var(--text-tertiary);
    transition: color 0.3s;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card:hover .service-description {
    color: var(--text-secondary);
}

/* Typing animation on hover */
.service-card:hover .service-description {
    animation: textReveal 0.5s ease-out;
}

@keyframes textReveal {
    0% {
        opacity: 0.5;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

.service-link svg {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.service-card:hover .service-link svg {
    transform: translateX(5px);
    color: var(--cyan);
}

.corner-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #a855f7, #06b6d4, #ec4899);
    opacity: 0;
    filter: blur(40px);
    transition: opacity 0.5s;
}

.service-card:hover .corner-accent {
    opacity: 0.2;
}

/* CTA Section */
.cta-section {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
    z-index: 10;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(168, 85, 247, 0.05) 30%,
        rgba(6, 182, 212, 0.08) 50%,
        rgba(168, 85, 247, 0.05) 70%,
        transparent 100%
    );
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(168, 85, 247, 0.15) 0%,
        transparent 60%
    );
    animation: ctaPulse 4s ease-in-out infinite;
}

.cta-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

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

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--purple);
}

.cta-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    animation: ctaBadgePulse 2s ease-in-out infinite;
}

@keyframes ctaBadgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(6, 182, 212, 0);
    }
}

.cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow:
        3px 3px 0 rgba(168, 85, 247, 0.2),
        -1px -1px 0 rgba(6, 182, 212, 0.15);
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 4.5rem;
        text-shadow:
            4px 4px 0 rgba(168, 85, 247, 0.2),
            -2px -2px 0 rgba(6, 182, 212, 0.15);
    }
}

.cta-gradient {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #06b6d4 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite, ctaTextPulse 2s ease-in-out infinite;
    display: inline-block;
    font-weight: 800;
    filter: drop-shadow(3px 3px 0 rgba(168, 85, 247, 0.4)) drop-shadow(-2px -2px 0 rgba(6, 182, 212, 0.3));
}

@keyframes ctaTextPulse {
    0%, 100% {
        filter: drop-shadow(3px 3px 0 rgba(168, 85, 247, 0.4)) drop-shadow(-2px -2px 0 rgba(6, 182, 212, 0.3));
    }
    50% {
        filter: drop-shadow(4px 4px 0 rgba(168, 85, 247, 0.6)) drop-shadow(-3px -3px 0 rgba(6, 182, 212, 0.5)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
    }
}

.cta-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    padding: 0 0.5rem;
}

@media (min-width: 640px) {
    .cta-description {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .cta-description {
        font-size: 1.5rem;
    }
}

.cta-accent {
    color: var(--accent);
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.cta-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.cta-stat-value {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Courier New', monospace;
}

@media (min-width: 640px) {
    .cta-stat-value {
        font-size: 2.5rem;
    }
}

.cta-stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, 0.3), transparent);
}

@media (max-width: 640px) {
    .cta-stat-divider {
        display: none;
    }
    .cta-stats {
        gap: 1.5rem;
    }
}


/* Footer */
.footer {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.1);
    padding: 5rem 0 2rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), var(--purple), transparent);
    animation: footerGlow 4s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #a855f7, #06b6d4, #ec4899);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.footer-logo-dot {
    background: var(--cyan);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@media (min-width: 640px) {
    .footer-logo {
        font-size: 2.5rem;
    }
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 9999px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-text {
    color: var(--green);
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.heading-bracket {
    color: var(--cyan);
    opacity: 0.5;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-link {
    color: var(--text-tertiary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.link-arrow {
    color: var(--purple);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.footer-link:hover {
    color: var(--accent);
    transform: translateX(8px);
}

.footer-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-cta-text {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-tech {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

.tech-label {
    color: var(--text-tertiary);
}

.tech-stack {
    color: var(--cyan);
    padding: 0.125rem 0.375rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.tech-separator {
    color: var(--text-tertiary);
    opacity: 0.3;
}

/* Animations */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    animation: fadeInUp 1s ease 1.5s both;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: linear-gradient(to bottom, var(--purple), var(--cyan));
    border-radius: 2px;
    position: absolute;
    top: 8px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateY(12px);
    }
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 0.7;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 1rem;
    }
    .scroll-text {
        display: none;
    }
}

/* ============================================ */
/* DETAIL SECTIONS - Service Detail Pages      */
/* ============================================ */

.detail-section {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
    background: transparent;
    overflow: hidden;
}

.detail-section-alt {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(168, 85, 247, 0.02) 30%,
        rgba(6, 182, 212, 0.03) 50%,
        rgba(168, 85, 247, 0.02) 70%,
        transparent 100%
    );
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .detail-content {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.detail-reverse {
    direction: ltr;
}

@media (min-width: 1024px) {
    .detail-reverse {
        direction: rtl;
    }
    .detail-reverse > * {
        direction: ltr;
    }
}

.detail-text {
    max-width: 600px;
}

@media (min-width: 1024px) {
    .detail-text {
        max-width: none;
    }
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(168, 85, 247, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--purple);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    animation: badgePulse 3s ease-in-out infinite;
}

.detail-badge.badge-cyan {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.detail-badge.badge-green {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--green);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.detail-badge.badge-pink {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
    color: var(--pink);
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.4), 0 0 60px rgba(6, 182, 212, 0.2);
    }
}

.detail-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow:
        3px 3px 0 rgba(168, 85, 247, 0.2),
        -1px -1px 0 rgba(6, 182, 212, 0.15);
}

@media (min-width: 640px) {
    .detail-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .detail-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .detail-title {
        font-size: 3.5rem;
    }
}

.detail-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .detail-description {
        font-size: 1.125rem;
    }
}

/* Feature List */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(168, 85, 247, 0.05);
    border-color: rgba(168, 85, 247, 0.2);
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white;
}

.feature-icon.icon-cyan {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.feature-icon.icon-green {
    background: linear-gradient(135deg, var(--green), var(--cyan));
}

.feature-icon.icon-pink {
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.feature-icon svg {
    width: 14px;
    height: 14px;
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Visual Cards */
.detail-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1rem;
    border: 2px solid rgba(168, 85, 247, 0.2);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(168, 85, 247, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.visual-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.1) 0%,
        transparent 50%,
        rgba(6, 182, 212, 0.1) 100%
    );
    pointer-events: none;
}

.visual-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.screen-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27ca3f; }

.screen-title {
    margin-left: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.screen-content {
    flex: 1;
    padding: 1.5rem;
    overflow: hidden;
}

/* Design Preview Card */
.design-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-nav {
    height: 8px;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    border-radius: 4px;
    animation: shimmer 2s ease-in-out infinite;
}

.preview-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.preview-title {
    height: 24px;
    width: 70%;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.3), rgba(6, 182, 212, 0.3));
    border-radius: 4px;
    animation: pulse 2s ease-in-out infinite;
}

.preview-subtitle {
    height: 12px;
    width: 50%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    animation: pulse 2s ease-in-out infinite 0.2s;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.preview-box {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    animation: boxPulse 3s ease-in-out infinite;
}

.preview-box:nth-child(1) { animation-delay: 0s; }
.preview-box:nth-child(2) { animation-delay: 0.3s; }
.preview-box:nth-child(3) { animation-delay: 0.6s; }

@keyframes boxPulse {
    0%, 100% {
        transform: scale(1);
        border-color: rgba(168, 85, 247, 0.2);
    }
    50% {
        transform: scale(1.05);
        border-color: rgba(6, 182, 212, 0.4);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.7;
        background-position: 0% 50%;
    }
    50% {
        opacity: 1;
        background-position: 100% 50%;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Code Card */
.code-content {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
}

@media (min-width: 640px) {
    .code-content {
        font-size: 0.9rem;
    }
}

.code-line {
    white-space: nowrap;
    overflow: hidden;
    animation: typeIn 0.5s ease-out forwards;
    opacity: 0;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.3s; }
.code-line:nth-child(3) { animation-delay: 0.5s; }
.code-line:nth-child(4) { animation-delay: 0.7s; }
.code-line:nth-child(5) { animation-delay: 0.9s; }
.code-line:nth-child(6) { animation-delay: 1.1s; }
.code-line:nth-child(7) { animation-delay: 1.3s; }

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

.code-keyword {
    color: var(--pink);
}

.code-function {
    color: var(--cyan);
}

.code-comment {
    color: var(--green);
    opacity: 0.7;
}

.code-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--cyan);
    animation: cursorBlink 1s step-end infinite;
    margin-left: 4px;
    vertical-align: middle;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Server Card */
.server-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.server-rack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 300px;
}

.server-unit {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.server-unit:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.server-lights {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.server-light.light-active {
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: serverBlink 2s ease-in-out infinite;
}

.server-unit:nth-child(1) .light-active { animation-delay: 0s; }
.server-unit:nth-child(2) .light-active { animation-delay: 0.3s; }
.server-unit:nth-child(3) .light-active { animation-delay: 0.6s; }

@keyframes serverBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

.server-bars {
    flex: 1;
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 30px;
}

.server-bar {
    flex: 1;
    background: linear-gradient(to top, var(--green), var(--cyan));
    border-radius: 2px;
    animation: barPulse 1.5s ease-in-out infinite;
}

.bar-1 { height: 60%; animation-delay: 0s; }
.bar-2 { height: 80%; animation-delay: 0.2s; }
.bar-3 { height: 40%; animation-delay: 0.4s; }

@keyframes barPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.uptime-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 9999px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--green);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.uptime-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* SEO Card */
.seo-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.seo-dashboard {
    width: 100%;
    max-width: 350px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.seo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.seo-title {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--text-primary);
}

.seo-trend {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.trend-up {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
    animation: trendPulse 2s ease-in-out infinite;
}

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

.seo-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.chart-bar {
    flex: 1;
    height: var(--height);
    background: linear-gradient(to top, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.3));
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    animation: chartGrow 1s ease-out forwards;
    transform-origin: bottom;
}

.chart-bar:hover {
    background: linear-gradient(to top, var(--pink), var(--purple));
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

.chart-bar.active {
    background: linear-gradient(to top, var(--pink), var(--purple));
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

@keyframes chartGrow {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.seo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.seo-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    color: var(--purple);
    animation: floatElement 6s ease-in-out infinite;
}

.floating-element.float-cyan {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--cyan);
}

.floating-element.float-green {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--green);
}

.floating-element.float-pink {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
    color: var(--pink);
}

.float-1 {
    top: -20px;
    right: 10%;
    animation-delay: 0s;
}

.float-2 {
    bottom: 10%;
    left: -20px;
    animation-delay: -2s;
}

.float-3 {
    top: 40%;
    right: -20px;
    animation-delay: -4s;
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
    }
    50% {
        transform: translateY(-5px) rotate(-3deg);
    }
    75% {
        transform: translateY(-20px) rotate(3deg);
    }
}

/* Hover effects on visual cards */
.visual-card:hover {
    transform: translateY(-10px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow:
        0 35px 60px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(168, 85, 247, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.visual-card:hover .floating-element {
    animation-duration: 3s;
}

/* Code card specific */
.code-card {
    border-color: rgba(6, 182, 212, 0.2);
}

.code-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow:
        0 35px 60px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(6, 182, 212, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Server card specific */
.server-card {
    border-color: rgba(16, 185, 129, 0.2);
}

.server-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow:
        0 35px 60px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(16, 185, 129, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* SEO card specific */
.seo-card {
    border-color: rgba(236, 72, 153, 0.2);
}

.seo-card:hover {
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow:
        0 35px 60px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(236, 72, 153, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

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

    .particle-canvas,
    .gradient-mesh {
        display: none;
    }
}

/* ===================================
   ONBOARDING FORM
   =================================== */
.onboarding-section {
    position: relative;
    z-index: 10;
    padding: 8rem 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(6, 182, 212, 0.04) 30%,
        rgba(168, 85, 247, 0.06) 50%,
        rgba(6, 182, 212, 0.04) 70%,
        transparent 100%
    );
}

.onboarding-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(6, 182, 212, 0.1) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.onboarding-content {
    position: relative;
    z-index: 10;
    max-width: 680px;
    margin: 0 auto;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 3rem;
}

.onboarding-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow:
        3px 3px 0 rgba(168, 85, 247, 0.2),
        -1px -1px 0 rgba(6, 182, 212, 0.15);
}
@media (min-width: 768px) {
    .onboarding-title { font-size: 3.5rem; }
}

.onboarding-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.field-req {
    color: var(--pink);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.form-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-submit {
    width: 100%;
    max-width: 320px;
}

.form-status {
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    min-height: 1.2em;
}
.form-status.success { color: var(--green); }
.form-status.error { color: var(--pink); }

/* Allow text selection in form fields */
.onboarding-form input,
.onboarding-form select,
.onboarding-form textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Utility Classes */
.hidden {
    display: none;
}

