/* ═══════════════════════════════════════════════════════
   GAMZE KAZAZ — PORTFOLIO
   Modern, professional design for an Industrial Designer
   ═══════════════════════════════════════════════════════ */

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

:root {
    /* ── Base & Backgrounds ── */
    --clr-bg: #FAF8F5;
    --clr-bg-dark: #F0EBE3;
    --clr-bg-section: #F5F0EB;
    --clr-text: #3D3329;
    --clr-text-light: #8C7E72;
    --clr-text-on-dark: #3D3329;
    --clr-primary: #A68B7B;
    --clr-primary-light: #C4A99A;
    --clr-accent: #D4A9B5;
    --clr-highlight: #B8C5A2;
    --clr-green: #9CB89C;
    --clr-surface: #FFFFFF;
    --clr-border: #E8E0D8;

    /* ── Extended Pastel Palette ── */
    --clr-lavender: #C8B8D8;
    --clr-blush: #E8C4C4;
    --clr-cream: #F7F3EE;
    --clr-sand: #E8DDD0;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --shadow-sm: 0 2px 8px rgba(61, 51, 41, 0.04);
    --shadow-md: 0 8px 30px rgba(61, 51, 41, 0.06);
    --shadow-lg: 0 20px 60px rgba(61, 51, 41, 0.08);
    --shadow-glow: 0 0 40px rgba(212, 169, 181, 0.12);

    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background: var(--clr-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 600;
}

h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.15rem; }

strong {
    font-weight: 600;
    color: var(--clr-primary);
}

/* ─── Buttons — glassmorphism ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1.5px solid transparent;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn:hover::after {
    left: 100%;
}

.btn--primary {
    background: rgba(166, 139, 123, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(166, 139, 123, 0.2);
}

.btn--primary:hover {
    background: rgba(166, 139, 123, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(166, 139, 123, 0.35), 0 0 20px rgba(212, 169, 181, 0.15);
}

.btn--outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--clr-primary);
    border-color: rgba(166, 139, 123, 0.35);
}

.btn--outline:hover {
    background: rgba(166, 139, 123, 0.85);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(166, 139, 123, 0.3), 0 0 20px rgba(212, 169, 181, 0.12);
}

.btn--full {
    width: 100%;
}

/* ─── Section Header ─── */
.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: var(--space-xs);
}

.section-header__title {
    color: var(--clr-text);
}

.section-header--light .section-header__label {
    color: var(--clr-accent);
}

.section-header--light .section-header__title {
    color: var(--clr-text);
}

/* ─── Reveal Animation ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Enhanced Reveal Variants ── */
.reveal--left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--left.revealed,
.reveal--right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal--scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.reveal--blur.revealed {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* ── Micro-interactions ── */
.btn:active {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 2px 8px rgba(166, 139, 123, 0.2);
}


/* ═══════════════════ NAVIGATION ═══════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition);
    background: transparent;
}

.nav--scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 0.6rem 0;
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav--scrolled .nav__logo img {
    height: 40px;
}

.nav__links {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav__links a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clr-text);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav--scrolled .nav__links a {
    color: var(--clr-text);
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: width var(--transition);
}

.nav__links a:hover::after,
.nav__links a.active::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clr-text);
    transition: var(--transition);
}

.nav--scrolled .nav__toggle span {
    background: var(--clr-text);
}


/* ═══════════════════ HERO ═══════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F0E4EC, #DCC8E4, #D4E2D0, #F2DCCB, #D0C8EC, #F0E4EC);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    padding: var(--space-xl) var(--space-md);
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 50% 0%; }
    50%  { background-position: 100% 50%; }
    75%  { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

.hero__bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.hero__shape--1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--clr-accent), rgba(212, 169, 181, 0.3));
    top: -15%;
    right: -8%;
    animation: floatA 22s ease-in-out infinite;
}

.hero__shape--2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--clr-lavender), rgba(200, 184, 216, 0.3));
    bottom: -12%;
    left: -8%;
    animation: floatB 28s ease-in-out infinite;
}

.hero__shape--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--clr-highlight), rgba(244, 228, 172, 0.2));
    top: 40%;
    left: 45%;
    animation: floatC 24s ease-in-out infinite;
    opacity: 0.38;
}

@keyframes floatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, 30px) scale(1.08); }
    50% { transform: translate(30px, -20px) scale(0.95); }
    75% { transform: translate(-15px, -25px) scale(1.04); }
}

@keyframes floatB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(25px, -15px) scale(0.96); }
    50% { transform: translate(-30px, 25px) scale(1.06); }
    75% { transform: translate(20px, 10px) scale(0.98); }
}

@keyframes floatC {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33% { transform: translate(calc(-50% + 20px), calc(-50% - 30px)) scale(1.1); }
    66% { transform: translate(calc(-50% - 25px), calc(-50% + 20px)) scale(0.92); }
}

.hero__content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__greeting {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--clr-accent);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero__name {
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: var(--clr-text);
    margin: 0.2em 0 0.3em;
    line-height: 1.05;
}

.hero__name--accent {
    display: block;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__roles {
    margin-bottom: 1.5rem;
}

.hero__role-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-primary);
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.hero__tagline {
    color: var(--clr-text-light);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.hero__cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero__cta .btn--outline {
    color: var(--clr-primary);
    border-color: rgba(166, 139, 123, 0.35);
    background: rgba(255, 255, 255, 0.2);
}

.hero__cta .btn--outline:hover {
    background: rgba(166, 139, 123, 0.85);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero__portrait {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ── Hero portrait: glassmorphism card ── */
.hero__portrait {
    perspective: 800px;
}

.hero__portrait-frame {
    width: clamp(280px, 25vw, 400px);
    height: clamp(340px, 30vw, 480px);
    border-radius: var(--radius-xl);
    position: relative;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero__portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.02) saturate(0.95) brightness(1.03);
    border-radius: calc(var(--radius-xl) - 10px);
    display: block;
}

