:root {
    --base-color: #0A0A0A;
    --midnight-blue: #001F3F;
    --dark-purple: #2A0A2A;
    --electric-blue: #00FFFF;
    --cyber-pink: #FF00FF;
    --neon-green: #39FF14;
    --bright-yellow: #FFFF00;
    --silver-gray: #808080;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--base-color);
    color: var(--white);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, rgba(0, 255, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 50%, rgba(57, 255, 20, 0.05) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(128, 128, 128, 0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: -1;
    opacity: 0.5;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--base-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
}

.loading-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2rem;
    color: var(--electric-blue);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--electric-blue);
    animation: glitch 1s infinite alternate;
}

.loading-bar {
    width: 300px;
    height: 10px;
    background-color: rgba(128, 128, 128, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--electric-blue), var(--cyber-pink));
    width: 0%;
    animation: loading 3s ease-out forwards;
}

@keyframes loading {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes glitch {
    0% {
        transform: skew(0deg);
    }
    20% {
        transform: skew(2deg);
    }
    40% {
        transform: skew(-1deg);
    }
    60% {
        transform: skew(1deg);
    }
    80% {
        transform: skew(-2deg);
    }
    100% {
        transform: skew(0deg);
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--electric-blue);
    text-shadow: 0 0 5px var(--electric-blue);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav a {
    font-family: 'Share Tech Mono', monospace;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--electric-blue);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--electric-blue);
}

.nav a:hover::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--electric-blue), var(--cyber-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px var(--electric-blue);
    animation: flicker 2s infinite alternate;
}

.hero-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--silver-gray);
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, var(--electric-blue), var(--cyber-pink));
    color: var(--base-color);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid var(--electric-blue);
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px var(--electric-blue);
}

.cta-button:hover {
    background: linear-gradient(90deg, var(--cyber-pink), var(--electric-blue));
    box-shadow: 0 0 20px var(--cyber-pink);
    transform: translateY(-3px);
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.neon-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    animation: grid-pulse 5s ease-in-out infinite alternate;
}

@keyframes grid-pulse {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.7;
    }
}

@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 0.99;
        text-shadow: 0 0 10px var(--electric-blue);
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.4;
        text-shadow: 0 0 5px var(--cyber-pink);
    }
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 4rem 0 2rem;
    background: linear-gradient(90deg, var(--electric-blue), var(--neon-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px var(--electric-blue);
}

.about, .features, .contact {
    padding: 4rem 2rem;
    position: relative;
}

.about-content, .contact-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--silver-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--electric-blue), var(--cyber-pink));
}

.feature-card:hover {
    border-color: var(--electric-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--electric-blue);
    text-shadow: 0 0 10px var(--electric-blue);
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-card p {
    font-family: 'Roboto Mono', monospace;
    color: var(--silver-gray);
    line-height: 1.6;
}

.footer {
    background-color: rgba(10, 10, 10, 0.9);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--silver-gray);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--electric-blue);
}

.footer-copyright {
    font-family: 'Share Tech Mono', monospace;
    color: var(--silver-gray);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav ul {
        gap: 1rem;
    }

    .nav a {
        font-size: 0.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 1rem;
    }

    .hero {
        padding: 1rem;
    }

    .about, .features, .contact {
        padding: 3rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Particle Effect */
.particle {
    position: absolute;
    background-color: var(--electric-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .loading-screen {
        display: none !important;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .hero, .about, .features, .contact {
        page-break-inside: avoid;
    }

    .nav, .footer {
        display: none;
    }
}
