/* Wave 3 Custom Styles - 90s Synthwave Aesthetic */

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', 'Bookman Old Style', 'Georgia', 'Times New Roman', serif !important;
}

/* Keep Chicago font for typewriter effect */
#typewriter {
    font-family: 'Chicago', 'Monaco', 'Courier', monospace !important;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* CRT/Retro Glow Effects */
.retro-glow {
    text-shadow:
        0 0 10px rgba(0, 191, 255, 0.8),
        0 0 20px rgba(0, 191, 255, 0.6),
        0 0 30px rgba(0, 191, 255, 0.4);
}

/* Header Shadow on Scroll */
header {
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(75, 0, 130, 0.5);
}

/* Hero Section Enhancements */
#retro-pc-img {
    transition: transform 0.1s ease-out;
}

/* Make typewriter text appear on the screen area */
#typewriter {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Typewriter Cursor - inline with text */
#cursor {
    background-color: #2F2F4F;
    animation: blink 1s step-end infinite;
    vertical-align: baseline;
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #00BFFF, #C71585, #4B0082);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

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

/* Card Hover Effects */
.group:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Glass Morphism Effect */
.glass {
    background: rgba(47, 47, 79, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(176, 196, 222, 0.2);
}

/* Wave Canvas */
#wave-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

/* Timeline Enhancements */
#timeline-container {
    position: relative;
    z-index: 20;
}

#timeline-arrow {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px currentColor);
    z-index: 20;
}

/* Card positioning and transitions */
#wave1-content,
#wave2-content,
#wave3-content {
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Timeline progress line smooth transition */
#timeline-progress {
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Service Cards Grid Animation */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Indicator */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(10px); }
}

/* Button Hover Effects */
a[href*="calendly"],
a[href*="services"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

a[href*="calendly"]::before,
a[href*="services"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

a[href*="calendly"]:hover::before,
a[href*="services"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Neon Border Animation */
@keyframes neonPulse {
    0%, 100% {
        box-shadow:
            0 0 5px rgba(0, 191, 255, 0.5),
            0 0 10px rgba(0, 191, 255, 0.3),
            0 0 15px rgba(0, 191, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 10px rgba(0, 191, 255, 0.8),
            0 0 20px rgba(0, 191, 255, 0.5),
            0 0 30px rgba(0, 191, 255, 0.3);
    }
}

/* Pattern Background for Mission Section */
.pattern-bg {
    background-image:
        repeating-linear-gradient(45deg, rgba(75, 0, 130, 0.1) 0px, rgba(75, 0, 130, 0.1) 1px, transparent 1px, transparent 10px),
        repeating-linear-gradient(-45deg, rgba(0, 191, 255, 0.05) 0px, rgba(0, 191, 255, 0.05) 1px, transparent 1px, transparent 10px);
}

/* Loading Animation */
body.loaded section {
    animation: fadeIn 0.6s ease-out;
}

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

/* Responsive Enhancements */
@media (max-width: 768px) {
    #retro-pc svg {
        width: 250px;
        height: 250px;
    }

    .font-chicago {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Simplify parallax on mobile */
    .group {
        transform: none !important;
    }
}

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

    #timeline-arrow,
    #retro-pc {
        transform: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    body {
        background: #000;
        color: #fff;
    }

    .border {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    header {
        position: static;
    }

    section {
        page-break-inside: avoid;
    }

    #wave-canvas,
    #retro-pc {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #191970;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00BFFF, #C71585);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #C71585, #4B0082);
}

/* Selection color */
::selection {
    background: rgba(0, 191, 255, 0.3);
    color: #F0F4FF;
}

::-moz-selection {
    background: rgba(0, 191, 255, 0.3);
    color: #F0F4FF;
}
