
/* ==============================
   GLOBAL
================================ */

:root {
    --cream: #F8F1E9;
    --cream-dark: #EFE2D5;
    --white: #FFFFFF;
    --brown: #795B46;
    --brown-dark: #493629;
    --text: #40352D;
    --muted: #887B6E;
    --border: #DFD3C6;
    --shadow: 0 10px 35px rgba(73, 54, 41, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.section {
    padding: 100px 9%;
}

.eyebrow {
    color: var(--brown);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
}

.section-heading h2 span,
.hero h1 span,
.logo span {
    color: var(--brown);
}

.section-description {
    max-width: 600px;
    margin: 15px auto 0;
    color: var(--muted);
}


/* ==============================
   NAVBAR
================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 9%;
    background: rgba(248, 241, 233, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-menu a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--brown);
}

.nav-menu .nav-contact {
    padding: 9px 18px;
    color: var(--white);
    background: var(--brown);
    border-radius: 30px;
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    color: var(--brown-dark);
    font-size: 1.7rem;
    cursor: pointer;
}


/* ==============================
   HERO
================================ */

.hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero h2 {
    font-size: 1.2rem;
    color: var(--brown);
    margin-bottom: 15px;
}

.hero-description {
    max-width: 570px;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 23px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary {
    color: var(--white);
    background: var(--brown);
}

.btn-primary:hover {
    background: var(--brown-dark);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--brown);
    color: var(--brown);
}

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

.hero-image {
    position: relative;
    width: 100%;
    max-width: 360px;
    justify-self: center;
}

.hero-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 180px 180px 20px 20px;
    background: var(--cream-dark);
}

.image-decoration {
    position: absolute;
    z-index: 1;
    inset: 20px -20px -20px 20px;
    border: 2px solid var(--brown);
    border-radius: 180px 180px 20px 20px;
}


/* ==============================
   ABOUT
================================ */

.about-section {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
    max-width: 1050px;
    margin: auto;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 18px;
}

.about-details {
    background: var(--cream);
    padding: 28px;
    border-radius: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span {
    color: var(--muted);
    font-size: 0.8rem;
}

.detail-item strong {
    font-size: 0.9rem;
}


/* ==============================
   EDUCATION
================================ */

.timeline {
    max-width: 750px;
    margin: auto;
    border-left: 2px solid var(--border);
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    left: -38px;
    top: 8px;
    background: var(--brown);
    border-radius: 50%;
}

.timeline-date {
    color: var(--brown);
    font-size: 0.85rem;
    font-weight: 700;
}

.timeline-item h3 {
    margin: 7px 0;
}

.timeline-item p {
    color: var(--muted);
}

.timeline-description {
    font-size: 0.85rem;
    color: var(--muted);
}


/* ==============================
   SKILLS
================================ */

.skills-section {
    background: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 30px;
    background: var(--cream);
    border-radius: 16px;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.skill-card h3 {
    margin-bottom: 18px;
    font-family: 'Playfair Display', serif;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--cream-dark);
    color: var(--brown-dark);
    font-size: 0.75rem;
    font-weight: 600;
}


/* ==============================
   EXPERIENCE
================================ */

.experience-card {
    max-width: 950px;
    margin: 0 auto 22px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    transition: 0.3s;
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.experience-header h3 {
    font-size: 1.05rem;
}

.experience-header p {
    color: var(--brown);
    font-size: 0.9rem;
}

.experience-date {
    color: var(--muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.experience-card ul {
    padding-left: 20px;
    color: var(--muted);
}

.experience-card li {
    margin-bottom: 7px;
}


/* ==============================
   DESIGN PORTFOLIO
================================ */

.design-section {
    background: var(--white);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.filter-btn {
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 9px 18px;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brown);
    color: var(--white);
    border-color: var(--brown);
}

/* Design slider */
.design-slider {
    position: relative;
    max-width: 1200px;
    margin: auto;
}

.design-viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.design-viewport::-webkit-scrollbar {
    display: none;
}

.design-track {
    display: flex;
    gap: 22px;
}

.design-card {
    flex: 0 0 calc((100% - 44px) / 3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scroll-snap-align: start;
}

.slider-btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--brown);
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.3s, opacity 0.3s;
}

.slider-btn:hover {
    background: var(--brown-dark);
}

.slider-btn:disabled {
    opacity: 0;
    pointer-events: none;
}

.slider-btn.prev {
    left: -18px;
}

.slider-btn.next {
    right: -18px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: var(--border);
    cursor: pointer;
    transition: 0.3s;
}

.slider-dot.active {
    width: 24px;
    background: var(--brown);
}

.design-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: 12px;
    background: var(--cream-dark);
    line-height: 0;
    cursor: pointer;
}

.design-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.design-image:hover img {
    transform: scale(1.04);
}

.design-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: 600;
    background: rgba(73, 54, 41, 0.55);
    opacity: 0;
    transition: 0.3s;
}

.design-image:hover .design-overlay {
    opacity: 1;
}

.design-info {
    padding: 12px 2px;
}

.design-category {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--brown);
    letter-spacing: 1px;
}

.design-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    margin: 4px 0;
}

.design-info p {
    color: var(--muted);
    font-size: 0.8rem;
}

.design-card.hidden {
    display: none;
}


/* ==============================
   ORGANIZATION GALLERY
================================ */

