/* ============================================================
   AADITYA V — PHOTOGRAPHY PORTFOLIO
   Premium Dark Theme with Glassmorphism
   ============================================================ */

/* ==================== CSS CUSTOM PROPERTIES ==================== */
:root {
    /* Color Palette — Warm amber/gold accent on deep dark base */
    --clr-bg-primary: #0a0a0a;
    --clr-bg-secondary: #111111;
    --clr-bg-tertiary: #1a1a1a;
    --clr-bg-card: rgba(255, 255, 255, 0.03);

    --clr-text-primary: #f0ece4;
    --clr-text-secondary: #a8a29e;
    --clr-text-muted: #6b6560;

    --clr-accent-1: #d4a55a;
    --clr-accent-2: #e8c47c;
    --clr-accent-3: #b8860b;
    --clr-accent-glow: rgba(212, 165, 90, 0.15);

    --clr-glass-bg: rgba(255, 255, 255, 0.04);
    --clr-glass-border: rgba(255, 255, 255, 0.08);
    --clr-glass-bg-hover: rgba(255, 255, 255, 0.07);

    --clr-success: #4ade80;
    --clr-error: #f87171;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, var(--clr-accent-1), var(--clr-accent-2));
    --gradient-dark: linear-gradient(180deg, var(--clr-bg-primary), var(--clr-bg-secondary));
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));

    /* Typography */
    --ff-heading: 'Playfair Display', Georgia, serif;
    --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ff-mono: 'Space Grotesk', monospace;

    --fs-hero: clamp(3.5rem, 10vw, 9rem);
    --fs-h2: clamp(2rem, 5vw, 3.5rem);
    --fs-h3: clamp(1.25rem, 2.5vw, 1.75rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-xs: 0.75rem;

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    --section-padding: clamp(4rem, 10vh, 8rem);

    /* Layout */
    --container-max: 1280px;
    --container-padding: clamp(1rem, 4vw, 2rem);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--clr-accent-glow);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.4s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);

    /* Z-Index Scale */
    --z-loader: 10000;
    --z-lightbox: 9000;
    --z-navbar: 1000;
    --z-scroll-progress: 999;
    --z-back-to-top: 800;
}


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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ff-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: 1.7;
    color: var(--clr-text-primary);
    background-color: var(--clr-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Lock body scroll when lightbox or mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

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

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

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

ul,
ol {
    list-style: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: var(--clr-accent-1);
    color: var(--clr-bg-primary);
}

:focus-visible {
    outline: 2px solid var(--clr-accent-1);
    outline-offset: 3px;
}


/* ==================== UTILITY CLASSES ==================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--clr-glass-bg);
    border: 1px solid var(--clr-glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.glass-card:hover {
    background: var(--clr-glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.12);
}


/* ==================== SECTION HEADER ==================== */
.section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section__label {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--clr-accent-1);
    margin-bottom: var(--space-sm);
    padding: 6px 18px;
    border: 1px solid rgba(212, 165, 90, 0.3);
    border-radius: var(--radius-full);
    background: rgba(212, 165, 90, 0.06);
}

.section__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: 1.15;
    margin-bottom: var(--space-md);
    color: var(--clr-text-primary);
}

