/* 2083 - Lottery Draw Calendar App - Promotional Website Styles */
/* Design: Material Design with Tech Color Mood */

:root {
    --primary: #00897B;
    --primary-dark: #00695C;
    --primary-light: #4DB6AC;
    --accent: #00BFA5;
    --accent-glow: rgba(0, 191, 165, 0.3);
    --background: #FAFAFA;
    --surface: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #FFFFFF;
    --divider: #E0E0E0;
    --error: #D32F2F;
    --success: #388E3C;
    --warning: #F9A825;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.navbar {
    background-color: var(--surface) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0 24px;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary) !important;
    background-color: rgba(0, 137, 123, 0.1);
}

/* Mobile Navigation */
.sidenav {
    background-color: var(--surface);
}

.sidenav li > a {
    color: var(--text-primary) !important;
    font-weight: 500;
}

.sidenav li > a:hover {
    background-color: rgba(0, 137, 123, 0.1);
}

.sidenav-trigger {
    color: var(--primary) !important;
}

/* Main Content */
main {
    margin-top: 64px;
    flex: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 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 {
    color: var(--text-light);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

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

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 28px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-hero.primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero.secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-hero.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
}

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

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

.device-frame {
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.device-screen {
    border-radius: 24px;
    overflow: hidden;
    background: #000;
}

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

/* Features Section */
.features {
    padding: 80px 24px;
    background-color: var(--background);
}

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

.section-header h2 {
    color: var(--text-primary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.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: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--text-light);
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 60px 24px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
    max-height: 500px;
    overflow: hidden;
}

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

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

.screenshot-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    position: relative;
}

.screenshot-item {
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.screenshot-item.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.screenshot-device {
    background: #222;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    max-width: 200px;
}

.screenshot-device img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    cursor: pointer;
    transition: filter 0.3s ease;
    filter: blur(0);
}

.screenshot-device img.loading {
    filter: blur(5px);
}

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

.carousel-nav:hover {
    background: var(--primary);
    color: var(--text-light);
}

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

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

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

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

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

/* 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: 12px;
}

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

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

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

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    color: var(--text-light);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--text-light);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: #263238;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 24px;
    text-align: center;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    font-size: 0.9rem;
}

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

.page-header h1 {
    color: var(--text-light);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

/* Content Pages */
.content-page {
    padding: 60px 24px;
    background: var(--background);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.content-container h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 32px 0 16px 0;
}

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

.content-container h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 24px 0 12px 0;
}

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

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

.content-container li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.content-container a {
    color: var(--primary);
    text-decoration: none;
}

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

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--divider);
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-info {
    text-align: left;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--divider);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.contact-form .input-field {
    margin-bottom: 24px;
}

.contact-form label {
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid var(--divider) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 1px var(--primary) !important;
}

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

.file-field {
    margin-bottom: 24px;
}

.file-field .btn {
    background-color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-field .file-path-wrapper {
    margin-left: 16px;
}

.file-field .file-path {
    border: 1px solid var(--divider) !important;
    border-radius: 8px !important;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary) !important;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--primary-dark) !important;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

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

.form-success i {
    font-size: 64px;
    color: var(--success);
    margin-bottom: 20px;
}

.form-success h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-secondary);
}

/* Privacy Accept Button (Flutter Integration) */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
}

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

.privacy-accept-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text-light);
    padding: 16px 32px;
    border: none;
    border-radius: 28px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.privacy-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 137, 123, 0.4);
}

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

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

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

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

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

@media screen and (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }

    .nav-wrapper {
        height: 56px;
    }

    .brand-logo {
        font-size: 1.2rem;
    }

    .brand-logo .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    nav ul.desktop-nav {
        display: none;
    }

    main {
        margin-top: 56px;
    }

    .hero {
        padding: 60px 16px;
    }

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

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

    .btn-hero {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .device-mockup {
        width: 200px;
    }

    .features {
        padding: 60px 16px;
    }

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

    .screenshots {
        padding: 40px 16px;
        max-height: 400px;
    }

    .carousel-wrapper {
        height: 280px;
    }

    .screenshot-device {
        max-width: 160px;
    }

    .screenshot-device img {
        max-height: 240px;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .page-header {
        padding: 40px 16px;
    }

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

    .content-container {
        padding: 24px;
    }

    .contact-form-container {
        padding: 24px;
    }

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

    footer {
        padding: 32px 16px;
    }

    .footer-links {
        gap: 16px;
    }
}

@media screen and (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

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

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

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

.mt-0 {
    margin-top: 0 !important;
}