.gallery-section {
    background: var(--cream);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.album-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: var(--white);
    text-align: left;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.album-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.album-cover {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--cream-dark);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.album-card:hover .album-cover img {
    transform: scale(1.06);
}

.album-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    background: rgba(73, 54, 41, 0.8);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.75rem;
}

.album-info {
    flex: 1;
    padding: 20px;
}

.album-info > span {
    color: var(--brown);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.album-info h3 {
    margin: 7px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

.album-info p {
    color: var(--muted);
    font-size: 0.82rem;
}


/* ==============================
   MODAL & LIGHTBOX
================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background: rgba(30, 24, 20, 0.85);
    overflow-y: auto;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1050px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    background: var(--cream);
    border-radius: 18px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--cream-dark);
    color: var(--brown-dark);
    font-size: 1.7rem;
    cursor: pointer;
}

.album-modal-content h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
}

.album-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.album-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: var(--cream-dark);
    overflow: hidden;
    line-height: 0;
    cursor: pointer;
}

.album-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.45s;
}

.album-photo:hover img {
    transform: scale(1.05);
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.lightbox-content img {
    max-height: 78vh;
    max-width: 100%;
    margin: auto;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-content h3 {
    color: var(--white);
    margin-top: 15px;
}


/* ==============================
   PROJECTS
================================ */

.projects-section {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    background: var(--cream);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.project-card > img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: var(--cream-dark);
}

.project-content {
    padding: 23px;
}

.project-type {
    color: var(--brown);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 7px 0;
}

.project-content p {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 18px;
}


/* ==============================
   CONTACT
================================ */

.contact-section {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.contact-links a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.3s;
}

.contact-links a:hover {
    border-color: var(--brown);
    transform: translateY(-4px);
}

.contact-links span {
    color: var(--muted);
    font-size: 0.8rem;
}

.contact-links strong {
    color: var(--brown);
    font-size: 0.85rem;
}


/* ==============================
   FOOTER
================================ */

.footer {
    padding: 30px 9%;
    text-align: center;
    background: var(--brown-dark);
    color: var(--white);
}

.footer .logo {
    color: var(--white);
}

.footer .logo span {
    color: var(--cream-dark);
}

.footer p {
    color: #D5C7BB;
    font-size: 0.8rem;
    margin-top: 5px;
}


/* ==============================
   THEME DETAILS
================================ */

/* Paper grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}

/* Scroll progress */
.scroll-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brown), var(--brown-dark));
    transition: width 0.1s linear;
}

/* Active navigation link */
.nav-menu a:not(.nav-contact) {
    position: relative;
}

.nav-menu a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--brown);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-menu a:not(.nav-contact):hover::after,
.nav-menu a:not(.nav-contact).active::after {
    transform: scaleX(1);
}

.nav-menu a:not(.nav-contact).active {
    color: var(--brown);
}

/* Section heading ornament */
.section-heading h2::after {
    content: "";
    display: block;
    width: 68px;
    height: 1px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, transparent, var(--brown), transparent);
    opacity: 0.55;
}

/* Hero ambience */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -2%;
    z-index: 0;
    width: 520px;
    height: 520px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(121, 91, 70, 0.14) 0%, rgba(121, 91, 70, 0) 68%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

@keyframes floatDecoration {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.image-decoration {
    animation: floatDecoration 7s ease-in-out infinite;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 150;
    width: 46px;
    height: 46px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--brown);
    color: var(--white);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    box-shadow: var(--shadow);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brown-dark);
    transform: translateY(-3px);
}


/* ==============================
   RESPONSIVE
================================ */

@media (max-width: 1000px) {
    .nav-menu {
        gap: 12px;
    }

    .nav-menu a {
        font-size: 0.72rem;
    }

    .section {
        padding: 80px 6%;
    }

    .design-card {
        flex-basis: calc((100% - 22px) / 2);
    }

    .projects-grid,
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .navbar {
        padding: 15px 6%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 6% 22px;
        background: var(--cream);
        border-bottom: 1px solid var(--border);
    }

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

    .nav-menu a {
        padding: 10px 0;
        font-size: 0.9rem;
    }

    .nav-menu a:not(.nav-contact)::after {
        display: none;
    }

    .nav-menu .nav-contact {
        text-align: center;
        margin-top: 8px;
    }

    .section {
        padding: 70px 6%;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 45px;
        padding-top: 65px;
    }

    .hero-description {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 280px;
    }

    .hero-image img {
        height: 350px;
    }

    .hero::before {
        width: 320px;
        height: 320px;
        right: -10%;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .skills-grid,
    .projects-grid,
    .album-grid {
        grid-template-columns: 1fr;
    }

    .experience-header {
        flex-direction: column;
        gap: 8px;
    }

    .experience-date {
        white-space: normal;
    }

    .design-card {
        flex-basis: 100%;
    }

    .slider-btn {
        top: 34%;
        width: 38px;
        height: 38px;
    }

    .slider-btn.prev {
        left: 8px;
    }

    .slider-btn.next {
        right: 8px;
    }

    .design-info h3 {
        font-size: 0.9rem;
    }

    .design-info p {
        font-size: 0.72rem;
    }

    .filter-buttons {
        gap: 7px;
    }

    .filter-btn {
        padding: 8px 13px;
        font-size: 0.72rem;
    }

    .album-cover {
        height: 230px;
    }

    .modal {
        padding: 12px;
    }

    .modal-content {
        padding: 30px 18px;
    }

    .album-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-links a {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .album-photo-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .image-decoration {
        animation: none;
    }
}
