/* 1947 Tennis Prediction App - Promo Website Styles */
/* Design: Tech/Gaming Dark Theme with Cyan Neon Accents */

:root {
    --bg-primary: #0d1b1e;
    --bg-secondary: #142a2e;
    --bg-card: #1a3338;
    --accent-cyan: #00e5cc;
    --accent-cyan-light: #4df5e5;
    --accent-red: #ff4757;
    --accent-red-hover: #ff6b7a;
    --text-primary: #ffffff;
    --text-secondary: #a8c5c9;
    --text-muted: #6b8a8e;
    --border-color: #2a4a4f;
    --shadow-glow: 0 0 20px rgba(0, 229, 204, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition-smooth: all 0.3s ease;
    --radius-soft: 10px;
    --radius-pill: 25px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo .logo-icon {
    font-size: 1.6rem;
}

.nav-logo span {
    color: var(--accent-cyan);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: nowrap;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-soft);
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-cyan);
    background: rgba(0, 229, 204, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Main Content */
main {
    padding-top: 70px;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(0, 229, 204, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--accent-cyan);
    text-shadow: 0 0 30px rgba(0, 229, 204, 0.4);
}

.hero-content .tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-soft);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-primary:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(0, 229, 204, 0.1);
    transform: translateY(-2px);
}

/* Device Mockup */
.hero-device {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    position: relative;
    width: 280px;
    max-width: 100%;
}

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 35px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

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

.device-screen img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.device-screen img.loading {
    filter: blur(5px);
    opacity: 0.7;
}

/* Features Section */
.features {
    padding: 100px 20px;
    background: var(--bg-secondary);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header h2 span {
    color: var(--accent-cyan);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-soft);
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 204, 0.1);
    border-radius: var(--radius-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    text-align: left;
    line-height: 1.7;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 20px;
    background: var(--bg-primary);
    max-height: 500px;
    overflow: hidden;
}

.screenshot-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    height: 380px;
}

.carousel-container {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.9);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-device {
    width: 160px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.carousel-device::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 18px;
    background: #1a1a1a;
    border-radius: 0 0 10px 10px;
    z-index: 10;
}

.carousel-device img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

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

.carousel-dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 50px 20px 30px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand h3 span {
    color: var(--accent-cyan);
}

.footer-brand p {
    color: var(--text-secondary);
    text-align: left;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Page Content Styles */
.page-hero {
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 15px;
}

.page-hero h1 span {
    color: var(--accent-cyan);
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.content-section {
    padding: 60px 20px;
    background: var(--bg-primary);
}

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

.content-container h2 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.content-container h2:first-child {
    margin-top: 0;
}

.content-container p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.8;
}

.content-container ul,
.content-container ol {
    color: var(--text-secondary);
    margin: 15px 0 15px 25px;
    text-align: left;
}

.content-container li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-container a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.content-container a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border-radius: var(--radius-soft);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-soft);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

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

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

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

.form-group input[type="file"]::file-selector-button {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 15px;
    font-weight: 500;
}

.form-submit {
    text-align: center;
}

.form-submit .btn {
    min-width: 200px;
}

.form-message {
    padding: 15px 20px;
    border-radius: var(--radius-soft);
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    background: rgba(0, 229, 204, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    display: block;
}

.form-message.error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    display: block;
}

/* Privacy Accept Button (Flutter Integration) */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 27, 30, 0.98);
    border-top: 2px solid var(--accent-cyan);
    padding: 20px;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.privacy-accept-container p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.privacy-accept-btn {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.4);
}

.privacy-accept-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.02);
}

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

.lightbox.active {
    display: flex;
}

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

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

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
}

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

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

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

    .hero-content .tagline {
        margin-left: auto;
        margin-right: auto;
    }

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

    .device-mockup {
        width: 240px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        display: block;
        padding: 12px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 40px 20px 60px;
    }

    .device-mockup {
        width: 200px;
    }

    .features {
        padding: 60px 20px;
    }

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

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

    .footer-brand p {
        margin: 0 auto;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .screenshots {
        padding: 60px 20px;
        max-height: 450px;
    }

    .screenshot-carousel {
        height: 340px;
    }

    .carousel-container {
        height: 280px;
    }

    .carousel-device {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

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

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

    .device-mockup {
        width: 180px;
    }

    .carousel-device {
        width: 120px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .page-hero {
        padding: 100px 20px 40px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mb-0 {
    margin-bottom: 0;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}
