/* HoopFlow Live - Material Design with Energetic Basketball Theme */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #F77F00;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --background-light: #F8F9FA;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --border-radius: 10px;
}

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

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

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

/* Navigation */
nav {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav .brand-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 3rem;
    gap: 0.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    margin-left: auto;
    flex-shrink: 0;
}

nav ul li a {
    color: var(--text-light) !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hide redundant Home link on desktop since logo links to home */
nav ul li:first-child {
    display: none;
}

@media (max-width: 968px) {
    nav ul li:first-child {
        display: block;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 80px 20px;
    overflow: hidden;
}

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

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

.hero h1 {
    font-size: 3.5rem;
    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;
    opacity: 0.95;
    text-align: left;
    animation: slideInLeft 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s backwards;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.device-mockup {
    max-width: 350px;
    position: relative;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

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

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

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

.btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #D66E00;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--text-light);
    color: var(--secondary-color);
    border: 3px solid var(--secondary-color);
}

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

/* Sections */
section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

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

.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

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

.feature-card p {
    text-align: left;
    color: #555;
}

.feature-card ul {
    text-align: left;
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.feature-card ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Screenshots Section */
.screenshots-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 60px 20px;
    max-height: 500px;
}

.screenshots-section h2 {
    color: var(--text-light);
}

.screenshot-carousel {
    max-width: 800px;
    margin: 0 auto;
    height: 350px;
    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-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

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

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background-color: var(--text-light);
    color: var(--secondary-color);
    border: 2px solid var(--text-light);
    padding: 10px 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.carousel-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

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

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

.carousel-dot.active {
    background-color: white;
    transform: scale(1.3);
}

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

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 2001;
}

/* Privacy Accept Button (Flutter Integration) */
.privacy-accept-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(247, 127, 0, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.privacy-accept-btn:hover {
    background-color: #D66E00;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 32px rgba(247, 127, 0, 0.6);
}

.privacy-accept-btn.hidden {
    display: none;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

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

.contact-info p {
    text-align: left;
    margin-bottom: 1rem;
    color: #555;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 2rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #DDD;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: none;
    text-align: center;
}

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

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

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

.footer-section p,
.footer-section ul {
    text-align: left;
}

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

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

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

.footer-section ul li a:hover {
    color: var(--accent-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/Terms Content */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.content-page h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-page h2 {
    color: var(--secondary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.content-page h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    text-align: left;
}

.content-page p,
.content-page ul {
    text-align: left;
    color: #555;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.content-page ul {
    padding-left: 2rem;
}

.content-page ul li {
    margin-bottom: 0.8rem;
}

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

.content-page a:hover {
    color: var(--accent-color);
}

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

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

/* Responsive Design */
@media (max-width: 968px) {
    nav .brand-logo {
        font-size: 1.3rem;
        margin-right: 1rem;
    }

    nav ul {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .hero-image {
        order: -1;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .content-page {
        padding: 2.5rem 2rem;
    }
}

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

    nav .nav-wrapper {
        padding: 0 1rem;
    }

    nav .brand-logo {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }

    .hero {
        padding: 50px 15px;
    }

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

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

    section {
        padding: 50px 15px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

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

    .screenshot-carousel {
        height: 300px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .content-page {
        padding: 2rem 1.5rem;
    }

    nav .nav-wrapper {
        padding: 0 1rem;
    }

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