/* ============================================
   DAIVAGNA PARMAR — LUXURY EDITORIAL PORTFOLIO
   Warm Alabaster × Rich Charcoal × Metallic Gold
   ============================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Core Palette — Sophisticated Monochrome */
    --bg: #F9F8F6;
    --fg: #1A1A1A;
    --muted-bg: #EBE5DE;
    --muted-fg: #6C6863;
    --accent: #D4AF37;
    --accent-fg: #FFFFFF;

    /* Typography */
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 8rem;
    --container-max: 1600px;

    /* Timing — Cinematic, deliberate */
    --ease-luxury: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-fast: 500ms;
    --duration-mid: 700ms;
    --duration-slow: 1500ms;
    --duration-cinematic: 2000ms;

    /* Shadows — Subtle, layered depth */
    --shadow-image: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-image-hover: 0 16px 48px rgba(0, 0, 0, 0.18);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.02);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-btn: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-btn-hover: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-inset: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.625;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--fg);
    color: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-luxury);
}

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

/* ===== PAPER NOISE TEXTURE ===== */
.paper-texture {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ===== VISIBLE GRID LINES ===== */
.grid-line {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(26, 26, 26, 0.07);
    pointer-events: none;
    z-index: 1;
}

.grid-line:nth-child(1) {
    left: 8%;
}

.grid-line:nth-child(2) {
    left: 33.33%;
}

.grid-line:nth-child(3) {
    left: 66.66%;
}

.grid-line:nth-child(4) {
    right: 8%;
    left: auto;
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.8s var(--ease-luxury), visibility 0.8s var(--ease-luxury);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--fg);
    margin-bottom: 2rem;
}

.loader-text span {
    display: inline-block;
    opacity: 0;
    animation: loaderFadeIn 0.5s ease forwards;
}

.loader-text span:nth-child(1) {
    animation-delay: 0.1s;
}

.loader-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-text span:nth-child(3) {
    animation-delay: 0.3s;
}

.loader-text span:nth-child(4) {
    animation-delay: 0.4s;
}

.loader-text span:nth-child(5) {
    animation-delay: 0.5s;
}

.loader-text span:nth-child(6) {
    animation-delay: 0.6s;
}

.loader-text span:nth-child(7) {
    animation-delay: 0.7s;
}

.loader-text span:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes loaderFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-bar {
    width: 200px;
    height: 1px;
    background: var(--muted-bg);
    margin: 0 auto;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    animation: loaderFill 2s var(--ease-luxury) forwards;
}

@keyframes loaderFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;

    padding: 0.9rem 0;

    background: rgba(249, 248, 246, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    background: rgba(249, 248, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: var(--fg);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.nav-link {
    padding: 0.5rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted-fg);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color var(--duration-fast) var(--ease-luxury);
    position: relative;
    border-radius: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--fg);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 1px;
    background: var(--accent);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10001;
}

.hamburger-line {
    width: 24px;
    height: 1px;
    background: var(--fg);
    transition: all var(--duration-fast) var(--ease-luxury);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    padding: 1rem 2rem 2.5rem;
    padding-top: 200px;

}

.hero-container {
    position: relative;
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    z-index: 2;
    padding-top: 0;
}

.hero-content {
    padding-bottom: 0;
}

.hero-overline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-line {
    width: 3rem;
    height: 1px;
    background: var(--fg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--muted-fg);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: goldPulse 2.5s ease-in-out infinite;
}

@keyframes goldPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(212, 175, 55, 0);
    }
}

.hero-title {
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted-fg);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.title-name {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 0.9;
    color: var(--fg);
    letter-spacing: -0.02em;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.title-name em {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--muted-fg);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 420px;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* ===== BUTTONS — Luxury Editorial ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 2.5rem;
    height: 3rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: box-shadow var(--duration-fast) var(--ease-luxury);
}

.btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.5;
}

.btn-primary {
    background: var(--fg);
    color: var(--accent-fg);
    box-shadow: var(--shadow-btn);
}

.btn-primary .btn-gold-overlay {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-101%);
    transition: transform var(--duration-fast) var(--ease-luxury);
    z-index: 1;
}

.btn-primary:hover .btn-gold-overlay {
    transform: translateX(0);
}

.btn-primary:hover {
    box-shadow: var(--shadow-btn-hover);
}

.btn-primary .btn-content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

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

