/* =========================
   1. Variables
========================= */

:root {
    --bg-color: #fff9e8;
    --text-color: #29261f;
    --accent-color: #c1272d;
    --selection-color: #c1272c70;
    --heading-color: #524036;
    --muted-color: #666666;
    --border-color: rgba(82, 64, 54, 0.18);
    --transition: 0.3s ease;
    --container-width: 1440px;
    --container-padding: 32px;
}


/* =========================
   2. Reset / Base
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Urbanist", sans-serif;
    cursor: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    color: var(--bg-color);
    background: var(--selection-color);
}


/* =========================
   3. Shared Layout
========================= */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.section-spacing {
    padding-top: 20rem;
}


/* =========================
   4. Custom Cursor
========================= */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-family: "Urbanist", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor.slider-hover {
    width: 100px;
    height: 100px;
    background-color: rgba(183, 183, 183, 0.7);
    font-size: 14px;
}


/* =========================
   5. Site Header / Navigation
========================= */

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 1.5rem 3rem 0 3rem;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    width: 180px;
    height: auto;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: auto;
    padding-top: 0.5rem;
}

.site-nav-links a {
    font-family: "Urbanist", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    transition: opacity 0.3s ease;
}

.site-nav-links a:hover {
    opacity: 0.6;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* =========================
   6. Homepage Hero
========================= */

.hero-content {
    padding-top: 16rem;
    padding-left: 3rem;
}

.hero-title {
    font-family: "Urbanist", sans-serif;
    font-size: 70px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-color);
}

.hero-title span {
    color: var(--accent-color);
}


/* =========================
   7. Homepage Showreel
========================= */

.showreel {
    width: 100%;
    margin-top: 20rem;
    overflow: hidden;
}

.showreel-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.showreel-frame {
    width: 100%;
    overflow: hidden;
    transition: width 0.2s linear;
}

.showreel-frame video {
    width: 100%;
    height: auto;
}


/* =========================
   8. Homepage About
========================= */


/* .about-section {
    padding-top: 20rem;
} */

.about-text {
    font-family: "Urbanist", sans-serif;
    font-size: clamp(2.5rem, 3vw, 5rem);
    font-weight: 500;
    line-height: 1.05;
    color: var(--text-color);
    max-width: 1100px;
}


/* =========================
   9. Shared Section Heading
========================= */

.section-heading h1,
.section-heading h2 {
    font-family: "Urbanist", sans-serif;
    font-size: clamp(2.5rem, 3vw, 5rem);
    font-weight: 500;
    line-height: 1.05;
    color: var(--text-color);
    max-width: 1100px;
}




/* =========================
   10. Homepage Featured Projects
========================= */

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    margin-top: 42px;
    align-items: start;
}

.featured-project-card {
    min-width: 0;
}

.featured-project-link {
    display: block;
}

.featured-project-image-wrap {
    aspect-ratio: 1 / 0.82;
    overflow: hidden;
    background: #e3ded6;
}

.featured-project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-top: 14px;
}

.featured-project-title,
.featured-project-category {
    font-family: "Urbanist", sans-serif;
    font-weight: 500;
}

.featured-project-title {
    font-size: 1rem;
}

.featured-project-category {
    flex-shrink: 0;
    font-size: 0.94rem;
    color: var(--muted-color);
    text-align: right;
}

.featured-project-card--cta .featured-project-link--cta {
    height: 100%;
}

.featured-project-cta-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 0.82;
    min-height: 100%;
    padding: 40px 32px;
}

.featured-project-cta-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: "Urbanist", sans-serif;
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
    font-weight: 500;
    line-height: 1.15;
    /* text-transform: uppercase; */
    color: #c1272d;
}


/* =========================
   11. Homepage Contact Preview
========================= */


/* .contact-preview {
    padding-top: 6rem;
    padding-bottom: 10rem;
} */

.contact-preview-content {
    max-width: 1100px;
}

.contact-preview-title {
    font-family: "Urbanist", sans-serif;
    font-size: clamp(2.5rem, 3vw, 5rem);
    font-weight: 500;
    line-height: 1.05;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

.contact-preview-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: unset;
    padding: 1rem 1.8rem;
    border: 2px solid rgba(193, 39, 45, 0.18);
    border-radius: 999px;
    font-family: "Urbanist", sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: var(--text-color);
    background: transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.contact-preview-button:hover {
    transform: translateY(-2px);
    border-color: rgba(193, 39, 45, 0.35);
    opacity: 0.9;
}


/* =========================
   12. Projects Overview Page
========================= */

.projects-overview {
    min-height: 100vh;
    padding: 120px 0 100px;
}

.projects-overview-intro {
    margin-bottom: 52px;
}

.projects-overview-heading h1 {
    font-family: "Urbanist", sans-serif;
    font-size: clamp(2.5rem, 3vw, 5rem);
    font-weight: 500;
    line-height: 1.05;
    color: var(--text-color);
    max-width: 1100px;
}

.projects-overview-list {
    display: flex;
    flex-direction: column;
}

.projects-overview-item {
    border-top: 1px solid var(--border-color);
}

.projects-overview-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.projects-overview-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 0;
    transition: opacity var(--transition);
}

