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

:root {
    /* Colors */
    --bg-primary: #0b0f14;
    --bg-secondary: #1a1a2e;
    --cyan: #00d9ff;
    --blue: #0066ff;
    --purple: #6366f1;
    --purple-dark: #8b5cf6;
    --green: #10b981;
    --green-dark: #22c55e;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 1rem;
}

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

@media (min-width: 1024px) {
    :root {
        --container-padding: 0 2rem;
    }
}

html {
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding: var(--container-padding);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, var(--cyan), var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-white {
    color: var(--text-primary);
}

/* Tech Background */
.tech-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.animated-grid {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(rgba(0,217,255,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,217,255,0.5) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

.wave-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.wave-1 {
    animation: waveMove 15s ease-in-out infinite;
}

.wave-2 {
    animation: waveMove 20s ease-in-out infinite reverse;
}

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

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(80px);
}

.orb-1 {
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,217,255,0.3) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite;
}

.orb-2 {
    bottom: 0;
    right: 0;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
    animation: float 30s ease-in-out infinite reverse;
}

.orb-3 {
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
    animation: float 28s ease-in-out infinite;
    transform: translate(-50%, -50%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(50px, -50px); }
    66% { transform: translate(-50px, 50px); }
}



.tv-panel-container {
    position: relative;
    transform-style: preserve-3d;
    animation: tvRotate 8s ease-in-out infinite;
}

@keyframes tvRotate {
    0%, 100% {
        transform: rotateY(-5deg) rotateX(2deg);
    }
    50% {
        transform: rotateY(5deg) rotateX(-2deg);
    }
}

.tv-panel {
    position: relative;
    width: 300px;
    height: 170px;
    background: linear-gradient(135deg, #1a1a2e 0%, #111 50%, #1a1a2e 100%);
    border-radius: 1rem;
    border: 2px solid rgba(0, 217, 255, 0.3);
    box-shadow: 
        0 0 60px rgba(0, 217, 255, 0.3),
        inset 0 0 40px rgba(0, 217, 255, 0.1);
    overflow: hidden;
}

@media (min-width: 640px) {
    .tv-panel {
        width: 500px;
        height: 280px;
    }
}

@media (min-width: 1024px) {
    .tv-panel {
        width: 700px;
        height: 400px;
    }
}

.screen-reflection {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, transparent 50%, rgba(139, 92, 246, 0.1) 100%);
    animation: reflectionMove 6s linear infinite;
}

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

.circuit-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.circuit-line-1 {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-in-out infinite;
}

.circuit-line-2 {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-in-out infinite 1s;
}

@keyframes drawLine {
    0%, 100% {
        stroke-dashoffset: 1000;
    }
    50% {
        stroke-dashoffset: 0;
    }
}

.electronic-components {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
    opacity: 0;
    animation: componentsReveal 4s ease-in-out infinite 2s;
}

@keyframes componentsReveal {
    0%, 85%, 100% {
        opacity: 0;
    }
    10%, 75% {
        opacity: 0.6;
    }
}

.component {
    width: 100%;
    height: 2rem;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 0.25rem;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    animation: componentPulse 3s ease-in-out infinite;
}

@media (min-width: 640px) {
    .component {
        height: 3rem;
    }
}

.component:nth-child(even) {
    animation-delay: 0.3s;
}

@keyframes componentPulse {
    0%, 100% {
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        transform: scale(1) rotate(180deg);
    }
}

.tv-glow {
    position: absolute;
    inset: 0;
    filter: blur(80px);
    opacity: 0.5;
    background: radial-gradient(circle, rgba(0,217,255,0.4) 0%, rgba(99,102,241,0.3) 50%, transparent 70%);
    z-index: -1;
}

.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cyan);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

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

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

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

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 56rem;
    margin: 0 auto;
}

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

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 0.5rem;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
    transition: transform 0.3s;
}

.trust-badge:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--cyan);
    flex-shrink: 0;
    stroke-width: 2;
}

.trust-badge span {
    font-weight: 500;
    font-size: 0.875rem;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
}

/* Animation Classes */
.animate-fade-up {
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
}

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

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

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

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

/* Glowing Divider */
.glowing-divider {
    position: relative;
    height: 2px;
    width: 100%;
    margin: 4rem 0;
    overflow: hidden;
    background: linear-gradient(to right, transparent, rgba(0, 217, 255, 0.2), transparent);
}

.glow-line {
    position: absolute;
    height: 100%;
    width: 33.333%;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
    animation: glowTravel 3s linear infinite;
}

@keyframes glowTravel {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(300%);
    }
}

/* Section Styles */
.section {
    position: relative;
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 4rem;
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Fade in on scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s, transform 0.6s;
    transition-delay: calc(var(--delay, 0) * 1s);
}

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