.btn-outline:hover {
    background: var(--fg);
    color: var(--bg);
    transition: all var(--duration-fast) var(--ease-luxury);
}

/* Hero Socials */
.hero-socials {
    display: flex;
    gap: 0;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000 !important;
    border-right: 1px solid rgba(26, 26, 26, 0.1);
    transition: all var(--duration-fast) var(--ease-luxury);
}

.social-link:first-child {
    padding-left: 0;
    border-left: 1px solid rgba(26, 26, 26, 0.1);
}

.social-logo {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    filter: grayscale(1) brightness(0);
}

.social-mark {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #000;
}

.social-link svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
    stroke: #000 !important;
    fill: none;
}

.social-link:hover {
    color: #000 !important;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.hero-photo {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--duration-cinematic) var(--ease-luxury);
    box-shadow: var(--shadow-image), var(--shadow-inset);
    border-radius: 0;
}

.hero-image-wrapper:hover .hero-photo {
    transform: scale(1.02);
}

.hero-image-wrapper:hover .hero-photo {
    box-shadow: var(--shadow-image-hover), var(--shadow-inset);
}

.vertical-label {
    position: absolute;
    left: -2.5rem;
    bottom: 2rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted-fg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted-fg);
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: var(--fg);
    animation: scrollLineAnim 2.5s var(--ease-luxury) infinite;
}

@keyframes scrollLineAnim {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding) 2rem;
    position: relative;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--muted-fg);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    color: var(--fg);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.section-title em {
    font-style: italic;
    color: var(--accent);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--muted-fg);
    max-width: 480px;
    margin-top: 1rem;
    line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about {
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.about-grid {
    display: block;
}

.about-text .about-intro {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--fg);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Drop Cap */
.about-intro .drop-cap {
    float: left;
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 0.8;
    margin-right: 0.6rem;
    margin-top: 0.15rem;
    color: var(--fg);
}

.about-text p {
    color: var(--muted-fg);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--fg);
    line-height: 1;
    display: inline;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent);
    display: inline;
}

.stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--muted-fg);
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* About Image */
.about-image-wrapper {
    position: relative;
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    border-radius: 0;
    border: none;
    transition: transform var(--duration-cinematic) var(--ease-luxury);
    box-shadow: var(--shadow-image), var(--shadow-inset);
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.image-accent {
    display: none;
}

/* ===== EDUCATION / TIMELINE ===== */
.education {
    background: var(--fg);
    color: var(--bg);
}

.education .section-tag {
    color: rgba(249, 248, 246, 0.5);
}

.education .section-title {
    color: var(--bg);
}

.education .section-title em {
    color: var(--accent);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 0;
}

.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 0;
    border-top: 1px solid rgba(249, 248, 246, 0.12);
    padding: 2.5rem 0;
}

.timeline-dot {
    display: none;
}

.timeline-card {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.timeline-card:hover {
    transform: none;
    box-shadow: none;
    padding-left: 1.5rem;
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.timeline-date svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.5;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--bg);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.timeline-institution {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(249, 248, 246, 0.6);
    margin-bottom: 0.75rem;
}

.timeline-institution svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.5;
    color: var(--accent);
}

.timeline-desc {
    font-size: 0.9rem;
    color: rgba(249, 248, 246, 0.5);
    line-height: 1.7;
    max-width: 560px;
}

/* ===== SKILLS SECTION ===== */
.skills {
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

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

.skill-card {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    border-right: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 0;
    padding: 2.5rem 2rem;
    text-align: left;
    transition: all var(--duration-fast) var(--ease-luxury);
    position: relative;
    overflow: hidden;
}

.skill-placeholder {
    border-top: 1px solid rgba(26, 26, 26, .1);
    border-right: 1px solid rgba(26, 26, 26, .1);
    min-height: 165px;
}

.skill-placeholder-last {
    border-right: none;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-fast) var(--ease-luxury);
}

.skill-card:hover {
    transform: none;
    box-shadow: none;
    background: rgba(235, 229, 222, 0.3);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:nth-child(3n) {
    border-right: none;
}



.skill-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem 0;
    border-radius: 0;
    background: none;
    color: #000;
}

.skill-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
    stroke: currentColor;
}

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--fg);
}

.skill-bar {
    height: 1px;
    background: rgba(26, 26, 26, 0.15);
    overflow: hidden;
    margin-top: 1rem;
}

.skill-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 1.5s var(--ease-luxury);
    border-radius: 0;
}

