/* Custom CSS Variables */
:root {
    --primary-color: #00796B; /* Deep Teal/Emerald Green */
    --secondary-color: #FFB300; /* Warm Gold */
    --accent-color: #E64A19; /* Terracotta/Coral */
    --text-dark: #2C3E50; /* Dark Blue-Gray */
    --text-light: #ECF0F1; /* Light Gray */
    --bg-light: #F9F9F9; /* Off-White Background */
    --bg-dark: #212121; /* Dark Gray Background */
    --border-color: #E0E0E0; /* Light Gray Border */
    --font-heading: 'Playfair Display', serif; /* Elegant Serif for Headings */
    --font-body: 'Roboto', sans-serif; /* Clean Sans-serif for Body */
    --max-width: 1200px;
    --spacing-unit: 20px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff; /* Ensures white base */
    overflow-x: hidden; /* Prevents horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.section {
    padding: calc(var(--spacing-unit) * 4) 0;
    position: relative;
    overflow: hidden; /* For fade-in animation */
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #555;
}

/* Buttons (styled as links for static site) */
.button {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    cursor: pointer; /* Visually indicate interactiveness */
}

.primary-button {
    background: linear-gradient(45deg, var(--primary-color), #00A896);
    color: var(--text-light);
    border: none;
    box-shadow: 0 8px 20px rgba(0, 121, 107, 0.3);
}

.primary-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 121, 107, 0.45);
    background: linear-gradient(45deg, #00A896, var(--primary-color));
}

/* Header */
.main-header {
    background-color: var(--bg-dark);
    padding: var(--spacing-unit) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 1.5);
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.7);
    animation: zoomOut 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Experiences Section (Features) */
.experiences-section {
    background-color: var(--bg-light);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 1.5);
}

.experience-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 4px solid var(--secondary-color);
}

.card-content {
    padding: calc(var(--spacing-unit) * 1.2);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes content apart */
}

.card-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.card-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 1.5);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: var(--text-light);
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.2);
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 1;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Insights Section */
.insights-section {
    background-color: #fff;
}

.insights-content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
}

.insight-block {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: var(--spacing-unit);
}

.insight-block.reverse-layout {
    flex-direction: row-reverse;
}

.insight-image {
    flex: 1;
    max-width: 50%;
    border-radius: 8px;
    object-fit: cover;
    height: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.insight-text {
    flex: 1;
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
}

.insight-text h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.insight-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    margin-bottom: var(--spacing-unit);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.faq-item.active .faq-question {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-bottom-color: var(--primary-color);
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
    color: var(--text-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 calc(var(--spacing-unit) * 1.5);
    background-color: #fcfcfc;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-item.active .faq-answer {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1.5);
}

.faq-answer p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 0;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), #00A896);
    color: var(--text-light);
    text-align: center;
    padding: calc(var(--spacing-unit) * 4) 0;
}

.newsletter-section .section-title {
    color: var(--text-light);
}

.newsletter-section .section-title::after {
    background-color: var(--secondary-color);
}

.newsletter-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: calc(var(--spacing-unit) * 2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.newsletter-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-unit);
    color: rgba(255, 255, 255, 0.95);
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: calc(var(--spacing-unit) * 3) 0;
    font-size: 0.95rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    flex: 1;
    min-width: 200px;
}

.footer-links ul {
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.7rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-info {
    flex: 1;
    min-width: 250px;
    text-align: right;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomOut {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

.fade-in {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .card-grid, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-unit);
    }

    .insight-block, .insight-block.reverse-layout {
        flex-direction: column;
        text-align: center;
    }

    .insight-image {
        max-width: 100%;
        height: 280px;
    }

    .insight-text {
        padding: var(--spacing-unit);
    }

    .insight-text h3 {
        font-size: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand, .footer-links, .footer-info {
        min-width: unset;
        width: 100%;
    }

    .footer-links {
        justify-content: center;
        margin-top: var(--spacing-unit);
        gap: var(--spacing-unit);
    }

    .footer-links ul {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: calc(var(--spacing-unit) * 0.8) 0;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .brand-logo {
        font-size: 1.8rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001; /* Ensure toggle is above nav links when open */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-dark);
        position: absolute;
        top: 100%;
        left: 0;
        padding: var(--spacing-unit) 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        animation: slideDown 0.4s ease forwards;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin: 0.5rem 0;
    }

    .nav-links a {
        padding: 0.8rem 0;
        font-size: 1.1rem;
        width: 100%;
        display: block;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 1;
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    @keyframes slideDown {
        from { opacity: 1; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .hero-section {
        height: 70vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: calc(var(--spacing-unit) * 2.5) 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .card-grid, .gallery-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .experience-card, .gallery-item {
        margin: 0 auto;
        max-width: 400px;
    }

    .insight-image {
        height: 250px;
    }

    .insight-text h3 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1.1rem;
        padding: var(--spacing-unit) var(--spacing-unit);
    }

    .faq-answer {
        padding: 0 var(--spacing-unit);
    }

    .faq-item.active .faq-answer {
        padding: var(--spacing-unit) var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 0.8);
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .button {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .gallery-item img {
        height: 200px;
    }

    .insight-block {
        padding: calc(var(--spacing-unit) * 0.8);
    }
    .insight-image {
        height: 200px;
    }
    .insight-text h3 {
        font-size: 1.3rem;
    }
    .insight-text p {
        font-size: 0.95rem;
    }

    .newsletter-content p {
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-unit) * 0.8;
    }
    .footer-links ul {
        text-align: center;
        width: 100%;
    }
}
/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
