/* static/css/style.css */
:root {
    --primary-color: #00ff00;
    /* Bright green */
    --secondary-color: #00cc00;
    /* Slightly darker green */
    --accent-color: #00dd00;
    /* Mid green */
    --background-color: #000000;
    /* Black background */
    --text-color: #00ff00;
    /* Green text */
    --terminal-glow: 0 0 10px rgba(0, 255, 0, 0.5);
    /* Green glow effect */
    --dark-panel: #111111;
    /* Slightly lighter than black for contrast */
}

body {
    font-family: 'Share Tech Mono', 'VT323', 'Courier New', monospace;
    /* Terminal-like font */
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Add CRT screen effect */
body::before {
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: multiply;
}

/* Add faint grid pattern */
body::after {
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
    z-index: 998;
    opacity: 0.5;
}

nav {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-color);
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 2rem;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    box-shadow: var(--terminal-glow);
}

nav a:hover {
    text-shadow: var(--terminal-glow);
}

nav a:hover::after {
    width: 100%;
}

main {
    max-width: 1200px;
    width: 100%;
    margin: 70px auto 0;
    padding: 1.5rem;
    flex: 1;
    animation: fadeIn 0.5s ease-in;
    box-sizing: border-box;
    /* Include padding in width calculation */
}

footer {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    border-top: 1px solid var(--primary-color);
}

h1 {
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: var(--terminal-glow);
}

h2 {
    font-family: 'Share Tech Mono', 'VT323', monospace;
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-shadow: var(--terminal-glow);
}

h3 {
    color: var(--accent-color);
    text-shadow: var(--terminal-glow);
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Form Styles */
form {
    max-width: 500px;
    margin: 2rem auto;
}

input[type="email"] {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--dark-panel);
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: var(--terminal-glow);
}

button {
    background-color: var(--dark-panel);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background-color: rgba(0, 255, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--terminal-glow);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.5);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

/* Add a blinking cursor animation */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

h1::after {
    content: '|';
    display: inline-block;
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    color: var(--primary-color);
}

/* Add scanline effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 255, 0, 0.05) 50%,
            rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
    background-size: 100% 3px;
    background-repeat: repeat-y;
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% {
        background-position: 0 0%;
    }

    100% {
        background-position: 0 100%;
    }
}

/* Card-like sections */
.section {
    background: var(--dark-panel);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--secondary-color);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: var(--terminal-glow);
}

/* Image styles */
img:not(.logo img) {
    border-radius: 0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: sepia(20%) hue-rotate(85deg) saturate(120%);
}

img:not(.logo img):hover {
    transform: scale(1.02);
    box-shadow: var(--terminal-glow);
}

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

ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Navigation styles */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background-color: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    text-shadow: var(--terminal-glow);
    font-family: 'VT323', 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    animation: pulse 1s ease-in-out forwards;
}

/* Hero section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 2rem 0 4rem;
    width: 100%;
}

.hero-content {
    animation: slideIn 0.8s ease-out;
}

/* Typewriter effect */
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: normal;
    letter-spacing: 1px;
    position: relative;
    max-width: 100%;
}

.hero-subtitle::after {
    content: '|';
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--primary-color);
    position: absolute;
    margin-left: 5px;
}

/* Override h1 cursor for subtitle animation to work properly */
.hero-content h1::after {
    animation: none;
    content: '';
}

.hero-image {
    animation: fadeIn 1s ease-out;
    aspect-ratio: 1/1;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.button.primary {
    background-color: var(--dark-panel);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.button.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--terminal-glow);
    background-color: rgba(0, 255, 0, 0.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.feature-card {
    background-color: var(--dark-panel);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--secondary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--terminal-glow);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.5rem;
    text-shadow: var(--terminal-glow);
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--dark-panel);
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    margin: 4rem 0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    border: 1px solid var(--primary-color);
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 0.5rem;
}

.form-group button {
    flex-shrink: 0;
}

.success-message {
    color: var(--accent-color);
    font-weight: 500;
    animation: fadeIn 0.5s ease-in;
    font-size: 1.2rem;
    text-shadow: var(--terminal-glow);
}

/* Footer styles */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content p {
    margin: 0;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

/* Additional Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 1rem;
        margin-top: 60px;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 1rem 0 2rem;
        padding: 0;
        width: 100%;
    }

    .hero-image {
        min-height: 250px;
        order: -1;
        width: 100%;
        margin: 0 auto;
    }

    .feature-image {
        position: absolute;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .hero-content {
        text-align: center;
        padding: 0;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0 1rem;
    }

    .form-group {
        flex-direction: column;
        width: 100%;
    }

    .footer-content {
        padding: 0;
        width: 100%;
        text-align: center;
    }

    footer {
        padding: 1rem;
        position: relative;
        bottom: 0;
    }

    /* Ensure all sections fit mobile width */
    .section,
    .features-grid,
    .newsletter-section {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 1.5rem;
        box-sizing: border-box;
    }

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

    .nav-container {
        padding: 0 1rem;
        justify-content: flex-start;
    }

    .logo {
        font-size: 1.3rem;
        margin-right: 3rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    nav a {
        margin-right: 0;
    }
}