:root {
    /* Color Palette */
    --forest-green: #2C4C3B;
    --sage-green: #8DA399;
    --terracotta: #C87965;
    --sand: #D9C5B2;
    --warm-beige: #F4F1EA;
    --off-white: #FAFAF8;
    --text-dark: #1A1A1A;
    --text-light: #F4F1EA;
    --glass-bg: rgba(250, 250, 248, 0.7);
    --glass-border: rgba(250, 250, 248, 0.4);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-handwritten: 'Mynerve', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --border-radius: 16px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.01em;
}

p {
    font-size: 1.125rem;
    color: #4A4A4A;
    margin-bottom: 1.5rem;
}

p.lead {
    font-size: 1.5rem;
    color: var(--forest-green);
    font-weight: 400;
    line-height: 1.4;
}

.highlight {
    color: var(--terracotta);
    font-weight: 700;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--forest-green);
    letter-spacing: 0.1em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 4px 8px;
    z-index: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 10px;
    background-color: var(--terracotta);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
    border-radius: 6px;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--text-dark);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 24px;
    overflow: hidden;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
    padding-top: 80px;
}

.hero-content h1 {
    margin-bottom: 24px;
    font-family: var(--font-handwritten);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    font-style: italic;
}

.typing-cursor {
    display: inline-block;
    color: var(--terracotta);
    font-weight: 300;
    margin-left: 4px;
    animation: blink-cursor 0.8s infinite;
    transition: opacity 0.4s ease;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--forest-green);
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 1.6;
}

.tagline {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background-color: var(--terracotta);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.125rem;
    transition: var(--transition-smooth);
}

.cta-button:hover {
    background-color: var(--forest-green);
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 12px 24px rgba(44, 76, 59, 0.3);
}

/* Hero Background Carousel */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: crossfade-4 16s infinite;
}

.hero-carousel-slide:nth-child(1) { animation-delay: 0s; }
.hero-carousel-slide:nth-child(2) { animation-delay: 4s; }
.hero-carousel-slide:nth-child(3) { animation-delay: 8s; }
.hero-carousel-slide:nth-child(4) { animation-delay: 12s; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(250, 250, 248, 0.85);
    z-index: 1;
}

/* Sections Header */
.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    font-family: var(--font-handwritten);
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--forest-green);
    margin-bottom: 16px;
    font-weight: 700;
    font-style: italic;
}

.line {
    width: 80px;
    height: 4px;
    background-color: var(--terracotta);
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: var(--warm-beige);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat-card {
    background: rgba(250, 250, 248, 0.8);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.stat-card i {
    color: var(--terracotta);
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
}

.stat-card h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.stat-card p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Projects Section */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.project-card {
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    background: transparent;
    width: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
}

@media (min-width: 901px) {
    .project-card {
        width: calc(50% - 20px);
    }
}

.project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-image {
    transform: scale(1.04);
}

.project-title {
    padding: 16px 0 0 0;
    background: transparent;
}

.project-title h4 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-family: var(--font-heading);
    color: var(--forest-green);
    display: inline-block;
}

.project-title h4 span {
    display: inline;
    position: relative;
    background-color: transparent;
    padding: 2px 6px;
    margin-left: -6px;
    border-radius: 4px;
    transition: background-color 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-title h4 span {
    background-color: rgba(200, 121, 101, 0.15);
}

.project-location {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    font-family: var(--font-body);
}

.image-credit {
    position: absolute;
    bottom: 12px;
    right: 16px;
    color: #fff;
    font-size: 0.65rem;
    font-family: var(--font-body);
    opacity: 0.85;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 5;
}

.image-credit.grey {
    color: #cccccc;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 76, 59, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px;
    transition: var(--transition-smooth);
    opacity: 0;
    z-index: 10;
    overflow-y: auto;
    scrollbar-width: thin;
}

.project-overlay::-webkit-scrollbar {
    width: 6px;
}
.project-overlay::-webkit-scrollbar-track {
    background: transparent;
}
.project-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.project-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    transform: translateY(20px);
    transition: var(--transition-smooth);
    max-width: 800px;
    margin: auto;
    width: 100%;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    color: var(--sand);
    font-size: 2.25rem;
    margin-bottom: 8px;
    line-height: 1.1;
}

.project-info h4 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 500;
}

.project-info p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin-bottom: 24px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 8px;
}



/* Footer */
.footer {
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 80px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
    align-items: start;
}

.footer-intro h2 {
    color: var(--forest-green);
    margin-bottom: 16px;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.35;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding-top: 8px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--terracotta);
}

.location {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--forest-green);
    opacity: 0.85;
    font-size: 1.125rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 24px;
}

.footer-bottom p {
    color: var(--text-dark);
    opacity: 0.6;
    font-size: 0.875rem;
    margin: 0;
}

/* Eco Features */
.metrics-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--sage-green);
}

.metrics-row span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.metrics-row i {
    width: 16px;
    height: 16px;
}

.par-list {
    list-style: none;
    margin-bottom: 24px;
}

