/* Carbon Solutions Website Styles */
:root {
    /* Enhanced forest-inspired color palette */
    --leaf: #819951;           /* Moss green - Primary accent color */
    --forest: #234E33;         /* Cal poly green - Secondary color */
    --dark-forest: #1A3D28;    /* Deep forest green - For emphasis and depth */
    --pine: #2D5F41;           /* Pine green - Tertiary color for gradients and hover states */
    --mint: #CBCEB9;           /* Ash gray - Light accents */
    --fern: #5E8C61;           /* Fern green - For backgrounds and highlights */
    --moss-light: #A9BE8C;     /* Light moss - For subtle accents */
    --forest-floor: #F7F5F0;   /* Forest floor - Light background - Updated to be lighter */
    --cloud: #FAFBF7;          /* Misty forest air - Very light background */
    --cream: #F3F0E9;          /* Almond - Card backgrounds - Updated to be lighter */
    --cedar: #534636;          /* Taupe - Primary text color */
    --clay: #919783;           /* Battleship gray - Borders, dividers */
    --text-primary: #2B2B2B;   /* Darker gray - For better readability */
    --text-secondary: #5A6650; /* Forest-inspired secondary text */
    --text-tertiary: #757575;  /* For less important text */
    --white: #ffffff;          /* White - For contrast */
    --off-white: #FCFCFA;      /* Slightly off white */
    --nav-bar: #e9e2d2;        /* Nav bar background */
    --light-shadow: rgba(0, 0, 0, 0.05); /* Standard shadow color */
    --medium-shadow: rgba(0, 0, 0, 0.1); /* Medium shadow color */
    
    /* Spacing system */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 8rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Font families */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
    font-size: 14px; /* Reduced from 16px for better proportions */
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-normal);
}

p {
    margin-bottom: var(--space-md);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1100px; /* Reduced from 1400px for better proportions */
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--space-xxl) 0;
    position: relative;
    background-color: var(--white); /* Consistent background color for all sections */
}

/* Responsive base font sizes */
@media (max-width: 768px) {
    html {
        font-size: 13px; /* Smaller on tablets */
    }

    .container {
        padding: 0 15px; /* Less padding on mobile */
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px; /* Even smaller on phones */
    }

    .container {
        padding: 0 10px; /* Minimal padding on small screens */
    }
}

.text-center {
    text-align: center;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Header Styles - In Tandem Style */
header {
    background-color: var(--nav-bar);
    color: var(--forest);
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-normal);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

/* Overlay style for navbar when over hero */
.hero-creative ~ header,
.hero-creative + * header,
header.hero-overlay {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--forest);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
}

.logo:hover {
    opacity: 0.85;
}

.logo img {
    height: 38px;
    transition: transform var(--transition-normal);
    filter: brightness(1.02);
}

.logo:hover img {
    transform: scale(1.02);
}

.logo-carbon {
    font-size: 1.2rem; /* Reduced from 1.4rem */
    font-weight: 700;
    color: var(--forest);
    letter-spacing: 0.5px;
    font-family: var(--font-primary);
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-solutions {
    font-size: 1rem; /* Reduced from 1.2rem */
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    font-family: var(--font-primary);
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.8;
    letter-spacing: 0.4px;
    text-transform: none;
    margin-top: 2px;
    font-family: var(--font-secondary);
}

nav {
    position: relative;
    z-index: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: var(--forest);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    font-size: 0.9rem;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu li a:hover {
    color: var(--leaf);
}

/* Active menu item styling */
.nav-menu li a.active {
    color: var(--leaf);
    font-weight: 600;
    position: relative;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--leaf);
    opacity: 1;
    border-radius: 2px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--forest);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile nav styles */
@media (max-width: 768px) {
    .logo-carbon {
        font-size: 1.2rem;
    }
    
    .logo-solutions {
        font-size: 1rem;
    }
    
    .logo-tagline {
        font-size: 0.65rem;
    }
    
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 110;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.4s ease;
        z-index: 100;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .nav-menu li a {
        font-size: 1.4rem;
    }
    
    .mobile-menu-btn.active .menu-icon:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active .menu-icon:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .menu-icon:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Hero Section - In Tandem Style with Images */
.hero-intandem {
    background-color: var(--white);
    padding: 150px 0 100px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-intandem .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-images {
    position: relative;
    height: 500px;
}

.hero-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--forest);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--leaf);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(129, 153, 81, 0.2);
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 0 2rem 0;
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-block;
    padding: 18px 36px;
    background-color: var(--leaf);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: var(--forest);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(35, 78, 51, 0.2);
}

