/* ================================================
   PHOTOGRAPHER PORTFOLIO — style.css
   Theme: Light  |  Primary: #6366F1  |  Accent: #06B6D4
   ================================================ */

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-primary:   #6366F1;
  --clr-primary-d: #4F46E5;
  --clr-secondary: #8B5CF6;
  --clr-accent:    #06B6D4;
  --clr-error:     #DF3F40;

  --clr-bg:        #FAFAFA;
  --clr-surface:   #FFFFFF;
  --clr-border:    #E3E6EA;
  --clr-text:      #1A1A2E;
  --clr-muted:     #6B7280;
  --clr-light:     #F3F4F6;

  --ff-sans:   'Outfit', sans-serif;
  --ff-serif:  'Playfair Display', serif;

  --fw-light:  300;
  --fw-normal: 400;
  --fw-med:    500;
  --fw-semi:   600;
  --fw-bold:   700;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  2rem;
  --fs-4xl:  2.75rem;
  --fs-5xl:  3.75rem;
  --fs-hero: clamp(3rem, 7vw, 6rem);

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 100px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.13);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.18);

  --header-h:  72px;
  --transition: .28s cubic-bezier(.4,0,.2,1);
  --max-w:     1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-sans);
  font-weight: var(--fw-normal);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-light); }
::-webkit-scrollbar-thumb { background: var(--clr-primary); border-radius: var(--radius-full); }

/* ─── CONTAINER ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.btn--primary:hover {
  background: var(--clr-primary-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(99,102,241,.45);
}
.btn--outline {
  border: 1.5px solid var(--clr-primary);
  color: var(--clr-primary);
  background: transparent;
}
.btn--outline:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }

/* ─── SECTION HEADERS ─── */
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header--left { text-align: left; }

.section-title {
  font-family: var(--ff-serif);
  font-weight: var(--fw-med);
  font-size: var(--fs-3xl);
  line-height: 1.2;
  color: var(--clr-text);
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  border-radius: var(--radius-full);
  margin-top: var(--space-sm);
}
.section-header--left .section-title::after { margin-inline: 0; }
.section-header .section-title::after      { margin-inline: auto; }

.section-subtitle {
  margin-top: var(--space-md);
  font-size: var(--fs-lg);
  color: var(--clr-muted);
  font-weight: var(--fw-light);
}

/* ─── IMAGE PLACEHOLDERS ─── */
.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: linear-gradient(145deg, #EEF0FF 0%, #F0FDFF 100%);
  border: 2px dashed var(--clr-border);
  border-radius: inherit;
  text-align: center;
  padding: var(--space-md);
  pointer-events: none;
  z-index: 1;
}
.img-placeholder__icon { font-size: 2.5rem; line-height: 1; }
.img-placeholder__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--clr-primary);
}
.img-placeholder__hint {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  font-family: 'Courier New', monospace;
  background: rgba(99,102,241,.08);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
/* Hide placeholder when real image loaded */
.img-placeholder + img[src]:not([src=""]) { position: relative; z-index: 2; }

/* ─── FADE-UP ANIMATION ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .9s var(--transition) forwards;
}
.fade-up:nth-child(1) { animation-delay: .3s; }
.fade-up:nth-child(2) { animation-delay: .55s; }
.fade-up:nth-child(3) { animation-delay: .75s; }
.fade-up:nth-child(4) { animation-delay: .95s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.0);
  backdrop-filter: blur(0);
  transition: background var(--transition), backdrop-filter var(--transition),
              box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 20px;
  max-width: var(--max-w);
  margin-inline: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  font-weight: var(--fw-med);
  color: #fff;
  transition: color var(--transition);
}
.header.scrolled .header__logo { color: var(--clr-text); }

.logo__symbol {
  color: var(--clr-accent);
  font-size: 1.4rem;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  position: relative;
  transition: color var(--transition);
  padding-bottom: 4px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--clr-accent);
  border-radius: var(--radius-full);
  transition: width var(--transition);
}
.nav__link:hover, .nav__link.active { color: #fff; }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.header.scrolled .nav__link            { color: var(--clr-muted); }
.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active     { color: var(--clr-primary); }
.header.scrolled .nav__link::after     { background: var(--clr-primary); }

.nav__link--cta {
  background: var(--clr-primary);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover  { background: var(--clr-primary-d); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.header.scrolled .hamburger__line { background: var(--clr-text); }

.hamburger.open .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}
.mobile-nav__link {
  font-family: var(--ff-serif);
  font-size: var(--fs-3xl);
  color: var(--clr-text);
  transition: color var(--transition);
}
.mobile-nav__link:hover { color: var(--clr-primary); }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #0a0a1a 0%, #1a1a2e 100%);
}
.hero__placeholder.img-placeholder {
  border-radius: 0;
  border: none;
  background: linear-gradient(145deg, #0F172A 0%, #1E1B4B 50%, #0C4A6E 100%);
}
.hero__placeholder .img-placeholder__label,
.hero__placeholder .img-placeholder__hint { color: rgba(255,255,255,.7); }
.hero__placeholder .img-placeholder__label { color: rgba(165,180,252,1); }

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroZoom 12s ease-out forwards;
  position: relative;
  z-index: 2;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,26,.3) 0%,
    rgba(10,10,26,.25) 50%,
    rgba(10,10,26,.65) 100%
  );
  z-index: 3;
}

.hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding-inline: 20px;
  max-width: 800px;
}

.hero__eyebrow {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-md);
}

.hero__heading {
  font-family: var(--ff-serif);
  font-size: var(--fs-hero);
  font-weight: var(--fw-normal);
  color: #fff;
  line-height: 1.08;
  margin-bottom: var(--space-lg);
}

.hero__tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: var(--fw-light);
  color: rgba(255,255,255,.8);
  margin-bottom: var(--space-xl);
  letter-spacing: .02em;
}

.hero__cta {
  font-size: var(--fs-sm);
  padding: 0.875rem 2.5rem;
  box-shadow: 0 4px 30px rgba(99,102,241,.5);
}

/* Scroll hint arrow */
.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2.2s ease-in-out infinite;
}
.scroll-arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255,255,255,.6);
  border-bottom: 2px solid rgba(255,255,255,.6);
  transform: rotate(45deg);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ════════════════════════════════════════════
   PORTFOLIO GALLERY
