/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #a7feff;
    --primary-dark: #7dd3df;
    --accent-color: #ff006e;
    --accent-secondary: #00d4ff;
    --oscilloscope-bg: #084148;
    --oscilloscope-line: #a7feff;
    --oscilloscope-line-bright: #ffffff;
    --oscilloscope-line-dim: #7dd3df;
    --background-primary: #0a0a0a;
    --background-secondary: #111111;
    --background-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --shadow-primary: 0 0 20px rgba(167, 254, 255, 0.3);
    --shadow-accent: 0 0 30px rgba(255, 0, 110, 0.4);
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.8);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-secondary));
    --gradient-secondary: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    --gradient-bg: radial-gradient(circle at 50% 50%, rgba(167, 254, 255, 0.1) 0%, transparent 70%);
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-primary);
    background-image: var(--gradient-bg);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(167, 254, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--background-secondary);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.header:hover::before {
    opacity: 0.1;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    animation: logoGlow 3s ease-in-out infinite;
}

.logo-img:hover {
    transform: scale(1.3);
    filter: brightness(0) invert(1) drop-shadow(0 0 20px var(--primary-color));
}

/* Main content */
.main {
    margin-top: 80px;
}

/* Hero section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--background-primary);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 500px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    opacity: 0.015;
}

.hero-logo-bg img {
    width: 100%;
    height: auto;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(167, 254, 255, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 0, 110, 0.05) 50%, transparent 70%);
    animation: heroGradientShift 12s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(167, 254, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 0, 110, 0.15) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--text-primary);
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
    position: relative;
    letter-spacing: -0.02em;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
    animation: titleBlur 3s ease-in-out infinite;
}

.hero-subtitle {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out 0.3s both;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.coming-soon {
    font-family: 'Barlow Semi Condensed', sans-serif;
    display: inline-block;
    background: var(--gradient-primary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    border: none;
    color: var(--background-primary);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.9s both;
    letter-spacing: -0.01em;
}

.coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.coming-soon:hover::before {
    left: 100%;
}

.coming-soon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Oscilloscope */
.hero-visual {
    position: relative;
    height: 400px;
    animation: slideInRight 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oscilloscope-container {
    position: relative;
    width: 400px;
    height: 300px;
    background: var(--oscilloscope-bg);
    border: 3px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 0 15px rgba(167, 254, 255, 0.3),
        inset 0 0 30px rgba(167, 254, 255, 0.1);
    animation: oscilloscopeGlow 4s ease-in-out infinite;
}

.oscilloscope-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(167, 254, 255, 0.05) 50%,
        transparent 100%);
    pointer-events: none;
    z-index: 2;
}

#oscilloscope {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 3;
    pointer-events: auto;
}

.oscilloscope-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.oscilloscope-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(167, 254, 255, 0.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 254, 255, 0.6) 1px, transparent 1px),
        linear-gradient(rgba(167, 254, 255, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 254, 255, 0.8) 1px, transparent 1px);
    background-size: 25px 25px, 25px 25px, 100px 100px, 100px 100px;
    opacity: 1.0;
}

/* About section */
.about {
    padding: 4rem 2rem;
    background: var(--background-secondary);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(167, 254, 255, 0.1) 0%, transparent 50%);
    animation: sectionGlow 12s ease-in-out infinite;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: -0.02em;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature {
    background: var(--background-tertiary);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out calc(0.4s + var(--delay, 0s)) both;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.feature::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-primary);
}

.feature:hover::before {
    opacity: 0.015;
}

.feature:hover::after {
    opacity: 0.5;
}

.feature:nth-child(1) { --delay: 0s; }
.feature:nth-child(2) { --delay: 0.2s; }
.feature:nth-child(3) { --delay: 0.4s; }

.feature-icon {
    margin-bottom: 1.5rem;
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.feature-icon svg {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature:hover .feature-icon svg {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 20px var(--primary-color));
    color: var(--accent-color);
}

.feature-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background: var(--background-primary);
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 3rem 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    animation: borderGlow 3s ease-in-out infinite;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-logo-img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--primary-color));
    transform: scale(1.1);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-text:hover {
    color: var(--text-secondary);
}

/* Advanced Animations */
@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(50px) translateY(-30px);
    }
    50% {
        transform: translateX(-30px) translateY(50px);
    }
    75% {
        transform: translateX(30px) translateY(30px);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: brightness(0) invert(1);
    }
    50% {
        filter: brightness(0) invert(1) drop-shadow(0 0 15px var(--primary-color));
    }
}

@keyframes heroGradientShift {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: rotate(20deg) scale(1.02);
        opacity: 0.4;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

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

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

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

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 60px rgba(255, 0, 110, 0.4);
    }
}

@keyframes titleBlur {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.7;
    }
}


@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6), 0 0 60px rgba(255, 0, 110, 0.3);
    }
}


@keyframes sectionGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

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

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 20px var(--primary-color);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 40px var(--primary-color);
    }
}

@keyframes oscilloscopeGlow {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(167, 254, 255, 0.3),
            inset 0 0 30px rgba(167, 254, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 25px rgba(167, 254, 255, 0.5),
            inset 0 0 40px rgba(167, 254, 255, 0.2);
    }
}

/* Legacy float animation for backwards compatibility */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .nav-container {
        padding: 1rem;
    }

    .hero-visual {
        height: 200px;
    }

    .oscilloscope-container {
        width: 320px;
        height: 240px;
    }

    #oscilloscope {
        width: 320px;
        height: 240px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .about {
        padding: 4rem 1rem;
    }

    .feature {
        padding: 2rem 1.5rem;
    }
}