/* =============================================
   MANAN KALRA — PHOTOGRAPHY PORTFOLIO
   Palette: Granite Shadows · Valley Moss · Yosemite Ivory
            Mistflower · Summit Blush · Meadow Bloom
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  /* Color palette — from the swatches */
  --granite:    #353326;
  --moss:       #897E45;
  --ivory:      #EDD9B7;
  --blush:      #EF955F;
  --meadow:     #C46D52;

  /* Derived tones */
  --bg-dark:    #2C2A1F;
  --bg-light:   #F6F0E4;
  --bg-mid:     #EDE5D4;
  --text-dark:  #1E1D15;
  --text-body:  #4A4536;
  --text-muted: #7A7260;
  --text-light: #FDFAF3;

  /* Nav */
  --nav-height: 68px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.3s;
}

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

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   NAV — Apple-style glass
   ============================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  background: rgba(253, 250, 243, 0.72);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid rgba(201, 185, 148, 0.28);
  transition: background var(--t) var(--ease);
}

.nav-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  transition: opacity var(--t);
}
.nav-brand:hover { opacity: 0.6; }

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

.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-body);
  text-decoration: none;
  position: relative;
  transition: color var(--t);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--moss);
  transition: width var(--t) var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-dark); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-dark);
  transition: var(--t) var(--ease);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(253, 250, 243, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--t);
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--moss); }

/* =============================================
   PAGES
   ============================================= */
.page { display: none; }
.page.active { display: block; }

/* =============================================
   HOME — HERO
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 9s ease-out;
}
.hero-image.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 42, 31, 0.08) 0%,
    rgba(44, 42, 31, 0.0) 50%,
    rgba(44, 42, 31, 0.55) 100%
  );
}

/* Scroll indicator only (no text in hero) */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--t);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.hero-scroll:hover { color: rgba(255,255,255,0.9); }
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -100%; }
  50%, 100% { top: 100%; }
}

/* =============================================
   HOME — GALLERY SECTION
   (no header, no intro — just images)
   ============================================= */
.gallery-section {
  background: var(--bg-dark);
  padding: 60px 0 100px;
}
.gallery-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Gallery card */
.gallery-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--granite);
  flex-shrink: 0;
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease), opacity 0.4s ease;
  opacity: 0;
}
.gallery-card img.loaded { opacity: 1; }
.gallery-card:hover img { transform: scale(1.04); }

/* Skeleton */
.gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #3a3828 25%, #433f2c 50%, #3a3828 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  transition: opacity 0.4s;
  z-index: 1;
  border-radius: inherit;
}
.gallery-card.img-loaded::before { opacity: 0; pointer-events: none; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hover dark overlay */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 42, 31, 0);
  transition: background var(--t);
  z-index: 2;
  border-radius: inherit;
}
.gallery-card:hover .gallery-card-overlay { background: rgba(44, 42, 31, 0.28); }

/* Country tag — glass morphism */
.country-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(253, 250, 243, 0.22);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  pointer-events: none;
  user-select: none;
}
.country-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blush);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(239, 149, 95, 0.7);
}

/* Expand icon */
.gallery-card-icon {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(253, 250, 243, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--t), transform var(--t) var(--ease);
}
.gallery-card:hover .gallery-card-icon {
  opacity: 1;
  transform: scale(1);
}

/* Wide card spans 2 columns */
.gallery-card.wide {
  grid-column: span 2;
}
.gallery-card.wide img {
  aspect-ratio: 16 / 7;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 26, 18, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-wrap {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
.lightbox-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  transform: scale(0.96);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.lightbox.open .lightbox-wrap img { transform: scale(1); }

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 26px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: color var(--t);
}
.lb-close:hover { color: white; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(253, 250, 243, 0.1);
  border: 1px solid rgba(255,255,255,0.14);
  color: white;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background var(--t);
}
.lb-nav:hover { background: rgba(253, 250, 243, 0.2); }
.lb-prev { left: -64px; }
.lb-next { right: -64px; }

.lb-country {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.lb-counter {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-page {
  background: var(--bg-light);
  min-height: 100vh;
}

/* About hero */
.about-hero {
  position: relative;
  height: 52vh;
  min-height: 340px;
  overflow: hidden;
}
.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(44,42,31,0.25) 0%, rgba(44,42,31,0.65) 100%);
  display: flex;
  align-items: flex-end;
  padding: 52px 52px;
}
.about-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 400;
  color: white;
  letter-spacing: 0.01em;
}

