/* 1988 Bowling Stats - Material Design Theme */
/* Color Palette: Energetic bowling alley vibes - Orange & Electric Blue */

:root {
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8F65;
    --secondary-color: #1E88E5;
    --secondary-dark: #1565C0;
    --secondary-light: #42A5F5;
    --accent-color: #FFC107;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #FFFFFF;
    --background-light: #FAFAFA;
    --background-white: #FFFFFF;
    --card-shadow: 0 2px 5px rgba(0,0,0,0.16), 0 2px 10px rgba(0,0,0,0.12);
    --card-shadow-hover: 0 8px 17px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
nav {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .brand-logo {
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 15px;
}

nav .brand-logo .bowling-icon {
    font-size: 1.6rem;
}

nav ul li a {
    font-weight: 500;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidenav {
    background: var(--background-white);
}

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

.sidenav .brand-logo-side {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: var(--spacing-xxl) var(--spacing-md);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 500px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.hero-device {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    position: relative;
    max-width: 280px;
    padding: 12px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 36px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.device-mockup::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

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

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0 32px;
    height: 48px;
    line-height: 48px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary:hover {
    background-color: #FFD54F;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,193,7,0.4);
}

.btn-secondary {
    background-color: var(--background-white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0 32px;
    height: 48px;
    line-height: 48px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    height: 56px;
    line-height: 56px;
    padding: 0 40px;
    font-size: 1.1rem;
}

/* Button centering for all buttons */
.btn, button, input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Section Styles */
.section {
    padding: var(--spacing-xxl) var(--spacing-md);
}

.section-light {
    background-color: var(--background-white);
}

.section-gray {
    background-color: var(--background-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

/* Feature Cards Grid - ensures proper centering */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid > .col {
    flex: 0 0 calc(33.333% - var(--spacing-md));
    max-width: calc(33.333% - var(--spacing-md));
}

@media screen and (max-width: 992px) {
    .features-grid > .col {
        flex: 0 0 calc(50% - var(--spacing-md));
        max-width: calc(50% - var(--spacing-md));
    }
}

@media screen and (max-width: 600px) {
    .features-grid > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Feature Cards */
.feature-card {
    background: var(--background-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    height: 100%;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

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

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

.feature-card p {
    color: var(--text-secondary);
    text-align: left;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots-section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-height: 500px;
    overflow: visible;
    background: linear-gradient(180deg, var(--background-light) 0%, var(--background-white) 100%);
}

.screenshot-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    height: 380px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    height: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 240px;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    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;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.screenshot-device {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    max-width: 200px;
}

.screenshot-device::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: #333;
    border-radius: 3px;
}

.screenshot-device img {
    width: 100%;
    border-radius: 20px;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot-device img:hover {
    transform: scale(1.02);
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.carousel-btn i {
    font-size: 24px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-md);
}

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

.carousel-dot.active {
    background: var(--primary-color);
    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: 2000;
    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: var(--border-radius-lg);
    box-shadow: 0 0 50px rgba(255,107,53,0.3);
}

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

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--text-light);
    padding: var(--spacing-xl) var(--spacing-md);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: var(--spacing-xxl) var(--spacing-md);
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: var(--text-light);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

footer h5 {
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--primary-light);
}

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

footer ul li {
    margin-bottom: var(--spacing-xs);
}

footer ul li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* Privacy Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.page-header .date {
    opacity: 0.9;
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: var(--spacing-lg) 0 var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--primary-light);
}

.content-section p {
    text-align: left;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.content-section ul, .content-section ol {
    text-align: left;
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.content-section li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
}

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

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

/* Privacy Accept Button - CRITICAL */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-md);
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.privacy-accept-btn {
    background: var(--accent-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 16px 64px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.privacy-accept-btn:hover {
    background: #FFD54F;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255,193,7,0.5);
}

/* Contact Form */
.contact-card {
    background: var(--background-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--card-shadow);
    max-width: 600px;
    margin: 0 auto;
}

.contact-card h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.input-field label {
    color: var(--text-secondary);
}

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

.input-field input:focus + label,
.input-field textarea:focus + label {
    color: var(--primary-color) !important;
}

.file-field .btn {
    background-color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-submit {
    width: 100%;
    margin-top: var(--spacing-md);
}

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

.success-message.show {
    display: block;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .hero-section {
        padding: var(--spacing-xl) var(--spacing-md);
        min-height: auto;
    }

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

    .hero-device {
        margin-top: var(--spacing-lg);
    }

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

    .section-title {
        font-size: 1.7rem;
    }
}

@media screen and (max-width: 768px) {
    nav .brand-logo {
        font-size: 1.2rem;
        padding-left: 10px;
    }

    .hero-section {
        padding: var(--spacing-lg) var(--spacing-sm);
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

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

    .screenshots-section {
        max-height: 420px;
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .screenshot-carousel {
        height: 320px;
    }

    .carousel-wrapper {
        width: 180px;
    }

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

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn i {
        font-size: 20px;
    }

    .feature-card {
        margin-bottom: var(--spacing-md);
    }

    .stat-number {
        font-size: 2.2rem;
    }

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

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

    .content-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

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

    .contact-card {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: 0 var(--spacing-sm);
    }

    .privacy-accept-btn {
        padding: 14px 40px;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

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

    .btn-primary, .btn-secondary {
        padding: 0 24px;
        height: 44px;
        line-height: 44px;
        font-size: 0.9rem;
    }

    .btn-large {
        height: 48px;
        line-height: 48px;
        padding: 0 32px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .screenshot-carousel {
        height: 280px;
    }

    .carousel-wrapper {
        width: 150px;
    }

    .screenshot-device {
        max-width: 140px;
        padding: 8px;
        border-radius: 22px;
    }

    .screenshot-device::before {
        width: 30px;
        height: 4px;
    }

    .screenshot-device img {
        border-radius: 16px;
    }
}

/* Orientation change handling */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: var(--spacing-md);
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
    }

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

    .screenshots-section {
        max-height: 350px;
    }

    .screenshot-carousel {
        height: 250px;
    }
}

/* Progressive image loading */
.img-loading {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

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

/* Touch feedback for mobile */
@media (hover: none) {
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
    }

    .feature-card:active {
        transform: scale(0.98);
    }

    .carousel-btn:active {
        transform: scale(0.9);
    }
}