.skill-bar-fill.animated {
    width: var(--level);
}

.skill-level {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--muted-fg);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.75rem;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--bg);
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
}

.project-card {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: all var(--duration-fast) var(--ease-luxury);
    cursor: default;
}

.project-card:hover {
    transform: none;
    box-shadow: none;
}

.project-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--muted-bg);
    box-shadow: var(--shadow-card), var(--shadow-inset);
    transition: box-shadow var(--duration-fast) var(--ease-luxury);
}

.project-card:hover .project-image {
    box-shadow: var(--shadow-image), var(--shadow-inset);
}

.project-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: var(--muted-fg);
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.project-placeholder svg {
    width: 32px;
    height: 32px;
    opacity: 0.3;
    stroke-width: 1;
}

.project-image img,
.project-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-luxury);
}

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

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: white;
    transition: all var(--duration-fast) var(--ease-luxury);
    transform: translateY(20px);
    opacity: 0;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--fg);
}

.project-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

.project-info {
    padding: 1.8rem 0 0;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--fg);
    margin-bottom: 0.6rem;
    transition: color var(--duration-fast) var(--ease-luxury);
}

.project-card:hover .project-title {
    color: var(--accent);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--muted-fg);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    background: transparent;
    color: var(--muted-fg);
    border: 1px solid rgba(26, 26, 26, 0.15);
    border-radius: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== GALLERY SECTION ===== */
.gallery {
    background: var(--fg);
    color: var(--bg);
}

.gallery .section-tag {
    color: rgba(249, 248, 246, 0.5);
}

.gallery .section-title {
    color: var(--bg);
}

.gallery .section-title em {
    color: var(--accent);
}

.gallery .section-subtitle {
    color: rgba(249, 248, 246, 0.6);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(249, 248, 246, 0.12);
}

.filter-btn {
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(249, 248, 246, 0.5);
    background: transparent;
    border: none;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all var(--duration-fast) var(--ease-luxury);
    margin-bottom: -1px;
}

.filter-btn:hover {
    color: var(--bg);
}

.filter-btn.active {
    color: var(--accent);
    background: transparent;
    border-bottom-color: var(--accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    transition: all var(--duration-fast) var(--ease-luxury);
    cursor: pointer;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: none;
    box-shadow: none;
}

.gallery-image {
    height: 400px;
    overflow: hidden;
    background: rgba(249, 248, 246, 0.05);
    position: relative;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-cinematic) var(--ease-luxury);
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    color: rgba(249, 248, 246, 0.3);
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.gallery-placeholder svg {
    width: 32px;
    height: 32px;
    opacity: 0.3;
    stroke-width: 1;
}

.gallery-caption {
    padding: 1.5rem 0;
}

.gallery-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--bg);
    margin-bottom: 0.4rem;
}

.gallery-caption p {
    font-size: 0.8rem;
    color: rgba(249, 248, 246, 0.5);
}

/* ===== CONTACT SECTION ===== */
.contact {
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    align-items: start;
}

.contact-info {
    padding-right: 3rem;
}

.contact-info .section-tag {
    margin-bottom: 1.5rem;
}

.contact-info .section-title {
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--muted-fg);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-details {
    margin-bottom: 0;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    width: 100%;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(26, 26, 26, .1);
    transition: all .4s ease;
}

.contact-card:hover {
    transform: none;
    padding-left: 1rem;
    border-top-color: var(--accent);
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(26, 26, 26, 0.15);
    border-radius: 0;
    color: #000;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.contact-card:hover .contact-icon {
    border-color: var(--accent);
    color: var(--accent);
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
    stroke: currentColor;
}

.contact-card h4 {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--muted-fg);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.3rem;
}

.contact-card a,
.contact-card span {
    font-size: 0.95rem;
    color: var(--fg);
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-socials {
    display: flex;
    gap: 0;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(26, 26, 26, .1);
    flex-wrap: wrap;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem 0.7rem 0;
    margin-right: 0.5rem;
    border-radius: 0;
    color: var(--fg);
    transition: all var(--duration-fast) var(--ease-luxury);
    background: none;
    border: none;
}

.contact-social-link .social-logo {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    filter: grayscale(1) brightness(0);
    transition: filter var(--duration-fast) var(--ease-luxury);
}

.social-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-fg);
    letter-spacing: 0.05em;
    transition: color var(--duration-fast) var(--ease-luxury);
}

