/* 88.8 App Promotional Website - Creative & Playful Theme */

/* Color Palette - Energetic with Lucky 8 theme */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #FFD700;
    --accent-color: #FF8C42;
    --dark-bg: #1A1A2E;
    --light-bg: #FFF8F0;
    --text-dark: #2C2C2C;
    --text-light: #FFFFFF;
    --success-color: #4CAF50;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.18);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE5D4 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography - Bold Impact */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
    text-align: left;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand .navbar-item {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.navbar-item {
    color: var(--text-dark) !important;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.navbar-item:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, #FFE5D4 50%, #FFDDC1 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero-content h1 {
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.device-mockup {
    max-width: 350px;
    position: relative;
    margin: 0 auto;
}

.device-mockup::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.3), rgba(255, 107, 53, 0.3));
    border-radius: 35px;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.device-mockup img {
    width: 100%;
    border-radius: 25px;
    box-shadow: var(--shadow-hover);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.device-mockup img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Buttons - Centered Text */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--text-light);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: #FFC700;
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Sections */
.section {
    padding: 5rem 2rem;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Screenshot Carousel - Space Optimized */
.screenshot-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8F0 100%);
    max-height: 450px;
    padding: 3rem 2rem;
}

.screenshot-carousel {
    max-width: 900px;
    margin: 0 auto;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.carousel-slide img {
    max-height: 320px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: blur(5px);
}

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

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

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

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

.lightbox.active {
    display: flex;
}

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

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

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Features - Alternating Blocks */
.features-section {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 100%);
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature-block:hover {
    transform: translateX(10px);
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-block.reverse:hover {
    transform: translateX(-10px);
}

.feature-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 100px;
    text-align: center;
}

.feature-content {
    flex: 1;
    text-align: left;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-content p {
    color: var(--text-dark);
}

/* Stats/Highlights */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Privacy Page Specific */
.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: left;
}

.privacy-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.privacy-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Flutter Privacy Button - CRITICAL */
.privacy-accept-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--success-color), #45A049);
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.privacy-accept-button:hover {
    background: linear-gradient(135deg, #45A049, #3D8B40);
    box-shadow: 0 12px 32px rgba(76, 175, 80, 0.6);
}

.privacy-accept-button.show {
    display: flex;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    text-align: left;
}

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

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

.form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 2px solid #4CAF50;
}

.form-message.error {
    background: #FFEBEE;
    color: #C62828;
    border: 2px solid #F44336;
}

/* Terms Page */
.terms-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: left;
}

.terms-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

    h2 {
        font-size: 2rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 3rem 1rem;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }

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

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

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

    .feature-block,
    .feature-block.reverse {
        flex-direction: column;
        text-align: center;
    }

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

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

    .screenshot-carousel {
        height: 300px;
    }

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

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .privacy-accept-button {
        bottom: 10px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        padding: 3rem 2rem;
    }

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

    .feature-block {
        gap: 2rem;
    }
}

/* Orientation handling */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .navbar {
        padding: 0.5rem 2rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--secondary-color);
    color: var(--dark-bg);
}
