:root {
    --primary-color: #2e7d77; /* Deep Teal/Emerald */
    --secondary-color: #f7e0c4; /* Soft Gold/Warm Beige */
    --accent-color: #92b0bb; /* Muted Lavender/Soft Blue, slightly adjusted for contrast */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --bg-dark: #1a1a1a;
    --gradient-hero: linear-gradient(135deg, rgba(46, 125, 119, 0.8), rgba(64, 150, 142, 0.7));
    --shadow-light: rgba(0, 0, 0, 0.08) 0px 4px 12px;
    --shadow-medium: rgba(0, 0, 0, 0.15) 0px 8px 24px;
    --border-radius: 12px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition-speed: 0.3s ease-out;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 0.8em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
p { margin-bottom: 1em; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.content-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* For reveal animations */
}

/* Header & Navigation */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
}

.logo a {
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

.logo a:hover {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    transition: transform var(--transition-speed);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-speed);
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 1;
}
body.nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh; /* Adjust height for visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7);
    transform: scale(1.05);
    transition: transform 5s ease-out;
}

.hero-section:hover .hero-background-image {
    transform: scale(1);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 2;
    opacity: 1;
    transition: opacity 1s ease-out;
}


.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    opacity: 1;
    transform: translateY(30px);
    animation: fadeInSlideUp 1.2s ease-out forwards 0.5s;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-content.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* About Section */
.about-section {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    object-fit: cover;
    display: block;
}

.about-text h2 {
    color: var(--primary-color);
    font-weight: 600;
}

/* Approach Section */
.approach-section {
    background-color: #eef5f4; /* A lighter variant of primary */
    padding: 100px 0;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.approach-item {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.approach-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.approach-item .icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 15px rgba(46, 125, 119, 0.3);
}

.approach-item .icon {
    width: 36px;
    height: 36px;
    color: #fff;
}

.approach-item h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* Focus Areas Section */
.areas-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    /* Parallax effect - adjust background-attachment if you want it to scroll */
    background-image: url('images/image_1.jpg2');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* For true parallax effect */
}

.areas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 119, 0.9), rgba(28, 78, 73, 0.9));
    z-index: 1;
}

.areas-section > .container {
    position: relative;
    z-index: 2;
}

.areas-section .section-title {
    color: var(--text-light);
}

.areas-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.area-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.area-card {
    background: rgba(255, 255, 255, 0.1); /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.area-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
}

.area-card img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-medium);
}

.area-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.area-card p {
    color: rgba(255, 255, 255, 0.85);
}

/* Insights Section */
.insights-section {
    background-color: var(--bg-light);
    padding-bottom: 100px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.insight-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.insight-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-out;
}

.insight-card:hover img {
    transform: scale(1.05);
}

.insight-card .card-content {
    padding: 1.8rem;
}

.insight-card h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.insight-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.insight-card .read-more-link {
    font-weight: 600;
    color: var(--accent-color);
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.insight-card .read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) cubic-bezier(0.2, 0.8, 0.2, 1);
}

.insight-card:hover .read-more-link::after {
    width: 100%;
}


/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-brand h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-info h4,
.footer-social h4 {
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-info ul {
    list-style: none;
}

.footer-links li,
.footer-info li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-info a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed);
}

.footer-links a:hover,
.footer-info a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    width: 24px;
    height: 24px;
    transition: color var(--transition-speed), transform var(--transition-speed);
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a i {
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a .fallback-icon {
    width: 24px;
    height: 24px;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-icons a:hover .fallback-icon {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.fade-left {
    transform: translateX(-50px);
}
.reveal.fade-left.active {
    transform: translateX(0);
}

.reveal.fade-right {
    transform: translateX(50px);
}
.reveal.fade-right.active {
    transform: translateX(0);
}

.reveal.fade-up {
    transform: translateY(50px);
}
.reveal.fade-up.active {
    transform: translateY(0);
}

/* Delay for staggered animations */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }


/* Keyframe Animations */
@keyframes fadeInSlideUp {
    from {
        opacity: 1;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1; /* Image first on mobile */
    }

    .approach-grid,
    .area-cards-grid,
    .insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
    h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
    h3 { font-size: clamp(1.3rem, 4vw, 2rem); }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px; /* Limit width on larger tablets */
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        gap: 2rem;
    }

    body.nav-open .nav-links {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-dark);
        opacity: 1;
        transform: translateX(20px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    }

    body.nav-open .nav-links li:nth-child(1) a { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
    body.nav-open .nav-links li:nth-child(2) a { transition-delay: 0.15s; opacity: 1; transform: translateX(0); }
    body.nav-open .nav-links li:nth-child(3) a { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
    body.nav-open .nav-links li:nth-child(4) a { transition-delay: 0.25s; opacity: 1; transform: translateX(0); }
    body.nav-open .nav-links li:nth-child(5) a { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
    /* Ensure after pseudo-element for active state also works in mobile */
    .nav-links a::after {
        background-color: var(--primary-color);
        height: 2px;
        left: 50%;
        transform: translateX(-50%);
    }
    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 60%; /* Adjust width for mobile */
    }

    .hero-section {
        height: 80vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-image img {
        height: 300px; /* Fixed height for consistency on smaller screens */
    }

    .content-section {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul,
    .footer-info ul {
        padding-left: 0;
    }

    .footer-links li, .footer-info li {
        margin-bottom: 0.5rem;
    }
    .footer-social {
        margin-top: 2rem;
    }
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .navbar {
        padding: 0.8rem 15px;
    }
    .logo {
        font-size: 1.6rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .approach-item, .area-card, .insight-card {
        padding: 1.8rem;
    }
    .area-card img {
        height: 150px;
    }
    .insight-card img {
        height: 180px;
    }
}

/* Visible state helpers */
+ .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 {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
