/* --- CSS VARIABLES & THEME --- */
:root {
    /* Bright Color Palette */
    --primary-color: #00A896; /* Vibrant Teal */
    --secondary-color: #F0A868; /* Warm Peach */
    --accent-color: #FF5D73; /* Bright Coral Pink */
    --primary-dark-color: #007A72;

    /* Neutral & Text Colors */
    --text-color: #333333; /* Dark Grey for readability */
    --text-light: #FFFFFF;
    --background-color: #FFFFFF;
    --background-light: #F8F9FA;
    --border-color: #E0E0E0;

    /* Typography */
    --font-header: 'Inter', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --border-radius-smooth: 15px;
    --border-radius-round: 50px;
    --shadow-volume: 
        0px 2.8px 2.2px rgba(0, 0, 0, 0.02),
        0px 6.7px 5.3px rgba(0, 0, 0, 0.028),
        0px 12.5px 10px rgba(0, 0, 0, 0.035),
        0px 22.3px 17.9px rgba(0, 0, 0, 0.042),
        0px 41.8px 33.4px rgba(0, 0, 0, 0.05),
        0px 100px 80px rgba(0, 0, 0, 0.07);
    --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.06);
}

/* --- GLOBAL & RESET STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

.main-container {
    width: 100%;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #222222;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1rem; }
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-dark-color);
}

/* --- LAYOUT & CONTAINER --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.section-light {
    background-color: var(--background-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #555;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: var(--header-height);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    height: var(--header-height);
}

.nav-logo {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

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

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


/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-light); /* IMPORTANT */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-light); /* IMPORTANT */
    margin-bottom: 2.5rem;
    opacity: 0.9;
}


/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius-round);
    border: none;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.btn-3d {
    box-shadow: 0 4px var(--primary-dark-color);
}

.btn-3d:hover {
    box-shadow: 0 6px var(--primary-dark-color);
}

.btn-3d:active {
    transform: translateY(2px);
    box-shadow: 0 2px var(--primary-dark-color);
}

/* --- CARDS --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--background-color);
    border-radius: var(--border-radius-smooth);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

.card-volumetric {
    box-shadow: var(--shadow-volume);
}

.card-volumetric:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-content h3 {
    margin-bottom: 0.75rem;
}


/* --- METHODOLOGY SECTION (TOGGLE SWITCH) --- */
.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.toggle-label {
    font-family: var(--font-header);
    font-weight: 500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.methodology-content-wrapper {
    position: relative;
}

.method-content {
    display: none;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

.method-content.active {
    display: grid;
    animation: fadeIn 0.5s ease-in-out;
}

.card-flat {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius-smooth);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-inset);
}


/* --- INNOVATION SECTION (GALLERY) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--shadow-volume);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--text-light);
    padding: 2rem 1.5rem 1.5rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}


/* --- EXTERNAL RESOURCES SECTION --- */
.resource-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}
.resource-list li {
    margin-bottom: 1rem;
}
.resource-list a {
    display: block;
    background: var(--background-light);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-smooth);
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.resource-list a:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: translateX(5px);
}


/* --- CONTACT FORM --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--background-color);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.2);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: var(--background-color);
    padding: 0 0.25rem;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.85rem;
    color: var(--primary-color);
}

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

.form-submit-btn {
    width: 100%;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 4rem 0 2rem;
}

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

.footer-column h4 {
    font-family: var(--font-header);
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-column p, .footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: #ccc;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2, .section-title { font-size: 2rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section-padding { padding: 4rem 0; }
    .method-content { grid-template-columns: 1fr; }
}


/* --- PAGE SPECIFIC STYLES --- */
/* Success page */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.success-card {
    background: var(--background-color);
    padding: 3rem;
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--shadow-volume);
    max-width: 500px;
}
.success-card h1 {
    color: var(--primary-color);
}

/* Privacy & Terms pages */
.legal-page-content {
    padding-top: calc(var(--header-height) + 4rem); /* Header height + extra space */
    padding-bottom: 4rem;
}

.legal-page-content h1 {
    margin-bottom: 2rem;
}

.legal-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}


/* --- UTILITY & ANIMATIONS --- */
.scroll-reveal {
    visibility: hidden; /* Hide until revealed by ScrollReveal.js */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}