@font-face {
    font-family: 'Tan Mon Cheri';
    src: url('../fonts/tan-mon-cheri.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-earth);
    margin-bottom: var(--spacing-sm);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-ui);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-earth);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-green);
    transform: translateY(-2px);
}

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

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

/* Header & Nav */
header {
    background-color: transparent;
    /* Default transparent for Home Hero */
    position: fixed;
    /* Change to fixed so it follows scroll */
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding: 1.5rem 0;
}

/* Force background on pages that need it - or rely on page-header background. 
   But we need to ensure content is not hidden. */


header.scrolled,
header.header-solid {
    background-color: var(--color-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

/* Transparent Header State (Default on Home) */
header:not(.header-solid):not(.scrolled) .menu-text {
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    /* Add shadow for better readability */
}

header:not(.header-solid):not(.scrolled) .hamburger span {
    background-color: var(--color-white);
}

header:not(.header-solid):not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
}

/* Make 'Bağış Yap' button white on transparent header */
header:not(.header-solid):not(.scrolled) .nav-controls .btn-primary {
    background-color: var(--color-white);
    color: var(--color-earth);
}

/* Hover state for that button */
header:not(.header-solid):not(.scrolled) .nav-controls .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Language Switcher Default */
.lang-switcher a,
.lang-switcher span {
    color: var(--color-earth);
    transition: color 0.3s ease;
}

/* Language Switcher Transparent Header */
header:not(.header-solid):not(.scrolled) .lang-switcher a,
header:not(.header-solid):not(.scrolled) .lang-switcher span {
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


/* Ensure Logo size consistency */
.nav-logo {
    height: 90px;
    width: auto;
    transition: height 0.3s ease;
}

header.scrolled .nav-logo,
header.header-solid .nav-logo {
    height: 70px;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 1002;
}

.menu-text {
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-earth);
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-earth);
    transition: all 0.3s ease;
}

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateY(-20px);
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

.main-menu-links {
    list-style: none;
    text-align: center;
}

.main-menu-links li {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.main-menu-links a {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-earth);
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease;
    transform: translateY(100%);
    opacity: 0;
}

.fullscreen-menu.active .main-menu-links a {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.main-menu-links li:nth-child(2) a {
    transition-delay: 0.3s;
}

.main-menu-links li:nth-child(3) a {
    transition-delay: 0.4s;
}

.main-menu-links li:nth-child(4) a {
    transition-delay: 0.5s;
}

.main-menu-links li:nth-child(5) a {
    transition-delay: 0.6s;
}

.main-menu-links a:hover {
    color: var(--color-accent);
    transform: translateX(10px) !important;
}

.arrow {
    font-size: 2rem;
    opacity: 0;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.main-menu-links a:hover .arrow {
    opacity: 1;
    margin-left: 20px;
}

.menu-footer {
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease 0.8s;
}

.fullscreen-menu.active .menu-footer {
    opacity: 1;
}

.menu-cta {
    display: flex;
    gap: 1rem;
}

.menu-footer .social-links a {
    font-family: var(--font-ui);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-earth);
}

/* Menu Open State */
body.menu-open {
    overflow: hidden;
}

body.menu-open .hamburger span {
    background-color: var(--color-earth) !important;
}

body.menu-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .hamburger span:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Texture Overlay - Removed */
.texture-overlay {
    display: none;
}

/* Footer Chic */
footer {
    background-color: #6B4E32;
    /* Slightly darker earth tone for better contrast */
    color: var(--color-white);
    padding: 6rem 0 3rem;
    margin-top: var(--spacing-lg);
    font-family: var(--font-ui);
}

.footer-chic-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    letter-spacing: 2px;
}

.footer-brand p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    color: #C0A080;
    /* Soft gold/beige instead of turquoise */
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--color-white);
    opacity: 0.7;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links a:hover {
    opacity: 1;
    color: #C0A080;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links i {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.social-links i:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .nav-logo {
        height: 60px;
    }

    header.scrolled .nav-logo {
        height: 50px;
    }

    .footer-chic-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Page Header (Hero for subpages) - Generic Style */
.page-header {
    background: url('../images/new-banner.png') no-repeat center center/cover;
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    color: var(--color-white);
    margin-bottom: 3rem;
    /* Ensure padding adjustments in subpages are respected or overridden if needed. 
       Note: Individual pages might have inline styles for padding. We should ideally remove those or let this cascade.
       We will prioritize this class rule.
    */
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--color-white);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--color-white);
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.bg-white {
    background-color: var(--color-white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
}

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

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-earth);
    transition: gap 0.3s ease;
}

.link-arrow:hover {
    gap: 0.8rem;
    color: var(--color-accent);
}

