@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
    --bg: #e8e7e7;
    --bg-dark: #d6d4d4;
    --text: #35353a;
    --text-muted: #7a7a7a;
    --accent: #9aab99;
    --white: #f5f4f2;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
}

/* ── NAV ── */
nav.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 6%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(232, 231, 231, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 0.5px solid #c8c7c7;
}

.logo-wrapper {
    display: none;
}

.logo {
    width: 80px;
    height: auto;
}

.nav-links {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    list-style: none;
    gap: 0;
}

.nav-links li a {
    color: var(--text);
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--text-muted);
}

.logo-divider,
.logo-nav-divider,
.section-divider {
    display: none;
}

/* ── HEADER ── */
#header {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    padding: 120px 6% 60px;
}

.header-container {
    width: 100%;
}

.header-overlay {
    display: none;
}

.header-text {
    padding: 0;
    margin: 0;
}

.header-text p {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.header-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(52px, 8vw, 110px);
    line-height: 1.0;
    color: var(--text);
    margin: 0;
}

.header-text h1 span {
    font-style: italic;
    color: var(--text);
}

.header-text h1 .line2 {
    display: block;
    padding-left: 12%;
}

/* ── ABOUT ── */
#about {
    background-color: var(--bg);
    padding: 100px 6%;
    color: var(--text);
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 4px;
    filter: grayscale(20%);
}

.about-col-2 {
    flex-basis: 55%;
    min-width: 260px;
    padding-top: 20px;
}

.about-col-2 h1 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.about-col-2 p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
    max-width: 540px;
}

.sub-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 300;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.1;
}

.tab-titles {
    display: flex;
    gap: 0;
    margin: 32px 0 40px;
    border-bottom: 1px solid #c8c7c7;
}

.tab-links {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    padding-bottom: 12px;
    margin-right: 40px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 1px;
    background: var(--text);
    position: absolute;
    left: 0;
    bottom: -1px;
    transition: 0.4s;
}

.tab-links.active-link {
    color: var(--text);
}

.tab-links.active-link::after {
    width: 100%;
}

.tab-contents ul li {
    list-style: none;
    margin: 8px 0;
    font-size: 15px;
    color: var(--text);
}

.tab-contents ul li span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.4;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* ── PORTFOLIO ── */
#portfolio {
    background-color: var(--bg-dark);
    padding: 100px 6%;
    color: var(--text);
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.work {
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.work img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: grayscale(15%);
}

.layer {
    width: 100%;
    height: 0%;
    opacity: 0;
    background: rgba(53, 53, 58, 0.88);
    border-radius: 2px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 32px;
    text-align: center;
    font-size: 13px;
    transition: all 0.5s ease;
    color: var(--white);
}

.layer h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 22px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.layer p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(245,244,242,0.8);
}

.layer a {
    margin-top: 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    background: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.layer a i {
    color: var(--text);
    font-size: 16px;
}

.work:hover img {
    transform: scale(1.05);
}

.work:hover .layer {
    height: 100%;
    opacity: 1;
}

.btn {
    display: block;
    margin: 50px auto 0;
    width: fit-content;
    border: 1px solid var(--text);
    padding: 12px 48px;
    border-radius: 0;
    text-decoration: none;
    color: var(--text);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: 0.4s;
    font-family: 'Jost', sans-serif;
}

.btn:hover {
    background: var(--text);
    color: var(--white);
}

/* ── CONTACT ── */
#contact {
    background-color: var(--bg);
    padding: 100px 6%;
    color: var(--text);
}

.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 55%;
    padding: 0;
}

