/* =====================================================
   GOOGLE FONTS
===================================================== */

/* Fonts are already loaded from HTML */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f7f5f0;
    color: #24231f;
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    height: 86px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 245, 240, 0.94);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #dedbd3;
}

.logo {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: #8a6a3f;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    position: relative;
    font-size: 13px;
    color: #77736b;
    transition: 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: #8a6a3f;
    transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #24231f;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.talk-btn {
    border: 1px solid #bdb8ad;
    padding: 10px 19px;
    border-radius: 30px;
    font-size: 13px;
    transition: 0.3s ease;
}

.talk-btn:hover {
    background: #24231f;
    color: #ffffff;
    border-color: #24231f;
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #c8c3ba;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.menu-btn span {
    width: 15px;
    height: 1px;
    background: #24231f;
    transition: 0.3s;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: calc(100vh - 86px);
    padding: 90px 7%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
}

.hero-left {
    max-width: 780px;
}

.small-label {
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 600;
    color: #8a6a3f;
    margin-bottom: 25px;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(60px, 8vw, 105px);
    line-height: 0.98;
    font-weight: 600;
    letter-spacing: -4px;
    margin-bottom: 35px;
}

.hero h1 em {
    display: block;
    color: #8a6a3f;
    font-style: italic;
}

.hero-description {
    max-width: 560px;
    color: #77736b;
    font-size: 16px;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 23px;
    background: #24231f;
    color: #ffffff;
    border-radius: 30px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(36, 35, 31, 0.15);
}

.main-btn span {
    font-size: 17px;
}

.simple-link {
    font-size: 13px;
    border-bottom: 1px solid #aaa59b;
    padding-bottom: 4px;
    transition: 0.3s ease;
}

.simple-link:hover {
    color: #8a6a3f;
    border-color: #8a6a3f;
}


/* =====================================================
   PROFILE PHOTO
===================================================== */

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: min(380px, 75vw);
    height: 480px;
    overflow: hidden;
    border-radius: 190px 190px 25px 25px;
    background: #e6dfd2;
    border: 1px solid #c8bba6;
    box-shadow: 0 25px 60px rgba(36, 35, 31, 0.12);
    animation: float 6s ease-in-out infinite;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.profile-photo:hover img {
    transform: scale(1.03);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.shape-caption {
    margin-top: 20px;
    color: #89847b;
    font-size: 11px;
    letter-spacing: 2px;
    text-align: center;
}


/* =====================================================
   INTRO
===================================================== */

.intro {
    padding: 150px 14%;
    border-top: 1px solid #dedbd3;
}

.intro-label {
    color: #8a6a3f;
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 35px;
}

.intro h2 {
    max-width: 950px;
    font-family: "Playfair Display", serif;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.1;
    font-weight: 500;
}

.intro h2 span {
    color: #8a6a3f;
    font-style: italic;
}


/* =====================================================
   GENERAL SECTION
===================================================== */

.section {
    padding: 120px 7%;
    border-top: 1px solid #dedbd3;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 75px;
}

.section-label span {
    color: #8a6a3f;
    font-size: 11px;
}

.section-label p {
    font-size: 11px;
    letter-spacing: 2px;
    color: #89847b;
}


/* =====================================================
   ABOUT
===================================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.about-heading {
    position: relative;
}

.about-content h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 5vw, 70px);
    line-height: 1;
    font-weight: 500;
}

.about-content h2 em {
    color: #8a6a3f;
    font-style: italic;
}

.about-line {
    width: 80px;
    height: 1px;
    background: #8a6a3f;
    margin-top: 45px;
}

.about-text {
    max-width: 550px;
}

.about-text p {
    color: #77736b;
    font-size: 15px;
    margin-bottom: 25px;
}

.text-link {
    display: inline-block;
    color: #8a6a3f;
    margin-top: 10px;
    font-size: 13px;
    border-bottom: 1px solid transparent;
    transition: 0.3s ease;
}

.text-link:hover {
    border-color: #8a6a3f;
}


/* =====================================================
   SKILLS
===================================================== */

.skills {
    background: #eeece6;
}

.skills-content {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 100px;
}

.skills-content h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 5vw, 70px);
    line-height: 1;
    font-weight: 500;
}

.skills-content h2 em {
    color: #8a6a3f;
    font-style: italic;
}

.skills-list {
    border-top: 1px solid #cfcac0;
}

.skill-row {
    display: grid;
    grid-template-columns: 45px 1fr;
    padding: 25px 0;
    border-bottom: 1px solid #cfcac0;
    transition: 0.3s ease;
}

.skill-row:hover {
    padding-left: 10px;
}

.skill-row>span {
    color: #8a6a3f;
    font-size: 11px;
}

.skill-row h3 {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    font-weight: 500;
}