.projects-overview-main {
    flex: 1;
    min-width: 0;
}

.projects-overview-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.projects-overview-title,
.projects-overview-category {
    font-family: "Urbanist", sans-serif;
    font-weight: 500;
}

.projects-overview-title {
    font-size: 1.08rem;
    line-height: 1.4;
    color: var(--text-color);
    transition: transform var(--transition), color var(--transition);
}

.projects-overview-category {
    font-size: 0.94rem;
    line-height: 1.4;
    color: rgba(24, 24, 24, 0.72);
    text-align: right;
    transition: color var(--transition);
}

.projects-overview-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    color: var(--heading-color);
    opacity: 0.7;
    transform: translateX(0);
    transition: transform var(--transition), opacity var(--transition);
}

.projects-overview-link:hover .projects-overview-title,
.projects-overview-link:focus-visible .projects-overview-title {
    transform: translateX(6px);
    color: var(--heading-color);
}

.projects-overview-link:hover .projects-overview-category,
.projects-overview-link:focus-visible .projects-overview-category {
    color: var(--text-color);
}

.projects-overview-link:hover .projects-overview-arrow,
.projects-overview-link:focus-visible .projects-overview-arrow {
    transform: translateX(4px);
    opacity: 1;
}


/* =========================
   13. Back To Top Button
========================= */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10;
    display: none;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: var(--accent-color);
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.back-to-top.show {
    display: block;
}

.projects-overview .container {
    max-width: none;
    width: 100%;
    padding-inline: 3rem;
}


/* =========================
   15. Contact Page
========================= */

.contact-page {
    padding: 4rem 0 6rem;
}

.contact-page .container {
    max-width: none;
    width: 100%;
    padding-inline: 3rem;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.1fr;
    gap: 5rem;
    align-items: start;
    min-height: calc(100vh - 140px);
    padding-top: 2rem;
}

.contact-page-content {
    max-width: 760px;
}

.contact-page-title {
    font-family: "Urbanist", sans-serif;
    font-size: clamp(2.5rem, 3vw, 5rem);
    font-weight: 500;
    line-height: 1.05;
    color: var(--text-color);
    max-width: 1100px;
    margin-bottom: 3.5rem;
}

.contact-page-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem 6rem;
    margin-bottom: 4rem;
}

.contact-detail-block {
    min-width: 260px;
}

.contact-detail-label {
    font-family: "Urbanist", sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: #9d9d9d;
    margin-bottom: 0.75rem;
}

.contact-detail-value {
    display: inline-block;
    font-family: "Urbanist", sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-color);
    transition: opacity 0.2s ease;
}

.contact-detail-value:hover {
    opacity: 0.7;
}

.contact-page-socials {
    margin-top: 1rem;
}

.contact-social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(41, 38, 31, 0.2);
    border-radius: 50%;
    color: var(--text-color);
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.contact-social-icon:hover {
    transform: translateY(-2px);
    opacity: 0.85;
    border-color: rgba(41, 38, 31, 0.4);
}

.contact-social-icon svg {
    width: 22px;
    height: 22px;
}

.contact-page-visual {
    width: 100%;
    height: 100%;
}

.contact-page-image {
    width: 100%;
    height: min(74vh, 860px);
    object-fit: cover;
    background: #d9d9d9;
}




/* =========================
   About Page
========================= */
.about-page-text {
    max-width: 620px;
    font-family: "Urbanist", sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}
.about-page-text:last-child {
    margin-bottom: 0;
}

/* =========================
   16. Site Footer
========================= */


/* .site-footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
} */

.site-footer-top {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    padding-bottom: 6rem;
}

.site-footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 140px;
}

.site-footer-column a {
    font-family: "Urbanist", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-color);
    transition: opacity 0.2s ease;
}

.site-footer-column a:hover {
    opacity: 0.6;
}

.site-footer-logo-wrap {
    width: 100%;
    overflow: hidden;
}

.site-footer-logo {
    width: 100%;
    max-width: 1200px;
    height: auto;
}


/* =========================
   Homepage full-width alignment
========================= */

.about-content,
.featured-projects .container,
.contact-preview .container,
.site-footer .container {
    width: 100%;
    max-width: none;
    padding-inline: 3rem;
}


/* About text should not use its old extra left padding anymore */

.about-text {
    padding-left: 0;
    max-width: 1500px;
}


/* Make featured projects use the full row better */

.featured-projects-grid {
    grid-template-columns: repeat(2, minmax(420px, 1fr));
    gap: 32px;
    width: 100%;
}


/* Contact section should not look too narrow */

.contact-preview-content {
    max-width: 1100px;
}


/* Footer aligned with same page edges */

.site-footer-top,
.site-footer-logo-wrap {
    width: 100%;
}


