/* Social Narratives App - Custom Styles */

:root {
    /* Brand Colors from Guidelines */
    --soft-sage: #b5c4b1;
    --warm-sand: #e6e0d4;
    --deep-ocean: #3a4d53;
    --clear-sky: #93b7be;
    --bright-marigold: #ffbe76;
    
    /* Applied to semantic variables */
    --primary-color: var(--bright-marigold);  /* CTAs only */
    --secondary-color: var(--soft-sage);
    --dark-color: var(--deep-ocean);
    --light-color: var(--warm-sand);
    --text-muted: #7a8a8a;
    --background-color: #fafaf8;  /* Soft off-white */
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Border Radius */
    --radius-small: 12px;
    --radius-medium: 16px;
    --radius-large: 20px;
}

/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--deep-ocean);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.btn-primary {
    background-color: var(--bright-marigold);
    border-color: var(--bright-marigold);
    color: var(--deep-ocean);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #f0a85a;
    border-color: #f0a85a;
    color: var(--deep-ocean);
}

.btn-xl {
    padding: 1.25rem 2.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: none;
    border-radius: var(--radius-medium);
    letter-spacing: 0.02em;
}

.text-primary {
    color: var(--soft-sage) !important;
}

.bg-primary {
    background-color: var(--soft-sage) !important;
}

/* Navigation */
#mainNav {
    background-color: #fff;
    transition: background-color 0.2s ease;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

#mainNav .navbar-brand {
    font-weight: 700;
    color: var(--deep-ocean);
    font-size: 1.5rem;
}

#mainNav .navbar-nav .nav-item .nav-link {
    color: var(--deep-ocean);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-small);
    transition: all 0.2s ease;
}

#mainNav .navbar-nav .nav-item .nav-link:hover {
    color: var(--deep-ocean);
    background-color: var(--warm-sand);
}

#mainNav.navbar-scrolled {
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.masthead {
    padding-top: 10rem;
    padding-bottom: calc(10rem - 4.5rem);
    background: linear-gradient(to bottom, rgba(147, 183, 190, 0.95) 0%, rgba(181, 196, 177, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.masthead h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Hero Filmstrip Background */
.hero-filmstrip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.filmstrip-row {
    display: flex;
    height: 25%;
    animation: slideLeft 30s linear infinite;
}

.filmstrip-row:nth-child(2) {
    animation: slideRight 35s linear infinite;
}

.filmstrip-row:nth-child(3) {
    animation: slideLeft 40s linear infinite;
}

.filmstrip-row:nth-child(4) {
    animation: slideRight 32s linear infinite;
}

.filmstrip-image {
    flex-shrink: 0;
    width: 250px;
    height: 100%;
    margin: 0 10px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-medium);
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Ensure content is above filmstrip */
.masthead .container {
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .masthead {
        height: 100vh;
        min-height: 40rem;
        padding-top: 4.5rem;
        padding-bottom: 0;
    }
    
    .masthead h1 {
        font-size: 3.5rem;
    }
    
    .filmstrip-image {
        width: 300px;
    }
}

/* Divider */
.divider {
    max-width: 3.25rem;
    border-width: 0.2rem;
    border-color: var(--soft-sage);
    margin: 1.5rem auto;
    border-radius: var(--radius-small);
}

.divider-light {
    border-color: #fff;
}

.divider-primary {
    border-color: var(--soft-sage);
}

/* Sections */
.page-section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--warm-sand) !important;
}

/* Problem Section Icons */
.bi {
    transition: transform 0.3s ease;
}

.col-lg-4:hover .bi {
    transform: scale(1.1);
}

/* Solution Section */
.features-box {
    padding: 2rem;
    background-color: var(--warm-sand);
    border-radius: var(--radius-large);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--clear-sky);
}

.features-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Features Section */
.feature-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--warm-sand);
    border-radius: var(--radius-medium);
    transition: all 0.3s ease;
    border: 1px solid var(--clear-sky);
}

.feature-item:hover {
    background-color: var(--soft-sage);
    transform: translateY(-2px);
}

.feature-item i {
    margin-right: 0.5rem;
}

/* CTA Section */
#signup {
    background-color: var(--deep-ocean);
}

#signup .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#early-access-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Footer */
footer {
    padding: 3rem 0;
}

/* Utility Classes */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Form Styles */
.form-control {
    border-radius: var(--radius-medium);
    border: 2px solid var(--clear-sky);
    font-family: var(--font-primary);
}

.form-control:focus {
    border-color: var(--soft-sage);
    box-shadow: 0 0 0 0.2rem rgba(181, 196, 177, 0.25);
}

.btn-outline-light {
    border-width: 2px;
    border-radius: var(--radius-medium);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Blockquotes */
.blockquote {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--radius-large);
    border-left: 4px solid var(--soft-sage);
    font-style: italic;
}

.blockquote-footer {
    color: var(--deep-ocean);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Cards and Containers */
.card {
    border-radius: var(--radius-large);
    border: none;
    box-shadow: 0 2px 8px rgba(58, 77, 83, 0.1);
}

.input-group .form-control {
    border-top-left-radius: var(--radius-medium);
    border-bottom-left-radius: var(--radius-medium);
}

.input-group .btn {
    border-top-right-radius: var(--radius-medium);
    border-bottom-right-radius: var(--radius-medium);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .masthead h1 {
        font-size: 2rem;
    }
    
    .page-section {
        padding: 3rem 0;
    }
    
    .features-box {
        margin-bottom: 2rem;
    }
}