:root {
    /* Primitives */
    --black: #0a0a0a;
    --dark-grey: #1a1a1a;
    --grey: #6b6b6b;
    --light-grey: #e0e0e0;
    --white: #ffffff;
    --gold: #c89116;
    --gold-dark: #966c10;
    --gold-light: #e5b848;

    /* Semantic - Default (Dark) */
    --bg-body: var(--black);
    --bg-card: var(--dark-grey);
    --bg-header: rgba(10, 10, 10, 0.75);
    /* Increased transparency */
    --text-primary: var(--white);
    --text-secondary: var(--light-grey);
    --text-muted: var(--grey);
    --border-color: rgba(255, 255, 255, 0.05);


    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glow: 0 0 20px rgba(200, 145, 22, 0.15);
}

[data-theme="light"] {
    --bg-body: #ffffff;
    --bg-card: #f9f9f9;
    --bg-header: rgba(255, 255, 255, 0.8);
    /* Increased transparency */
    --text-primary: #0a0a0a;
    --text-secondary: #4a4a4a;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);

    --bg-overlay: rgba(255, 255, 255, 0.96);
    --text-overlay: var(--black);
    --bg-impact-start: #f5f5f5;
    --bg-impact-end: #eaeaea;
    --bg-footer: #f0f0f0;
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.text-gold {
    color: var(--gold);
    display: inline-block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    padding: 15px 0;
    background: var(--bg-header);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 2px;
    z-index: 1001;
    display: flex;
    align-items: center;
}

/* Logo Switching Logic */
.logo-image {
    max-height: 110px;
    /* Significantly increased size */
    width: auto;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-image:hover {
    transform: scale(1.1);
}

/* Default (Dark Mode) - Show Dark Toggle Logo, Hide Light Toggle Logo */
.light-mode-logo {
    display: none;
}

.dark-mode-logo {
    display: block;
}

/* Light Mode - Show Light Toggle Logo, Hide Dark Toggle Logo */
[data-theme="light"] .light-mode-logo {
    display: block;
}

[data-theme="light"] .dark-mode-logo {
    display: none;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold);
}

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

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
    padding-bottom: 20px;
    /* Bridge gap for hover */
    margin-bottom: -20px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    /* Align slightly left */
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    list-style: none;
    padding: 10px 0;
    box-shadow: var(--shadow);
    border-radius: 4px;
    z-index: 1000;
}

.nav-item-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: 12px 25px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
    border-left: 2px solid transparent;
}

.nav-dropdown li a:hover {
    color: var(--gold);
    background: rgba(200, 145, 22, 0.05);
    /* very subtle gold tint */
    border-left-color: var(--gold);
    padding-left: 30px;
    /* Move text slightly */
}

.btn-primary-nav {
    border: 1px solid var(--gold);
    padding: 10px 24px;
    color: var(--gold);
    transition: var(--transition);
}

.btn-primary-nav:hover {
    background-color: var(--gold);
    color: var(--bg-body);
}

.btn-primary-nav::after {
    display: none;
}

/* Mobile Menu */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.theme-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 15px rgba(200, 145, 22, 0.3);
    transform: none;
    /* Reset distinct rotation, use internal icon rotation */
}

/* Icons */
.sun-icon,
.moon-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Default (Dark Mode) */
/* Sun is visible */
.sun-icon {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
}

/* Moon is hidden */
.moon-icon {
    transform: translate(-50%, -50%) rotate(90deg) scale(0);
    opacity: 0;
    display: block;
    /* Override previous display:none to allow transition */
}

/* Light Mode */
[data-theme="light"] .sun-icon {
    transform: translate(-50%, -50%) rotate(-90deg) scale(0);
    opacity: 0;
    display: block;
    /* Ensure it stays in DOM for transition */
}

[data-theme="light"] .moon-icon {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    /* Changed from center to flex-start to properly control top offset */
    justify-content: center;
    background: var(--bg-body);
    overflow: hidden;
    padding-top: 30vh;
    /* Push content down by 30% of viewport height */
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 2;
}

.hero::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    width: 100%;
    /* Ensure it takes full width of container */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Reduced max size slightly */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(180deg, #ffffff, #aaaaaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 10px;
    /* Safety padding */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    /* Ensure readability in light mode too, or force white if bg is dark */
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .hero h2 {
    color: var(--white);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Hero specific button hover for high contrast */
.hero .btn-primary:hover {
    background-color: var(--white);
    color: var(--gold);
    border-color: var(--white);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--gold);
    color: var(--black);
    /* Keep black text on gold button providing contrast, or use #fff in light mode? Usually black on gold is good. */
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--white);
    /* Force white on hero */
    color: var(--white);
    /* Force white on hero */
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin-top: 10px;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        height: 0;
        opacity: 0;
    }

    50% {
        height: 60px;
        opacity: 1;
    }

    100% {
        height: 0;
        opacity: 0;
        transform: translateY(60px);
    }
}

/* Services */
.services {
    background-color: var(--bg-body);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-line {
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: block;
    /* For anchor tag */
    text-decoration: none;
    /* Remove underline */
    height: 100%;
    /* Equal height */
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.service-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: var(--black);
    /* Fallback for transparency/loading */
}

.service-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradient overlay for contrast */
.service-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
}

.service-card:hover .service-bg-image {
    opacity: 1;
}

/* Ensure content sits above image */
.service-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(200, 145, 22, 0.05);
    transition: var(--transition);
    z-index: 1;
}

