/* Retro 1950s Fitness App - Custom Styles */

:root {
    --retro-orange: #FF6B35;
    --retro-teal: #00B9AE;
    --retro-yellow: #FFD23F;
    --retro-pink: #FF5A82;
    --retro-cream: #FFF8E7;
    --retro-dark: #2C3E50;
    --retro-light: #F5F5F5;
}

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

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--retro-cream);
    color: var(--retro-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Navbar Styling */
.navbar {
    background: linear-gradient(135deg, var(--retro-orange), var(--retro-pink));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-menu a {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.navbar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-body {
    position: relative;
    z-index: 10;
}

.hero-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-subtitle {
    color: white;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    animation: slideInLeft 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Device Mockup */
.device-mockup {
    max-width: 350px;
    margin: 0 auto;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.device-frame {
    background: linear-gradient(145deg, #e0e0e0, #ffffff);
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #999;
    border-radius: 2px;
}

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

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

/* Screenshot Carousel - Compact */
.screenshot-section {
    max-height: 450px;
    padding: 60px 20px;
    background: var(--retro-light);
    overflow: hidden;
}

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

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    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;
}

.carousel-slide .device-mockup {
    max-width: 280px;
    cursor: pointer;
}

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

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: var(--retro-pink);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

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

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

.carousel-dot.active {
    background: var(--retro-orange);
    transform: scale(1.3);
}

/* Feature Cards - Alternating Layout */
.features-section {
    padding: 80px 20px;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    animation: fadeIn 0.8s ease;
}

.feature-block:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-icon {
    flex: 0 0 120px;
    font-size: 5rem;
    text-align: center;
}

.feature-content {
    flex: 1;
    text-align: left;
}

.feature-content h3 {
    color: var(--retro-orange);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-content p {
    text-align: left;
    font-size: 1.1rem;
    color: var(--retro-dark);
}

/* Buttons */
.button {
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 32px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

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

.button.is-primary {
    background: linear-gradient(135deg, var(--retro-orange), var(--retro-pink));
    color: white;
}

.button.is-success {
    background: linear-gradient(135deg, var(--retro-teal), #00857B);
    color: white;
}

.button.is-large {
    font-size: 1.2rem;
    padding: 16px 40px;
}

/* Download Buttons Container */
.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

/* Cards */
.card {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: white;
    overflow: hidden;
}

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

.card-content {
    text-align: left;
    padding: 1.5rem;
}

/* Footer */
.footer {
    background: var(--retro-dark);
    color: white;
    padding: 60px 20px 30px;
}

.footer a {
    color: var(--retro-yellow);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--retro-orange);
}

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

.footer-column h3 {
    color: var(--retro-orange);
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-form .field {
    margin-bottom: 1.5rem;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--retro-orange);
}

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

.contact-form .file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.contact-form .file-input-label {
    display: inline-block;
    padding: 12px;
    background: var(--retro-light);
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-form .file-input-label:hover {
    background: var(--retro-cream);
    border-color: var(--retro-orange);
}

.contact-form input[type="file"] {
    position: absolute;
    left: -9999px;
}

/* Privacy/Terms Content */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.content-page h1 {
    color: var(--retro-orange);
    margin-bottom: 2rem;
    text-align: center;
}

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

.content-page p,
.content-page ul,
.content-page ol {
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

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

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

/* Flutter Privacy Accept Button */
.privacy-accept-button {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: linear-gradient(135deg, var(--retro-orange), var(--retro-pink));
    color: white;
    border: none;
    padding: 18px 60px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: bounce 2s infinite;
}

.privacy-accept-button:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.6);
}

.privacy-accept-button:active {
    transform: translateX(-50%) scale(0.98);
}

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

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: var(--retro-orange);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--retro-pink);
    transform: rotate(90deg);
}

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .screenshot-section {
        max-height: 350px;
        padding: 40px 20px;
    }

    .screenshot-carousel {
        height: 300px;
    }

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

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

    .feature-block {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 50px;
    }

    .feature-icon {
        font-size: 3.5rem;
    }

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

    .button.is-large {
        width: 100%;
    }

    .privacy-accept-button {
        bottom: 20px;
        padding: 16px 40px;
        font-size: 1rem;
    }

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

@media screen and (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .hero {
        padding: 50px 15px;
    }

    .screenshot-carousel {
        height: 280px;
    }

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