:root {
    --primary-color: #0A4C4A; /* Deep Teal */
    --secondary-color: #1A7B76; /* Softer Teal */
    --accent-color: #F5B94C; /* Soft Gold/Ochre */
    --light-bg: #F8F8F8; /* Off-white background */
    --dark-text: #333333; /* Dark gray for body text */
    --light-text: #E0E0E0; /* Light gray for dark backgrounds */
    --white: #FFFFFF;
    --border-color: #E0E0E0;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --header-height: 80px;
    --container-width: 1200px;

    --transition-speed: 0.5s;
    --easing: ease-in-out;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color var(--transition-speed) var(--easing);
}

a:hover {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.8rem; font-weight: 600; }
h3 { font-size: 2.2rem; font-weight: 600; }
h4 { font-size: 1.8rem; font-weight: 500; }
p { margin-bottom: 1rem; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.max-width-text {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
}

/* Header */
.header {
    background: var(--white);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 10px 20px;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 20px; /* Aligns with padding */
    right: 20px; /* Aligns with padding */
    bottom: 5px;
    height: 3px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s var(--easing);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s var(--easing);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 1;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    margin-top: -var(--header-height); /* Offset for fixed header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5) grayscale(0.2); /* Darken and slightly desaturate */
    transform: scale(1.03); /* Subtle initial zoom for animation */
    transition: transform 4s var(--easing);
    will-change: transform;
}

.hero-section.fade-in .hero-bg {
    transform: scale(1); /* Zoom out effect */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 1s var(--easing) 0.5s, transform 1s var(--easing) 0.5s;
}

.hero-glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

.hero-section.fade-in .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--light-text);
}

.explore-text-link {
    display: inline-block;
    color: var(--accent-color);
    font-family: var(--font-heading);
    background-color: #0A4C4A;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 25px;
    position: relative;
    transition: all 0.3s var(--easing);
    letter-spacing: 0.5px;
}

.explore-text-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color) 0%, darken(var(--accent-color), 10%) 100%);
    border-radius: 50px;
    z-index: -1;
    transform: scale(0);
    opacity: 1;
    transition: transform 0.3s var(--easing), opacity 0.3s var(--easing);
}

.explore-text-link:hover::before {
    transform: scale(1);
    opacity: 1;
}

.explore-text-link:hover {
    color: var(--accent-color); /* Change text color on hover */
    text-shadow: none;
}

.explore-text-link.bordered {
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    color: var(--accent-color);
    padding: 12px 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.explore-text-link.bordered::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen to the left */
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.4s var(--easing);
    z-index: -1;
}

.explore-text-link.bordered:hover::before {
    left: 0; /* Slide in from left */
}

.explore-text-link.bordered:hover {
    color: var(--primary-color); /* Change text color on hover */
    border-color: var(--primary-color);
}

/* General Section Styling */
.section-title {
    font-size: 3rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
}

.section-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

/* About Section */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding: 20px; /* Add space for shadow */
    transition: transform 0.5s var(--easing);
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.4s var(--easing);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.02);
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #444;
}

/* Pillars Section */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pillar-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--easing);
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.pillar-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1;
}

.pillar-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.pillar-description {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
}

/* Insights Section */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    align-items: start;
}

.insight-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.insight-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.insight-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.insight-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.3;
}

.insight-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    flex: 1;
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    text-align: center;
    position: relative;
    border-left: 5px solid var(--secondary-color);
    transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.testimonial-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color), 0.3);
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.7;
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

/* Explore CTA Section */
.explore-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.explore-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(var(--white), 0.05);
    transform: rotate(45deg);
    pointer-events: none;
}

.cta-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 1.4rem;
    color: var(--light-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.explore-cta-section .explore-text-link {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.explore-cta-section .explore-text-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.explore-cta-section .explore-text-link.bordered::before {
    background: var(--accent-color); /* Correct background for hover fill */
}


/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 70px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--light-text);
    transition: color 0.3s var(--easing);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s var(--easing), transform 0.3s var(--easing);
    text-decoration: none;
    color: var(--white);
    position: relative;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-links a i {
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a .fallback-icon {
    width: 20px;
    height: 20px;
}

.social-links a:hover .fallback-icon {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(var(--white), 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(var(--light-text), 0.7);
}


/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 1;
    transform: translateX(-50px);
    transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 1;
    transform: translateX(50px);
    transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-bottom {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}

.reveal-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for staggered animations */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }


/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .section-description { font-size: 1.1rem; }

    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image-wrapper {
        order: -1; /* Image appears first on smaller screens */
    }
    .text-center-md { text-align: center; }

    .insight-card .insight-image {
        height: 180px;
    }

    .testimonial-card {
        padding: 30px;
    }
    .testimonial-quote {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    .logo a {
        font-size: 1.6rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Off-screen */
        width: 70%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s var(--easing);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(var(--white), 0.1);
    }
    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-link {
        color: var(--white);
        font-size: 1.3rem;
        padding: 15px 0;
        width: 100%;
    }
    .nav-link::after {
        background-color: var(--accent-color);
        bottom: 0;
        left: 30%; /* Adjust for center alignment */
        right: 30%; /* Adjust for center alignment */
    }
    .nav-link:hover {
        color: var(--accent-color);
    }

    .hamburger {
        display: flex;
    }

    .hero-section {
        height: 80vh;
        margin-top: -70px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-padding {
        padding: 70px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-description {
        font-size: 1rem;
    }

    .pillar-card, .insight-card, .testimonial-card {
        padding: 30px;
    }
    .pillar-icon {
        font-size: 3rem;
    }
    .pillar-title {
        font-size: 1.6rem;
    }
    .insight-title {
        font-size: 1.4rem;
    }
    .testimonial-quote {
        font-size: 1.05rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }
    .cta-subtitle {
        font-size: 1.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        padding: 0;
    }
    .social-links {
        justify-content: center;
    }
    
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-glassmorphism {
        padding: 30px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }

    .explore-text-link {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .pillar-card, .insight-card, .testimonial-card {
        padding: 25px;
    }
    .insight-card .insight-image {
        height: 160px;
    }
    .insight-title {
        font-size: 1.25rem;
    }
    .insight-text {
        font-size: 0.9rem;
    }

    .cta-title {
        font-size: 2rem;
    }
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-glassmorphism {
        padding: 20px;
        border-radius: 10px;
    }
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