.btn-hero.outline {
    background-color: transparent;
    color: var(--forest);
    border: 2px solid var(--forest);
}

.btn-hero.outline:hover {
    background-color: var(--forest);
    color: white;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-intandem {
        padding: 160px 0 100px;
    }
    
    .hero-intandem .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-images {
        height: 400px;
        order: -1;
    }
    
    .hero-image-grid {
        grid-template-columns: 1fr 1fr 1fr;
        height: 100%;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .hero-intandem {
        padding: 100px 0 60px;
    }
    
    .hero-images {
        height: 350px;
    }
    
    .hero-image-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .hero-image-grid img:last-child {
        grid-column: span 2;
    }
    
    .hero-title {
        font-size: 3rem;
        margin-bottom: 30px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-hero {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .logo-carbon {
        font-size: 1.1rem;
    }
    
    .logo-solutions {
        font-size: 0.9rem;
    }
    
    .logo-tagline {
        font-size: 0.6rem;
    }
    
    .hero-intandem {
        padding: 100px 0 60px;
    }
    
    .hero-images {
        height: 300px;
        margin-bottom: 40px;
    }
    
    .hero-image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        height: auto;
    }
    
    .hero-image {
        height: 180px;
    }
    
    .hero-image-grid img:last-child {
        grid-column: 1;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 35px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-hero {
        width: 100%;
        text-align: center;
    }
}

/* Button Styles for whole site - using btn-hero style */
.btn-primary {
    /* Inherit styles from btn-hero */
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--forest);
    color: var(--white) !important;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--leaf);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(129, 153, 81, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    border: 2px solid var(--white);
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-forest);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Decorative Elements */
.hero .decorative-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

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

.hero .circle-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(129, 153, 81, 0.03);
    top: 15%;
    left: -150px;
    animation-delay: 0.6s;
}

.hero .circle-2 {
    width: 200px;
    height: 200px;
    background-color: rgba(35, 78, 51, 0.03);
    bottom: 10%;
    left: 10%;
    animation-delay: 0.8s;
}

.hero .circle-3 {
    width: 400px;
    height: 400px;
    border: 1px solid rgba(129, 153, 81, 0.07);
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.hero .circle-4 {
    width: 150px;
    height: 150px;
    background-color: rgba(35, 78, 51, 0.02);
    top: 20%;
    right: 10%;
    animation-delay: 1.2s;
}

.hero .circle-5 {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(129, 153, 81, 0.1);
    top: 40%;
    right: 25%;
    animation-delay: 1.4s;
}

/* New leaf elements */
.hero .element-3 {
    width: 80px;
    height: 80px;
    top: 25%;
    right: 35%;
    transform: rotate(145deg) scale(0.6);
    --element-color: invert(46%) sepia(11%) saturate(1080%) hue-rotate(77deg) brightness(94%) contrast(87%); /* fern color */
    opacity: 0.12;
    animation: float-leaf 18s ease-in-out infinite 1s;
}

.hero .element-4 {
    width: 160px;
    height: 160px;
    bottom: 20%;
    right: 15%;
    transform: rotate(-100deg) scale(1.1);
    --element-color: invert(23%) sepia(16%) saturate(1066%) hue-rotate(93deg) brightness(96%) contrast(90%); /* dark-forest color */
    opacity: 0.1;
    animation: float-leaf 25s ease-in-out infinite 2s;
}

.hero .element-5 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 20%;
    transform: rotate(200deg) scale(0.7);
    --element-color: invert(75%) sepia(11%) saturate(638%) hue-rotate(46deg) brightness(93%) contrast(86%); /* moss-light color */
    opacity: 0.12;
    animation: float-leaf 22s ease-in-out infinite 0.5s;
}

.hero .element-6 {
    width: 90px;
    height: 90px;
    top: 10%;
    right: 10%;
    transform: rotate(-55deg) scale(0.65);
    --element-color: invert(30%) sepia(9%) saturate(1734%) hue-rotate(84deg) brightness(93%) contrast(91%); /* pine color */
    opacity: 0.1;
    animation: float-leaf 17s ease-in-out infinite 1.5s;
}

/* Animation for floating leaf elements */
@keyframes float-leaf {
    0% {
        transform: translateY(0) rotate(var(--base-rotation)) scale(var(--base-scale));
    }
    25% {
        transform: translateY(-15px) rotate(calc(var(--base-rotation) + 5deg)) scale(calc(var(--base-scale) + 0.05));
    }
    50% {
        transform: translateY(5px) rotate(var(--base-rotation)) scale(var(--base-scale));
    }
    75% {
        transform: translateY(15px) rotate(calc(var(--base-rotation) - 5deg)) scale(calc(var(--base-scale) - 0.05));
    }
    100% {
        transform: translateY(0) rotate(var(--base-rotation)) scale(var(--base-scale));
    }
}

/* Button effects */
.btn i, .btn-secondary i {
    margin-left: 10px;
    font-size: 0.9rem;
    transition: transform var(--transition-fast);
    position: relative;
}

.btn:hover i, .btn-secondary:hover i {
    transform: translateX(5px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 3rem;
}

.hero .element-1 { --base-rotation: -15deg; --base-scale: 1; }
.hero .element-2 { --base-rotation: 25deg; --base-scale: 0.8; }
.hero .element-3 { --base-rotation: 145deg; --base-scale: 0.6; }
.hero .element-4 { --base-rotation: -100deg; --base-scale: 1.1; }
.hero .element-5 { --base-rotation: 200deg; --base-scale: 0.7; }
.hero .element-6 { --base-rotation: -55deg; --base-scale: 0.65; }

/* Responsive Adjustments for Hero */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .hero .hero-content {
        flex-direction: column-reverse;
        padding: 100px 20px 60px;
        min-height: auto;
        gap: 3rem;
    }
    
    .hero .hero-text-container {
        padding: 0;
        max-width: 100%;
        order: 2;
    }
    
    .hero .hero-image-container {
        height: 50vh;
        width: 100%;
        order: 1;
        margin-top: 80px;
    }
    
    .hero .hero-image {
        position: relative;
        width: 100%;
        height: 100%;
    }
    
    .hero::after {
        height: 30%;
    }
    
    .hero h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .hero .decorative-circle {
        opacity: 0.5;
        transform: scale(0.7);
    }
    
    .hero-text-container::before {
        left: -3rem;
        top: -1rem;
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero .tagline {
        font-size: 1rem;
    }
    
    .hero-highlights {
        gap: 20px;
        margin-bottom: 2rem;
    }
    
    .hero .hero-image-container {
        height: 40vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-buttons .btn, 
    .hero-buttons .btn-secondary {
        width: 100%;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 3rem;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--leaf);
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.hero-scroll a:hover {
    opacity: 1;
    color: var(--cream);
    transform: scale(1.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--forest);
    padding: 18px 36px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: 1px solid var(--forest);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 140px;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(35, 78, 51, 0.05);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--forest);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    border-color: var(--forest);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(35, 78, 51, 0.15);
}

.btn-secondary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Global Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--leaf);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--forest);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Match the hero button styles for consistency */
.btn-primary {
    background-color: var(--leaf);
    color: var(--white);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-secondary {
    /* Match the btn-hero.outline style */
    display: inline-block;
    padding: 14px 28px;
    background-color: transparent;
    border: 2px solid var(--forest);
    color: var(--forest) !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: var(--forest);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(30, 60, 40, 0.2);
}

/* About Section - In Tandem Style */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.section-label {
    color: var(--forest);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    text-align: left;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-heading {
    font-size: 2rem; /* Reduced from 2.8rem */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px; /* Reduced from 40px */
    color: var(--forest);
}

.about-description {
    margin-bottom: 40px;
}

.about-description p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Interactive Tabbed Expertise Interface */
.expertise-tabs {
    margin-top: 60px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(129, 153, 81, 0.1);
}

.tab-navigation {
    display: flex;
    background-color: var(--forest);
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
    flex: 1;
}

.tab-button:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

.tab-button.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.12);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--leaf);
}