.skill-row p {
    color: #858078;
    font-size: 12px;
    margin-top: 4px;
}


/* =====================================================
   WORK
===================================================== */

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 80px;
}

.work-header h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 5vw, 70px);
    line-height: 1;
    font-weight: 500;
}

.work-header h2 em {
    color: #8a6a3f;
    font-style: italic;
}

.work-header>p {
    max-width: 350px;
    color: #77736b;
    font-size: 14px;
}


/* =====================================================
   PROJECT
===================================================== */

.project {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 140px;
}

.project.reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

.project.reverse .project-media {
    order: 2;
}

.project.reverse .project-info {
    order: 1;
}


/* =====================================================
   PROJECT MEDIA
===================================================== */

.project-media {
    min-width: 0;
}

.project-cover {
    height: 460px;
    position: relative;
    overflow: hidden;
    background: #e6dfd2;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(36, 35, 31, 0.08);
}

.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.project-cover:hover img {
    transform: scale(1.04);
}

.media-open {
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: none;
    background: #24231f;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s ease;
}

.media-open span {
    font-size: 16px;
}

.media-open:hover {
    transform: scale(1.08);
    background: #8a6a3f;
}


/* =====================================================
   PROJECT INFO
===================================================== */

.project-number {
    color: #8a6a3f;
    font-size: 10px;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

.project-info h3 {
    font-family: "Playfair Display", serif;
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 20px;
}

.project-description {
    color: #77736b;
    font-size: 14px;
    max-width: 450px;
    margin-bottom: 25px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 30px;
}

.tags span {
    border: 1px solid #c7c1b6;
    border-radius: 30px;
    padding: 6px 11px;
    color: #77736b;
    font-size: 10px;
}

.project-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.project-link,
.secondary-link {
    color: #24231f;
    font-size: 13px;
    border: none;
    border-bottom: 1px solid #aaa59b;
    padding: 0 0 4px;
    background: transparent;
    cursor: pointer;
    transition: 0.3s ease;
}

.project-link:hover,
.secondary-link:hover {
    color: #8a6a3f;
    border-color: #8a6a3f;
}


/* =====================================================
   SERVICES
===================================================== */

.services {
    background: #eeece6;
}

.services>h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 5vw, 70px);
    line-height: 1;
    font-weight: 500;
    margin-bottom: 70px;
}

.services>h2 em {
    color: #8a6a3f;
    font-style: italic;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #cfcac0;
}

.service {
    padding: 35px;
    min-height: 280px;
    border-right: 1px solid #cfcac0;
    transition: 0.3s ease;
}

.service:last-child {
    border-right: none;
}

.service:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-5px);
}

.service>span {
    color: #8a6a3f;
    font-size: 11px;
}

.service h3 {
    font-family: "Playfair Display", serif;
    font-size: 27px;
    font-weight: 500;
    margin: 60px 0 15px;
}

.service p {
    color: #77736b;
    font-size: 13px;
}


/* =====================================================
   CONTACT
===================================================== */

.contact {
    padding: 170px 7%;
    text-align: center;
    border-top: 1px solid #dedbd3;
}

.contact h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(55px, 8vw, 100px);
    line-height: 0.95;
    font-weight: 500;
}

.contact h2 em {
    color: #8a6a3f;
    font-style: italic;
}

.contact>p:not(.small-label) {
    max-width: 480px;
    margin: 30px auto 40px;
    color: #77736b;
    font-size: 14px;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 45px;
}

.contact-socials a {
    font-size: 12px;
    color: #77736b;
    border-bottom: 1px solid #aaa59b;
    padding-bottom: 3px;
    transition: 0.3s ease;
}

.contact-socials a:hover {
    color: #8a6a3f;
    border-color: #8a6a3f;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    padding: 28px 7%;
    border-top: 1px solid #dedbd3;
    display: flex;
    justify-content: space-between;
    color: #89847b;
    font-size: 11px;
}


/* =====================================================
   PROJECT MODAL
===================================================== */

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.project-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 24, 21, 0.65);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 2;
    width: min(1050px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: #f7f5f0;
    padding: 55px;
    border-radius: 8px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    right: 25px;
    top: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #c7c1b6;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
    z-index: 5;
    transition: 0.3s ease;
}

.modal-close:hover {
    background: #24231f;
    color: #ffffff;
    border-color: #24231f;
}

.modal-header {
    margin-bottom: 35px;
    padding-right: 50px;
}

.modal-header h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 6vw, 70px);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 20px;
}

.modal-header>p:last-child {
    max-width: 650px;
    color: #77736b;
    font-size: 14px;
}


/* =====================================================
   VIDEO
===================================================== */

