/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007AFF; /* A modern, trustworthy blue */

    --app-primary-color: #4CAF4F; 
    --app-gray-background-color: #e2e4e9;
    --app-contact-background-color: #f1f1f1;
    --app-dark-color: #1F231F; 
    --app-err-color: #FF9800; 

    --dark-color: #121212;
    --text-color: #333;
    --light-gray: #f4f7fa;
    --white-color: #ffffff;
    --border-radius: 12px;
    --font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px; /* Add gap to pull button from the edge */
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 24px;
}

.nav-logo img {
    height: 42px; /* Increased from 32px */
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.cta-button, .nav-cta {
    display: inline-block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 12px 30px;
    text-align: center;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background-color: #4CAF4F;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 8px rgba(76, 175, 79, 0.08);
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:active, .nav-cta:active {
    background-color: #45a049;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: var(--app-gray-background-color);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes items to the edges */
}

.hero-content {
    flex: 2; /* Increased from 1.5 to make it wider */
    padding-right: 20px; /* Add padding to replace the old gap */
}

h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
}

.google-play-badge {
    height: 60px;
    width: 200px;
    object-fit: contain;
    background: #fff;
    display: block;
    box-sizing: border-box;
    transition: transform 0.2s ease;
    padding: 0;
    border-radius: 12px;
}

.google-play-badge:hover {
    transform: scale(1.05);
}

.ios-notice {
    font-size: 14px;
    font-style: italic;
    opacity: 0.7;
    margin-top: 10px;
}

.hero-image {
    flex: 1 0 320px; /* Adjusted flex-basis to make it slightly smaller */
    display: flex;
    justify-content: flex-end; /* Aligns the carousel to the right */
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 550px;
}

/* --- Carousel --- */
.carousel-container {
    position: relative;
    max-width: 320px; /* Adjust to fit your mockup size */
    overflow: hidden;
    border-radius: 20px; /* Rounded corners for the mockup */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px 0; /* Adds 20px padding to top and bottom */
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 100%;
    flex-shrink: 0;
    object-fit: contain; /* Changed from 'cover' to 'contain' */
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px; /* Add space above the dots */
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc; /* Darker color for visibility */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--text-color); /* Darker active color */
}

/* --- Features Section --- */
.features-section {
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 18px;
    margin-bottom: 60px;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.feature-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #eef;
}

.feature-icon {
    margin-bottom: 20px;
}
.feature-icon img {
    height: 48px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-card h3.impact-score {
    color: var(--app-primary-color);
}

.feature-card h3.duration-score {
    color: var(--app-primary-color);
}

.feature-card h3.personalized-watchlist {
    color: var(--app-primary-color);
}

/* --- CTA Section --- */
.cta-section {
    padding: 80px 0;
    background-color: var(--app-primary-color);
    color: var(--white-color);
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Override for the iOS notice in the CTA section */
.cta-section p.ios-notice {
    font-size: 14px;
    margin-bottom: 0; /* Reset margin for this specific element */
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0;
    background-color: var(--app-contact-background-color);
}

.contact-container {
    max-width: 600px;
    text-align: center;
}

.contact-section .section-title {
    font-size: 28px;
}

.responsive-break {
    display: none;
}

.contact-form {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--app-primary-color);
}

.contact-form .cta-button {
    border: none; /* Remove default border */
    cursor: pointer;
}

.contact-form .cta-button:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group textarea {
    resize: vertical;
}

.error-message {
    color: var(--app-err-color);
    font-size: 14px;
    margin-top: 5px;
    min-height: 1em;
}

.form-status-message {
    margin-top: 15px;
    font-weight: 600;
}

.form-status-message.success {
    color: var(--app-primary-color);
}

.form-status-message.error {
    color: var(--app-err-color);
}


/* --- Footer --- */
.footer {
    padding: 40px 0;
    background: var(--light-gray);
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-image {
        margin-top: 40px;
    }
    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu, .nav-cta {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: var(--white-color);
        width: 200px;
        padding: 20px;
        border-radius: var(--border-radius);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        gap: 15px;
        align-items: flex-start;
    }
    .hamburger.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    h1 {
        font-size: 36px;
    }
    .footer-container {
        flex-direction: column;
        gap: 15px;
    }

    .responsive-break {
        display: block;
    }
}