.tab-button i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.tab-button:hover i {
    transform: scale(1.1);
}

.tab-button span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.tab-content {
    padding: 0;
}

.tab-panel {
    display: none;
    padding: 40px;
}

.tab-panel.active {
    display: block;
}

.tab-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--cloud);
}

.tab-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--forest);
}

.tab-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.tab-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.detail-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--forest);
    position: relative;
    padding-left: 20px;
}

.detail-section h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 16px;
    background-color: var(--leaf);
    border-radius: 2px;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.detail-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--leaf);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 992px) {
    .tab-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .tab-navigation {
        flex-wrap: wrap;
    }

    .tab-button {
        min-width: 100px;
        padding: 15px 10px;
    }

    .tab-button span {
        font-size: 0.8rem;
    }

    .tab-panel {
        padding: 30px 20px;
    }

    .tab-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .tab-title h3 {
        font-size: 1.5rem;
    }

    .tab-title p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .tab-button {
        min-width: 80px;
        padding: 12px 8px;
    }

    .tab-button i {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    .tab-button span {
        font-size: 0.75rem;
    }

    .tab-panel {
        padding: 25px 15px;
    }

    .tab-details {
        gap: 25px;
    }

    .detail-section h4 {
        font-size: 1.1rem;
        padding-left: 15px;
    }

    .detail-section li {
        padding-left: 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .section-heading {
        font-size: 1.8rem; /* Reduced from 2.4rem to match new scaling */
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 80px 0;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .about-description p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    /* Showcase responsive styles are handled above */
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(129, 153, 81, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--forest);
    margin-bottom: 1.5rem;
    position: relative;
    font-weight: 800;
    letter-spacing: -0.5px;
    z-index: 1;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--leaf);
    border-radius: var(--radius-sm);
}

.section-title p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* About Content */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
}

.about-text {
    max-width: 1000px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--forest);
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: left;
    font-weight: 500;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.about-column h3 {
    font-size: 1.5rem;
    color: var(--forest);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-column h3 i {
    color: var(--leaf);
}

.about-column p {
    color: var(--text-primary);
    line-height: 1.7;
}

.about-focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
}

.about-focus-list li {
    position: relative;
    padding: 12px 0 12px 35px;
    color: var(--text-primary);
    line-height: 1.7;
    border-bottom: 1px solid var(--forest-floor);
}

.about-focus-list li:last-child {
    border-bottom: none;
}

.about-focus-list li i {
    position: absolute;
    left: 0;
    top: 15px;
    color: var(--leaf);
    font-size: 1.1rem;
}

/* Expertise Grid - Replaced with Showcase Layout */

.expertise-item {
    background-color: var(--white);
    padding: 24px 16px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--mint);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--leaf);
}