.modal-video {
    width: 100%;
    margin-bottom: 20px;
    background: #e6dfd2;
    border-radius: 5px;
    overflow: hidden;
}

.modal-video video {
    width: 100%;
    max-height: 600px;
    display: block;
}

.modal-video.hidden-video {
    display: none;
}


/* =====================================================
   GALLERY
===================================================== */

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s ease;
}

.gallery-image:hover {
    opacity: 0.85;
    transform: scale(1.01);
}


/* =====================================================
   MODAL FOOTER
===================================================== */

.modal-footer {
    border-top: 1px solid #dedbd3;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.modal-footer .tags {
    margin: 0;
}

.modal-links {
    display: flex;
    gap: 25px;
}

.modal-links a {
    font-size: 12px;
    border-bottom: 1px solid #aaa59b;
    padding-bottom: 4px;
    transition: 0.3s ease;
}

.modal-links a:hover {
    color: #8a6a3f;
    border-color: #8a6a3f;
}


/* =====================================================
   SCROLL ANIMATION
===================================================== */

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .navbar {
        padding: 0 5%;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 80px 7% 100px;
        text-align: center;
    }

    .hero-left {
        max-width: 800px;
        margin: 0 auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-right {
        margin-top: 20px;
    }

    .profile-photo {
        width: 360px;
        height: 450px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-text {
        max-width: 700px;
    }

    .skills-content {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .project,
    .project.reverse {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .project.reverse .project-media,
    .project.reverse .project-info {
        order: initial;
    }

    .project-cover {
        height: 500px;
    }

    .project-info {
        max-width: 700px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service {
        border-right: none;
        border-bottom: 1px solid #cfcac0;
    }

    .service:last-child {
        border-bottom: none;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .navbar {
        height: 72px;
        padding: 0 5%;
    }

    .logo {
        font-size: 25px;
    }

    .talk-btn {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        padding: 25px 7% 35px;
        background: #f7f5f0;
        border-bottom: 1px solid #dedbd3;
        display: none;
        flex-direction: column;
        gap: 20px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 15px;
    }

    .hero {
        min-height: auto;
        padding: 75px 7% 90px;
    }

    .small-label {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .hero h1 {
        font-size: clamp(52px, 14vw, 75px);
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .main-btn {
        width: auto;
    }

    .profile-photo {
        width: min(330px, 85vw);
        height: 410px;
        border-radius: 165px 165px 22px 22px;
    }

    .shape-caption {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .intro {
        padding: 100px 7%;
    }

    .intro h2 {
        font-size: clamp(38px, 10vw, 52px);
    }

    .section {
        padding: 90px 7%;
    }

    .section-label {
        margin-bottom: 50px;
    }

    .about-content h2,
    .skills-content h2,
    .work-header h2,
    .services>h2 {
        font-size: clamp(43px, 12vw, 60px);
    }

    .skill-row {
        grid-template-columns: 35px 1fr;
        padding: 22px 0;
    }

    .skill-row h3 {
        font-size: 20px;
    }

    .skill-row p {
        font-size: 11px;
    }

    .work-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 55px;
    }

    .project {
        margin-bottom: 90px;
    }

    .project-cover {
        height: 330px;
    }

    .media-open {
        width: 70px;
        height: 70px;
        right: 15px;
        bottom: 15px;
    }

    .project-info h3 {
        font-size: 42px;
    }

    .project-description {
        font-size: 13px;
    }

    .project-buttons {
        flex-wrap: wrap;
        gap: 18px;
    }

    .service {
        min-height: auto;
        padding: 30px 10px;
    }

    .service h3 {
        margin: 35px 0 12px;
        font-size: 24px;
    }

    .contact {
        padding: 110px 7%;
    }

    .contact h2 {
        font-size: clamp(55px, 15vw, 80px);
    }

    .contact-socials {
        flex-direction: column;
        gap: 15px;
    }

    footer {
        padding: 25px 7%;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }


    /* ================= MODAL ================= */

    .project-modal {
        padding: 10px;
    }

    .modal-content {
        max-height: 96vh;
        padding: 35px 20px 25px;
    }

    .modal-header {
        padding-right: 30px;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-image {
        height: 240px;
    }

    .modal-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-links {
        flex-wrap: wrap;
    }
}


/* =====================================================
   VERY SMALL SCREENS
===================================================== */

@media (max-width: 400px) {

    .hero {
        padding-left: 6%;
        padding-right: 6%;
    }

    .hero h1 {
        font-size: 48px;
    }

    .main-btn {
        width: 100%;
    }

    .profile-photo {
        width: 85vw;
        height: 360px;
        border-radius: 42vw 42vw 20px 20px;
    }

    .project-cover {
        height: 270px;
    }

    .project-info h3 {
        font-size: 36px;
    }

    .modal-content {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}