.section__subtitle {
    font-size: var(--fs-body);
    color: var(--clr-text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--ff-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.03em;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn--primary {
    background: var(--gradient-accent);
    color: var(--clr-bg-primary);
    box-shadow: 0 4px 20px rgba(212, 165, 90, 0.25);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 165, 90, 0.4);
}

.btn--outline {
    border: 1px solid var(--clr-glass-border);
    color: var(--clr-text-primary);
    background: var(--clr-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn--outline:hover {
    border-color: var(--clr-accent-1);
    color: var(--clr-accent-1);
    background: rgba(212, 165, 90, 0.08);
    transform: translateY(-2px);
}

.btn--small {
    padding: 10px 24px;
    font-size: var(--fs-xs);
}

.btn--small i {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.btn--small:hover i {
    transform: translateX(4px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}


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

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.loader__shutter {
    width: 60px;
    height: 60px;
    position: relative;
    animation: loader-rotate 2s linear infinite;
}

.loader__blade {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--clr-accent-1);
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    border-radius: 2px;
}

.loader__blade:nth-child(1) {
    transform: rotate(0deg) translateX(6px);
}

.loader__blade:nth-child(2) {
    transform: rotate(60deg) translateX(6px);
}

.loader__blade:nth-child(3) {
    transform: rotate(120deg) translateX(6px);
}

.loader__blade:nth-child(4) {
    transform: rotate(180deg) translateX(6px);
}

.loader__blade:nth-child(5) {
    transform: rotate(240deg) translateX(6px);
}

.loader__blade:nth-child(6) {
    transform: rotate(300deg) translateX(6px);
}

@keyframes loader-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loader__text {
    font-family: var(--ff-heading);
    font-size: 1.25rem;
    font-weight: var(--fw-medium);
    color: var(--clr-text-primary);
    letter-spacing: 0.15em;
    opacity: 0.8;
    animation: loader-pulse 1.5s ease-in-out infinite;
}

@keyframes loader-pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}


/* ==================== SCROLL PROGRESS BAR ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: var(--z-scroll-progress);
    background: transparent;
}

.scroll-progress__bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--clr-accent-glow);
}


/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-navbar);
    padding: 20px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--clr-glass-border);
}

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

.navbar__logo {
    display: flex;
    align-items: center;
}

.navbar__logo-text {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    color: var(--clr-text-primary);
    letter-spacing: 0.02em;
}

.navbar__logo-accent {
    color: var(--clr-accent-1);
    margin-left: 2px;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.navbar__link {
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--clr-text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar__link:hover {
    color: var(--clr-text-primary);
}

.navbar__link.active {
    color: var(--clr-accent-1);
    background: rgba(212, 165, 90, 0.08);
}

/* Hamburger Menu Toggle */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
}

.navbar__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--clr-text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.navbar__toggle.active .navbar__toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar__toggle.active .navbar__toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar__toggle.active .navbar__toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Replace this with your hero background image */
    background: url('images/hero-bg.png') center center / cover no-repeat;
    background-color: var(--clr-bg-secondary);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 10, 0.5) 0%,
            rgba(10, 10, 10, 0.7) 50%,
            rgba(10, 10, 10, 0.95) 100%);
}

.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero__particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--clr-accent-1);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 8s ease-in-out infinite;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    20% {
        opacity: 0.6;
    }

    80% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--container-padding);
    max-width: 900px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--clr-glass-border);
    border-radius: var(--radius-full);
    background: var(--clr-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: var(--fs-xs);
    color: var(--clr-text-secondary);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__badge-icon {
    width: 14px;
    height: 14px;
    color: var(--clr-accent-1);
}

.hero__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-hero);
    font-weight: var(--fw-bold);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.hero__title-line {
    display: inline-block;
}

.hero__title-line--accent {
    color: var(--clr-accent-1);
    font-style: italic;
    margin-left: 0.1em;
}

.hero__subtitle {
    font-family: var(--ff-mono);
    font-size: var(--fs-small);
    color: var(--clr-text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.hero__tagline {
    font-family: var(--ff-heading);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: var(--fw-light);
    font-style: italic;
    color: var(--clr-accent-2);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll-indicator span {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--clr-text-muted);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll-dot {
    width: 3px;
    height: 8px;
    background: var(--clr-accent-1);
    border-radius: 3px;
    animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes scroll-dot {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(14px);
    }
}


/* ==================== ABOUT SECTION ==================== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about__image-frame:hover .about__image {
    transform: scale(1.05);
}

.about__image-border {
    position: absolute;
    inset: -1px;
    border: 1px solid var(--clr-glass-border);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.about__experience-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    padding: 20px 24px;
    text-align: center;
    border-radius: var(--radius-md);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(212, 165, 90, 0.2);
    box-shadow: var(--shadow-glow);
}

.about__experience-number {
    display: block;
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    font-weight: var(--fw-bold);
    color: var(--clr-accent-1);
    line-height: 1;
}

.about__experience-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--clr-text-secondary);
    margin-top: 4px;
    line-height: 1.3;
}

.about__text {
    color: var(--clr-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about__text:last-of-type {
    margin-bottom: var(--space-xl);
}

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

.about__detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
}

.about__detail-icon {
    width: 22px;
    height: 22px;
    color: var(--clr-accent-1);
    flex-shrink: 0;
}

.about__detail-title {
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    color: var(--clr-text-primary);
    line-height: 1.3;
}

.about__detail-desc {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    margin-top: 2px;
}


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

.gallery__filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-xl);
}

.gallery__filter {
    padding: 10px 24px;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--clr-text-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    background: transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.gallery__filter:hover {
    color: var(--clr-text-primary);
    background: var(--clr-glass-bg);
}

.gallery__filter.active {
    color: var(--clr-bg-primary);
    background: var(--gradient-accent);
    border-color: transparent;
}

/* Masonry-style Gallery Grid — CSS Columns for portrait images */
.gallery__grid {
    columns: 3;
    column-gap: 14px;
}

.gallery__item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 14px;
    break-inside: avoid;
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.gallery__item.hidden {
    display: none;
}

.gallery__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery__item:hover .gallery__img {
    transform: scale(1.05);
}

.gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
            rgba(10, 10, 10, 0.85) 0%,
            rgba(10, 10, 10, 0.2) 40%,
            transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__category {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--clr-accent-1);
    font-weight: var(--fw-medium);
}

.gallery__title {
    font-family: var(--ff-heading);
    font-size: 1.1rem;
    font-weight: var(--fw-medium);
    margin-top: 4px;
    color: var(--clr-text-primary);
}

.gallery__expand {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--clr-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--clr-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-primary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.gallery__expand:hover {
    background: var(--clr-accent-1);
    color: var(--clr-bg-primary);
    border-color: var(--clr-accent-1);
}

.gallery__expand i {
    width: 18px;
    height: 18px;
}


/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-lightbox);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

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

.lightbox[hidden] {
    display: none;
}

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

.lightbox__img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.lightbox__info {
    text-align: center;
    margin-top: var(--space-md);
}

.lightbox__category {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-accent-1);
    font-weight: var(--fw-medium);
}

.lightbox__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-h3);
    font-weight: var(--fw-medium);
    margin-top: 6px;
    color: var(--clr-text-primary);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--clr-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--clr-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-primary);
    transition: all var(--transition-fast);
    z-index: 2;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: var(--clr-accent-1);
    color: var(--clr-bg-primary);
    border-color: var(--clr-accent-1);
}