.expertise-item h4 {
    font-size: 1.1rem;
    color: var(--forest);
    margin-bottom: 12px;
    font-weight: 600;
}

.expertise-item p {
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 0;
    flex-grow: 1;
}

.about-expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease,
                opacity 0.3s ease,
                padding 0.3s ease,
                margin 0.3s ease;
    margin-top: 0;
    opacity: 0;
    padding: 0;
}

.about-expand-content.expanded {
    max-height: 1000px;
    opacity: 1;
    padding: 15px 0 5px;
    margin-top: 15px;
    border-top: 1px solid var(--clay);
}

.about-expand-content p {
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 10px;
    background-color: var(--sand);
    border-radius: 6px;
    opacity: 0.95;
}

/* Team Section */
.team {
    padding: 100px 0 80px;
    background-color: var(--white);
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Team Cards */
.team-card {
    position: relative;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-header {
    position: relative;
    padding-top: 90%; /* Aspect ratio 1:1 */
    overflow: hidden;
}

.profile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--forest-floor);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.team-card:hover .profile-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 25px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.member-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 6px;
}

.member-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.member-tags .tag {
    background-color: var(--forest-floor);
    color: var(--forest);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 2px solid var(--leaf);
}

.member-tags .tag:hover {
    background-color: var(--mint);
}

