/* Reset and Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Styles */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 30%, #f9f9f9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overscroll-behavior: none;
}

img {
  display: block;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

#work {
  scroll-margin-top: 300px;
}

#about,
#contact {
  scroll-margin-top: 300px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 25vh;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(200, 200, 200, 0.3);
  z-index: 1000;
  overflow: hidden;
  transition: height 0.3s ease, background-color 0.3s ease;
}


header.collapsed {
  height: 80px !important;
  background: rgba(255, 255, 255, 0.95);
}

header.collapsed span {
  font-size: 1.25rem !important;
}

header.collapsed nav.nav-links a {
  font-size: 1rem !important;
}

/* Header Inner Container */
.header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header Title */
header a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2.5rem;
  margin: 0;
  color: inherit;
  text-decoration: inherit;
}

/* Navigation Links */
nav.nav-links {
  display: flex;
  align-items: center;
}

nav.nav-links a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.125rem;
  color: #222;
  text-decoration: none;
  margin-left: 20px;
  border-bottom: 1px solid transparent;
  transition: font-size 0.1s ease-out, border-color 0.2s ease;
}

header.shrunk nav.nav-links a,
header.collapsed nav.nav-links a {
  font-size: 1rem;
}

nav.nav-links a:hover,
nav.nav-links a:focus {
  border-color: #222;
  outline: none;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(200, 200, 200, 0.4);
}

.lang-switch a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #888;
  text-decoration: none;
  padding: 2px 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-left: 0;
  border-bottom: 1px solid transparent;
}

.lang-switch a:hover {
  color: #222;
}

.lang-switch a.active {
  color: #222;
  border-bottom: 1px solid #222;
}

.lang-divider {
  color: #ccc;
  font-size: 0.8rem;
  margin: 0 4px;
}

/* Hamburger Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1200;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #444;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
  bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.menu-toggle:hover span {
  background: #222;
}

/* Headings */
/* h1,
h2 {
  font-family: 'Garamond', serif;
  font-weight: 400;
  color: #111;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 1.5rem;
} */
h1 {
  margin-bottom: 15px;
}
h2 {
  font-size: 1rem;
}

/* Paragraphs */
p {
  font-family: "Georgia", serif;
  font-size: 1.1rem;
  color: #444;
  max-width: 700px;
  margin-bottom: 1.5em;
  letter-spacing: 0.01em;
}

/* Main */
main {
  padding-top: 0;
}

/* Hero Section */
.hero {
  margin-top: 25vh;
  display: flex;
  justify-content: center;
}

.hero img {
  width: 100%;
  max-width: 1500px;
  /* max-height: 100vh; */
  object-fit: cover;
}

/* Spacer */
.spacer {
  height: 300px;
  width: 100%;
}

/* Separator */
.separator {
  width: 100%;
  max-width: 1500px;
  margin: 80px auto;
  height: 1px;
  background: #ddd;
  text-align: center;
}

.separator span {
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, #fafafa, #fff);
  padding: 0 15px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  top: -1rem;
  color: #666;
}

/* Section Label */
.section-label {
  text-align: center;
  margin: 100px 0 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #555;
  text-transform: lowercase;
  letter-spacing: 0.1em;
}

/* Gallery */
.gallery-container {
  display: flex;
  justify-content: center;
  padding: 40px;
  scroll-margin-top: 300px;
  position: relative;
}

.gallery {
  width: 100%;
  max-width: 1500px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-auto-rows: auto;
  gap: 40px;
}

.gallery figure {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.gallery figure:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.gallery figure.tall {
  grid-row: span 2;
}


figure img {
  transition: transform 0.4s ease, opacity 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

figure:hover img {
  transform: scale(1.03);
}

/* Zoom overlay */
.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(10px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transition: background 0.3s ease;
}

/* Placeholder to reserve space */
.gallery figure.placeholder {
  visibility: hidden;
}

/* The expanded clone: default styling */
.expanded-clone {
  border-radius: 8px;
  transition: all 0.4s ease;
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

.expanded-clone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-transform: translate3d(0, 0, 0);
}

.zoom-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 50%;
  z-index: 10000;
  transition: background 0.3s ease;
}

.zoom-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}



/* Captions */
figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  color: #333;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  padding: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

