* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-cyan: #00f5ff;
    --secondary-blue: #0077ff;
    --accent-magenta: #ff00ff;
    --dark-bg: #0a0a1a;
    --darker-bg: #050510;
    --glow-cyan: rgba(0, 245, 255, 0.3);
    --glow-blue: rgba(0, 119, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--darker-bg);
    color: #e0e0e0;
    overflow-x: hidden;
    cursor: default;
}

.container {
    opacity: 1;
}

/* Animated Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: float 15s infinite;
    opacity: 0.6;
    box-shadow: 0 0 10px var(--primary-cyan);
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.logo-container {
    position: relative;
    margin-bottom: 30px;
}

.logo-video {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px var(--glow-cyan));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-blue), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px var(--glow-cyan);
    animation: logoGlow 3s ease-in-out infinite alternate;
    letter-spacing: 0.1em;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 20px var(--glow-cyan)); }
    100% { filter: drop-shadow(0 0 40px var(--glow-blue)); }
}

.tagline {
    font-size: 1.5rem;
    color: var(--primary-cyan);
    margin-top: 20px;
    opacity: 0.9;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.subtitle {
    font-size: 1.1rem;
    color: #888;
    margin-top: 15px;
    max-width: 600px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.8s both;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-cyan);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    background: var(--primary-cyan);
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s infinite;
}

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

@keyframes scrollDot {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Section Styles */
.section {
    padding: 100px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: var(--primary-cyan);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), transparent);
}

/* Glowing Cards */
.card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(0, 119, 255, 0.05));
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 30px var(--glow-cyan);
    transform: translateY(-5px);
}

.card:hover::before {
    left: 100%;
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--primary-cyan);
    margin-bottom: 15px;
}

.card-text {
    color: #b0b0b0;
    line-height: 1.7;
}

/* Image Containers - Animated Live Effect */
.diagram-container {
    margin: 40px auto;
    max-width: 50%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.05);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    position: relative;
    animation: radiateGlow 4s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
    background: rgba(10, 25, 30, 0.4);
    backdrop-filter: blur(5px);
}

@keyframes radiateGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 245, 255, 0.1), 0 0 60px rgba(0, 245, 255, 0.05);
        border-color: rgba(0, 245, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 245, 255, 0.25), 0 0 100px rgba(0, 245, 255, 0.1);
        border-color: rgba(0, 245, 255, 0.6);
    }
}

.diagram-container:hover {
    border-color: rgba(0, 245, 255, 0.6);
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.2);
}

.diagram-container img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
    filter: contrast(1.1) brightness(0.9) saturate(1.1);
}

.diagram-container:hover img {
    transform: scale(1.05) translateZ(20px);
    filter: contrast(1.2) brightness(1) saturate(1.2);
}

/* Nano Banana Active Scan Bar */
.scan-bar {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 10%;
    background: linear-gradient(to bottom,
            transparent,
            rgba(0, 245, 255, 0.2),
            rgba(0, 245, 255, 0.5),
            rgba(0, 245, 255, 0.2),
            transparent);
    z-index: 5;
    pointer-events: none;
    animation: nanoScan 3s linear infinite;
    opacity: 0.6;
}

@keyframes nanoScan {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Digital HUD Glitch Effect */
@keyframes nanoGlitch {
    0% {
        clip-path: inset(80% 0 0 0);
        transform: translate(-5px, -5px);
    }
    10% {
        clip-path: inset(10% 0 85% 0);
        transform: translate(5px, 5px);
    }
    20% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(-5px, 0px);
    }
    30%, 100% {
        clip-path: inset(0% 0 0% 0);
        transform: translate(0);
    }
}

.diagram-container:hover .hud-glitch {
    animation: nanoGlitch 0.4s steps(2, end) infinite;
    opacity: 0.3;
}

.hud-glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    background: rgba(0, 245, 255, 0.1);
}

/* Scan line overlay effect */
.diagram-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 245, 255, 0.015) 2px,
            rgba(0, 245, 255, 0.015) 4px);
    pointer-events: none;
    z-index: 2;
}

/* Flowing energy line overlay */
.diagram-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 245, 255, 0.08),
            rgba(0, 245, 255, 0.15),
            rgba(0, 245, 255, 0.08),
            transparent);
    animation: flowingEnergy 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes flowingEnergy {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* Corner pulse indicators */
.diagram-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-cyan);
    z-index: 4;
    animation: cornerPulse 2s ease-in-out infinite;
}

.diagram-corner.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.diagram-corner.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.diagram-corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.diagram-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

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

/* Data flow dots animation */
.flow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}

.flow-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: flowDot 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary-cyan);
}

.flow-dot:nth-child(1) { animation-delay: 0s; }
.flow-dot:nth-child(2) { animation-delay: 0.2s; }
.flow-dot:nth-child(3) { animation-delay: 0.4s; }
.flow-dot:nth-child(4) { animation-delay: 0.6s; }
.flow-dot:nth-child(5) { animation-delay: 0.8s; }

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

/* Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.data-table th {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(0, 119, 255, 0.2));
    color: var(--primary-cyan);
    font-family: 'Orbitron', monospace;
    padding: 18px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    color: #c0c0c0;
}

.data-table tr:hover td {
    background: rgba(0, 245, 255, 0.05);
}

/* Highlight Text */
strong {
    color: var(--primary-cyan);
}

/* List Styles */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
}

ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 255, 0.05));
    border-radius: 30px;
    border: 1px solid rgba(0, 245, 255, 0.3);
    margin: 60px 0;
}

.cta-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

.cta-amount {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-blue));
    color: var(--dark-bg);
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--glow-cyan);
}

/* Audio Indicator */
.audio-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-indicator:hover {
    border-color: var(--primary-cyan);
}

.audio-indicator span {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--primary-cyan);
}

.sound-bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 15px;
}

.sound-bar {
    width: 3px;
    background: var(--primary-cyan);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.sound-bars.active .sound-bar {
    animation: soundWave 0.5s ease-in-out infinite;
}

.sound-bar:nth-child(1) { height: 5px; animation-delay: 0s; }
.sound-bar:nth-child(2) { height: 10px; animation-delay: 0.1s; }
.sound-bar:nth-child(3) { height: 7px; animation-delay: 0.2s; }
.sound-bar:nth-child(4) { height: 12px; animation-delay: 0.3s; }

@keyframes soundWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(0, 245, 255, 0.2);
    margin-top: 60px;
}

footer p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

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

    .cta-amount {
        font-size: 2.5rem;
    }
    
    .diagram-container {
        max-width: 90%;
    }
}
