/*
NGO Website Stylesheet
File: /css/style.css

Contents:
1.  :root (Design System: Colors, Fonts)
2.  Global Styles (Reset, Typography, Layout)
3.  Utility Classes (Buttons, Containers)
4.  Header & Navigation (Sticky Nav, Mobile Menu)
5.  Hero Section (Carousel)
6.  About Section
7.  Team Section
8.  Projects Section
9.  Contact Section
10. Footer
11. Page-Specific Styles (Team & Projects pages)
12. Animations (Fade-in on Scroll)
13. Image Modal (Lightbox)
14. Responsive Design (Media Queries)
15. Objectives Page Styles (NEW)
*/

/* ======== 1. :root (Design System) ======== */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Colors */
    --color-bg: #FDFBF5;         /* Off-White */
    --color-text: #4E443A;       /* Clay Brown */
    --color-primary: #5a7d5a;    /* Moss Green */
    --color-secondary: #EAE0D5;  /* Warm Beige */
    --color-accent: #c97b63;     /* Terra Cotta */
    --color-white: #ffffff;
    --color-black: #000000;

    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Open Sans', sans-serif;

    /* Layout */
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --nav-height: 70px;
}

/* ======== 2. Global Styles ======== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}
/* 3. Class to prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; color: var(--color-text); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ======== 3. Utility Classes ======== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* General Section Styling */
section {
    padding: 6rem 0;
}

/* Alternate light beige background for sections */
.team-section, .contact-section, .bg-light {
    background-color: var(--color-secondary);
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
    font-size: 1.1rem;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #4a694a; /* Darker green */
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ======== 4. Header & Navigation ======== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Scrolled state for navbar (added via JS) */
.navbar.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* 1. Navbar Logo Styling */
.navbar .logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.4rem; /* Slightly smaller to fit logo */
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none; /* Ensure link has no underline */
}

.navbar .logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Make placeholder round */
    object-fit: cover;
}

.navbar .logo-text {
    line-height: 1;
}

/* On transparent hero, make logo text match nav links */
.navbar:not(.scrolled) .logo-container {
    color: var(--color-primary); /* Match nav links */
}
/* This rule is now for the text */
.navbar:not(.scrolled) .logo-text {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}


.navbar .nav-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar .nav-links li {
    margin-left: 2rem;
}

.navbar .nav-links a {
    font-weight: 600;
    color: var(--color-text);
    padding: 0.5rem 0;
    position: relative;
}

/* On transparent hero, make links match new logo color */
.navbar:not(.scrolled) .nav-links a {
    color: var(--color-primary);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.navbar .nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.navbar:not(.scrolled) .mobile-menu-toggle span {
    background-color: var(--color-primary); /* Match links */
}

/* ======== 5. Hero Section (Carousel) ======== */
.hero-section {
    height: 80vh;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for readability */
    display: flex;
    align-items: center;
    z-index: 3;
}

.hero-overlay .container {
    max-width: 800px;
    text-align: center;
    color: var(--color-white);
}

.hero-overlay h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-overlay .btn-primary {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-color: var(--color-white);
    background: transparent;
}

.hero-overlay .btn-primary:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* 4. Carousel Controls Styling */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5; /* Sit on top of the slides */
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 1rem 0.75rem;
    line-height: 1;
    transition: background 0.3s ease;
    border-radius: var(--border-radius);
    font-family: serif; /* Gives the arrows a nice shape */
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-control.prev {
    left: 1.5rem;
}

.carousel-control.next {
    right: 1.5rem;
}
/* End of new block */

/* ======== 6. About Section (Narrative) ======== */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Logo/Image on left, text on right */
    gap: 4rem;
    align-items: center;
}

.about-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--color-secondary);
    box-shadow: var(--shadow);
}

.about-image img { 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow); 
    width: 100%; 
    height: auto; 
}

.about-content {
    text-align: left;
}

