:root {
    /* Colors */
    --primary-color: #3f51b5; /* A deep, elegant blue - changed to a more natural, deep teal/emerald */
    --primary-color: #1a4d4a; /* Deep Teal */
    --secondary-color: #e0f2f1; /* Light mint/aqua for backgrounds */
    --accent-color: #a37b3e; /* Golden accent */
    --text-color: #333;
    --light-text-color: #555;
    --white-color: #ffffff;
    --dark-bg-color: #2c3e50; /* For footer or darker sections */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 96px;

    /* Borders & Shadows */
    --border-radius-sm: 8px;
    --box-shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.15rem;
    color: var(--light-text-color);
    line-height: 1.8;
}

/* Header & Navigation */
.main-header {
    background: var(--white-color);
    box-shadow: var(--box-shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    background: linear-gradient(45deg, var(--primary-color), #216a66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.nav-links li a {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--light-text-color);
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] .icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
    opacity: 1;
}

.nav-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    background: url('images/image_10.jpg') no-repeat center center/cover;
    overflow: hidden; /* Ensure parallax effect doesn't cause overflow */
    padding-top: 80px; /* Offset for fixed header */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 77, 74, 0.7), rgba(26, 77, 74, 0.8)); /* Darker overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--spacing-md);
    animation: fadeInScale 1.5s ease-out forwards;
    opacity: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, #e0f2f1, #ffffff); /* Lighter gradient for contrast */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInScale {
    from {
        opacity: 1;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


/* General Section Styling */
section {
    padding: var(--spacing-xl) 0;
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 3.2rem;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Card Grids */
.about-grid,
.experiences-grid,
.team-grid,
.testimonials-grid,
.journeys-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.about-card,
.experience-card,
.team-member,
.testimonial-card,
.journey-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow-light);
    padding: var(--spacing-md);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex; /* For consistent height in flex containers */
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-hover-effect:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

/* About Section */
.about-section {
    background-color: var(--white-color);
}

.about-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.about-card p {
    color: var(--light-text-color);
    font-size: 1rem;
    line-height: 1.7;
}

.about-card ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin-top: var(--spacing-sm);
}

.about-card ul li {
    position: relative;
    padding-left: var(--spacing-sm);
    margin-bottom: 5px;
    color: var(--light-text-color);
}

.about-card ul li::before {
    content: '✓'; /* Checkmark for list items */
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* Experiences Section */
.experiences-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--white-color));
}

.experience-card {
    overflow: hidden;
    padding: 0; /* No internal padding for image */
}

.experience-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: var(--border-radius-sm);
    border-top-right-radius: var(--border-radius-sm);
    transition: transform 0.5s ease;
}

.experience-card:hover img {
    transform: scale(1.05);
}

.experience-card h3 {
    font-size: 1.7rem;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    padding: 0 var(--spacing-sm);
}

.experience-card p {
    font-size: 1rem;
    color: var(--light-text-color);
    padding: 0 var(--spacing-sm) var(--spacing-sm);
    flex-grow: 1; /* Pushes content to bottom */
}


/* Team Section */
.team-section {
    background-color: var(--white-color);
}

.team-member {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.team-member img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto var(--spacing-sm);
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 6px var(--secondary-color);
    transition: transform 0.4s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.team-member .title {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.team-member .bio {
    font-size: 0.95rem;
    color: var(--light-text-color);
    flex-grow: 1;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(45deg, var(--primary-color), #216a66); /* Darker, gradient background */
    color: var(--white-color);
}

.testimonials-section h2,
.testimonials-section .section-description {
    color: var(--white-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.testimonials-section h2::after {
    background-color: var(--accent-color);
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    text-align: center;
    box-shadow: var(--box-shadow-light);
    position: relative;
    padding-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card::before {
    content: "“"; /* Opening quote */
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;.2;
    z-index: 0;
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Journeys Section */
.journeys-section {
    background-color: var(--secondary-color);
}

.journey-card {
    text-align: left;
    padding: var(--spacing-md);
}

.journey-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.journey-card .duration {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.journey-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--spacing-sm);
}

.journey-card ul li {
    padding-left: 0;
    margin-bottom: 5px;
    color: var(--light-text-color);
    font-size: 0.95rem;
}

.journey-card .info-text {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-top: auto; /* Pushes to the bottom */
    display: block;
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg-color);
    color: var(--white-color);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white-color);
    letter-spacing: -1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-bottom: var(--spacing-sm);
}

.main-footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0; /* Remove default paragraph margin */
}

.footer-note {
    margin-top: var(--spacing-sm);
}

.footer-note p {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}


/* Scroll-reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }

    .hero-section {
        height: 80vh;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-grid,
    .experiences-grid,
    .team-grid,
    .testimonials-grid,
    .journeys-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 var(--spacing-sm);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white-color);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: var(--box-shadow-light);
        padding: var(--spacing-sm) 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin: 0;
    }

    .nav-links li a {
        display: block;
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 1.1rem;
    }
    .nav-links li a:hover {
        background-color: var(--secondary-color);
    }

    .nav-toggle {
        display: block;
    }

    .main-header {
        padding: var(--spacing-xs) 0;
    }

    .logo {
        font-size: 2rem;
    }

    .hero-section {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    section h2 {
        font-size: 2rem;
        padding-bottom: var(--spacing-xs);
    }
    section h2::after {
        width: 60px;
        height: 3px;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .about-grid,
    .experiences-grid,
    .team-grid,
    .testimonials-grid,
    .journeys-grid {
        grid-template-columns: 1fr; /* Stacks cards in a single column */
        gap: var(--spacing-md);
    }

    .team-member img {
        width: 150px;
        height: 150px;
    }

    .footer-logo {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .testimonial-card blockquote {
        font-size: 1rem;
    }
    .main-footer {
        padding: var(--spacing-md) 0;
    }
}

/* Utility to prevent body scroll when nav is open on mobile */
body.no-scroll {
    overflow: hidden;
}


/* Animation states when visible - FIXED: Only opacity: 1 */
.animate-fade-in-up.visible,
.animate-fade-in-left.visible,
.animate-fade-in-right.visible,
.animate-bounce-y.visible,
.section-scroll-animate.visible,
.text-animate-up.visible,
.reveal-item.visible,
.scroll-reveal.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up.visible.fade-in,
.section-scroll-animate.visible.fade-in {
    opacity: 1;
}

.animate-fade-in-up.visible.slide-up,
.section-scroll-animate.visible.slide-up {
    transform: translateY(0);
}
/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
