/* NeonForge Esports Lounge - Tech/Gaming Theme */
/* Dark theme with neon accents */

:root {
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --bg-elevated: #21262d;
    --neon-cyan: #00d4ff;
    --neon-purple: #bd00ff;
    --neon-green: #00ff88;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: #30363d;
    --gradient-neon: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4);
    --glow-purple: 0 0 20px rgba(189, 0, 255, 0.4);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--neon-purple);
    text-shadow: var(--glow-cyan);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) var(--spacing-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo span {
    font-family: 'Courier New', monospace;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--neon-cyan);
    background: rgba(0, 212, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(189, 0, 255, 0.1) 0%, transparent 50%),
        var(--bg-dark);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    margin-bottom: var(--spacing-md);
}

.hero-content h1 .neon-text {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Device Mockup */
.device-mockup {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #2d333b, #1c2128);
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        var(--glow-cyan);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #0d1117;
    border-radius: 12px;
}

.device-screen {
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-dark);
}

.device-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-neon);
    color: var(--bg-dark);
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    color: var(--bg-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* Sections */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
}

.section-dark {
    background: var(--bg-card);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Screenshots Carousel */
.screenshots-section {
    max-height: 500px;
    padding: var(--spacing-lg) var(--spacing-md);
    overflow: hidden;
}

.carousel-container {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.carousel {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
}

.carousel-slide img {
    max-height: 320px;
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: blur(5px);
}

.carousel-slide img.loaded {
    filter: blur(0);
}

.carousel-slide img:hover {
    transform: scale(1.02);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--glow-cyan);
}

.carousel-btn.prev {
    left: -22px;
}

.carousel-btn.next {
    right: -22px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.lightbox-caption {
    text-align: center;
    margin-top: var(--spacing-sm);
    color: var(--text-secondary);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: left;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    margin-bottom: var(--spacing-xs);
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* Alternating Feature Blocks */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-lg) 0;
}

.feature-block:nth-child(even) {
    direction: rtl;
}

.feature-block:nth-child(even) > * {
    direction: ltr;
}

.feature-block-content {
    text-align: left;
}

.feature-block-content h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.feature-block-content p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.feature-block-visual {
    display: flex;
    justify-content: center;
}

.feature-block-visual .icon-large {
    font-size: 6rem;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background:
        radial-gradient(ellipse at center, rgba(189, 0, 255, 0.15) 0%, transparent 70%),
        var(--bg-card);
}

.cta-section h2 {
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    max-width: 500px;
    margin: 0 auto var(--spacing-md);
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) var(--spacing-md);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-section ul a:hover {
    color: var(--neon-cyan);
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--spacing-md) auto 0;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Content Pages */
.page-header {
    padding: calc(80px + var(--spacing-lg)) var(--spacing-md) var(--spacing-lg);
    background:
        radial-gradient(ellipse at 30% 0%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        var(--bg-dark);
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--spacing-xs);
}

.page-header p {
    font-size: 1.1rem;
}

.content-section {
    padding: var(--spacing-lg) var(--spacing-md);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.content-container h2 {
    color: var(--neon-cyan);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
}

.content-container h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.content-container p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.content-container ul,
.content-container ol {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
    color: var(--text-secondary);
}

.content-container li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
}

.content-container a {
    color: var(--neon-cyan);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    margin-bottom: var(--spacing-sm);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.contact-method-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--gradient-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-method-text {
    text-align: left;
}

.contact-method-text span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-method-text a,
.contact-method-text p {
    margin: 0;
    color: var(--text-primary);
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 10px;
}

.form-group input[type="file"]::file-selector-button {
    background: var(--gradient-neon);
    color: var(--bg-dark);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-right: var(--spacing-sm);
    font-weight: 500;
}

.form-submit {
    margin-top: var(--spacing-md);
}

.form-submit .btn {
    width: 100%;
}

.form-success {
    display: none;
    text-align: center;
    padding: var(--spacing-md);
}

.form-success.show {
    display: block;
}

.form-success .icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

/* Privacy Accept Button */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: rgba(13, 17, 23, 0.98);
    border-top: 2px solid var(--neon-cyan);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    text-align: center;
    display: none;
}

.privacy-accept-container.show {
    display: block;
}

.privacy-accept-container p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.privacy-accept-btn {
    padding: 16px 48px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .device-mockup {
        max-width: 280px;
    }

    .feature-block {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-block:nth-child(even) {
        direction: ltr;
    }

    .feature-block-content {
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-menu {
        gap: var(--spacing-sm);
    }

    .nav-menu a {
        padding: var(--spacing-xs);
        font-size: 0.9rem;
    }

    .hero {
        padding-top: calc(120px + var(--spacing-lg));
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .device-mockup {
        max-width: 240px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carousel-btn.prev {
        left: -10px;
    }

    .carousel-btn.next {
        right: -10px;
    }

    .screenshots-section {
        max-height: 400px;
    }

    .carousel {
        height: 300px;
    }

    .carousel-slide img {
        max-height: 270px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: var(--glow-cyan);
    }
    50% {
        box-shadow: var(--glow-purple);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
