/* ==========================================================================
   1. CSS Variables & Global Setup
   ========================================================================== */

:root {
    /* Color Palette (Pastel) */
    --primary-color: #A8DADC;  /* Light Cyan */
    --secondary-color: #F1FAEE;/* Honeydew */
    --accent-color: #457B9D;   /* Celestial Blue */
    --accent-color-dark: #3a6884;
    --highlight-color: #E63946;/* Red Panton */
    
    --text-color-dark: #1D3557;  /* Prussian Blue */
    --text-color-light: #fefefe;
    --background-color: #FCFBF7; /* A very light, warm off-white */
    --white: #FFFFFF;
    --border-color: #e0e0e0;
    
    /* Typography */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* UI Elements */
    --border-radius-small: 5px;
    --border-radius-medium: 10px;
    --border-radius-large: 20px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.12);
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
    background-color: var(--background-color);
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-body);
    color: var(--text-color-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. Typography & Base Elements
   ========================================================================== */

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-color-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.title {
    color: var(--text-color-dark);
}

.subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    color: #555;
}

.section-title {
    margin-bottom: 3rem !important;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

a {
    color: var(--accent-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--highlight-color);
}

.section {
    padding: 5rem 1.5rem;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
.header .navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.header .logo-accent {
    color: var(--accent-color);
}

.header .navbar-item {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-color-dark);
    transition: all var(--transition-speed) ease;
}

.header .navbar-item:hover,
.header .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--accent-color) !important;
}

.navbar-burger {
    color: var(--text-color-dark);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--white);
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        padding: 0.5rem 0;
    }
}

/* ==========================================================================
   4. Global Component Styles (Buttons, Cards)
   ========================================================================== */

/* Global Button Style */
.button.is-primary {
    background-color: var(--accent-color);
    border: none;
    border-radius: var(--border-radius-medium);
    font-weight: 600;
    padding: 1.2rem 2rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(69, 123, 157, 0.3);
}

.button.is-primary:hover {
    background-color: var(--accent-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(69, 123, 157, 0.4);
}

/* Global Card Style */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    height: 100%; /* Make cards in a row same height */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.card .card-image {
    position: relative;
}

.card .image-container {
    overflow: hidden;
}

.card .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 .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to take up space, pushing footer down */
}

/* ==========================================================================
   5. Page-Specific Sections
   ========================================================================== */

/* --- Hero Section --- */
#hero {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Simple parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(29, 53, 87, 0.6), rgba(29, 53, 87, 0.4));
    z-index: 1;
}

#hero .hero-body {
    position: relative;
    z-index: 2;
}

#hero .hero-content .title,
#hero .hero-content .subtitle {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#hero .hero-content .title {
    font-size: 3.5rem;
    font-weight: 800;
}

#hero .hero-content .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.biomorphic-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: var(--background-color);
    z-index: 2;
    clip-path: polygon(0 100%, 100% 100%, 100% 30%, 70% 50%, 30% 20%, 0 40%);
}

/* --- Mission, Vision, Innovation (Accordion) --- */
#mission {
    background-color: var(--secondary-color);
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion {
    background-color: var(--white);
    border-radius: var(--border-radius-medium);
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform var(--transition-speed) ease;
}

.accordion.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1.5rem;
}

.accordion-content p {
    margin-bottom: 1.5rem;
}

/* --- Behind the Scenes --- */
#behind-the-scenes .image-container img {
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow);
}
#behind-the-scenes .has-text-left {
    padding: 2rem;
}

/* --- External Resources --- */
#resources {
    background-color: var(--secondary-color);
}

.resource-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.resource-card h4 a {
    color: var(--text-color-dark);
    text-decoration: none;
}
.resource-card h4 a:hover {
    color: var(--accent-color);
}

.resource-card .description {
    margin: 1rem 0;
    font-size: 0.95rem;
}

.resource-card .source {
    font-size: 0.85rem;
    font-style: italic;
    color: #777;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow);
}

.contact-form-wrapper .label {
    font-weight: 600;
    color: var(--text-color-dark);
}

.contact-form-wrapper .input,
.contact-form-wrapper .textarea {
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--border-color);
    box-shadow: none;
    transition: all var(--transition-speed) ease;
    padding: 1.2rem;
}

.contact-form-wrapper .input:focus,
.contact-form-wrapper .textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.2);
}

/* --- Footer --- */
.footer {
    background-color: var(--text-color-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 1.5rem;
}

.footer .title {
    color: var(--white);
}

.footer .logo {
    color: var(--white);
}

.footer .logo-accent {
    color: var(--primary-color);
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed) ease;
}

.footer a:hover {
    color: var(--white);
}

.footer .content p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3rem;
}

/* ==========================================================================
   6. Special Pages (Success, Privacy, etc.)
   ========================================================================== */

/* --- Success Page --- */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-color);
}

.success-box {
    background-color: var(--white);
    padding: 4rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow);
    max-width: 600px;
}

.success-box .title {
    color: var(--accent-color);
}

/* --- Privacy & Terms Pages --- */
.legal-page-content {
    padding-top: 120px; /* Offset for fixed header */
    padding-bottom: 5rem;
}

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

.legal-page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   7. Animations & Responsive Design
   ========================================================================== */

/* --- Scroll Animations --- */
.animate-on-scroll {
    /*opacity: 0;*/
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem;
    }

    #hero .hero-content .title {
        font-size: 2.5rem;
    }

    #hero .hero-content .subtitle {
        font-size: 1.2rem;
    }
    
    .biomorphic-shape {
        height: 80px;
        clip-path: polygon(0 100%, 100% 100%, 100% 40%, 70% 60%, 30% 30%, 0 50%);
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .footer {
        text-align: center;
    }

    .footer .columns {
        flex-direction: column;
    }

    .footer .column:not(:last-child) {
        margin-bottom: 2rem;
    }
}