/* Varun Amin – Framer-inspired styles with LHS sidebar */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #000000;
  --bg-card: #111111;
  --bg-elevated: #1a1a1a;
  --fg: #ffffff;
  --fg-muted: #888888;
  --fg-subtle: #555555;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-width: 200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== LHS SIDEBAR NAV ===== */
.site-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 32px 24px;
  display: none;
  flex-direction: column;
  z-index: 100;
}
@media (min-width: 768px) {
  .site-sidebar { display: flex; }
}

.sidebar-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 16px;
  background: transparent;
}

.sidebar-logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 40px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-nav a {
  display: block;
  padding: 10px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.sidebar-nav a:hover {
  color: var(--fg);
}

/* Main content wrapper */
.main-content {
  min-height: 100vh;
}
@media (min-width: 768px) {
  .main-content {
    margin-left: var(--sidebar-width);
  }
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .mobile-header { display: none; }
}

.mobile-logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 24px 20px;
  z-index: 99;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--fg); }

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* ===== HERO ===== */
.hero {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}
@media (min-width: 768px) {
  .hero { padding: 60px 40px 40px; }
}

.hero h1 {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero h1 span {
  display: block;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--fg-muted);
  margin-top: 16px;
  font-weight: 400;
}
@media (min-width: 768px) {
  .hero-subtitle { font-size: 20px; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 60px 0;
}
@media (min-width: 768px) {
  .section { padding: 80px 0; }
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.section-header {
  margin-bottom: 24px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding-top: 60px;
  padding-bottom: 40px;
}
@media (min-width: 768px) {
  .page-header { padding-top: 60px; padding-bottom: 40px; }
}
.page-header h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-header .subtitle {
  font-size: 15px;
  color: var(--fg-muted);
  max-width: 500px;
}
.page-header .subtitle a {
  color: var(--fg);
  text-decoration: underline;
}

/* ===== PHOTO/TRAVEL GRID ===== */
.photo-grid,
.travel-grid {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .photo-grid,
  .travel-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Home page travel grid - fixed 3 columns on desktop, 2 on mobile */
.travel-grid-home {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, 1fr);
}
/* Hide 9th photo on mobile to show 8 photos (4 rows × 2 columns) */
@media (max-width: 639px) {
  .travel-grid-home .photo-card:nth-child(n+9) { display: none; }
}
@media (min-width: 640px) {
  .travel-grid-home { grid-template-columns: repeat(3, 1fr); }
}

.photo-card,
.travel-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}
.photo-card img,
.travel-card img,
.travel-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-card:hover img,
.travel-card:hover img,
.travel-card:hover .travel-card-image img {
  transform: scale(1.05);
}

.travel-card-image {
  position: absolute;
  inset: 0;
}

.photo-card-overlay,
.travel-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}
.photo-card:hover .photo-card-overlay,
.travel-card:hover .travel-card-overlay {
  opacity: 1;
}

.photo-card-location,
.travel-card-location-overlay {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.photo-card-title,
.travel-card-title-overlay {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
}

/* Travel card with caption below (home page style) */
.travel-card-below {
  display: block;
}
.travel-card-below .travel-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-card);
}
.travel-card-below .travel-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  margin-top: 10px;
  line-height: 1.3;
}
.travel-card-below .travel-card-location {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* ===== BLOG LIST ===== */
.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-year-group {
  margin-top: 40px;
}
.blog-year-group:first-child {
  margin-top: 0;
}

.blog-year-header {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.blog-list-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}
.blog-year-group .blog-list-item:first-child {
  padding-top: 20px;
}
.blog-list-item:hover {
  opacity: 0.7;
}

.blog-list-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
}
@media (min-width: 768px) {
  .blog-list-title { font-size: 20px; }
}

.blog-list-meta {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--fg-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--fg-subtle);
  color: var(--fg);
}
.filter-btn.active {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }
}

.about-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card);
  margin: 0 auto;
}
@media (min-width: 768px) {
  .about-image {
    width: 300px;
    height: 300px;
    margin: 0;
  }
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.about-bio {
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-muted);
}
.about-bio p {
  margin-bottom: 16px;
}
.about-bio p:last-child { margin-bottom: 0; }

/* Gallery */
.gallery-section {
  padding: 60px 0;
}
.gallery-grid {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-card);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}
.lightbox-caption {
  margin-top: 16px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 14px;
}
.lightbox-caption strong {
  color: var(--fg);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: system-ui;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.6;
}
.lightbox-close {
  top: 24px;
  right: 24px;
  font-size: 32px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  padding: 16px;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { padding: 0 40px; }
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.footer-logo-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--fg); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-social a {
  color: var(--fg-subtle);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--fg); }
.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  font-size: 12px;
  color: var(--fg-subtle);
}

/* ===== PHOTO CAROUSEL - Framer style multi-image ===== */
.photo-carousel-section {
  padding: 0 0 40px;
  width: 100%;
  overflow: hidden;
}
@media (min-width: 768px) {
  .photo-carousel-section { padding: 0 0 60px; }
}

.photo-carousel {
  position: relative;
  width: 100%;
  overflow: visible;
}

.carousel-track {
  display: flex;
  gap: 16px;
  padding: 0 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: grab;
}
.carousel-track:active {
  cursor: grabbing;
}
@media (min-width: 768px) {
  .carousel-track { 
    gap: 24px; 
    padding: 0 40px;
  }
}

.carousel-slide {
  flex: 0 0 auto;
  width: 280px;
  height: 380px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 768px) {
  .carousel-slide {
    width: 350px;
    height: 480px;
  }
}
@media (min-width: 1024px) {
  .carousel-slide {
    width: 400px;
    height: 540px;
  }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel navigation arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.photo-carousel:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }

@media (min-width: 768px) {
  .carousel-nav.prev { left: 24px; }
  .carousel-nav.next { right: 24px; }
}

@media (max-width: 640px) {
  .carousel-nav { 
    width: 40px;
    height: 40px;
    font-size: 20px;
    opacity: 1;
  }
  .carousel-nav.prev { left: 8px; }
  .carousel-nav.next { right: 8px; }
}

/* ===== UTILITIES ===== */
.photo-count {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--fg-subtle);
}

.load-more-btn,
.view-more-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 8px 20px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.load-more-btn:hover,
.view-more-btn:hover {
  opacity: 0.8;
}

.view-more-container {
  text-align: center;
  margin-top: 32px;
}

.view-more-btn {
  margin-left: 0;
  padding: 12px 28px;
}

/* Hide old header styles */
.site-header { display: none !important; }

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.photo-card img,
.travel-card img,
.carousel-slide img,
.gallery-item img {
  content-visibility: auto;
}

.carousel-track {
  will-change: transform;
}