════════════════════════════════════════════ */
.portfolio {
  padding-block: var(--space-3xl);
  background: var(--clr-bg);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--clr-border);
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
  color: var(--clr-muted);
  background: transparent;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: rgba(99,102,241,.06);
}
.filter-btn.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  box-shadow: 0 3px 12px rgba(99,102,241,.35);
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: var(--space-md);
}

.gallery__item--wide  { grid-column: span 2; }
.gallery__item--tall  { grid-row: span 2; }

.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: opacity .4s ease, transform .4s ease;
  background: var(--clr-light);
}
.gallery__item:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 4px;
}

.gallery__img-wrap {
  position: relative;
  width: 100%;
  height: calc(100% - 52px);
  overflow: hidden;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  position: relative;
  z-index: 2;
}
.gallery__item:hover .gallery__img {
  transform: scale(1.07);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(99,102,241,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 3;
}
.gallery__item:hover .gallery__overlay,
.gallery__item:focus-visible .gallery__overlay {
  opacity: 1;
}
.gallery__overlay-icon {
  font-size: 2.5rem;
  color: #fff;
  line-height: 1;
}

.gallery__caption {
  height: 52px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  border-top: 1px solid var(--clr-border);
  background: var(--clr-surface);
}
.gallery__tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: rgba(99,102,241,.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.gallery__title {
  font-size: var(--fs-sm);
  color: var(--clr-text);
  font-weight: var(--fw-med);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hidden gallery item */
.gallery__item[hidden] {
  display: none;
}
.gallery__item.filtering-out {
  opacity: 0;
  transform: scale(0.95);
}

/* ════════════════════════════════════════════
   FEATURED PROJECTS
════════════════════════════════════════════ */
.projects {
  padding-block: var(--space-3xl);
  background: var(--clr-light);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.project-card {
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.project-card:hover, .project-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.project-card__img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--clr-light);
}
.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  position: relative;
  z-index: 2;
}
.project-card:hover .project-card__img {
  transform: scale(1.06);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,26,.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 3;
}
.project-card:hover .project-card__overlay,
.project-card:focus-visible .project-card__overlay {
  opacity: 1;
}
.project-card__overlay-title {
  font-family: var(--ff-serif);
  font-size: var(--fs-2xl);
  color: #fff;
  font-weight: var(--fw-normal);
}

.project-card__body {
  padding: var(--space-lg);
}
.project-card__tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  display: block;
  margin-bottom: var(--space-sm);
}
.project-card__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-med);
  color: var(--clr-text);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.project-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
.about {
  padding-block: var(--space-3xl);
  background: var(--clr-bg);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about__img-col { position: sticky; top: calc(var(--header-h) + 24px); }

.about__img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
  max-width: 460px;
}

.about__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-xl);
}

.about__img-wrap .img-placeholder {
  border-radius: var(--radius-xl);
  aspect-ratio: 3/4;
  position: relative; /* fallback layout */
  inset: unset;
}