/* Mobile */

@media (max-width: 768px) {
    .about-content,
    .featured-projects .container,
    .contact-preview .container,
    .site-footer .container {
        padding-inline: 1rem;
    }
    .featured-projects-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   16. Project Detail Page
========================= */

.project-detail {
    padding: 3rem 0 6rem;
}

.project-detail .container {
    max-width: none;
    width: 100%;
    padding-inline: 3rem;
}

.project-detail-content {
    width: 100%;
}

.project-detail-title {
    font-family: "Urbanist", sans-serif;
    font-size: clamp(2.5rem, 3vw, 5rem);
    font-weight: 500;
    line-height: 1.05;
    color: var(--text-color);
    max-width: 1100px; 
    margin-bottom: 4rem;
}


/* .project-detail-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.project-detail-video {
    width: auto;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
} */

.project-detail-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.project-detail-video {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
}


/* =========================
   14. Responsive
========================= */

@media (max-width: 768px) {
    .site-nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    }
    .site-logo img {
    width: 130px;
    }

    .site-logo a {
    display: flex;
    align-items: center;
    }



    .menu-toggle {
        display: block;
    }

    .site-nav-links {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 1.25rem;
        background-color: var(--bg-color);
        border: 1px solid rgba(41, 38, 31, 0.08);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        z-index: 1000;
    }

    .site-nav-links.is-open {
        display: flex;
    }

    .site-nav-links a {
        font-size: 16px;
    }

    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .custom-cursor {
        display: none;
    }
    .section-spacing {
        padding-block: 6rem;
    }


    .hero-content {
        padding-top: 10rem;
        padding-left: 1rem;
    }
    .hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 500;
    padding-top: 2rem;
    }

    .about-text,
    .section-heading h2,
    .contact-preview-title,
    .projects-overview-heading h1,
    .project-detail-title,
    .contact-page-title,
    .featured-project-cta-text {
        font-size: 2rem;
        line-height: 1.1;
        font-weight: 500;
    }


    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
        padding-top: 2rem;
    }
    .showreel {
        margin-top: 8rem;
    }
    .about-section {
        padding: 6rem 0 0 0;
    }
   
    .back-to-top {
        width: 40px;
        height: 40px;
        padding: 0;
        font-size: 1rem;
    }
    .contact-preview {
        padding-top: 4rem;
        padding-bottom: 6rem;
    }

    .contact-preview-button {
        width: auto;
        max-width: fit-content;
        font-size: 1rem;
        padding: 0.85rem 1.25rem;
    }
    .projects-overview .container {
        padding-inline: 1rem;
    }
    .contact-page {
        padding: 2rem 0 4rem;
    }
    .contact-page .container {
        padding-inline: 1rem;
    }
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        min-height: auto;
        padding-top: 1rem;
    }
    .contact-page-title {
        margin-bottom: 2.5rem;
    }
    .contact-page-details {
        gap: 2rem;
        margin-bottom: 2.5rem;
    }
    .contact-detail-block {
        min-width: unset;
    }
    .contact-page-image {
        width: 100%;
        height: 320px;
        object-fit: cover;
        object-position: center;
    }
    .contact-page-content {
        order: 1;
    }
    .contact-page-visual {
        order: 2;
        width: 100%;
    }

    .site-footer {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }
    .site-footer-top {
        flex-wrap: wrap;
        gap: 2rem 3rem;
        padding-bottom: 3rem;
    }
    .site-footer-column {
        min-width: 120px;
    }
    .site-footer-column a {
        font-size: 1.1rem;
    }
    .site-footer-logo {
        max-width: 100%;
    }
    
    .project-detail {
        padding: 2rem 0 4rem;
    }
    .project-detail .container {
        padding-inline: 1rem;
    }
    .project-detail-title {
        margin-bottom: 2rem;
    }
    .project-detail-video {
        width: 100%;
    }
    
}

@media (max-width: 767px) {
    .featured-projects-grid {
        grid-template-columns: 1fr;
    }
    .featured-project-meta {
        flex-direction: row;
        align-items: baseline;
    }
    .featured-project-category {
        font-size: 0.9rem;
    }
    .featured-project-cta-inner {
        min-height: 280px;
        padding: 32px 24px;
    }

    .projects-overview {
        padding: 84px 0 78px;
    }
    .projects-overview-intro {
        margin-bottom: 34px;
    }
    .projects-overview-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 18px 0;
    }
    .projects-overview-side {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }
    .projects-overview-title {
        font-size: 1rem;
    }
    .projects-overview-category {
        font-size: 0.88rem;
        text-align: left;
    }
    .projects-overview-arrow {
        font-size: 0.95rem;
    }
}

/* =========================
   Project pages mobile footer fix
========================= */

@media (max-width: 768px) {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    main {
        flex: 1;
    }

    .project-detail {
        padding-bottom: 2rem;
    }

    .site-footer {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .site-footer .container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .site-footer-logo-wrap {
        line-height: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .site-footer-logo {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}
     