.about-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.about-highlight {
    border-left: 4px solid var(--color-accent);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--color-primary);
    font-weight: 600;
    margin: 2rem 0;
}

.mission-vision-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.mission, .vision {
    flex: 1;
    min-width: 280px;
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* ======== 7. Objectives Section (General / Index) ======== */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.objective-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--color-primary);
    transition: transform 0.3s ease;
}

.objective-card:hover {
    transform: translateY(-5px);
}

.objective-card p {
    margin: 0;
    font-size: 1rem;
}

/* ======== 8. Team Section ======== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.team-member {
    text-align: center;
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.team-member img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover; /* This "zooms" the image to fill the circle */
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--color-secondary);
}

.team-member h4 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.team-member p {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0;
}

/* ======== 9. Projects/Activities Section ======== */
/* Main Projects Page Grid - 2 columns on desktop */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
    gap: 2rem;
}

.project-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden; /* To contain the image's rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* This "zooms" the image */
}

.project-card .card-content {
    padding: 1.5rem;
}

.project-card .card-content h4 {
    margin-bottom: 0.5rem;
}

.project-card .card-content p {
    margin-bottom: 0;
}

/* Detailed Card (Projects Page) */
.project-card-detailed {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 3rem;
    /* Ensure it fits in grid */
    width: 100%;
}

.project-card-detailed .main-project-image {
    width: 100%;
    height: 300px; /* Adjusted height for 2-col layout */
    object-fit: cover; /* This "zooms" the image */
    cursor: pointer;
}

.project-card-detailed .card-content {
    padding: 1.5rem;
}

.project-card-detailed .card-content h4 {
    margin-bottom: 1rem;
}

.project-card-detailed .card-content p {
    margin-bottom: 1rem;
}

.project-card-detailed .card-content h5 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.project-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.project-thumbnail {
    width: 100px;
    height: 80px;
    object-fit: cover; /* This "zooms" the image */
    border-radius: var(--border-radius);
    border: 2px solid var(--color-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}


/* ======== 10. Donation Section (New) ======== */
.donate-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.why-donate-content h3 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.bank-details-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--color-primary);
}

.bank-table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}

.bank-table td {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.bank-table td:first-child {
    font-weight: 600;
    color: var(--color-text);
    width: 40%;
}

.qr-container {
    text-align: center;
}

.qr-container img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 1px solid #ccc;
    padding: 10px;
}

/* ======== 11. Contact Section ======== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.map-container {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-container iframe {
    border-radius: var(--border-radius);
    border: 0;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    background-color: var(--color-bg);
    margin-bottom: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(90, 125, 90, 0.5);
}

.contact-form .btn-primary {
    width: 100%;
    font-size: 1.1rem;
}

/* ======== 12. Footer ======== */
.footer {
    background-color: var(--color-text);
    color: var(--color-secondary);
    padding: 3rem 0;
    text-align: center;
}

/* 2. Footer Social Styling */
.footer .container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-social {
    text-align: center;
}

.footer-social h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-white);
}

.social-links a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}


.footer p {
    margin: 0;
    font-size: 0.9rem;
}

.footer a {
    color: var(--color-white);
    font-weight: 600;
}

.footer a:hover {
    color: var(--color-accent);
}

/* ======== 11. Page-Specific Styles ======== */
.team-page-section,
.projects-page-section,
.objectives-page-section { /* Added objectives-page-section */
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 80vh;
}

/* Make grid 3 columns on full team page */
.full-team-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Full Projects Grid handled by general .projects-grid above */

/* ======== 12. Animations ======== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======== 13. Image Modal (Lightbox) ======== */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    height: auto;
    max-height: 85vh;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-prev,
.modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 3rem;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    font-family: serif;
}

.modal-prev {
    left: 1rem;
}
.modal-next {
    right: 1rem;
}

.modal-prev:hover,
.modal-next:hover,
.modal-close:hover {
    color: #bbb;
}

