/* ============================================= */
/*                   VARIABLES                   */
/* ============================================= */
:root {
    /* Colors - Pastel Palette */
    --color-primary: #88a0d4; /* Pastel Blue */
    --color-primary-dark: #6a82b8; /* Darker Blue for hover */
    --color-secondary: #f0c3a2; /* Pastel Peach */
    --color-background: #fdfcfa; /* Off-white */
    --color-background-light: #f5f7fa; /* Very light grey-blue */
    --color-text: #4a4a4a; /* Dark Grey for body */
    --color-headings: #333333; /* Near Black for titles */
    --color-white: #ffffff;
    --color-border: #e0e0e0;

    /* Typography */
    --font-family-headings: 'Roboto', sans-serif;
    --font-family-body: 'Lato', sans-serif;

    /* Layout */
    --container-width: 1140px;
    --container-padding: 1.5rem;
    --section-padding: 5rem 0;
    --header-height: 80px;

    /* Effects */
    --border-radius-soft: 15px; /* Biomorphic element */
    --border-radius-round: 50%;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --transition-speed: 0.3s ease;
}

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

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

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

h1, h2, h3, h4 {
    font-family: var(--font-family-headings);
    color: var(--color-headings);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================= */
/*               LAYOUT & HELPERS                */
/* ============================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.content-section {
    padding: var(--section-padding);
}

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

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-headings);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--color-text);
}

/* For animate.css on scroll */
.animate__animated {
    opacity: 0;
}

.in-view {
    opacity: 1;
}

/* ============================================= */
/*             GLOBAL COMPONENTS                 */
/* ============================================= */

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-family-headings);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    border-radius: 50px; /* Biomorphic feel */
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(136, 160, 212, 0.5);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(136, 160, 212, 0.7);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}


/* --- Cards --- */
.card {
    background: var(--color-white);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

.card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    transition: transform var(--transition-speed);
}

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

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

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


/* ============================================= */
/*                    HEADER                     */
/* ============================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background var(--transition-speed);
}

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

.nav-logo {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-headings);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

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

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

.nav-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 50px;
}
.nav-cta:hover { color: var(--color-white); }
.nav-cta::after { display: none; }

.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(--color-headings);
}

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

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-white);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* ============================================= */
/*                   SECTIONS                    */
/* ============================================= */

/* --- History --- */
.history-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.history-image img {
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow);
}

/* --- Portfolio / Behind the Scenes --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* --- Clientele / Partners / Media --- */
.carousel-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.client-logo img, .partner-logo img, .media-logo img {
    height: 60px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}

.client-logo:hover img, .partner-logo:hover img, .media-logo:hover img {
    opacity: 1;
}

/* --- Testimonials --- */
.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    text-align: left;
}

.testimonial-card .card-content {
    align-items: flex-start;
}

.testimonial-card p:first-of-type {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
}

.testimonial-card p:first-of-type::before {
    content: '“';
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-round);
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    color: var(--color-headings);
}

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

.event-card .card-content {
    text-align: left;
    align-items: flex-start;
}

.event-date {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.event-card .btn {
    margin-top: auto;
}

/* --- Events Calendar --- */
.calendar-list {
    max-width: 800px;
    margin: 0 auto;
}

.calendar-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.calendar-item .date {
    flex-shrink: 0;
    text-align: center;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--border-radius-soft);
    padding: 10px;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendar-item .date span {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.calendar-item .details h4 {
    margin-bottom: 0.5rem;
}

/* --- External Resources --- */
.resources-list {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.resource-item {
    padding: 1.5rem;
    border-radius: var(--border-radius-soft);
    background-color: var(--color-white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed);
}

.resource-item:hover {
    transform: scale(1.02);
}

.resource-title a {
    color: var(--color-headings);
    font-size: 1.2rem;
}
.resource-title a:hover {
    color: var(--color-primary);
}

/* --- Contact Form --- */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-family-body);
    font-size: 1rem;
    background-color: var(--color-background-light);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #999;
    pointer-events: none;
    transition: all var(--transition-speed);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: var(--color-white);
    padding: 0 5px;
    color: var(--color-primary);
}

form button {
    width: 100%;
}


/* ============================================= */
/*                    FOOTER                     */
/* ============================================= */
.main-footer {
    background-color: var(--color-headings);
    color: #a9a9a9;
    padding: 4rem 0 2rem 0;
}

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

.footer-column h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

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

.footer-column ul a {
    color: #a9a9a9;
}

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

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

/* ============================================= */
/*             OTHER PAGES STYLING               */
/* ============================================= */

/* --- Success Page --- */
.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--container-padding);
}
.success-page .success-content {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow);
}
.success-page h1 { margin-bottom: 1rem; }
.success-page p { margin-bottom: 2rem; }

/* --- Legal Pages (Privacy, Terms) --- */
.legal-page-content, .about-page-content, .contact-page-content {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
}
.legal-page-content h1, .about-page-content h1, .contact-page-content h1 {
    margin-bottom: 2rem;
}
.legal-page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ============================================= */
/*                 RESPONSIVE                    */
/* ============================================= */
@media (max-width: 992px) {
    .history-container {
        grid-template-columns: 1fr;
    }

    .history-image {
        text-align: center;
    }
}


@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .content-section { padding: 3rem 0; }

    /* --- Mobile Menu --- */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 0;
    }

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

    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1.5rem 0;
        width: 100%;
    }
    .nav-link:hover { color: var(--color-primary); }
    .nav-link::after { display: none; }

    .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);
    }
}