.lightbox__close {
    top: 24px;
    right: 24px;
}

.lightbox__prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__close i,
.lightbox__prev i,
.lightbox__next i {
    width: 22px;
    height: 22px;
}

.lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--fs-small);
    color: var(--clr-text-secondary);
    font-family: var(--ff-mono);
}


/* ==================== PROJECTS SECTION — CINEMATIC HERO ==================== */
.projects__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ---- Trigger / Header Row ---- */
.proj {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--clr-glass-border);
    background: var(--clr-bg-tertiary);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    margin-bottom: var(--space-lg);
}

.proj:hover,
.proj.active {
    border-color: rgba(212, 165, 90, 0.25);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
}

.proj__trigger {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    align-items: center;
    gap: var(--space-lg);
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: background var(--transition-fast);
}

.proj__trigger:hover {
    background: rgba(255, 255, 255, 0.02);
}

.proj__trigger-thumb {
    position: relative;
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
}

.proj__trigger-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.proj__trigger:hover .proj__trigger-thumb img {
    transform: scale(1.08);
}

.proj__trigger-info {
    padding: var(--space-md) 0;
    min-width: 0;
}

.proj__trigger-tag {
    display: block;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-accent-1);
    font-weight: var(--fw-medium);
    margin-bottom: 6px;
}

.proj__trigger-title {
    font-family: var(--ff-heading);
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: var(--fw-semibold);
    color: var(--clr-text-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.proj__trigger-desc {
    font-size: var(--fs-small);
    color: var(--clr-text-secondary);
    line-height: 1.5;
    max-width: 480px;
    margin: 0;
}

.proj__trigger-count {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    letter-spacing: 0.08em;
    white-space: nowrap;
    padding: 0 var(--space-md);
}

.proj__trigger-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--clr-glass-bg);
    border: 1px solid var(--clr-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-lg);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.proj__trigger-arrow i {
    width: 20px;
    height: 20px;
    color: var(--clr-text-secondary);
    transition: transform 0.5s var(--ease-out), color var(--transition-fast);
}

.proj__trigger:hover .proj__trigger-arrow {
    border-color: var(--clr-accent-1);
    background: rgba(212, 165, 90, 0.08);
}

.proj__trigger:hover .proj__trigger-arrow i {
    color: var(--clr-accent-1);
}

.proj.active .proj__trigger-arrow i {
    transform: rotate(180deg);
    color: var(--clr-accent-1);
}

/* ---- Expandable Panel ---- */
.proj__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s var(--ease-out);
}

.proj__panel[hidden] {
    display: block;
    max-height: 0;
    visibility: hidden;
}