.hero__portrait-frame:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.hero__portrait-accent {
    position: absolute;
    width: 120%;
    height: 120%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center,
        rgba(212, 169, 181, 0.3) 0%,
        rgba(200, 184, 216, 0.2) 40%,
        transparent 70%
    );
    border-radius: 50%;
    border: none;
    filter: blur(40px);
    z-index: -1;
    opacity: 1;
    pointer-events: none;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-text-light);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--clr-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ── Hero text stagger entrance ── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__text > .reveal {
    animation: fadeSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}
.hero__text > .reveal:nth-child(1) { animation-delay: 0.2s; }
.hero__text > .reveal:nth-child(2) { animation-delay: 0.4s; }
.hero__text > .reveal:nth-child(3) { animation-delay: 0.6s; }
.hero__text > .reveal:nth-child(4) { animation-delay: 0.8s; }
.hero__text > .reveal:nth-child(5) { animation-delay: 1.0s; }


/* ═══════════════════ ABOUT ═══════════════════ */
.about {
    padding: var(--space-2xl) 0;
    background: var(--clr-bg);
}

.about__intro {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-xl);
}

/* ── About photo: glassmorphism card ── */
.about__photo {
    perspective: 800px;
    position: relative;
}

.about__photo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(
        ellipse at center,
        rgba(212, 169, 181, 0.25) 0%,
        rgba(200, 184, 216, 0.15) 40%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.about__photo-frame {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 12px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
    will-change: transform;
}

.about__photo-frame img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: contrast(1.02) saturate(0.95) brightness(1.03);
    border-radius: calc(var(--radius-xl) - 12px);
    display: block;
}

.about__photo-frame:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.about__lead {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 500;
    font-style: italic;
    color: var(--clr-primary);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.about__text p {
    margin-bottom: var(--space-sm);
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

/* Keywords */
.about__keywords {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--clr-bg-dark);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
}

.about__keyword-item {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
}

.about__keyword-connector {
    display: block;
    font-size: 0.8rem;
    color: var(--clr-text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.about__keyword-bold {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1.3;
}

/* Vision */
.about__vision {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.about__vision h3 {
    color: var(--clr-primary);
    margin-bottom: var(--space-md);
}

.about__vision p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

/* Roles */
.about__roles {
    text-align: center;
}

.about__roles > h3 {
    color: var(--clr-primary);
    margin-bottom: var(--space-lg);
}

.about__roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.about__role-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition);
}

.about__role-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-accent);
}

.about__role-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-sm);
    color: var(--clr-accent);
    transition: transform 0.3s ease;
}

.about__role-card:hover .about__role-icon {
    transform: translateY(-4px);
}

.about__role-card h4 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--clr-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.about__role-card p {
    font-size: 0.85rem;
    color: var(--clr-text-light);
    line-height: 1.6;
}