.member-summary {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    min-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--forest-floor);
    color: var(--forest);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--leaf);
    color: var(--white);
}

.details-btn {
    background-color: transparent;
    color: var(--forest);
    border: 1px solid var(--forest);
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.details-btn:hover {
    background-color: var(--forest);
    color: var(--white);
}

/* Member Details Modal */
.member-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.member-details.active {
    opacity: 1;
    visibility: visible;
}

.details-container {
    background-color: var(--white);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.member-details.active .details-container {
    transform: translateY(0);
}

.close-details {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--forest);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-details:hover {
    background-color: var(--forest-floor);
    transform: rotate(90deg);
}

.details-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.details-image {
    flex: 0 0 180px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
}

.details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-intro {
    flex: 1;
}

.details-intro h3 {
    font-size: 2rem;
    color: var(--forest);
    margin-bottom: 10px;
}

.details-role {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.details-social {
    display: flex;
    gap: 12px;
}

.details-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--forest-floor);
    color: var(--forest);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.details-social a:hover {
    background-color: var(--leaf);
    color: var(--white);
}

.details-content {
    color: var(--text-primary);
}

.details-bio {
    margin-bottom: 30px;
    line-height: 1.6;
}

.details-section {
    margin-bottom: 25px;
    background-color: var(--forest-floor);
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.details-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--leaf);
    border-radius: 4px 0 0 4px;
}

.details-section h4 {
    font-size: 1.1rem;
    color: var(--forest);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-section h4 i {
    color: var(--leaf);
}

.details-section ul {
    padding-left: 20px;
    margin: 0;
}

.details-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 400px;
    }
    
    .team-card {
        min-height: auto;
    }
    
    .details-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .details-image {
        flex: 0 0 150px;
        height: 150px;
    }
    
    .details-social {
        justify-content: center;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--eggshell);
    color: var(--forest);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--leaf);
    color: white;
    transform: translateY(-3px);
}

/* Projects Section */
.projects {
    padding: 100px 0;
}

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

.project {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project:hover img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(35, 78, 51, 0.9));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--cream);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--clay);
    border-radius: 8px;
    font-family: var(--font-secondary);
    background-color: white;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(129, 153, 81, 0.2);
}

.contact-form textarea {
    height: 150px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--forest);
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--forest);
}

/* Footer */
footer {
    background-color: var(--forest);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--bone);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--bone-2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--almond);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 992px) {
    .mission-vision {
        flex-direction: column;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--forest);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 110;
}

.mobile-menu-btn:hover {
    background-color: rgba(35, 78, 51, 0.05);
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        z-index: 100;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -300px;
        bottom: 0;
        width: 280px;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 80px 40px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }
    
    nav ul li {
        margin: 1.5rem 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
        font-size: 1.1rem;
        padding: 0.8rem 0;
    }
    
    .nav-cta {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 90;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Team Section - In Tandem Style */
.team-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.team-description {
    margin-bottom: 40px;
}

.team-description p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.team-members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.team-member {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 500px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 80px;
}

.team-member:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.member-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--white);
}

.member-info {
    padding: 130px 30px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.member-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 8px;
}

.member-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--leaf);
    margin-bottom: 15px;
}

.member-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.member-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.member-expertise span {
    background-color: rgba(129, 153, 81, 0.1);
    color: var(--forest);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.member-social {
    display: flex;
    gap: 15px;
}

.member-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cloud);
    border-radius: 50%;
    color: var(--forest);
    transition: all var(--transition-normal);
}

.member-social a:hover {
    background-color: var(--leaf);
    color: white;
    transform: translateY(-2px);
}