.proj__panel.open {
    visibility: visible;
}

/* ======================================================
   CINEMATIC HERO — horizontal split
   Left: hero image (60%) | Right: story text (40%)
   ====================================================== */
.proj__hero {
    display: grid;
    grid-template-columns: 60% 40%;
    min-height: 520px;
    position: relative;
}

/* --- Image side --- */
.proj__hero-image {
    position: relative;
    overflow: hidden;
}

.proj__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    transition: transform 1.2s var(--ease-out);
}

.proj.active .proj__hero-image img {
    transform: scale(1);
}

/* Dark gradient that bleeds to the right from image into the story panel */
.proj__hero-fade {
    position: absolute;
    inset: 0;
    /* The gradient extends PAST the image edge to seamlessly blend into the story panel bg */
    background: linear-gradient(90deg,
            rgba(10, 10, 10, 0.0) 0%,
            rgba(10, 10, 10, 0.08) 30%,
            rgba(10, 10, 10, 0.45) 60%,
            rgba(10, 10, 10, 0.82) 80%,
            rgba(26, 26, 26, 1.0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Subtle top/bottom vignette for atmospheric depth */
.proj__hero-blur-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 10, 0.25) 0%,
            transparent 20%,
            transparent 80%,
            rgba(10, 10, 10, 0.4) 100%);
    pointer-events: none;
    z-index: 2;
}

/* --- Story / Text side --- */
.proj__hero-story {
    background: var(--clr-bg-tertiary);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: visible;
}

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

.proj__story-tag {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--clr-accent-1);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-md);
    padding: 5px 14px;
    border: 1px solid rgba(212, 165, 90, 0.25);
    border-radius: var(--radius-full);
    background: rgba(212, 165, 90, 0.06);
    width: fit-content;
}

.proj__story-title {
    font-family: var(--ff-heading);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: var(--fw-bold);
    color: var(--clr-text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.proj__story-divider {
    width: 48px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin-bottom: var(--space-md);
}

.proj__story-heading {
    font-family: var(--ff-mono);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    color: var(--clr-accent-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-sm);
}

.proj__story-text {
    font-size: 0.9rem;
    color: var(--clr-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.proj__story-text:last-of-type {
    margin-bottom: var(--space-lg);
}

.proj__story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--clr-glass-border);
}

.proj__story-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    letter-spacing: 0.04em;
}

.proj__story-meta-item i {
    width: 13px;
    height: 13px;
    color: var(--clr-accent-1);
    flex-shrink: 0;
}

/* ---- Project Gallery (3-column grid, row-major order) ---- */
.proj__gallery {
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: var(--clr-bg-secondary);
    border-top: 1px solid var(--clr-glass-border);
}

.proj__gallery-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.proj__gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.proj__gallery-item:hover img {
    transform: scale(1.06);
}

/* Project gallery hover overlay (mirrors gallery section) */
.proj__gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
            rgba(10, 10, 10, 0.80) 0%,
            rgba(10, 10, 10, 0.15) 40%,
            transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 14px;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.proj__gallery-item:hover .proj__gallery-overlay {
    opacity: 1;
    pointer-events: auto;
}

.proj__gallery-expand {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--clr-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--clr-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-primary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: auto;
}

.proj__gallery-expand:hover {
    background: var(--clr-accent-1);
    color: var(--clr-bg-primary);
    border-color: var(--clr-accent-1);
    transform: scale(1.1);
}

.proj__gallery-expand i {
    width: 16px;
    height: 16px;
}

/* Staggered scroll-reveal for gallery items */
.proj__gallery-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* Stagger delays for sequential cascade effect */
.proj__gallery-reveal:nth-child(1) {
    transition-delay: 0.0s;
}

.proj__gallery-reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.proj__gallery-reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.proj__gallery-reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.proj__gallery-reveal:nth-child(5) {
    transition-delay: 0.32s;
}

.proj__gallery-reveal:nth-child(6) {
    transition-delay: 0.40s;
}

.proj__gallery-reveal:nth-child(7) {
    transition-delay: 0.48s;
}

.proj__gallery-reveal:nth-child(8) {
    transition-delay: 0.56s;
}

.proj__gallery-reveal:nth-child(9) {
    transition-delay: 0.64s;
}


/* ==================== STATS SECTION ==================== */
.stats {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.stats__bg {
    position: absolute;
    inset: 0;
    background: url('images/stats-bg.jpg') center center / cover no-repeat;
    background-color: var(--clr-bg-tertiary);
    opacity: 0.15;
}

.stats__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
            var(--clr-bg-primary) 0%,
            transparent 20%,
            transparent 80%,
            var(--clr-bg-primary) 100%);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.stat-card__icon {
    width: 32px;
    height: 32px;
    color: var(--clr-accent-1);
    margin-bottom: var(--space-sm);
}

.stat-card__number {
    font-family: var(--ff-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: var(--fw-bold);
    color: var(--clr-text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card__number::after {
    content: '+';
    font-size: 0.6em;
    color: var(--clr-accent-1);
    margin-left: 2px;
}

.stat-card__label {
    font-size: var(--fs-small);
    color: var(--clr-text-secondary);
    letter-spacing: 0.03em;
}


/* ==================== SERVICES SECTION ==================== */
.services {
    background: var(--clr-bg-secondary);
}

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

.service-card {
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(212, 165, 90, 0.15);
}

.service-card__icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(212, 165, 90, 0.08);
    border: 1px solid rgba(212, 165, 90, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    transition: all var(--transition-fast);
}

.service-card:hover .service-card__icon-wrapper {
    background: rgba(212, 165, 90, 0.15);
    transform: scale(1.1);
}

.service-card__icon {
    width: 28px;
    height: 28px;
    color: var(--clr-accent-1);
}

.service-card__title {
    font-family: var(--ff-heading);
    font-size: 1.2rem;
    font-weight: var(--fw-semibold);
    margin-bottom: 12px;
    color: var(--clr-text-primary);
}

.service-card__description {
    font-size: var(--fs-small);
    color: var(--clr-text-secondary);
    line-height: 1.7;
}


/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 165, 90, 0.15);
}

.testimonial-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-md);
}