.about__img-accent {
  position: absolute;
  inset: -12px -12px -0 12px;
  border: 3px solid var(--clr-primary);
  border-radius: var(--radius-xl);
  z-index: 1;
  opacity: .5;
}

.about__bio {
  color: var(--clr-text);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  font-size: var(--fs-lg);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-block: var(--space-xl);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.about__stat { text-align: center; }
.about__stat-num {
  display: block;
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.about__stat-label {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  margin-top: var(--space-xs);
}

.about__awards-title {
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  font-weight: var(--fw-med);
  margin-bottom: var(--space-md);
  color: var(--clr-text);
}
.about__awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.about__awards-list li {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  padding: var(--space-sm) var(--space-md);
  background: var(--clr-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--clr-primary);
  line-height: 1.5;
}

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
.contact {
  padding-block: var(--space-3xl);
  background: var(--clr-light);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact__info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--clr-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.contact__info-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.contact__info-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(6,182,212,.12));
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact__info-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 4px;
}
.contact__info-value {
  font-size: var(--fs-base);
  font-weight: var(--fw-med);
  color: var(--clr-text);
  line-height: 1.5;
}
a.contact__info-value:hover { color: var(--clr-primary); }

.contact__socials-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: var(--space-md);
}

.socials {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
  color: var(--clr-muted);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: rgba(99,102,241,.06);
  transform: translateX(4px);
}

/* Form */
.contact-form {
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.form-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--clr-text);
  letter-spacing: .02em;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input::placeholder { color: var(--clr-muted); }
.form-input:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.form-input.error {
  border-color: var(--clr-error);
  box-shadow: 0 0 0 3px rgba(223,63,64,.15);
}
.form-textarea { resize: vertical; min-height: 120px; }

.form-error {
  font-size: var(--fs-xs);
  color: var(--clr-error);
  font-weight: var(--fw-med);
  min-height: 1em;
}

.form-success {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  color: #065F46;
  font-weight: var(--fw-med);
}
.form-success__icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #D1FAE5;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  background: var(--clr-text);
  color: rgba(255,255,255,.7);
  padding-block: var(--space-xl);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.footer__logo {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  color: #fff;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.footer__copy { font-size: var(--fs-sm); }
.footer__socials { display: flex; gap: var(--space-md); }
.footer__social-link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  position: relative;
}
.footer__social-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--clr-accent);
  transition: width var(--transition);
}
.footer__social-link:hover { color: #fff; }
.footer__social-link:hover::after { width: 100%; }

/* ════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,15,.94);
  cursor: zoom-out;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1200px);
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.lightbox__close {
  position: absolute;
  top: -48px; right: -8px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  transition: background var(--transition), transform var(--transition);
}
.lightbox__close:hover {
  background: rgba(255,255,255,.25);
  transform: rotate(90deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.2rem;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 2;
}
.lightbox__nav--prev { left: -64px; }
.lightbox__nav--next { right: -64px; }
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox__img-wrap {
  position: relative;
  max-height: 75dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 75dvh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  transition: opacity .3s ease;
}

.lightbox__spinner {
  position: absolute;
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: none;
}
.lightbox__spinner.loading { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.lightbox__footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
}
.lightbox__tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(6,182,212,.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.lightbox__caption {
  flex: 1;
  font-size: var(--fs-base);
  color: rgba(255,255,255,.8);
  font-family: var(--ff-serif);
  font-style: italic;
}
.lightbox__counter {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  margin-left: auto;
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 260px;
  }
  .projects__grid { grid-template-columns: 1fr 1fr; }
  .projects__grid .project-card:last-child { grid-column: span 2; }
  .lightbox__nav--prev { left: -52px; }
  .lightbox__nav--next { right: -52px; }
}

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__img-col { position: static; max-width: 360px; margin-inline: auto; }
  .about__img-wrap .img-placeholder { aspect-ratio: 1; }
  .about__img { aspect-ratio: 1; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .nav { display: none; }
  .hamburger { display: flex; }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }
  .gallery__item--wide { grid-column: span 2; }

  .projects__grid { grid-template-columns: 1fr; }
  .projects__grid .project-card:last-child { grid-column: span 1; }

  .about__stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
  .about__stat-num { font-size: var(--fs-3xl); }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__close { top: 8px; right: 8px; position: fixed; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__socials { justify-content: center; }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery__item--wide { grid-column: span 1; }
  .gallery__item--tall { grid-row: span 1; }

  .filters { gap: var(--space-xs); }
  .filter-btn { font-size: 0.7rem; padding: 0.4rem 0.85rem; }

  .hero__cta { padding: 0.75rem 2rem; }
  .contact-form { padding: var(--space-lg); }
  .about__stats { grid-template-columns: 1fr; }
}
