/* Global Settings */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');
@import url('chatbot.css');

:root {
    --primary: #2D6A4F;
    /* Deep calming green */
    --primary-light: #52B788;
    --accent: #D9ED92;
    /* Fresh light green/yellow */
    --earth: #B5838D;
    /* Warm accent */
    --bg-dark: #1B4332;
    --text-dark: #1F2937;
    --text-light: #F3F4F6;
    --white: #ffffff;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #F9FAFB;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
}

.btn-primary:hover {
    background: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.6);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Header */
/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    /* Slight transparency for modern feel */
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    /* Tighter vertical spacing */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    /* Softer, deeper shadow for lift */
    transition: padding 0.3s ease;
}

nav {
    display: flex;
    flex-direction: column;
    /* Stack logo and nav items */
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
    width: 100%;
    text-align: center;
    padding-bottom: 0.5rem;
}

.nav-bottom-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    /* Reduced spacing */
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: #4B5563;
    font-size: 0.8rem;
    /* Smaller font size */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.5rem 1.2rem !important;
    /* Smaller button padding */
    font-size: 0.8rem !important;
    /* Smaller button font */
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25) !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content horizontally */
    background: url('hero.png') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    /* Darker uniform overlay for better text contrast */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
    text-align: center;
    /* Center text */
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    /* Slightly adjusted for better flow */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.35rem;
    /* Larger than standard */
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    background-color: #E07A5F;
    /* Muted Coral - warm and calming */
    color: white;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    /* Pill shape for safety signal */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(224, 122, 95, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.btn-hero:hover {
    background-color: #D66A4F;
    /* Slightly darker coral on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(214, 106, 79, 0.5);
    color: white;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: #F0FDF4;
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s;
    border: 1px solid #DCFCE7;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

/* Intro/About Section */
.intro {
    padding: 6rem 0;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.intro-text {
    flex: 1;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    box-shadow: 20px 20px 0 var(--accent);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Mobile Menu Toggle Styling */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Mobile */
/* Mobile & Tablet Optimization */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 8rem 0 4rem;
        /* More top padding for fixed header */
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .intro {
        padding: 4rem 0;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .intro-text ul {
        text-align: left;
        display: inline-block;
        padding-left: 0;
    }

    .features-grid {
        gap: 2rem;
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .footer-content {
        gap: 2.5rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 2001;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background-color: var(--white);
        align-items: center;
        justify-content: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 2000;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 1rem 0;
        font-size: 1.4rem;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    /* Style language button specifically in mobile */
    .nav-links .lang-btn {
        margin-top: 2rem;
        display: inline-block;
        width: auto;
        padding: 0.8rem 3rem;
        border: 2px solid var(--primary);
        color: var(--primary) !important;
    }

    nav .btn-primary {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 0.8rem;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .cta-group .btn {
        margin-left: 0 !important;
        /* Reset specific margins */
    }
}

/* Language Switcher Styling */
.lang-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--primary) !important;
}

.lang-btn:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* Fun Facts Section */
.facts {
    padding: 5rem 0;
    background: #FFFBF0;
    /* Warm white background */
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.fact-card {
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.fact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.fact-card h3 {
    margin-bottom: 1rem;
    color: var(--bg-dark);
    font-size: 1.4rem;
}

.fact-card p {
    color: #4B5563;
    font-size: 1.05rem;
}

/* Pastel Colors */
.bg-beige {
    background: #FAF3E0;
    border-bottom: 4px solid #F0D9B5;
}

.bg-green {
    background: #E8F6EA;
    border-bottom: 4px solid #C3E6CB;
}

.bg-blue {
    background: #EBF5FB;
    border-bottom: 4px solid #AED6F1;
}

.fact-card {
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    cursor: pointer;
    position: relative;
}

.click-hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal Styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Page Specific Styles */
.about-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.about-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
}

@media (max-width: 968px) {
    .about-grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-container {
        order: -1;
        /* Image appears above text on mobile */
    }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #6B7280;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary);
    background: #F3F4F6;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-facts-list {
    list-style: none;
}

.modal-facts-list li {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.modal-facts-list li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.fact-title {
    font-weight: 700;
    color: #1F2937;
    display: block;
    margin-bottom: 0.2rem;
}