.testimonial-card__star {
    width: 16px;
    height: 16px;
    color: var(--clr-accent-1);
    fill: var(--clr-accent-1);
}

.testimonial-card__quote {
    font-size: var(--fs-body);
    color: var(--clr-text-secondary);
    font-style: italic;
    line-height: 1.8;
    flex: 1;
    margin-bottom: var(--space-lg);
    border-left: 2px solid rgba(212, 165, 90, 0.2);
    padding-left: var(--space-md);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 165, 90, 0.12);
    border: 1px solid rgba(212, 165, 90, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    color: var(--clr-accent-1);
    flex-shrink: 0;
}

.testimonial-card__name {
    display: block;
    font-style: normal;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-small);
    color: var(--clr-text-primary);
}

.testimonial-card__role {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    margin-top: 2px;
    display: block;
}


/* ==================== CONTACT SECTION ==================== */
.contact {
    background: var(--clr-bg-secondary);
}

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

.contact__info-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: var(--clr-text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.contact__info-text {
    color: var(--clr-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.contact__channels {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact__channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.contact__channel:hover {
    border-color: rgba(212, 165, 90, 0.2);
    transform: translateX(6px);
}

.contact__channel-icon {
    width: 22px;
    height: 22px;
    color: var(--clr-accent-1);
    flex-shrink: 0;
}

.contact__channel-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact__channel-value {
    display: block;
    font-size: var(--fs-small);
    color: var(--clr-text-primary);
    font-weight: var(--fw-medium);
    margin-top: 2px;
}

/* Contact Form */
.contact__form {
    padding: var(--space-xl);
}

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

.contact__form-label {
    display: block;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--clr-text-secondary);
    margin-bottom: 8px;
}

.contact__form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--clr-glass-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.contact__form-input::placeholder {
    color: var(--clr-text-muted);
}

.contact__form-input:focus {
    border-color: var(--clr-accent-1);
    background: rgba(212, 165, 90, 0.03);
    box-shadow: 0 0 0 3px rgba(212, 165, 90, 0.1);
}

.contact__form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.contact__form-select option {
    background: var(--clr-bg-tertiary);
    color: var(--clr-text-primary);
}

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

.contact__form-status {
    margin-top: var(--space-sm);
    font-size: var(--fs-small);
    text-align: center;
    min-height: 24px;
}

.contact__form-status.success {
    color: var(--clr-success);
}

.contact__form-status.error {
    color: var(--clr-error);
}


/* ==================== FOOTER ==================== */
.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid var(--clr-glass-border);
    position: relative;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__logo {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    color: var(--clr-text-primary);
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.footer__tagline {
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
    max-width: 320px;
    line-height: 1.6;
}

.footer__heading {
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    color: var(--clr-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    font-size: var(--fs-small);
    color: var(--clr-text-secondary);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--clr-accent-1);
}

.footer__social-links {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--clr-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-secondary);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    color: var(--clr-accent-1);
    border-color: var(--clr-accent-1);
    background: rgba(212, 165, 90, 0.08);
    transform: translateY(-3px);
}

.footer__social-link i {
    width: 20px;
    height: 20px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--clr-glass-border);
}

.footer__copyright {
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
}

.footer__credit {
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer__heart {
    width: 14px;
    height: 14px;
    color: var(--clr-accent-1);
    fill: var(--clr-accent-1);
}


/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--clr-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-back-to-top);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(212, 165, 90, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 165, 90, 0.5);
}

.back-to-top i {
    width: 22px;
    height: 22px;
}


/* ==================== SCROLL REVEAL ANIMATIONS ==================== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

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


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

/* Tablet & Small Laptops */
@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about__image-wrapper {
        max-width: 460px;
        margin: 0 auto;
    }

    .about__experience-badge {
        bottom: 16px;
        right: 16px;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
    }

    /* Projects — tablet responsive */
    .proj__trigger {
        grid-template-columns: 100px 1fr auto auto;
        gap: var(--space-md);
    }

    .proj__trigger-thumb {
        width: 100px;
        height: 75px;
    }

    .proj__hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .proj__hero-image {
        height: 300px;
    }

    .proj__hero-fade {
        background: linear-gradient(180deg,
                rgba(10, 10, 10, 0.0) 0%,
                rgba(10, 10, 10, 0.2) 50%,
                rgba(10, 10, 10, 0.92) 85%,
                rgba(10, 10, 10, 1.0) 100%);
    }

    .proj__hero-story::before {
        display: none;
    }

    .proj__gallery {
        columns: 2;
    }

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

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

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

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

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

/* Tablet Portrait */
@media (max-width: 768px) {

    /* Navigation — Mobile */
    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xs);
        padding: var(--space-xl);
        transition: right var(--transition-base);
        border-left: 1px solid var(--clr-glass-border);
    }

    .navbar__menu.active {
        right: 0;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__link {
        font-size: 1.1rem;
        padding: 14px 20px;
        width: 100%;
        text-align: left;
    }

    /* Gallery */
    .gallery__grid {
        columns: 2;
        column-gap: 10px;
    }

    .gallery__item {
        margin-bottom: 10px;
    }

    .gallery__filters {
        gap: 6px;
    }

    .gallery__filter {
        padding: 8px 16px;
        font-size: var(--fs-xs);
    }

    /* About Details */
    .about__details {
        grid-template-columns: 1fr;
    }

    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero__title {
        font-size: clamp(2.8rem, 14vw, 4.5rem);
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero__scroll-indicator {
        display: none;
    }

    .gallery__grid {
        columns: 2;
        column-gap: 8px;
    }

    .gallery__item {
        margin-bottom: 8px;
    }

    /* Projects — mobile responsive */
    .proj__trigger {
        grid-template-columns: 80px 1fr auto;
        gap: var(--space-sm);
    }

    .proj__trigger-thumb {
        width: 80px;
        height: 65px;
    }

    .proj__trigger-count {
        display: none;
    }

    .proj__trigger-desc {
        display: none;
    }

    .proj__hero-image {
        height: 220px;
    }

    .proj__gallery {
        columns: 2;
        padding: var(--space-sm) var(--space-md) var(--space-md);
    }

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

    .stat-card {
        padding: var(--space-lg) var(--space-sm);
    }

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

    .lightbox__prev,
    .lightbox__next {
        width: 40px;
        height: 40px;
    }

    .lightbox__prev {
        left: 12px;
    }

    .lightbox__next {
        right: 12px;
    }

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

/* High contrast / accessibility */
@media (prefers-reduced-motion: reduce) {

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

    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {

    .navbar,
    .loader,
    .scroll-progress,
    .back-to-top,
    .hero__scroll-indicator,
    .hero__particles {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}

/* Contact Form Additions */

.contact__hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.contact__form-checkbox {
    margin-top: 0.5rem;
}

.contact__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
}

.contact__checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.contact__checkbox-label span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.success-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.success-popup-content {
    background: #111;
    padding: 2rem;
    border-radius: 12px;
    max-width: 450px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-popup-content h3 {
    margin-bottom: 1rem;
}

.success-popup-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-popup-content button {
    padding: 10px 20px;
    cursor: pointer;
}