:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --text-light: #555555;
    --accent-color: #000000;
    --gray-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

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

.logo {
    font-family: 'Mrs Saint Delafield', cursive;
    /* Fallback or specific handwriting font if imported, using Serif for now */
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.active-link {
    color: var(--accent-color) !important;
    font-weight: 600 !important;
}

/* Main Hero (Home) */
/* Main Hero (Home) */
.home-hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* offset for fixed navbar */
    position: relative;
    /* Removed text-align center from here, moved to content */
}

.hero-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-content {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.hero-more-wrapper {
    text-align: right;
    margin-top: 4rem;
    padding-right: 1rem;
}

.more-about-link {
    font-size: 0.95rem;
    color: #666;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.more-about-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.more-about-link .arrow {
    transition: transform 0.3s ease;
}

.more-about-link:hover .arrow {
    transform: translateX(4px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    /* Large impact */
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-body);
}

/* About Section (Standalone Page) */
.about-section {
    padding: 8rem 0 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.about-text strong {
    color: var(--text-color);
    font-weight: 600;
}

.about-sub {
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.profile-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
    /* Slightly rounded, or remove for sharp edges */
    object-fit: cover;
    /* Optional: Fade mask at bottom like in image */
    /* mask-image removed for cutout */
}

/* Section Headings */
.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 4rem;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-color: #ddd;
}

/* Work Grid */
.work-section {
    padding: 5rem 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.work-card-link {
    display: block;
    color: inherit;
}

.work-card {
    background: var(--bg-color);
    cursor: pointer;
    transition: var(--transition);
}

.work-image {
    width: 100%;
    height: 350px;
    background-color: #f0f0f0;
    /* Placeholder gray */
    margin-bottom: 1rem;
    border-radius: 4px;
    background-image: linear-gradient(45deg, #f0f0f0 25%, #e6e6e6 25%, #e6e6e6 50%, #f0f0f0 50%, #f0f0f0 75%, #e6e6e6 75%, #e6e6e6 100%);
    background-size: 20px 20px;
}

.work-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.work-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.arrow-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.work-card:hover .arrow-icon {
    transform: translate(3px, -3px);
}

/* Testimonial Section */
.testimonial-section {
    padding: 5rem 0;
    background-color: #fafafa;
    /* Very light subtle background */
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.testimonial-card {
    padding: 2rem;
    background: var(--bg-color);
    border: 1px solid transparent;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* Service Section */
.service-section {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

.services-list-accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.service-accord-item {
    border-bottom: 1px solid var(--border-color);
}

.service-accord-item:first-child {
    border-top: 1px solid var(--border-color);
}

/* Header Area (Always visible) */
.service-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    cursor: pointer;
    transition: var(--transition);
}

.service-head h3 {
    font-size: 26px;
    /* Large text like in image */
    font-weight: 500;
    color: #424242;
}

.accord-icon {
    font-size: 1rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.service-head:hover {
    padding-left: 10px;
    /* Subtle hover interaction */
}

/* Expanded State for Item */
/* Expanded State for Item */
.service-accord-item.expanded {
    border: none;
    border-bottom: 1px solid var(--border-color);
    /* Maintain divider */
    margin: 0;
    box-shadow: none;
    background: transparent;
    position: relative;
    overflow: visible;
}

/* When expanded, hide the top border of next item if adjacent? */
.service-accord-item.expanded+.service-accord-item {
    border-top: none;
}

/* Adjust header when expanded */
.service-accord-item.expanded .service-head {
    padding-bottom: 1rem;
    cursor: pointer;
}

/* Remove hover movement */
.service-accord-item.expanded .service-head:hover {
    padding-left: 0;
}

/* Hide plus icon */
.service-accord-item.expanded .accord-icon {
    display: none;
}

/* Accordion Body */
.service-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease;
    opacity: 0;
}

.service-accord-item.expanded .service-body {
    max-height: 1000px;
    opacity: 1;
    overflow: visible;
}

/* Internal Content Layout */
.service-content {
    padding: 0 0 3rem 0;
    position: relative;
    display: flex;
    gap: 4rem;
}

/* Close Button Positioned manually as per image */
.close-service {
    position: absolute;
    top: -75px;
    /* Move up into the header area visually */
    right: 0;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ccc;
    padding: 10px;
    z-index: 10;
    pointer-events: auto;
    transition: color 0.3s;
}

.close-service:hover {
    color: #000;
}


/* Layout for Text and Tags */
.service-text-col {
    flex: 1;
    max-width: 45%;
}

.service-tags-col {
    flex: 1;
    display: flex;
    gap: 2rem;
}

.service-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.service-tags-col ul {
    flex: 1;
}

.service-tags-col li {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .service-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1.5rem 2rem 1.5rem;
    }

    .service-accord-item.expanded .service-head {
        padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    }

    .close-service {
        right: 1.5rem;
    }

    .service-text-col {
        max-width: 100%;
    }
}

/* Footer */
.footer {
    background-color: #000;
    color: #fff;
    padding: 6rem 0 3rem;
    text-align: center;
}

.footer-cta-link {
    text-decoration: none;
    color: #fff;
    display: inline-block;
}

.footer-cta {
    font-family: var(--font-body);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-cta-link:hover .footer-cta {
    transform: scale(1.05);
    /* Subtle grow */
    color: #dedede;
    /* Slight dim or maybe accent color? Keeping it simple white-ish */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.footer-email {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 4rem;
    display: inline-block;
}

.footer-email:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

/* --- Project Detail Page Styles --- */

.project-hero {
    padding: 8rem 0 4rem;
}

.project-header {
    margin-bottom: 4rem;
    max-width: 900px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.project-meta {
    display: flex;
    gap: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1rem;
    font-weight: 500;
}

.project-banner {
    width: 100%;
    margin-bottom: 5rem;
}

.banner-img,
.feature-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Content Layout */
.project-content {
    padding-bottom: 6rem;
}

.content-container {
    max-width: 800px;
    /* Narrower for reading */
}

.content-block {
    margin-bottom: 5rem;
}

.content-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.content-subheading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Full width visual blocks */
.full-width-block {
    margin: 6rem 0;
}

.feature-item {
    margin-bottom: 6rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 100%;
}

.feature-image-wrapper {
    background-color: var(--gray-bg);
    padding: 2rem;
    border-radius: 8px;
}

.project-nav {
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.back-link {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-image-wrapper {
        justify-content: center;
        order: -1;
    }

    .about-text {
        margin-left: auto;
        margin-right: auto;
    }

    .work-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .project-title {
        font-size: 3rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1.5rem;
    }

    .feature-image-wrapper {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple hide for now, script should toggle */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px;
        background-color: var(--text-color);
    }

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

    .footer-cta {
        font-size: 2rem;
    }
}