/* More details button styling now uses the global btn-primary class */

/* Team Member Detail Modal */
.member-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.member-details.active {
    opacity: 1;
    visibility: visible;
}

.details-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.details-container {
    background-color: white;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: all 0.4s ease;
    z-index: 1001;
}

.member-details.active .details-container {
    transform: translateY(0);
}

.details-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--forest);
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.details-close:hover {
    background-color: var(--forest-floor);
}

.details-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.details-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--cloud);
}

.details-header h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--forest);
}

.details-role {
    font-size: 1rem;
    color: var(--leaf);
    margin-bottom: 10px;
}

.details-contact {
    margin-top: 10px;
}

.details-contact a {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: var(--forest-floor);
    border-radius: 4px;
    color: var(--forest);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.details-contact a i {
    margin-right: 8px;
}

.details-contact a:hover {
    background-color: var(--leaf);
    color: white;
    transform: translateY(-2px);
}

.details-content {
    color: var(--text-primary);
}

.details-bio {
    margin-bottom: 25px;
    line-height: 1.6;
}

.details-section {
    margin-bottom: 25px;
}

.details-section h4 {
    font-size: 1.2rem;
    color: var(--forest);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-section i {
    color: var(--leaf);
}

.details-section ul {
    list-style: none;
    padding-left: 30px;
}

.details-section li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 15px;
}

.details-section li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--leaf);
}

@media (max-width: 992px) {
    .team-section {
        padding: 100px 0;
    }
    
    .team-members {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        grid-template-columns: 1fr;
    }
    
    .member-image {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 80px 0;
    }
    
    .team-description p {
        font-size: 1.1rem;
    }
    
    .member-info {
        padding: 140px 30px 30px;
    }
    
    .member-info h3 {
        font-size: 1.6rem;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
}

/* Contact Section - In Tandem Style */
.contact-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-description {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.contact-description p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
}


.contact-form {
    background-color: var(--white);
    padding: 35px; /* Reduced from 50px */
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--forest);
}

.contact-form h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--forest);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--forest);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #d0d0d0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 4px rgba(129, 153, 81, 0.15);
    background-color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    opacity: 0.7;
}

/* Button styles now use the standard btn-primary class */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding: 25px;
}

.contact-item {
    display: flex;
    gap: 22px;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--forest);
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--forest);
    transition: width 0.3s ease;
}

.contact-info a:hover {
    color: var(--forest);
}

.contact-info a:hover::after {
    width: 100%;
}