/* Hero Section with Video */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--color-white);
    padding: 0;
    /* Override generic padding */
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 400;
    /* Regular weight for decorative font */
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--color-white);
    letter-spacing: 0.02em;
    /* Open up slightly for display font */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
}

.hero-manifesto {
    font-family: 'Tan Mon Cheri', sans-serif;
    /* Use the same display font as header */
    font-size: 1.8rem;
    /* Increased from 1.5rem */
    max-width: 700px;
    margin-bottom: 3rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
}

.btn-outline-hero {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(5px);
}

.btn-outline-hero:hover {
    background-color: var(--color-white) !important;
    color: var(--color-earth) !important;
    border-color: var(--color-white);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem !important;
        /* Reduced further to ensure fit */
        line-height: 1.3;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
}

.text-italic {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
}

.hero-manifesto {
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
}

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

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

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-color: #eee;
}

.project-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-earth);
}

.project-content {
    padding: var(--spacing-md);
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.read-more {
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Intro Section */
.intro-section {
    padding: 8rem 0;
    background-color: var(--color-bg);
}

.intro-heading {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-earth);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.intro-text {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--color-text-light);
    font-weight: 400;
}

.large-link {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
}

/* Parallax Section */
.parallax-section {
    height: 80vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.parallax-title {
    font-size: 5rem;
    color: var(--color-white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

/* Project Grid Large */
.project-grid-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    position: relative;
    cursor: pointer;
}

.project-img-wrapper {
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    background-color: #f0f0f0;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-item:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-item.large .project-img-wrapper,
.project-column .project-img-wrapper {
    height: auto;
    aspect-ratio: 3/2;
}

.project-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-info h3 {
    font-family: 'Tan Mon Cheri', serif;
    /* Explicitly use the display font */
    font-size: 2rem;
    font-weight: 400;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.project-item:hover .project-info h3 {
    color: var(--color-accent);
}

.category {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
}

/* Row Layout (Text + List) */
.row-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.list-item:hover {
    padding-left: 1rem;
    border-color: var(--color-earth);
}

.list-item .date {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--color-accent);
    width: 100px;
}

.list-item .title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    flex: 1;
}

.list-item .arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.list-item:hover .arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
/* Responsive Design */
@media (max-width: 900px) {
    .project-grid-large {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-item.large .project-img-wrapper {
        height: 500px;
    }

    .row-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {

    /* Header */
    .desktop-only {
        display: none !important;
    }

    .logo img {
        height: 40px !important;
    }

    /* Hero */
    .hero-title {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .hero-manifesto {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    /* Typography */
    .intro-heading {
        font-size: 2.2rem;
    }

    .intro-text {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    /* Sections */
    .section {
        padding: var(--spacing-lg) 0;
    }

    .parallax-section {
        height: 50vh;
        background-attachment: scroll;
        /* Better for mobile performance */
    }

    /* Project Grid */
    .project-item.large .project-img-wrapper {
        height: 400px;
    }

    .project-column .project-img-wrapper {
        height: 250px;
    }

    /* Lists */
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .list-item .date {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .list-item .title {
        font-size: 1.3rem;
    }

    .list-item .arrow {
        display: none;
        /* Hide hover arrow on mobile */
    }

    /* Page Header */
    .page-header {
        padding: 140px 0 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .project-item.large .project-img-wrapper {
        height: 300px;
    }
}

/* Principles Grid & Cards */
/* Principles Grid & Cards - Modern Chic Redesign */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    /* More breathing room */
    margin-top: 4rem;
}

.principle-card {
    background: transparent;
    padding: 2rem;
    border: 1px solid rgba(160, 82, 45, 0.2);
    /* Subtle Terracotta border */
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    gap: 1.5rem;
    align-items: center;
    /* Center everything */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.principle-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(160, 82, 45, 0.1);
    border-color: rgba(160, 82, 45, 0.5);
}

.icon-box {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: transparent;
    /* Remove heavy circle */
    border: 1px solid rgba(160, 82, 45, 0.3);
    /* Thin elegant circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A0522D;
    transition: all 0.4s ease;
    margin-bottom: 0.5rem;
}

.principle-card:hover .icon-box {
    background: #A0522D;
    color: #fff;
    transform: scale(1.1);
}

.icon-box i,
.icon-box svg {
    width: 32px;
    height: 32px;
}

/* Hero Buttons */
.hero-buttons .btn {
    min-width: 160px;
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-earth);
    border: none;
}

.btn-white:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Fix Footer & Content Layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

footer {
    position: relative;
    z-index: 10;
    margin-top: auto;
    /* Push to bottom if content short */
}

/* Ensure Project Detail doesn't overlap footer */
.project-detail-grid {
    margin-bottom: 4rem;
}

/* Project Detail Hero Fix */
.project-hero {
    width: 100% !important;
    height: 50vh !important;
    min-height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 4rem !important;
    position: relative !important;
    margin-top: -90px !important;
    /* Pull behind header */
    padding-top: 90px !important;
    background-size: cover !important;
    background-position: center !important;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Ensure readability */
    z-index: 0;
}

.project-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
}

.project-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #ae8b5d;
    /* earth color */
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.project-hero h1 {
    color: #fff !important;
    font-size: 3.5rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Carousel Styles */
.projects-carousel {
    width: 100%;
    overflow: hidden;
    /* Hide scrollbar for cleaner look, nav buttons used */
}

.projects-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    scroll-behavior: smooth;
}

.projects-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.project-slide {
    min-width: 350px;
    width: 400px;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.slide-image {
    height: 300px;
    overflow: hidden;
}

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

.project-slide:hover .slide-image img {
    transform: scale(1.05);
}

.slide-content {
    padding: 1.5rem;
}

.slide-content h3 {
    margin-top: 0.5rem;
    color: var(--color-earth);
    font-size: 1.5rem;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-earth);
    background: transparent;
    color: var(--color-earth);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--color-earth);
    color: #fff;
}

@media (max-width: 768px) {
    .project-slide {
        min-width: 280px;
        width: 80%;
    }
}

/* Mobile Fixes Audit - Updated */

/* 1. Carousel Navigation Fix */
@media (max-width: 768px) {
    .carousel-nav {
        display: none !important;
        /* Hide standard nav on mobile, use swipe */
    }

    .projects-track {
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scroll-snap-type: x mandatory;
    }

    .project-slide {
        width: 85vw;
        /* Slightly smaller than full width to show next item peeking */
        min-width: 85vw;
    }
}

/* 2. Project Detail Metadata Stack */
@media (max-width: 600px) {
    .project-meta-strip {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center;
    }

    .project-card-chic {
        padding: 2rem 1.5rem !important;
        margin-top: -60px !important;
    }

    .project-hero-chic {
        height: 50vh !important;
    }

    .project-header-chic h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
}

/* 3. Donate Page Button Stack */
@media (max-width: 600px) {
    .pdf-container div[style*="display: flex"] {
        flex-direction: column !important;
        width: 100% !important;
    }

    .pdf-container .btn {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
}

/* Mobile Menu Fixes */
@media (max-width: 768px) {
    .menu-container {
        padding: 1.5rem;
        max-width: 100%;
    }

    .main-menu-links li {
        margin-bottom: 0.8rem;
    }

    .main-menu-links a {
        font-size: 2.2rem !important;
        /* Force smaller size */
    }

    .arrow {
        display: none;
        /* Hide arrow on mobile to save space */
    }

    .menu-footer {
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
        padding-top: 2rem;
        align-items: center;
    }

    .menu-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .menu-cta .btn {
        width: 100%;
    }

    .menu-footer .social-links {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 1.5rem !important;
        width: 100%;
    }

    .menu-footer .social-links a {
        font-size: 0.8rem !important;
    }
}

/* --- Mobile Fixes for Home Page Sections --- */
@media (max-width: 768px) {

    /* 1. Force Grid to Stack (Override inline styles) */
    .project-grid-large {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-top: 0 !important;
    }

    /* 2. Reset Widths and Paddings */
    .content-col,
    .project-img-wrapper {
        width: 100% !important;
        padding: 0 !important;
        order: initial !important;
        /* Reset specific ordering */
    }

    /* 3. Adjust Image Heights */
    .project-img-wrapper {
        height: auto !important;
        min-height: 250px;
        /* Ensure visibility */
        margin-bottom: 2rem;
    }

    /* Ensure images fit */
    .project-img-wrapper img {
        height: auto !important;
        min-height: 250px;
        object-fit: cover !important;
    }

    /* 4. Fix Huge Headings (Override inline font-size) */
    h2[style*="font-size"] {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h3[style*="font-size"] {
        font-size: 1.4rem !important;
    }

    /* 5. Fix Social Media Icons in Invite Section */
    .cta-socials {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }

    .cta-socials a {
        width: 100%;
        justify-content: center;
        background: rgba(0, 0, 0, 0.03);
        padding: 12px;
        border-radius: 50px;
        /* Pill shape for better mobile touch */
    }

    /* 6. General Paragraph Reset */
    .content-col p {
        font-size: 1rem !important;
    }
}

/* Scroll Animation Classes */
/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.scroll-animate.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.scroll-delay-1 {
    transition-delay: 0.1s;
}

.scroll-delay-2 {
    transition-delay: 0.2s;
}

.scroll-delay-3 {
    transition-delay: 0.3s;
}

.scroll-delay-4 {
    transition-delay: 0.4s;
}

/* Scale Up Animation for Cards */
.scale-animate {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.scale-animate.visible {
    opacity: 1 !important;
    transform: scale(1) !important;
}