/* GameFlow Predict Pro - Material Design Theme */
/* Color palette inspired by app: Dark blue (#1a2332), Teal (#2a4a5e), Cyan accents */

:root {
    --primary-dark: #0d1421;
    --primary: #1a2332;
    --primary-light: #243447;
    --secondary: #2a4a5e;
    --accent: #00bcd4;
    --accent-light: #4dd0e1;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --text-primary: #ffffff;
    --text-secondary: #b0bec5;
    --text-muted: #78909c;
    --card-bg: #1e2d3d;
    --card-border: #2a4a5e;
    --gradient-start: #1a2332;
    --gradient-end: #0d1421;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
}

/* Navigation */
.navbar-custom {
    background: rgba(13, 20, 33, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-custom .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
    padding: 0 15px;
}

.navbar-custom .brand-logo .logo-icon {
    font-size: 1.6rem;
}

.navbar-custom ul li a {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0 18px;
}

.navbar-custom ul li a:hover {
    color: var(--accent) !important;
    background: transparent;
}

.navbar-custom ul li a.active {
    color: var(--accent) !important;
}

.sidenav {
    background: var(--primary-dark);
}

.sidenav li > a {
    color: var(--text-primary) !important;
    padding: 0 32px;
}

.sidenav li > a:hover {
    background: var(--primary-light);
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

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

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

.device-frame {
    position: relative;
    background: #000;
    border-radius: 35px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 2px #333;
}

.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-frame img {
    width: 100%;
    border-radius: 25px;
    display: block;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent) 0%, #0097a7 100%);
    color: white !important;
    border-radius: 10px;
    padding: 14px 32px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    height: auto;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

.btn-secondary-custom {
    background: transparent;
    color: var(--text-primary) !important;
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    height: auto;
}

.btn-secondary-custom:hover {
    background: var(--accent);
    color: white !important;
}

/* Cards */
.feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.feature-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, #0097a7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card .icon-wrapper i {
    font-size: 28px;
    color: white;
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: left;
    margin: 0;
}

/* Section Styling */
.section {
    padding: 80px 0;
}

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

.section-gradient {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-primary);
}

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

/* Screenshot Carousel */
.screenshot-section {
    max-height: 500px;
    padding: 60px 0;
    overflow: hidden;
}

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

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

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

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

.carousel-slide .device-mockup-small {
    max-width: 220px;
    margin: 0 auto;
}

.carousel-slide .device-frame-small {
    background: #000;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.carousel-slide .device-frame-small img {
    width: 100%;
    border-radius: 20px;
    display: block;
    cursor: pointer;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

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

.carousel-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.carousel-arrow.prev {
    left: 0;
}

.carousel-arrow.next {
    right: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 15px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* Stats Section */
.stat-card {
    text-align: center;
    padding: 30px 20px;
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-card .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

/* Footer */
.footer {
    background: var(--primary-dark);
    padding: 60px 0 30px;
    border-top: 1px solid var(--card-border);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
    text-align: left;
}

.footer-links h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

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

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

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

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

/* Content Pages */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

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

.content-section {
    padding: 60px 0;
}

.content-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--card-border);
    max-width: 900px;
    margin: 0 auto;
}

.content-card h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 30px 0 15px;
    font-weight: 600;
}

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

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

.content-card ul {
    color: var(--text-secondary);
    padding-left: 25px;
    margin-bottom: 20px;
}

.content-card ul li {
    margin-bottom: 10px;
    text-align: left;
}

.content-card a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

.content-card a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--primary-light);
    border: 2px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

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

.form-success {
    display: none;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid var(--success);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: var(--success);
    margin-top: 20px;
}

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

/* Privacy Accept Button (Flutter Integration) */
.privacy-accept-container {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, var(--primary-dark) 0%, rgba(13, 20, 33, 0.95) 100%);
    padding: 20px;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
}

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

.privacy-accept-btn {
    background: linear-gradient(135deg, var(--success) 0%, #388e3c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 60px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.5);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.privacy-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.6);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .hero-section {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }

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

    .hero-content p {
        margin: 0 auto 30px;
    }

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

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

    .section-title {
        font-size: 1.8rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 768px) {
    .navbar-custom .brand-logo {
        font-size: 1.1rem;
        padding: 0 10px;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .feature-card {
        padding: 25px;
    }

    .screenshot-section {
        max-height: 400px;
        padding: 40px 0;
    }

    .carousel-container {
        height: 320px;
    }

    .carousel-slide .device-mockup-small {
        max-width: 180px;
    }

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

    .content-card {
        padding: 25px;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-description {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

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

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        max-width: 280px;
    }

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

    .carousel-slide .device-mockup-small {
        max-width: 160px;
    }

    .carousel-container {
        height: 280px;
    }

    .stat-card .stat-number {
        font-size: 2.2rem;
    }
}

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

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Progressive Image Loading */
.img-loading {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

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