/* 1x App - Material Design Website with Energetic Football Theme */
/* Color Palette: Energetic - Orange, Red, Electric Blue */

:root {
    --primary-color: #FF6600;
    --secondary-color: #2196F3;
    --accent-color: #FF1744;
    --text-dark: #212121;
    --text-light: #757575;
    --background: #FAFAFA;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.15);
    --border-radius: 10px;
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography - Bold Character */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    color: var(--text-dark);
}

h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

h3 {
    font-size: 2rem;
}

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

/* Generous Spacing Philosophy */
section {
    padding: 80px 0;
}

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

/* Navigation */
nav {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
}

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

nav .brand-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1rem;
}

nav ul a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Mobile Menu */
.sidenav-trigger {
    display: none;
    color: var(--text-dark);
    font-size: 2rem;
    cursor: pointer;
}

.sidenav {
    background-color: white;
}

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

/* Hero Section - Split Layout with Device Mockup */
.hero {
    background: linear-gradient(135deg, #FF6600 0%, #FF8533 100%);
    color: white;
    padding: 140px 0 80px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: left;
    line-height: 1.8;
    animation: slideInLeft 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Device Mockup for Hero */
.hero-device {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.device-frame {
    position: relative;
    max-width: 350px;
    width: 100%;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 35px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.device-screen {
    position: relative;
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    background: #000;
}

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

.device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-radius: 0 0 15px 15px;
    z-index: 2;
}

/* Buttons - Centered Text */
.btn, .btn-large, .btn-floating {
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    text-transform: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0 40px;
    height: 56px;
    line-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 23, 68, 0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover, .btn-large:hover {
    background-color: #D50032;
    box-shadow: 0 8px 20px rgba(255, 23, 68, 0.4);
    transform: translateY(-4px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-secondary:hover {
    background-color: #1976D2;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.btn i {
    margin-right: 8px;
}

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

/* Cards - Material Design with Elevation */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
    margin: 20px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

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

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Screenshots Section - Compact Carousel */
.screenshots-section {
    background: white;
    max-height: 500px;
    padding: 60px 0;
}

.screenshots-carousel {
    max-width: 800px;
    margin: 0 auto;
    height: 400px;
    position: relative;
    overflow: hidden;
}

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

.carousel-item {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.carousel-device-frame {
    position: relative;
    max-width: 300px;
    width: 100%;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 30px;
    padding: 12px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
}

.carousel-device-screen {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.carousel-device-screen img {
    width: 100%;
    height: auto;
    display: block;
    filter: blur(5px);
    transition: filter 0.3s ease;
}

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

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

.carousel-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
    left: 20px;
}

.carousel-arrow-right {
    right: 20px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    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: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Footer - Multi-column */
footer {
    background: linear-gradient(135deg, #212121 0%, #424242 100%);
    color: white;
    padding: 60px 0 20px;
}

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

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

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

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

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

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

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

/* Contact Form - Split Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

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

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

.input-field {
    margin-bottom: 30px;
}

.input-field label {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    text-align: left;
}

.input-field input,
.input-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

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

.input-field textarea {
    min-height: 150px;
    resize: vertical;
}

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

.file-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
    text-align: left;
}

.file-field input[type="file"] {
    padding: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: var(--border-radius);
    width: 100%;
    cursor: pointer;
}

/* Privacy Accept Button - Flutter Integration */
#privacyAcceptButton {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background-color: var(--accent-color);
    color: white;
    padding: 0 50px;
    height: 60px;
    line-height: 60px;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(255, 23, 68, 0.5);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.3);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
    70% {
        transform: translateX(-50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

#privacyAcceptButton:hover {
    background-color: #D50032;
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 23, 68, 0.6);
}

/* Privacy Policy Content */
.privacy-content,
.terms-content {
    background: white;
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content h1,
.terms-content h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.privacy-content h2,
.terms-content h2 {
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.privacy-content ul,
.terms-content ul {
    margin-left: 30px;
    margin-bottom: 1.5rem;
}

.privacy-content li,
.terms-content li {
    margin-bottom: 10px;
    text-align: left;
}

.privacy-content a,
.terms-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .hero p {
        text-align: center;
    }

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

    .contact-container {
        grid-template-columns: 1fr;
    }

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

    nav ul.hide-on-med-and-down {
        display: none;
    }

    .sidenav-trigger {
        display: block;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

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

    .carousel-device-frame {
        max-width: 250px;
    }

    .screenshots-carousel {
        height: 350px;
    }

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

    .carousel-arrow-left {
        left: 10px;
    }

    .carousel-arrow-right {
        right: 10px;
    }

    .privacy-content,
    .terms-content {
        padding: 30px 20px;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn, .btn-large {
        width: 100%;
    }

    #privacyAcceptButton {
        width: 90%;
        max-width: 350px;
    }
}

/* Accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success Message */
.success-message {
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 20px 0;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}