/* ═══════════════════ PROJECTS ═══════════════════ */
.projects {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, #EDE4DC, #E8DCE8, #E0E4D8, #EDE4DC);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 169, 181, 0.2), transparent);
    border-radius: 50%;
    filter: blur(80px);
    top: 10%;
    right: -5%;
    pointer-events: none;
    animation: floatA 25s ease-in-out infinite;
}

.projects::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(200, 184, 216, 0.18), transparent);
    border-radius: 50%;
    filter: blur(80px);
    bottom: 5%;
    left: -5%;
    pointer-events: none;
    animation: floatB 22s ease-in-out infinite;
}

.projects .container {
    position: relative;
    z-index: 1;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.project-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%, rgba(212,169,181,0.08));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(212, 169, 181, 0.4);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(212, 169, 181, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.project-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--clr-bg-section);
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    filter: contrast(1.02) saturate(1.0) brightness(1.02);
}

.project-card:hover .project-card__image img {
    transform: scale(1.08);
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(61, 51, 41, 0.6) 0%,
        transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: var(--space-md);
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__cta {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.project-card__cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.project-card__info {
    padding: var(--space-md);
    flex: 1;
}

.project-card__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent, var(--clr-accent));
    margin-bottom: 0.5rem;
}

.project-card__title {
    font-size: 1.4rem;
    color: var(--clr-text);
    margin-bottom: 0.5rem;
}

.project-card__desc {
    font-size: 0.85rem;
    color: var(--clr-text-light);
    line-height: 1.6;
}

/* Featured card takes 2 columns */
.project-card--featured {
    grid-column: span 1;
}

.project-card--featured .project-card__image {
    aspect-ratio: 4/3;
}


/* ═══════════════════ CONTACT ═══════════════════ */
.contact {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, #F5F0EB 0%, #EDE4DC 30%, #E8DDD0 60%, #F0E8E0 100%);
    position: relative;
    overflow: hidden;
}

.contact::before,
.contact::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.25;
}

.contact::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--clr-accent), transparent);
    top: -10%;
    right: -5%;
    animation: floatA 20s ease-in-out infinite;
}

.contact::after {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--clr-lavender), transparent);
    bottom: -10%;
    left: -5%;
    animation: floatB 25s ease-in-out infinite;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact__lead {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.contact__text p {
    color: var(--clr-text-light);
    margin-bottom: var(--space-md);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.contact__detail:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-color: var(--clr-accent);
}

.contact__detail svg {
    width: 24px;
    height: 24px;
    color: var(--clr-accent);
    flex-shrink: 0;
}

.contact__detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-light);
}

.contact__detail a {
    font-weight: 500;
    color: var(--clr-text);
    transition: color var(--transition);
}

.contact__detail a:hover {
    color: var(--clr-primary);
}

/* Form — glassmorphism card */
.contact__form {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow var(--transition);
}

.contact__form:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04);
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.contact__form-group {
    margin-bottom: var(--space-sm);
}

.contact__form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--clr-text-light);
    margin-bottom: 0.4rem;
}

.contact__form-group input,
.contact__form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--clr-text);
    background: rgba(255, 255, 255, 0.5);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
}

.contact__form-group input:focus,
.contact__form-group textarea:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(212, 169, 181, 0.2);
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.005);
}

.contact__form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__thanks {
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--clr-text-light);
    margin-top: var(--space-lg);
    font-size: 1.1rem;
}


/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
    background: var(--clr-bg-dark);
    padding: var(--space-lg) 0;
    text-align: center;
    border-top: 1px solid var(--clr-border);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer__logo {
    height: 50px;
    width: auto;
    opacity: 0.8;
}

.footer__tagline {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

.footer__copyright {
    font-size: 0.75rem;
    color: var(--clr-text-light);
    opacity: 0.6;
}


/* ═══════════════════ BACK TO TOP ═══════════════════ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--clr-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
    background: var(--clr-accent);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}


/* ═══════════════════ PROJECT DETAIL PAGE ═══════════════════ */
.project-hero {
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) 0 var(--space-lg);
}

.project-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.project-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.05) brightness(0.9);
}

.project-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(10,10,15,0.95) 0%,
        rgba(10,10,15,0.5) 40%,
        rgba(10,10,15,0.2) 100%);
}

.project-hero__content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.project-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    margin-left: -6px;
    transition: color var(--transition);
}

.project-hero__back:hover {
    color: #fff;
}

.project-hero__back svg {
    width: 18px;
    height: 18px;
}

.project-hero__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent, var(--clr-accent));
    margin-bottom: var(--space-xs);
}

