/* Chicken Run - Custom Styles */
/* Color Palette: Energetic - Orange, Electric Blue, Warm Yellow */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #0099FF;
    --accent-color: #FFD23F;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --bg-light: #F8F9FA;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), #FF8C61);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-light) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-item {
    color: var(--text-light) !important;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
}

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

.navbar-burger {
    color: var(--text-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0099FF 0%, #00D4FF 100%);
    padding: 4rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 210, 63, 0.2), transparent);
    transform: rotate(-15deg);
    pointer-events: none;
}

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

.hero h1 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: bounceIn 1s ease-out;
}

.hero p {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
}

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

.device-frame {
    background: #1a1a1a;
    border-radius: 35px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

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

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

/* Buttons */
.button {
    border-radius: 10px;
    font-weight: 700;
    padding: 0.75rem 2rem;
    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;
    box-shadow: var(--shadow);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.button.is-primary {
    background: linear-gradient(135deg, var(--primary-color), #FF8C61);
    color: var(--text-light);
}

.button.is-info {
    background: linear-gradient(135deg, var(--secondary-color), #00B8FF);
    color: var(--text-light);
}

.button.is-warning {
    background: linear-gradient(135deg, var(--accent-color), #FFE066);
    color: var(--text-dark);
}

.button.is-large {
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Screenshots Section */
.screenshots-section {
    padding: 3rem 1.5rem;
    background: var(--bg-light);
    max-height: 500px;
}

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

.carousel-container {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-slide {
    display: none;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

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

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

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

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

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

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

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

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

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

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

.lightbox.active {
    display: flex;
}

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

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

.lightbox-close:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* Features Section */
.features-section {
    padding: 4rem 1.5rem;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-block:hover {
    background: var(--bg-light);
    transform: translateX(10px);
}

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

.feature-block:nth-child(even):hover {
    transform: translateX(-10px);
}

.feature-icon {
    font-size: 4rem;
    min-width: 100px;
    text-align: center;
}

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

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

/* Cards */
.card {
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    margin: 1.5rem auto;
    max-width: 400px;
}

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

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: var(--text-light);
    padding: 3rem 1.5rem 2rem;
}

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

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

.footer a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    display: inline-block;
}

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

.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 Accept Button */
.privacy-accept-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: linear-gradient(135deg, var(--primary-color), #FF8C61);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.5);
    animation: pulseButton 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

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

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

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

.file-input-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

/* Animations */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(255, 107, 53, 0.5);
    }
    50% {
        box-shadow: 0 10px 60px rgba(255, 107, 53, 0.8);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

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

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

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

    .feature-block,
    .feature-block:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

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

    .feature-block:hover,
    .feature-block:nth-child(even):hover {
        transform: translateY(-5px);
    }

    .screenshot-carousel {
        height: 300px;
    }

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

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

    .button.is-large {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }

    .privacy-accept-button {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
}

@media screen and (max-width: 480px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

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

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

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

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-4 { padding: 2rem 0; }
.py-5 { padding: 3rem 0; }