.service-card:hover::before {
    height: 100%;
    background: transparent;
    /* Remove gold tint when image shows */
}

/* Ensure text color is always readable on hover */
.service-card:hover h3 {
    color: var(--white);
}

.service-card:hover p {
    color: #e0e0e0;
}

.service-icon {
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

/* About */
.about {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.about-content .section-title {
    text-align: left;
}

.about-content .section-line {
    margin: 0 0 30px 0;
}

.about-content .lead {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-family: var(--font-heading);
    line-height: 1.4;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.vision-container {
    width: 100%;
    height: 500px;
    background: var(--bg-card);
    position: relative;
    border: 1px solid var(--gold);
    overflow: hidden;
    cursor: pointer;
}

.vision-container::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
    pointer-events: none;
}

.vision-default {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.vision-content-box {
    border: 1px solid var(--gold);
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    /* Optional: slight background for readability */
    backdrop-filter: blur(2px);
    /* Optional: subtle blur */
}

.vision-default span {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.vision-explore {
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    /* Slightly smaller */
    text-transform: uppercase;
    letter-spacing: 0.25em !important;
    /* More spacing */
    color: var(--text-muted) !important;
    margin-top: 5px;
    /* Add spacing above */
    margin-bottom: 0;
    opacity: 0.8;
}

/* Light Mode Vision Overrides */
[data-theme="light"] .vision-default span {
    color: var(--text-primary);
    /* Darker text in light mode */
}

[data-theme="light"] .vision-explore {
    color: var(--text-secondary) !important;
    /* Darker explore text */
}

[data-theme="light"] .vision-content-box {
    border-color: var(--gold);
    /* Ensure box is gold */
    background: rgba(255, 255, 255, 0.6);
    /* Lighter background for better contrast */
}

.vision-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.vision-container:hover .vision-default {
    opacity: 0;
    pointer-events: none;
}

.vision-container:hover .vision-grid {
    opacity: 1;
    z-index: 3;
}

.vision-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.vision-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.7);
}

.vision-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, var(--bg-overlay), transparent);
    padding: 20px 10px;
    text-align: center;
}

.vision-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.vision-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.vision-item:hover .vision-label {
    color: var(--gold);
}

/* Impact */
.impact {
    background: radial-gradient(circle at 50% 50%, var(--bg-impact-start) 0%, var(--bg-impact-end) 100%);
}

.impact-grid {
    display: flex;
    justify-content: space-around;
    margin-top: 80px;
}

.impact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.impact-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
    line-height: 1;
}

.impact-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

/* Contact */
.contact {
    position: relative;
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 60px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

.form-group select {
    appearance: none;
    color: var(--text-secondary);
}

.btn-block {
    width: 100%;
    margin-top: 20px;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-footer);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Changed to flex-start for better alignment with multiline text */
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    gap: 40px;
}

.footer-left {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 25px;
    /* Increased margin */
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--text-primary);
    /* Stand out a bit more */
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-links-group {
    display: flex;
    flex-direction: column;
    /* Stack links vertically */
    gap: 15px;
    min-width: 150px;
    align-items: flex-end;
    /* Align right */
}

.footer-links-group a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-body);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.testimonial-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--gold);
}

.testimonial-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author cite {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--text-primary);
    font-style: normal;
    font-size: 1rem;
}

.testimonial-author .role {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    color: var(--gold);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visible {
    opacity: 1;
    transform: none;
}


/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-card {
    background: var(--dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    /* Consistent with other cards */
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.team-image {
    width: 100%;
    aspect-ratio: 1/1.2;
    overflow: hidden;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(100%);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--white) !important;
    font-family: var(--font-heading);
}

.team-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Enforce dark tint always */
    background: rgba(5, 5, 5, 0.96);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

/* Enforce white text for this dark overlay regardless of theme */
.team-details .team-bio {
    color: #e0e0e0;
}

.team-details .team-social a {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.team-details .team-title {
    color: #b0b0b0;
}

.team-card:hover .team-details {
    transform: translateY(0);
}

.team-name-overlay {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 5px;
}

[data-theme="light"] .team-name-overlay {
    color: var(--gold) !important;
}

.team-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(200, 145, 22, 0.3);
    padding-bottom: 10px;
    width: 100%;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--text-overlay);
    margin-bottom: 20px;
    line-height: 1.5;
    overflow-y: auto;
    max-height: 200px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(255, 255, 255, 0.1);
    padding-right: 5px;
}

/* Scrollbar styles for bio */
.team-bio::-webkit-scrollbar {
    width: 4px;
}

.team-bio::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.team-bio::-webkit-scrollbar-thumb {
    background-color: var(--gold);
}

.team-social {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.team-social a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-overlay);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.team-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200, 145, 22, 0.1);
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

/* Clients */
.clients {
    background-color: #0d0d0d;
    /* Slightly different shade */
}

[data-theme="light"] .clients .section-title {
    color: var(--white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
    margin-top: 60px;
}

.client-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) opacity(0.5);
    transition: var(--transition);
    padding: 10px;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s ease;
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .mobile-menu-btn {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 1001;
    }

    .bar {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--white);
        margin-bottom: 5px;
        transition: 0.3s;
    }

    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active::after {
        content: '';
        position: absolute;
        top: 10px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--white);
        transform: rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .mobile-reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        flex-direction: column;
        gap: 40px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}