.contact-social-link:hover .social-label {
    color: var(--accent);
}

.contact-social-link:hover .social-logo {
    filter: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 3rem;
    border-left: 1px solid rgba(26, 26, 26, .1);
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--fg);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(26, 26, 26, 0.15);
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-luxury);
    resize: none;
    border-radius: 0;
}

.form-group input {
    min-height: auto;
}

.form-group textarea {
    min-height: 160px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--muted-fg);
    pointer-events: none;
    transition: all var(--duration-fast) var(--ease-luxury);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -1rem;
    font-size: 0.6rem;
    font-style: normal;
    font-family: var(--font-body);
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--duration-fast) var(--ease-luxury);
}

.form-group input:focus~.form-line,
.form-group textarea:focus~.form-line {
    width: 100%;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    height: 3.5rem;
    font-size: 0.7rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--fg);
    color: var(--bg);
    border-top: none;
    padding: 5rem 2rem 2rem;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-top {
    text-align: left;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--bg);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(249, 248, 246, 0.5);
    max-width: 400px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(249, 248, 246, 0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color var(--duration-fast) var(--ease-luxury);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-divider {
    height: 1px;
    background: rgba(249, 248, 246, 0.1);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.7rem;
    color: rgba(249, 248, 246, 0.4);
    letter-spacing: 0.05em;
}

.heart {
    color: red;
    animation: none;
}

.back-to-top {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(249, 248, 246, 0.15);
    border-radius: 0;
    color: rgba(249, 248, 246, 0.5);
    transition: all var(--duration-fast) var(--ease-luxury);
}

.back-to-top:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: none;
}

.back-to-top svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-luxury), transform 1s var(--ease-luxury);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-photo,
    .about-image-wrapper img,
    .project-image img,
    .gallery-image img {
        filter: none !important;
        transition: none !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 5rem;
    }

    .hero {
        align-items: center;
        padding: 4rem 2rem 2.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        align-items: center;
        padding-top: 0.5rem;
    }

    .hero-content {
        order: 2;
        padding-bottom: 0;
    }

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        order: 1;
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 380px;
    }

    .hero-photo {
        height: 480px;
    }

    .vertical-label {
        display: none;
    }

    .scroll-indicator {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .about-image-wrapper img {
        height: 450px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        padding-right: 0;
    }

    .contact-form {
        border-left: none;
        border-top: 1px solid rgba(26, 26, 26, 0.1);
        padding: 3rem 0 0;
        padding-left: 0;
        max-width: none;
        justify-self: stretch;
    }

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

    .skill-card--centered {
        grid-column: auto;
        justify-self: auto;
    }

    .skill-card:nth-child(3n) {
        border-right: 1px solid rgba(26, 26, 26, 0.1);
    }

    .skill-card:nth-child(2n) {
        border-right: none;
    }

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

    .grid-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background: var(--bg);
        padding: 6rem 2rem 2rem;
        gap: 0;
        transition: right var(--duration-fast) var(--ease-luxury);
        border-left: none;
    }

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

    .nav-links .nav-link {
        font-size: 0.8rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(26, 26, 26, 0.08);
        display: block;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-photo {
        height: 400px;
    }

    .hero-image-wrapper {
        max-width: 320px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .project-image {
        height: 240px;
    }

    .project-image img,
    .project-preview-img {
        object-fit: contain;
        object-position: center;
        padding: 0.75rem;
        box-sizing: border-box;
    }

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

    .gallery-image {
        height: 320px;
    }

    .gallery-filters {
        flex-wrap: wrap;
        gap: 0;
    }

    .filter-btn {
        padding: 0.75rem 1rem;
        font-size: 0.6rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

@media (max-width: 480px) {
    :root {
        --section-padding: 4rem;
    }

    .hero {
        padding: 4rem 1rem 2rem;
    }

    .hero-container {
        padding-top: 0.5rem;
    }

    .section {
        padding: var(--section-padding) 1rem;
    }

    .title-name {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-photo {
        height: 340px;
    }

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

    .about-image-wrapper img {
        height: 350px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 2rem 0 0;
    }

    .timeline-title {
        font-size: 1.2rem;
    }

    .project-image {
        height: 180px;
    }

    .project-image img,
    .project-preview-img {
        padding: 0.5rem;
    }

    .gallery-image {
        height: 260px;
    }

    .footer {
        padding: 3rem 1rem 1.5rem;
    }
}