figure.visible figcaption,
figure:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.caption-link {
  font-family: "Georgia", serif;
  font-size: 13px;
  color: #555;
  text-decoration: underline;
}

/* Description Block */
.description-block {
  max-width: 600px;
  margin: 60px auto;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: #444;
  text-align: center;
  padding: 20px;
}

/* Contact Block (within About) */
.contact-block {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(200, 200, 200, 0.4);
}

.contact-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 16px;
}

.contact-block p {
  font-size: 1rem;
  margin-bottom: 1em;
}

.contact-email a {
  color: #222;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.contact-email a:hover {
  color: #555;
}

/* Floating Layout */
.floating-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  max-width: 1500px;
  margin: 100px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
}

.floating-layout .image,
.floating-layout .text {
  flex: 1 1 400px;
}

/* Footer */
footer {
  text-align: center;
  font-size: 14px;
  color: #777;
  margin-top: 100px;
  padding: 60px 40px 40px;
  background: rgba(248, 248, 248, 0.6);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(200, 200, 200, 0.3);
}

footer .footer-content {
  max-width: 900px;
  margin: 0 auto;
}

footer .seo-content {
  margin-bottom: 40px;
  text-align: left;
}

footer .seo-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 16px;
  text-align: center;
}

footer .seo-content p {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 1em;
  max-width: 100%;
}

footer .seo-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}

footer .seo-keywords span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  color: #888;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(200, 200, 200, 0.3);
}

footer .footer-contact {
  margin: 30px 0;
}

footer .footer-contact a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #444;
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid rgba(200, 200, 200, 0.5);
  border-radius: 30px;
  transition: all 0.2s ease;
  display: inline-block;
}

footer .footer-contact a:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: #999;
  color: #222;
}

footer .copyright {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: #999;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(200, 200, 200, 0.3);
}

/* Scrollbar Removal for No Scroll Class */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Page Shimmer Overlay */
.page-shimmer {
  position: fixed;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100vh;
  background: linear-gradient(120deg,
      transparent 40%,
      rgba(255, 255, 255, 0.8) 50%,
      transparent 60%);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 9999;
  animation: shimmer 1.5s ease forwards;
}

@keyframes shimmer {
  0% {
    left: -150%;
  }

  100% {
    left: 150%;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .header-inner {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  header {
    height: 80px;
  }

  header a {
    font-size: 1.5rem;
  }

  header span {
    font-size: 1.25rem;
  }

  nav.nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
    padding: 20px;
    z-index: 999;
  }

  nav.nav-links.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  nav.nav-links a {
    font-size: 1.125rem;
    margin: 15px 0;
    margin-left: 0;
    padding: 10px 0;
  }

  .lang-switch {
    margin-left: 0;
    margin-top: 20px;
    padding-left: 0;
    padding-top: 20px;
    border-left: none;
    border-top: 1px solid rgba(200, 200, 200, 0.3);
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .lang-switch a {
    font-size: 1rem;
    padding: 4px 0;
  }

  .menu-toggle {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    margin-top: 80px;
  }

  .gallery-container {
    padding: 20px 0;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
  }

  .gallery figure.tall {
    grid-row: span 1;
  }

  .description-block {
    padding: 20px;
    font-size: 1rem;
    text-align: left;
    margin: 40px 20px;
  }

  .floating-layout {
    flex-direction: column;
    margin: 50px 20px;
    padding: 20px;
  }

  .floating-layout .image,
  .floating-layout .text {
    flex: 1 1 100%;
  }

  .section-label {
    margin: 50px 0 20px;
    font-size: 0.9rem;
  }

  .separator {
    margin: 40px auto;
  }

  p {
    font-size: 1rem;
    max-width: 100%;
  }

  h1 {
    font-size: 1.3rem;
  }

  footer {
    font-size: 12px;
    padding: 40px 20px 30px;
  }

  footer .seo-content h2 {
    font-size: 1.1rem;
  }

  footer .seo-content p {
    font-size: 0.85rem;
  }

  footer .seo-keywords span {
    font-size: 0.75rem;
  }

  #work,
  #about,
  #contact {
    scroll-margin-top: 120px;
  }

  .gallery-container {
    scroll-margin-top: 120px;
  }
}