/* ============================================
   Dyane Delisle — Portfolio
   Elegant Classic Design
   ============================================ */

/* --- Variables --- */
:root {
    --bg: #FAF8F5;
    --bg-alt: #F0ECE6;
    --bg-dark: #1A1A1A;
    --bg-gallery: #F5F1EB;
    --text: #2A2A2A;
    --text-light: #7A7267;
    --text-on-dark: #E8E0D8;
    --accent: #8B7355;
    --accent-hover: #A6895F;
    --border: #DDD5CA;
    --font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Lora', 'Georgia', serif;
    --transition: 0.3s ease;
    --container-max: 1300px;
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Navigation --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}

#main-nav.scrolled {
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text-light);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Language toggle */
.lang-toggle {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 3px;
    transition: color var(--transition), border-color var(--transition);
    margin-left: 30px;
}

.lang-toggle:hover {
    color: var(--text);
    border-color: var(--accent);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    text-align: center;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(139, 115, 85, 0.08) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 50%, rgba(139, 115, 85, 0.05) 0%, transparent 60%);
}

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

.hero-overline {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 30px;
    opacity: 0;
    animation: fadeUp 1s ease 0.7s forwards;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

.hero-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(232, 224, 216, 0.7);
    max-width: 500px;
    margin: 0 auto 50px;
    opacity: 0;
    animation: fadeUp 1s ease 1.1s forwards;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-on-dark);
    border: 1px solid rgba(232, 224, 216, 0.3);
    padding: 14px 40px;
    transition: all var(--transition);
    opacity: 0;
    animation: fadeUp 1s ease 1.3s forwards;
}

.hero-cta:hover {
    background: rgba(232, 224, 216, 0.1);
    border-color: rgba(232, 224, 216, 0.5);
}

/* --- Sections --- */
.section {
    padding: 120px 0;
}

.section-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-label.light {
    color: var(--accent-hover);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 50px;
    color: var(--text);
}

.section-title.light {
    color: var(--text-on-dark);
}

/* --- Biography --- */
.bio-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.bio-portrait {
    flex-shrink: 0;
    width: 300px;
}

.bio-portrait img {
    width: 100%;
    height: auto;
    filter: grayscale(15%);
    border: 1px solid var(--border);
    padding: 8px;
    background: #fff;
}

.bio-content {
    max-width: 780px;
    flex: 1;
}

.bio-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 24px;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

/* --- Collection Section --- */
.collection-section {
    padding: 100px 0;
    position: relative;
}

.collection-section:nth-child(odd) {
    background: var(--bg);
}

.collection-section:nth-child(even) {
    background: var(--bg-alt);
}

.collection-section .container {
    position: relative;
}

.collection-header {
    text-align: center;
    margin-bottom: 60px;
}

.collection-number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.collection-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    color: var(--text);
}

.collection-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto;
    font-style: italic;
}

/* Featured collection (Metamorphoses) */
.collection-section.featured {
    padding: 120px 0;
    background: var(--bg-dark);
}

.collection-section.featured .collection-number {
    color: var(--accent-hover);
}

.collection-section.featured .collection-title {
    color: var(--text-on-dark);
}

.collection-section.featured .collection-desc {
    color: rgba(232, 224, 216, 0.65);
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: #e8e0d8;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 0.02em;
}

/* Featured gallery (dark background) */
.collection-section.featured .gallery-item {
    background: #2a2a2a;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 10, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
    z-index: 10;
    line-height: 1;
}

.lightbox-close:hover {
    color: #fff;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    color: rgba(255,255,255,0.4);
    transition: color var(--transition);
    z-index: 10;
    padding: 20px;
    line-height: 1;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    color: rgba(255,255,255,0.8);
}

.lightbox-content {
    text-align: center;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 65vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-img.visible {
    opacity: 1;
}

/* Loading spinner */
.lightbox.loading .lightbox-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}

.lightbox-content {
    position: relative;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.lightbox-info {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255,255,255,0.6);
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    letter-spacing: 0.02em;
}

.lightbox-counter {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* --- Spotify Embed (Lightbox) --- */
/* Swipe hint (mobile only) */
.lightbox-swipe-hint {
    display: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    margin-top: 12px;
    animation: fadeOut 3s ease 2s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.lightbox-spotify {
    width: 280px;
    margin-top: 10px;
    opacity: 0.25;
    transition: opacity var(--transition);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.lightbox-spotify:hover {
    opacity: 1;
}

.lightbox-spotify iframe {
    display: block;
    border-radius: 12px;
}

/* --- Timeline --- */
.timeline {
    max-width: 800px;
    position: relative;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 130px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    display: flex;
    gap: 40px;
    padding: 28px 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 126px;
    top: 36px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--accent);
}

.timeline-item.highlight::after {
    background: var(--accent);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    min-width: 110px;
    text-align: right;
    letter-spacing: 0.03em;
    padding-top: 2px;
}

.timeline-content {
    padding-left: 30px;
    flex: 1;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    text-align: center;
    padding: 100px 40px 60px;
}

.contact-email {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--text-on-dark);
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(232, 224, 216, 0.2);
    padding-bottom: 4px;
    transition: border-color var(--transition);
}

.contact-email:hover {
    border-bottom-color: var(--accent);
}

.footer-location {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: rgba(232, 224, 216, 0.4);
    letter-spacing: 0.1em;
    margin-top: 6px;
}

.footer-line {
    width: 40px;
    height: 1px;
    background: rgba(232, 224, 216, 0.15);
    margin: 50px auto 30px;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(232, 224, 216, 0.3);
    letter-spacing: 0.05em;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-inner {
        padding: 0 24px;
    }

    .nav-toggle {
        display: flex;
        order: 3;
    }

    .lang-toggle {
        margin-left: auto;
        margin-right: 12px;
        order: 2;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 24px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .section {
        padding: 80px 0;
    }

    .collection-section {
        padding: 70px 0;
    }

    .bio-layout {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .bio-portrait {
        width: 240px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .hero {
        padding: 60px 24px;
    }

    .hero-quote {
        font-size: 1rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        flex-direction: column;
        gap: 6px;
        padding-left: 24px;
    }

    .timeline-year {
        text-align: left;
        min-width: unset;
    }

    .timeline-item::after {
        left: -5px;
        top: 6px;
    }

    .timeline-content {
        padding-left: 0;
    }

    .lightbox {
        background: rgb(10, 10, 10);
    }

    .lightbox-prev,
    .lightbox-next { display: none; }

    .lightbox-close {
        top: 10px;
        right: 16px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
    }

    .lightbox-spotify {
        opacity: 1;
    }

    .lightbox-swipe-hint {
        display: block;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
        overflow-y: auto;
    }

    .lightbox-img {
        max-width: 95vw;
        max-height: 55vh;
    }

}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .collection-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }

    .footer {
        padding: 70px 24px 50px;
    }
}

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Body lock when lightbox/menu open */
body.no-scroll {
    overflow: hidden;
}
