/* app/static/css/landing_page.css */

/* --- CSS Variables --- */
:root {
    --font-body: 'Inter', system-ui, sans-serif;
    --color-orange-primary: #F97316;
    --color-orange-hover: #EA580C;
    --color-orange-light: #FFF7ED;
    --color-text-light: #FFFFFF;
    --color-text-dark: #111827;
    --radius-md: 8px;
    --radius-pill: 999px;
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Body Styling --- */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-body);
    color: var(--color-text-light);
}

/* (Replace the old .page-wrapper rule at the top of landing_page.css) */

.hero-video-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #111; /* Fallback for if video fails completely */
}

#bgvideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; /* Ensures the video covers the area without distortion */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 25, 0.5); /* A dark semi-transparent overlay */
    z-index: 2;
}

/* Make sure the content is on top of the video and overlay */
.navbar, .hero-section {
    position: relative;
    z-index: 3;
}

/* --- Navbar Styling --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity var(--transition-fast);
}

.nav-link:hover {
    opacity: 0.8;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem; /* This size should still work well for "AI JobButler" */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border: none;
    background-color: var(--color-orange-primary);
    color: var(--color-text-light);
    text-decoration: none;
}

.button-primary:hover {
    background-color: var(--color-orange-hover);
}

.nav-right .login-link {
    font-weight: 600;
}

/* --- Hero Section Styling --- */
.hero-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

.hero-content {
    max-width: 650px;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 32px auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-button {
    font-size: 1rem;
    padding: 14px 32px;
}

/* --- Simple Fade-in Animation --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* (Add this to the end of app/static/css/landing_page.css) */

/* --- Content Section Styling (for Features & FAQs) --- */
.content-section {
    padding: 80px 24px;
    background-color: #F9FAFB; /* A very light grey, almost white */
    color: var(--color-text-dark);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6B7280; /* A secondary text color */
    max-width: 600px;
    margin: 0 auto 48px auto;
}

/* --- Features Grid Styling --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    text-align: left;
}

.feature-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB; /* Light border */
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: #6B7280;
    line-height: 1.6;
}

/* --- FAQs Section Styling --- */
.faq-section {
    background-color: #FFFFFF; /* White background for contrast */
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid #E5E7EB;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-list dt { /* The question */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
}

.faq-list dd { /* The answer */
    margin-left: 0;
    color: #6B7280;
    line-height: 1.7;
}

/* --- Footer Styling --- */
.footer {
    padding: 24px;
    text-align: center;
    background-color: #F9FAFB;
    color: #9CA3AF; /* A light, tertiary text color */
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    #bgvideo {
        display: none; /* Hide the video element on small screens */
    }
    .hero-video-wrapper {
        /* Use the poster image as the background instead */
        background-image: url('/static/img/hero-poster.png');
        background-size: cover;
        background-position: center;
    }
}


/* --- Scroll Animation --- */
.content-section {
    /* Initially hide the sections */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.content-section.is-visible {
    /* The state when the section should be visible */
    opacity: 1;
    transform: translateY(0);
}

/* (Add to the end of landing_page.css) */

/* --- "Our Method" Section Styling --- */
.method-section {
    background-color: #FFFFFF; /* White background */
}

.method-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    text-align: center;
    margin-top: 60px;
}

.method-step .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-orange-light, #FFF7ED);
    color: var(--color-orange-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 2px solid var(--color-orange-primary);
}

.method-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.method-step p {
    color: #6B7280;
    line-height: 1.6;
}

/* (Add to the end of landing_page.css) */

/* --- Upgraded Feature Icon Styling --- */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--color-orange-light, #FFF7ED);
    color: var(--color-orange-primary);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

/* --- Feature Demo Placeholder Styling --- */
.feature-demo {
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.feature-demo img {
    width: 100%;
    display: block;
}

/* (Add this to the end of app/static/css/landing_page.css) */

/* --- Testimonials Section Styling --- */
.testimonials-section {
    background-color: #FFFFFF; /* A clean white background to contrast with the previous section */
}

.testimonials-grid {
    display: grid;
    /* Creates 1 or 2 columns based on screen width */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px; /* A generous gap for a premium feel */
    margin-top: 48px;
}

/* --- Individual Card Styling --- */
.testimonial-card {
    background-color: #F9FAFB; /* Light grey to stand out from the white background */
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: left;
    border: 1px solid #E5E7EB; /* Subtle border */
    position: relative; /* Crucial for the decorative quote mark */
    display: flex;
    flex-direction: column; /* Lays out the quote and citation vertically */
}

/* --- The Decorative Quote Mark (for a high-class touch) --- */
.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 4rem; /* Large and impactful */
    font-weight: 700;
    color: #E5E7EB; /* Very subtle, light grey color */
    line-height: 1;
    z-index: 1; /* Places it behind the text */
}

/* --- Quote and Citation Styling --- */
.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-text-dark);
    margin: 0; /* Resets browser default margin */
    position: relative; /* Ensures it sits on top of the quote mark */
    z-index: 2;
    flex-grow: 1; /* Pushes the citation to the bottom */
}

.testimonial-card cite {
    margin-top: 24px; /* Space between quote and citation */
    padding-top: 16px;
    border-top: 1px solid #E5E7EB; /* A fine separator line */
    font-style: normal; /* Resets browser default italic */
    position: relative;
    z-index: 2;
}

.cite-name {
    display: block;
    font-weight: 600;
    color: var(--color-text-dark);
}

.cite-title {
    display: block;
    font-size: 0.9rem;
    color: #6B7280; /* Secondary text color */
}