.project-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    margin-bottom: var(--space-xs);
}

.project-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.7);
    font-family: var(--font-display);
    font-style: italic;
    max-width: 700px;
}

/* Light hero variant (for projects without background image) */
.project-hero--light .project-hero__title {
    color: var(--clr-text);
}
.project-hero--light .project-hero__subtitle {
    color: var(--clr-text-light);
}
.project-hero--light .project-hero__back {
    color: var(--clr-text-light);
}
.project-hero--light .project-hero__back:hover {
    color: var(--clr-text);
}
.project-hero--light .project-hero__tag {
    color: var(--clr-accent);
}

/* Project body */
.project-body {
    padding: var(--space-xl) 0;
}

.project-body .container {
    max-width: 960px;
}

.project-body__question {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: var(--clr-primary);
    text-align: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

.project-body__description {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--clr-text-light);
    margin-bottom: var(--space-lg);
    text-align: center;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Report button */
.project-body__report {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.project-body__report .btn svg {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.project-body__collab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding: var(--space-lg) var(--space-md);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.project-body__collab:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.project-body__collab-text {
    font-size: 0.9rem;
    color: var(--clr-text-light);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-body__collab img {
    height: 72px;
    width: auto;
    transition: transform var(--transition);
}

.project-body__collab:hover img {
    transform: scale(1.05);
}

/* Image gallery on project pages */
.project-gallery {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.project-gallery--two {
    grid-template-columns: 1fr 1fr;
}

.project-gallery--three {
    grid-template-columns: 1fr 1fr 1fr;
}

.project-gallery--single {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-gallery__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--clr-bg-section);
    box-shadow: var(--shadow-sm);
    position: relative;
}

/* Soft filter for project images */
.project-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    filter: contrast(1.02) saturate(1.0) brightness(1.02);
}

.project-gallery__item:hover img {
    transform: scale(1.03);
}

/* Video in gallery — no border/frame, full view */
.project-gallery__item:has(video) {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.project-gallery__item video {
    width: 100%;
    display: block;
}

.project-gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Project navigation */
.project-nav {
    display: flex;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--clr-border);
    margin-top: var(--space-lg);
}

.project-nav__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--transition);
}

.project-nav__link:hover {
    color: var(--clr-primary);
}

.project-nav__link svg {
    width: 18px;
    height: 18px;
}

/* Video embed */
.project-video {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.project-video video {
    width: 100%;
    display: block;
}


/* ── Click spark particles ── */
.spark {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: sparkBurst 0.7s ease-out forwards;
}

@keyframes sparkBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* ── Magnetic glow on interactive elements ── */
.project-card__info {
    position: relative;
    z-index: 2;
}

.project-card__overlay {
    z-index: 2;
}


/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card--featured {
        grid-column: span 1;
    }

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

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

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--clr-surface);
        flex-direction: column;
        padding: 5rem var(--space-md);
        gap: var(--space-md);
        transition: right var(--transition);
        box-shadow: -8px 0 30px rgba(61, 51, 41, 0.1);
        border-left: 1px solid var(--clr-border);
    }

    .nav__links.open {
        right: 0;
    }

    .nav__links a {
        color: var(--clr-text);
        font-size: 1rem;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }

    .hero__tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__portrait {
        order: -1;
    }

    .hero__portrait-frame {
        width: 220px;
        height: 280px;
    }

    .hero__portrait-accent {
        width: 110%;
        height: 110%;
    }

    .about__intro {
        grid-template-columns: 1fr;
    }

    .about__photo-frame {
        max-width: 400px;
        margin: 0 auto;
    }

    .about__keywords {
        grid-template-columns: 1fr 1fr;
        padding: var(--space-md);
    }

    .about__roles-grid {
        grid-template-columns: 1fr;
    }

    .projects__grid {
        grid-template-columns: 1fr;
    }

    .project-card--featured {
        grid-column: span 1;
    }

    .project-card--featured .project-card__image {
        aspect-ratio: 4/3;
    }

    .contact__content {
        grid-template-columns: 1fr;
    }

    .project-gallery--two,
    .project-gallery--three {
        grid-template-columns: 1fr;
    }

    .project-hero {
        min-height: 50vh;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }

    .hero__name {
        font-size: 2.5rem;
    }

    .about__keywords {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact__form {
        padding: var(--space-md);
    }

    .contact__form-row {
        grid-template-columns: 1fr;
    }
}
