/* SquadCraft - Material Design Theme */
/* Color Palette: Red (#E31837), Gold (#F5C542), Light Gray (#F5F5F5), Dark (#1A1A2E) */

:root {
    --primary-color: #E31837;
    --primary-dark: #B71430;
    --secondary-color: #F5C542;
    --secondary-dark: #D4A632;
    --text-dark: #1A1A2E;
    --text-light: #4A4A4A;
    --background-light: #FAFAFA;
    --background-white: #FFFFFF;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --card-shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Navigation */
nav {
    background-color: var(--background-white);
    box-shadow: var(--card-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

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

.brand-logo img {
    height: 36px;
    width: 36px;
}

.nav-links {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    background-color: rgba(227, 24, 55, 0.1);
    color: var(--primary-color);
}

.nav-links a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--background-white);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--card-shadow);
        gap: 4px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-wrapper {
        padding: 0 16px;
    }

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-white) 0%, #FFF8E7 100%);
    padding: 120px 24px 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

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

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

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

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

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

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 24, 55, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(245, 197, 66, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.2);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(227, 24, 55, 0.3);
}

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

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

.device-frame {
    background: linear-gradient(145deg, #2A2A3E, #1A1A2E);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.device-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1A1A2E;
    border-radius: 12px;
}

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

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

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

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

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

@media (max-width: 600px) {
    .hero {
        padding: 100px 16px 60px;
        min-height: auto;
    }

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

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

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

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

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

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

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

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--background-white);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
}

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

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

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

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

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

.screenshot-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.screenshot-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.9);
}

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

.screenshot-device {
    max-width: 180px;
    position: relative;
}

.screenshot-device .device-frame {
    background: linear-gradient(145deg, #333, #1a1a1a);
    border-radius: 28px;
    padding: 8px;
}

.screenshot-device .device-frame img {
    border-radius: 20px;
    width: 100%;
    display: block;
    filter: blur(5px);
    transition: filter 0.3s ease;
}

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

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

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

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

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

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

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

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

@media (max-width: 768px) {
    .screenshots {
        padding: 60px 16px;
        max-height: 400px;
    }

    .screenshot-carousel {
        height: 250px;
    }

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

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

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

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

.cta h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

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

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

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 24px 24px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section a:hover {
    color: white;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    footer {
        padding: 40px 16px 16px;
    }

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

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

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

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

.page-content {
    padding: 60px 24px;
    background: var(--background-white);
}

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

.content-container h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

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

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

.content-container ul,
.content-container ol {
    color: var(--text-light);
    margin-bottom: 16px;
    padding-left: 24px;
}

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

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

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

.last-updated {
    background: var(--background-light);
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 600px) {
    .page-header {
        padding: 100px 16px 40px;
    }

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

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

    .content-container h2 {
        font-size: 1.3rem;
    }
}

/* Contact Form */
.contact-section {
    padding: 60px 24px;
    background: var(--background-white);
}

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

.contact-card {
    background: var(--background-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.contact-intro {
    text-align: center;
    margin-bottom: 32px;
}

.contact-intro h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-intro p {
    color: var(--text-light);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--background-light);
}

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

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

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

.form-submit {
    text-align: center;
    margin-top: 24px;
}

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

.form-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
}

.form-message.success {
    background: #E8F5E9;
    color: #2E7D32;
}

.form-message.error {
    background: #FFEBEE;
    color: #C62828;
}

@media (max-width: 600px) {
    .contact-card {
        padding: 24px 16px;
    }
}

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

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

.privacy-accept-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 16px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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: 12px;
}

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

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 16px;
    font-size: 1rem;
}

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

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

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

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

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

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

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}