/* ======== 15. Objectives Page Styles (NEW) ======== */

/* Design 1: Visual / Zig-Zag */
.objectives-visual-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.objectives-visual-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Alternating Rows */
.objectives-visual-row:nth-child(even) {
    flex-direction: row-reverse;
}

.objectives-visual-row img {
    width: 40%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.objectives-visual-content {
    width: 60%;
}

.objectives-visual-content h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Design 2: Text-Focused Grid */
.objectives-text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.objective-text-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--color-accent); /* Top border accent */
    transition: transform 0.3s ease;
}

.objective-text-card:hover {
    transform: translateY(-5px);
}

.objective-text-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.objective-text-card p {
    margin-bottom: 0;
    color: var(--color-text);
}


/* ======== 14. Responsive Design ======== */

/* Tablet & Smaller Desktop */
@media (max-width: 992px) {
    .about-wrapper, .donate-wrapper, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* Switch back to 1 column for projects on smaller screens */
    .projects-grid {
        grid-template-columns: 1fr; 
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .full-team-grid {
        grid-template-columns: 1fr;
    }

    /* About Us section on tablet */
    .about-wrapper {
        grid-template-columns: 1fr; /* Stack logo on top of text */
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 3rem;
    }
    .about-logo-img {
        width: 150px;
        height: 150px;
    }
    
    /* Objectives Page Tablet */
    .objectives-visual-row, 
    .objectives-visual-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
    
    .objectives-visual-row img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
    
    .objectives-visual-content {
        width: 100%;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    
    section {
        padding: 4rem 0;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: block;
        z-index: 101;
    }

    .navbar .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        display: flex; /* Added display:flex */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .navbar .nav-links.active {
        transform: translateX(0);
    }

    .navbar .nav-links ul {
        flex-direction: column;
        text-align: center;
    }

    .navbar .nav-links li {
        margin: 1.5rem 0;
    }

    .navbar .nav-links a {
        font-size: 1.5rem;
        color: var(--color-primary); /* Always use dark color on mobile menu */
    }

    /* Fix logo color on mobile when menu is open */
    .navbar .logo-container {
        font-size: 1.3rem; /* Smaller text on mobile */
        gap: 0.5rem;
        z-index: 100; /* Ensure it's above mobile menu */
    }

    .navbar .logo-img {
        width: 32px;
        height: 32px;
    }

    /* Fix logo color on mobile when menu is open */
    .nav-open .navbar:not(.scrolled) .logo-container {
        color: var(--color-primary);
    }
    .nav-open .navbar:not(.scrolled) .logo-img {
       /* No change needed */
    }
    .nav-open .navbar:not(.scrolled) .logo-text {
        text-shadow: none;
    }


    /* Hamburger Animation (X) */
    .nav-open .mobile-menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav-open .mobile-menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    .nav-open .mobile-menu-toggle span {
        background-color: var(--color-text);
    }


    /* Section Layouts */
    .mission-vision-wrapper {
        flex-direction: column;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .full-team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        padding: 2rem;
    }

    /* Footer on mobile */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Carousel controls on mobile */
    .carousel-control {
        font-size: 1.8rem;
        padding: 0.75rem 0.5rem;
    }
    .carousel-control.prev {
        left: 0.5rem;
    }
    .carousel-control.next {
        right: 0.5rem;
    }

    /* Detailed project card on mobile */
    .project-card-detailed .main-project-image {
        height: 250px;
    }
    .project-card-detailed .card-content {
        padding: 1.5rem;
    }
    .project-thumbnail {
        width: 100px;
        height: 75px;
    }

    /* Modal on mobile */
    .modal-content {
        max-width: 95%;
    }
    .modal-prev, .modal-next {
        font-size: 2rem;
        padding: 10px;
    }
    .modal-prev { left: 0.5rem; }
    .modal-next { right: 0.5rem; }
}