@media (max-width: 992px) {
    
    .contact-info {
        grid-row: 1;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 80px 0;
    }

    .contact-form {
        padding: 40px 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Improved General Icon Styles */
.general-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--leaf);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(129, 153, 81, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.general-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.general-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(129, 153, 81, 0.4);
    background-color: var(--forest);
}

.general-icon:hover::before {
    opacity: 1;
}

.general-icon i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Improved Submit Button Styles - Matching btn-hero */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--forest);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-submit:hover {
    background-color: var(--leaf);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(35, 78, 51, 0.2);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit .btn-text {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-submit .btn-icon {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(5px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Form Actions Container */
.form-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.form-status {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 6px;
    display: none;
    transition: all 0.3s ease;
    flex: 1;
}

.form-status.success {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.form-status.error {
    background-color: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    border: 1px solid rgba(211, 47, 47, 0.2);
}

/* Form Error Styles */
.form-error {
    display: none;
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

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

/* Form field error state */
.form-group.error input,
.form-group.error textarea {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Responsive adjustments for icons and buttons */
@media (max-width: 768px) {
    .general-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .btn-submit {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .general-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .btn-submit {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Footer */
.site-footer {
    background-color: var(--nav-bar); /* Same as navbar */
    padding: 60px 0 0;
    position: relative;
    font-family: var(--font-secondary);
    color: var(--text-primary);
    margin-top: 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.site-footer .container {
    width: 90%;
    max-width: 1400px; /* Match other containers */
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Modern Footer Grid Layout */
.footer-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-around; /* better spacing */
    align-items: flex-start;
    padding: 30px 0 40px;
    flex-wrap: wrap;
    gap: 20px; /* ensure gap between items */
}

/* Company Section with Logo */
.footer-company {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    min-width: 300px;
}

.footer-logo {
    margin-bottom: 20px;
    max-width: 260px; /* Slightly adjusted for horizontal layout */
    margin-left: auto;
    margin-right: auto;
}

/* Completely unstyled logo */
.footer-logo img {
    display: block; /* Only basic display property */
    max-width: 100%;
}

.company-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 15px;
    opacity: 0.8;
    max-width: 300px;
}

/* Footer Navigation Section */
.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--forest);
    text-align: center;
}

.footer-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 15px;
    min-width: 300px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Make horizontal */
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Space between items */
}

.footer-nav li {
    margin-bottom: 0; /* Remove vertical margin */
}

.footer-nav a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
    padding: 5px 10px; /* Add some padding for better clickability */
}

.footer-nav a:hover {
    color: var(--forest);
    transform: translateY(-3px); /* Change from horizontal to vertical animation for better horizontal layout */
}

/* Contact Section */
.footer-contact {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 15px;
    min-width: 300px;
}

.footer-contact address {
    font-style: normal;
    text-align: center;
}

.footer-contact p {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-contact a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    margin-left: 8px;
}

.footer-contact a:hover {
    color: var(--forest);
}

.footer-contact i {
    color: var(--leaf);
    margin-right: 8px;
    font-size: 0.85rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background-color: rgba(129, 153, 81, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--forest);
    transition: all var(--transition-normal);
}

.social-icons a:hover {
    background-color: var(--forest);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-size: 0.85rem;
}

.footer-bottom a:hover {
    color: var(--forest);
}

@media (max-width: 992px) {
    .footer-grid {
        justify-content: center;
    }
    
    .footer-company {
        flex: 0 0 100%;
        margin: 0 auto 30px;
        text-align: center;
        order: 1;
    }
    
    .footer-nav {
        flex: 0 0 45%;
        order: 2;
        margin-bottom: 30px;
    }
    
    .footer-contact {
        flex: 0 0 45%;
        order: 3;
        margin-bottom: 30px;
    }
    
    .footer-logo {
        margin: 0 auto 20px;
        max-width: 320px; /* Keep logo large on medium screens */
    }
    
    .company-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
    }
    
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-company, 
    .footer-nav, 
    .footer-contact {
        flex: 0 0 100%;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .footer-logo {
        max-width: 280px; /* Slightly smaller on mobile but still prominent */
    }
    
    .footer-nav ul {
        justify-content: center;
        gap: 15px; /* Slightly smaller gap on mobile */
    }
    
    .footer-nav a {
        font-size: 1rem; /* Make text slightly larger for better tap targets */
        padding: 8px 12px;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

/* Hero Creative Section Styles */
.hero-creative {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height - no white space */
    background-color: var(--white);
    overflow: hidden;
    margin-top: 0; /* Ensure no top margin */
    padding-top: 0; /* Ensure no top padding */
    padding-bottom: 0; /* Override default section padding */
}

/* Hero container with content only */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px; /* Reduced from 1300px */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    height: 100vh; /* Full height to match parent */
    padding-top: 40px; /* Reduced for better centering */
    padding-bottom: 40px; /* Bottom spacing */
}

/* Hero image on the right */
.hero-creative .hero-image {
    position: absolute;
    top: 0; /* Start from very top */
    right: 0;
    height: 100vh; /* Full viewport height */
    width: 50%; /* Half width for two-column layout */
    overflow: hidden;
    z-index: 1;
    margin: 0; /* Ensure no margins */
    padding: 0; /* Ensure no padding */
}

.hero-creative .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio and fill container */
    object-position: center;
}

/* Hero content on the left */
.hero-creative .hero-content {
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 5;
    height: 100%; /* Take full height */
    padding-top: 40px; /* Reduced padding for better centering */
    padding-bottom: 40px; /* Bottom spacing */
    grid-column: 1; /* Explicitly place in first column */
}

.hero-tagline {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--leaf);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.hero-subtitle-heading {
    font-family: var(--font-primary);
    font-size: 1.5rem; /* Reduced from 2.2rem */
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.hero-creative .hero-buttons {
    display: flex;
    gap: 15px;
    position: relative;
    margin-top: 25px;
    width: fit-content;
    z-index: 15; /* Ensure higher z-index */
}

/* Button Styles */
.btn-hero {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--forest);
    color: var(--white) !important;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 10;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.btn-hero:hover {
    background-color: var(--leaf);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(129, 153, 81, 0.3);
}

.btn-hero.outline {
    background-color: transparent;
    border: 2px solid var(--forest);
    color: var(--forest) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn-hero.outline:hover {
    background-color: var(--forest);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(30, 60, 40, 0.2);
}

/* Responsive adjustments for hero creative */
@media (max-width: 1200px) {
    .hero-creative .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-creative .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-creative {
        padding: 0; /* Remove padding to eliminate white space */
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-creative .hero-image {
        position: relative; /* Back to relative positioning */
        width: 90%;
        margin: 0 auto;
        order: 2;
        height: 100vh;
        min-height: 400px; /* Minimum height for tablets */
        top: auto;
        right: auto;
    }
    
    .hero-creative .hero-content {
        padding: 0;
        align-items: center;
        text-align: center;
        order: 1;
        grid-column: auto; /* Reset grid column */
    }
    
    .hero-creative .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .hero-subtitle-heading {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-creative .hero-buttons {
        margin: 20px auto 0;
    }
}

@media (max-width: 768px) {
    .hero-creative {
        padding: 0; /* Remove padding to eliminate white space */
        min-height: auto;
    }
    
    .hero-container {
        min-height: auto;
    }
    
    .hero-creative .hero-image {
        position: relative; /* Back to relative positioning */
        height: 100vh;
        min-height: 350px; /* Minimum height for smaller tablets */
        top: auto;
        right: auto;
        width: 100%;
        margin: 0;
        order: 2;
    }
    
    .hero-creative .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle-heading {
        font-size: 1.8rem;
    }
    
    .hero-creative .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 12px 24px;
    }
}

@media (max-width: 576px) {
    .hero-creative {
        min-height: auto;
        padding: 0; /* Remove padding to eliminate white space */
    }
    
    .hero-creative .hero-image {
        position: relative; /* Back to relative positioning */
        height: 100vh;
        min-height: 300px; /* Minimum height for very small screens */
        top: auto;
        right: auto;
        width: 100%;
        margin: 0;
        order: 2;
    }
    
    .hero-creative .hero-title {
        font-size: 2rem;
    }
    
    .hero-creative .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-creative .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
        text-align: center;
    }
}

/* Additional fixes for Team Member Details buttons */
.member-info .btn-hero {
    margin-top: 15px;
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.details-container .details-close {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.details-container .details-close:hover {
    transform: rotate(90deg);
}

.details-container .details-content {
    padding: 15px 0;
}

.details-container .details-content h2 {
    color: var(--forest);
    margin-bottom: 15px;
}

.details-container .details-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   TEAM BUTTON FIXES
   ============================================================ */

/* Fix for team member detail buttons */
.team-member .btn-hero {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: auto;
    display: inline-block;
    cursor: pointer;
    border: none;
}

/* Fix modal behavior */
.member-details {
    z-index: 1500 !important; /* Ensure modals appear above other content */
}

.member-details .details-container {
    padding: 40px 30px;
    z-index: 1501;
}

/* Ensure the close button is visible and properly styled */
.details-close, 
.close-details {
    background-color: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.3rem;
    color: var(--forest);
    transition: all 0.3s ease;
}

.details-close:hover,
.close-details:hover {
    background-color: var(--forest-floor) !important;
    transform: rotate(90deg);
}

/* Prevent duplicate modals */
.team-section > .member-details {
    display: none !important;
}

/* Fix the transition of modals */
.member-details .details-container {
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.member-details.active .details-container {
    transform: translateY(0);
}
