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

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    color: #1a1a1a;
    line-height: 1.6;
}

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

/* Header / Navigation */
.site-header {
    background-color: white;
    border-bottom: 1px solid #dddddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: #1a1a1a;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Hero / Page Headers */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 24px 70px 24px;
}

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

.eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666666;
    margin: 0 auto 12px auto;
}

.hero h1,
.page-header h1,
.page-intro h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.08rem;
    color: #4a4a4a;
    max-width: 760px;
}

.page-intro,
.page-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 20px 24px;
    text-align: center;
}

.page-header p,
.page-intro p {
    font-size: 1.08rem;
    color: #4a4a4a;
    max-width: 760px;
    margin: 0 auto;
}

/* Buttons */
.hero-buttons {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.primary-button {
    background-color: #1a1a1a;
    color: white;
}

.secondary-button {
    background-color: #eaeaea;
    color: #1a1a1a;
}

/* General Sections */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 24px;
}

.section-alt {
    background-color: #efefef;
    max-width: none;
    padding: 70px 24px;
}

.section-alt .two-column,
.section-alt .section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-header.left-align {
    text-align: left;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-header p {
    color: #555555;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Generic Grid Cards */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-content {
    padding: 24px;
}

.card h2,
.card h3 {
    margin-bottom: 12px;
}

.card p {
    color: #555555;
}

.card-image-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Clickable Card Links */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-link:hover .card {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Creative Hub Banner */
.hero-image-section {
    width: 100%;
    background-color: #eaeaea;
}

.hero-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    object-position: center bottom;
}

/* Main Project Cards */
.project-list {
    display: grid;
    gap: 24px;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-link:hover .project-card {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.project-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    min-height: 240px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.project-info {
    padding: 24px;
}

.project-info h3 {
    margin-bottom: 10px;
}

/* Status Tags */
.status-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.in-progress {
    background-color: #fff1c7;
}

.completed {
    background-color: #dff5df;
}

.paused {
    background-color: #ebebeb;
}

/* Smaller Foundation Cards */
.small-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.foundation-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.small-card-content {
    padding: 20px 24px 24px 24px;
    flex-grow: 1;
}

.small-card-content h3 {
    margin-bottom: 12px;
}

.small-card-content p {
    color: #555555;
}

/* Gallery Pages */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.gallery-item {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    padding: 24px;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    width: min(96vw, 1800px);
    max-width: 1800px;
    height: min(92vh, 1100px);
    max-height: 92vh;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.6fr);
}

.modal-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    background-color: #111111;
}

.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    background-color: #111111;
    overflow: hidden;
}

.modal-text {
    padding: 32px;
    overflow-y: auto;
}

.modal-text h2 {
    margin-bottom: 14px;
    font-size: 1.8rem;
}

.modal-text p {
    color: #555555;
    line-height: 1.7;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.85);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.theme-toggle {
    border: 1px solid #d0d0d0;
    background-color: white;
    color: #1a1a1a;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    background-color: #f0f0f0;
}

@media (max-width: 800px) {
    .hero h1,
    .page-header h1,
    .page-intro h1 {
        font-size: 2.2rem;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-image-large {
        height: 220px;
    }

    .modal-content {
    grid-template-columns: 1fr;
    width: 95vw;
    height: 90vh;
    max-height: 90vh;
    }

    .modal-image-container {
        min-height: 0;
        max-height: 58vh;
    }

    .modal-image {
        width: 100%;
        height: 100%;
        max-height: 58vh;
        object-fit: contain;
    }

    .modal-text {
        padding: 24px;
    }

    .navbar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .nav-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nav-links a {
        margin-left: 0;
        margin-right: 16px;
    }
}

html.dark-mode body {
    background-color: #121212;
    color: #f3f3f3;
}

html.dark-mode .site-header {
    background-color: #1b1b1b;
    border-bottom: 1px solid #2d2d2d;
}

html.dark-mode .logo,
html.dark-mode .nav-links a {
    color: #f3f3f3;
}

html.dark-mode .nav-links a:hover {
    color: #ffffff;
}

html.dark-mode .theme-toggle {
    background-color: #2a2a2a;
    color: #f3f3f3;
    border-color: #3a3a3a;
}

html.dark-mode .theme-toggle:hover {
    background-color: #353535;
}

html.dark-mode .card,
html.dark-mode .project-card,
html.dark-mode .modal-content {
    background-color: #1e1e1e;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

html.dark-mode .card p,
html.dark-mode .project-info p,
html.dark-mode .small-card-content p,
html.dark-mode .section-header p,
html.dark-mode .modal-text p,
html.dark-mode .hero-text,
html.dark-mode .page-header p,
html.dark-mode .page-intro p {
    color: #c8c8c8;
}

html.dark-mode .eyebrow {
    color: #b0b0b0;
}

html.dark-mode .section-alt {
    background-color: #181818;
}

html.dark-mode .secondary-button {
    background-color: #2a2a2a;
    color: #f3f3f3;
}

html.dark-mode .primary-button {
    background-color: #f3f3f3;
    color: #121212;
}

html.dark-mode .hero-image-section {
    background-color: #1b1b1b;
}

html.dark-mode .modal-image {
    background-color: #1b1b1b;
}
html.dark-mode .project-info .status-tag {
    color: #ffffff;
}

html.dark-mode .project-info .in-progress {
    background-color: #8a6b00;
}

html.dark-mode .project-info .completed {
    background-color: #1f6b3b;
}

html.dark-mode .project-info .paused {
    background-color: #5a5a5a;
}

.project-hero-image {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.feature-image {
    width: 100%;
    display: block;
    border-radius: 18px;
}

.inline-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.inline-image-grid .feature-image {
    height: 260px;
    object-fit: cover;
}

.testimonial-list {
    display: grid;
    gap: 24px;
}

.testimonial-card {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.testimonial-card h3 {
    margin-bottom: 12px;
}

.testimonial-card p {
    color: #555555;
}

html.dark-mode .testimonial-card {
    background-color: #1e1e1e;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

html.dark-mode .testimonial-card p {
    color: #c8c8c8;
}

@media (max-width: 800px) {
    .inline-image-grid {
        grid-template-columns: 1fr;
    }

    .inline-image-grid .feature-image {
        height: 220px;
    }
}