.par-list li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}

.par-list li strong {
    color: var(--sand);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

/* Process Diagram */
.process-intro {
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 0 0 64px;
    max-width: 1000px;
    text-align: left;
}

.intro-image {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    background-size: cover;
    background-position: 85% bottom;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    border: 2px solid var(--forest-green);
    box-shadow: 0 10px 30px rgba(44, 76, 59, 0.1);
    transition: border-radius 1s ease-in-out, transform 0.5s ease;
}

.intro-image:hover {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
    transform: scale(1.03) rotate(2deg);
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--forest-green);
}

.intro-text p:last-of-type {
    margin-bottom: 0;
}

.specialisms-list {
    list-style: none;
    margin: 16px 0;
    padding-left: 8px;
}

.specialisms-list li {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--forest-green);
    display: flex;
    align-items: center;
    gap: 12px;
}

.specialisms-list li::before {
    content: '•';
    color: var(--terracotta);
    font-weight: bold;
    font-size: 1.5rem;
}

.diagram-nodes {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.node-item {
    flex: 1;
    min-width: 220px;
    background: rgba(250, 250, 248, 0.8);
    border: 1px solid rgba(44, 76, 59, 0.1);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    text-align: left;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.node-item:hover {
    background: var(--forest-green);
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(44, 76, 59, 0.15);
}

.node-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border-radius: calc(var(--border-radius) - 8px);
    margin: 0 auto 24px;
    transition: var(--transition-smooth);
    background-color: var(--warm-beige);
}

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

.node-item h3 {
    color: var(--forest-green);
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.node-item:hover h3 {
    color: var(--sand);
}

.node-content {
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.node-item:hover .node-content {
    max-height: 500px;
    opacity: 1;
}

.node-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.about-extra-container {
    text-align: left;
    margin-top: 48px;
    max-width: 100%;
}

.about-extra-container p {
    font-size: 1.25rem;
    color: var(--forest-green);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.about-extra-container p:last-child {
    margin-bottom: 0;
}

/* Leadership & Community */
.leadership {
    background-color: var(--forest-green);
    color: var(--text-light);
}

.leadership .section-header h2 {
    color: var(--sand);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.leadership-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--terracotta);
    transition: var(--transition-smooth);
}

.leadership-card:hover {
    background: rgba(217, 197, 178, 0.12); /* Warm sand tint */
    border-top-color: var(--sand);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.leadership-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: calc(var(--border-radius) - 8px);
    margin-bottom: 24px;
    background-color: rgba(255, 255, 255, 0.1);
}

.leadership-card h3 {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.leadership-card:hover h3 {
    color: var(--sand);
}

.leadership-card p {
    margin-bottom: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Carousel */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

.carousel-2 .carousel-slide { animation: crossfade-2 8s infinite; }
.carousel-3 .carousel-slide { animation: crossfade-3 12s infinite; }
.carousel-4 .carousel-slide { animation: crossfade-4 16s infinite; }
.carousel-5 .carousel-slide { animation: crossfade-5 20s infinite; }
.carousel-6 .carousel-slide { animation: crossfade-6 24s infinite; }
.carousel-7 .carousel-slide { animation: crossfade-7 28s infinite; }
.carousel-8 .carousel-slide { animation: crossfade-8 32s infinite; }
.carousel-9 .carousel-slide { animation: crossfade-9 36s infinite; }
.carousel-10 .carousel-slide { animation: crossfade-10 40s infinite; }

@keyframes crossfade-2 {
    0% { opacity: 0; }
    10% { opacity: 1; }
    50% { opacity: 1; }
    60% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes crossfade-3 {
    0% { opacity: 0; }
    8.33% { opacity: 1; }
    33.33% { opacity: 1; }
    41.66% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes crossfade-4 {
    0% { opacity: 0; }
    6.25% { opacity: 1; }
    25% { opacity: 1; }
    31.25% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes crossfade-5 {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes crossfade-6 {
    0% { opacity: 0; }
    4.16% { opacity: 1; }
    16.66% { opacity: 1; }
    20.83% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes crossfade-7 {
    0% { opacity: 0; }
    3.57% { opacity: 1; }
    14.28% { opacity: 1; }
    17.85% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes crossfade-8 {
    0% { opacity: 0; }
    3.12% { opacity: 1; }
    12.5% { opacity: 1; }
    15.62% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes crossfade-9 {
    0% { opacity: 0; }
    2.77% { opacity: 1; }
    11.11% { opacity: 1; }
    13.88% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes crossfade-10 {
    0% { opacity: 0; }
    2.5% { opacity: 1; }
    10% { opacity: 1; }
    12.5% { opacity: 0; }
    100% { opacity: 0; }
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .process-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    

    .contact-link {
        font-size: 1.25rem;
    }
}



/* Footer Contact Form */
.footer-contact-form {
    margin-top: 0;
    width: 100%;
}

.footer-contact-form input[type="text"],
.footer-contact-form input[type="email"],
.footer-contact-form input[type="tel"],
.footer-contact-form textarea {
    width: 100%;
    border: 1px solid rgba(44, 76, 59, 0.2);
    border-radius: 8px;
    padding: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--off-white);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-smooth);
    margin-bottom: 12px;
}

.footer-contact-form input[type="text"],
.footer-contact-form input[type="email"],
.footer-contact-form input[type="tel"] {
    height: 44px;
}

.footer-contact-form textarea {
    height: 100px;
    resize: none;
}

.footer-contact-form input[type="text"]:focus,
.footer-contact-form input[type="email"]:focus,
.footer-contact-form input[type="tel"]:focus,
.footer-contact-form textarea:focus {
    border-color: var(--forest-green);
    box-shadow: 0 0 0 2px rgba(44, 76, 59, 0.1);
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--forest-green);
    color: var(--text-light);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.contact-submit-btn:hover {
    background-color: var(--terracotta);
    transform: translateY(-2px);
}

.contact-submit-btn i {
    width: 16px;
    height: 16px;
}

/* In-Card Text/Image Toggler Layout (Desktop & Tablet) */
.project-overlay {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden; /* Prevent overlay-level scrollbars, scrolling happens in components */
}

/* Left Content Area */
.project-info {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    padding-right: 12px;
    scrollbar-width: thin;
    margin: 0; /* Align perfectly */
}

.project-info.view-hidden {
    display: none !important;
}

/* Image Viewer View Area on the Left */
.project-overlay-image-view {
    display: none;
    flex: 1;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.15);
}

.project-overlay-image-view.view-active {
    display: block;
    animation: fadeInOverlayImage 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.project-overlay-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right-side Vertical Thumbnails Strip */
.project-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    max-height: 100%;
    justify-content: center;
    padding: 8px 0;
}

.project-thumbnail {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.project-thumbnail:hover {
    opacity: 1;
    transform: scale(1.08);
}

.project-thumbnail.active {
    opacity: 1;
    border-color: var(--sand);
    box-shadow: 0 0 10px rgba(217, 197, 178, 0.5);
}

/* Special Styling for the Text Icon Thumbnail */
.project-thumbnail.text-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-thumbnail.text-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--sand);
}

.project-thumbnail.text-thumb.active {
    color: var(--sand);
}

/* Manual Control for Autoplay Pausing */
.carousel-container.manual-control .carousel-slide {
    animation: none !important;
    opacity: 0 !important;
    transition: opacity 0.45s ease;
}

.carousel-container.manual-control .carousel-slide.active {
    opacity: 1 !important;
    z-index: 2;
}

/* Mobile Responsiveness for In-Card Toggle */
@media (max-width: 768px) {
    .project-overlay {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 20px;
        gap: 12px;
        overflow-y: auto;
    }
    
    .project-info {
        height: auto;
        max-height: 200px;
        padding-right: 8px;
    }
    
    .project-overlay-image-view {
        aspect-ratio: 16 / 10;
        height: auto;
        max-height: 180px;
    }
    
    .project-thumbnails {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-height: none;
        padding: 12px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 8px;
    }
    
    .project-thumbnail {
        width: 38px;
        height: 38px;
    }
}

/* Animations */
@keyframes fadeInOverlayImage {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* What Can I Offer You Section */
.services {
    background-color: var(--forest-green);
    color: var(--text-light);
}

.services .section-header h2 {
    color: var(--sand);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.offering-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(250, 250, 248, 0.15);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
}

.offering-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--sand);
    background-color: rgba(255, 255, 255, 0.08);
}

.offering-card:hover h3 {
    color: #ffffff;
}

.offering-card.active {
    border-color: var(--terracotta);
    box-shadow: 0 10px 25px rgba(200, 121, 101, 0.25);
    background-color: var(--warm-beige);
}

.offering-card h3 {
    margin: 0;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    color: var(--sand);
    font-weight: 500;
    line-height: 1.45;
    transition: var(--transition-smooth);
}

.offering-card.active h3 {
    color: var(--terracotta);
}

/* Detail Panel Styling */
.offering-details-container {
    background-color: #ffffff;
    border: 1px solid rgba(44, 76, 59, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-height: 250px;
}

.offering-detail-pane {
    display: none;
}

.offering-detail-pane.active {
    display: block;
    animation: fadeInOfferingDetail 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.offering-questions {
    margin-bottom: 24px;
    border-left: 3px solid var(--terracotta);
    padding-left: 20px;
}

.offering-questions p.lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 400;
    margin: 0;
}

.offering-help h4 {
    font-size: 1.25rem;
    color: var(--forest-green);
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-list li {
    position: relative;
    padding-left: 28px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.5;
}

.help-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0px;
    color: var(--forest-green);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive grid for offerings */
@media (max-width: 900px) {
    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .offerings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .offering-details-container {
        padding: 24px;
    }
    
    .offering-questions p.lead {
        font-size: 1.05rem;
    }
}

@keyframes fadeInOfferingDetail {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