/* About body layout */
.about-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 52px 100px;
}

/* Profile row */
.about-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

.about-photo-wrap {
  position: sticky;
  top: 90px;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 24px;
  height: 100%;
  min-height: 360px;
}
.about-photo-placeholder svg {
  opacity: 0.35;
}

.about-text-col {}
.about-text-col h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 28px;
}
.about-text-col p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-body);
  font-weight: 300;
  margin-bottom: 20px;
}
.about-text-col p:last-of-type { margin-bottom: 0; }

/* Social links row */
.about-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: opacity var(--t), transform var(--t);
}
.btn-instagram:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--blush);
  color: white;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--t), transform var(--t);
}
.btn-coffee:hover { background: var(--meadow); transform: translateY(-2px); }

/* Divider */
.section-divider {
  width: 52px;
  height: 1.5px;
  background: var(--moss);
  margin: 64px 0;
}

/* =============================================
   WORLD MAP
   ============================================= */
.world-map-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 52px 100px;
}
.world-map-label {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--moss);
  margin-bottom: 24px;
  text-transform: none;
}
.world-map-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 40px;
}

.world-map-svg-wrap {
  background: var(--granite);
  border-radius: 24px;
  overflow: hidden;
  padding: 32px;
}

#world-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-land { fill: #4a4735; }
.map-visited { fill: var(--moss); transition: fill var(--t); }
.map-visited:hover { fill: var(--blush); cursor: pointer; }
.map-ocean { fill: #2C2A1F; }
.map-graticule { fill: none; stroke: rgba(237,217,183,0.05); stroke-width: 0.5; }

.map-dot {
  fill: var(--blush);
  filter: drop-shadow(0 0 4px rgba(239,149,95,0.7));
}
.map-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  fill: rgba(237, 217, 183, 0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Country chips below map */
.map-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.map-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(53, 51, 38, 0.08);
  border: 1px solid rgba(137, 126, 69, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-body);
  letter-spacing: 0.04em;
}
.map-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-dark);
  padding: 40px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(237, 217, 183, 0.08);
}
.footer-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(253, 250, 243, 0.35);
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(253, 250, 243, 0.2);
  letter-spacing: 0.04em;
}
.footer-ig {
  display: flex;
  align-items: center;
  color: rgba(253, 250, 243, 0.45);
  text-decoration: none;
  transition: color var(--t);
}
.footer-ig:hover { color: var(--blush); }

/* =============================================
   FADE-IN ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .about-profile {
    grid-template-columns: 220px 1fr;
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .about-profile {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo-wrap {
    position: static;
    max-width: 260px;
  }
  .world-map-section {
    padding: 0 28px 80px;
  }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery-card.wide { grid-column: span 1; }
  .gallery-card.wide img { aspect-ratio: 4 / 5; }
  .gallery-inner { padding: 0 16px; }

  .about-hero-overlay { padding: 36px 28px; }
  .about-body { padding: 52px 28px 72px; }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-nav { width: 40px; height: 40px; font-size: 14px; }

  .footer { padding: 32px 24px; flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { gap: 12px; }
  .country-tag { top: 12px; left: 12px; font-size: 10px; padding: 5px 10px 5px 8px; }
  .about-photo-wrap { max-width: 100%; }
  .world-map-svg-wrap { padding: 16px; border-radius: 16px; }
}