.contact-left p {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-left p i {
    color: var(--text);
    font-size: 16px;
}

.social-icons {
    margin-top: 32px;
}

.social-icons a {
    text-decoration: none;
    font-size: 20px;
    margin-right: 16px;
    color: var(--text-muted);
    display: inline-block;
    transition: transform 0.4s, color 0.3s;
}

.social-icons a:hover {
    color: var(--text);
    transform: translateY(-4px);
}

.btn.btn2 {
    margin: 40px 0 0;
    border: 1px solid var(--text);
    color: var(--text);
    background: transparent;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.btn.btn2:hover {
    background: var(--text);
    color: var(--white);
}

button[type="submit"] {
    display: inline-block;
    margin-top: 32px;
    padding: 16px 48px;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

button[type="submit"]:hover {
    background: var(--text);
    color: var(--white);
}

form input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #c0bfbf;
    outline: none;
    background: transparent;
    padding: 14px 0;
    margin: 10px 0;
    color: var(--text);
    font-size: 14px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    border-radius: 0;
    transition: border-color 0.3s;
}

form textarea {
    width: 100%;
    border: 1px solid #c0bfbf;
    outline: none;
    background: transparent;
    padding: 14px;
    margin: 10px 0;
    color: var(--text);
    font-size: 14px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    border-radius: 0;
    transition: border-color 0.3s;
    resize: vertical;
}

form input:focus,
form textarea:focus {
    border-color: var(--text);
}

form input::placeholder,
form textarea::placeholder {
    color: #aaaaaa;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.form-btn2 {
    padding: 12px 48px;
    font-size: 12px;
    margin-top: 20px;
    cursor: pointer;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-top: 60px;
}

/* ── MOBILE NAV ── */
nav .fa-solid { display: none; }
nav .fa-regular { display: none; }

@media only screen and (max-width: 900px) {
    .about-col-1, .about-col-2 { flex-basis: 100%; }
    .contact-left, .contact-right { flex-basis: 100%; }
    .work-list { grid-template-columns: repeat(2, 1fr); }
    .contact-right { padding: 40px 0 0; }
}

@media only screen and (max-width: 768px) {
    .header-text h1 { font-size: 52px; }
    .sub-title { font-size: 36px; }
    .work-list { grid-template-columns: 1fr; }
}

@media only screen and (max-width: 600px) {
    nav.navbar {
        padding: 14px 5%;
        justify-content: space-between;
    }

    nav .fa-solid { display: block; font-size: 22px; }
    nav .fa-regular { display: block; font-size: 22px; }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -220px;
        width: 220px;
        height: 100vh;
        background: var(--bg);
        padding-top: 60px;
        z-index: 200;
        transition: right 0.4s;
        box-shadow: -4px 0 20px rgba(0,0,0,0.08);
        flex-direction: column;
        justify-content: flex-start;
    }

    .nav-links li { display: block; margin: 20px 30px; }
    .nav-links li a { color: var(--text); font-size: 14px; }

    nav ul .fa-regular {
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
    }

    .fa-bars {
        display: block;
        color: var(--text);
        font-size: 22px;
        cursor: pointer;
        z-index: 201;
        position: relative;
    }

    .fa-circle-xmark {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 22px;
        color: var(--text);
        cursor: pointer;
    }

    #header {
        padding: 80px 5% 40px;
        min-height: auto;
    }

    .header-text h1 {
        font-size: 36px;
        word-break: break-word;
    }

    .header-text p {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .header-text .line2 { padding-left: 0; }

    #about { padding: 60px 5%; }
    #portfolio { padding: 60px 5%; }
    #contact { padding: 60px 5%; }

    .sub-title { font-size: 32px; }
    .tab-links { margin-right: 16px; font-size: 11px; }
    .about-col-1, .about-col-2 { flex-basis: 100%; }
    .about-col-1 { margin-bottom: 30px; }
    .contact-left, .contact-right { flex-basis: 100%; }
    .contact-right { padding: 32px 0 0; }
    .copyright { font-size: 12px; }
    .work-list { grid-template-columns: 1fr; }
}

#msg {
    color: var(--text-muted);
    margin-top: 10px;
    display: block;
    font-size: 13px;
}
