:root {
    --bg-color: #0d0221;
    --text-color: #ffffff;
    --primary-color: #ff00ff;
    /* Magenta */
    --secondary-color: #00ffff;
    /* Cyan */
    --accent-color: #f9d71c;
    /* Sun yellow */
    --grid-color: rgba(255, 0, 255, 0.2);
    --font-heading: 'Press Start 2P', cursive;
    /* 8-bit style */
    --font-body: 'Orbitron', sans-serif;
    /* Sci-fi style */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

/* Background Grid Animation */
.retro-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background:
        linear-gradient(to bottom, rgba(13, 2, 33, 1) 0%, rgba(13, 2, 33, 0) 70%),
        perspective(500px) rotateX(60deg) translateY(0) scale(3);
}

.retro-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    transform-origin: top;
}

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

    100% {
        transform: translateY(50px);
    }
}

/* Sun Element */
.sun {
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: linear-gradient(to bottom, #ff00ff, #f9d71c);
    border-radius: 50%;
    z-index: -2;
    box-shadow: 0 0 50px #ff00ff;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 50%, transparent 55%, black 55%, black 60%, transparent 60%, transparent 65%, black 65%, black 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 50%, transparent 55%, black 55%, black 60%, transparent 60%, transparent 65%, black 65%, black 100%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color);
    background: rgba(13, 2, 33, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 50px;
    vertical-align: middle;
}

.nav-links a {
    margin-left: 30px;
    font-size: 1.1rem;
}

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

.hero h1 {
    font-size: 4rem;
    color: var(--secondary-color);
    text-shadow: 4px 4px 0px var(--primary-color);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.video-container {
    width: 60%;
    height: 300px;
    /* Placeholder height */
    background: #000;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 0 20px var(--secondary-color);
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0f0;
    font-family: monospace;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 5px 5px 0px var(--secondary-color);
    transition: all 0.2s;
    text-shadow: 2px 2px 0px #000;
}

.cta-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px var(--secondary-color);
}

.cta-button:active {
    transform: translate(5px, 5px);
    box-shadow: none;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: rgba(13, 2, 33, 0.8);
    position: relative;
    z-index: 10;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
    color: var(--accent-color);
    text-shadow: 3px 3px 0 var(--primary-color);
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    gap: 50px;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.feature-image {
    flex: 1;
    border: 2px solid var(--secondary-color);
    box-shadow: 10px 10px 0 var(--primary-color);
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #000;
    padding: 50px 0;
    text-align: center;
    border-top: 2px solid var(--secondary-color);
    position: relative;
    z-index: 10;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    font-size: 2rem;
    margin: 0 15px;
    color: var(--text-color);
}

.social-links a:hover {
    color: var(--accent-color);
}

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

    .feature-item {
        flex-direction: column;
        margin-bottom: 60px;
    }

    .feature-item:nth-child(even) {
        flex-direction: column;
    }

    .video-container {
        width: 90%;
    }
}