:root {
  --bg-color: #EAE4D3;
  --text-color: #1A1A1A;
  --accent-color: #333333;
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Playfair Display', serif;
}

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

body {
  background-color: var(--bg-color);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    url('/api/blob/assets/img/paper-bg.jpg');
  background-size: 40px 40px, 40px 40px, cover;
  background-repeat: repeat, repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  background-position: center top, center top, center center;
  color: var(--text-color);
  font-family: var(--font-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html {
  overflow-x: hidden;
  width: 100%;
  touch-action: manipulation;
}

.l-container {
  width: 100%;
  margin: 0 auto;
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-color);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--text-color);
  transition: width 0.2s, height 0.2s;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  z-index: 1000;
  pointer-events: none;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  pointer-events: auto;
}

.header-logo {
  font-family: var(--font-secondary);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-color);
  letter-spacing: 0.1em;
  z-index: 1002;
  position: relative;
  transition: color 0.4s ease;
}

.header-logo.inverted {
  color: var(--bg-color);
}

.menu-toggle {
  background: transparent;
  border: 1.5px solid var(--text-color);
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
  transition: border-color 0.3s ease;
}

.hamburger-line {
  display: block;
  width: 32px;
  height: 3px;
  background-color: #0068FE;
  border-radius: 1px;
  transition: transform 200ms cubic-bezier(0, 0, 0.58, 1), opacity 200ms ease;
  transform-origin: center;
  will-change: transform, opacity;
}

.menu-toggle.active {
  border-color: var(--text-color);
}

.menu-toggle.active .hamburger-line {
  background-color: #0068FE;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(25deg) translate(2px, 7px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-20deg) translate(2px, -5px);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0.6s ease;
}

.nav-overlay-inner {
  position: absolute;
  top: 1.5rem;
  right: 5%;
  width: 380px;
  max-height: calc(100vh - 3rem);
  background-color: var(--bg-color);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  padding: 5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translate(120%, -20%) rotate(20deg);
  transform-origin: top right;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.paperclip-close {
  position: absolute;
  top: -15px;
  left: 45px;
  width: 32px;
  height: 75px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 60' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 40V15a2.5 2.5 0 0 0-5 0v35a5 5 0 0 0 10 0V10a7.5 7.5 0 0 0-15 0v4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateY(-40px) rotate(45deg);
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1003;
  cursor: pointer;
  pointer-events: auto;
}

.paperclip-close:hover {
  transform: translateY(-2px) rotate(30deg) !important;
}

.nav-overlay.open {
  visibility: visible;
  transition: visibility 0s;
}

.nav-overlay.open .nav-overlay-inner {
  opacity: 1;
  transform: translate(0, 0) rotate(3deg);
  pointer-events: auto;
}

.nav-overlay.open .nav-overlay-inner.falling {
  transform: translateY(150vh) rotate(-15deg) !important;
  opacity: 0 !important;
  transition: transform 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53), opacity 0.8s ease;
}

.nav-overlay.open .paperclip-close {
  opacity: 1;
  transform: translateY(0) rotate(25deg);
  transition-delay: 0.4s;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nav-menu-item {
  overflow: hidden;
}

.nav-divider-item {
  width: 60%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.15);
  margin: 1rem 0;
}

.nav-menu-link {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  padding: 0.6rem 0;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu-link:hover {
  transform: translateX(8px);
}

.nav-menu-text {
  font-family: var(--font-secondary);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: block;
  line-height: 1.1;
}

.nav-menu-sub {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.4);
  margin-top: 2px;
  display: block;
}


.nav-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-admin-link {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-admin-link:hover {
  color: var(--text-color);
}

.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 1rem 0;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.top-subtitle {
  margin-bottom: 0;
  transform: translateY(3rem);
}

.bottom-subtitle {
  margin-top: 2rem;
  line-height: 1.5;
}

.decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.deco {
  position: absolute;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.cross::before,
.cross::after {
  content: '';
  position: absolute;
  background-color: var(--text-color);
}

.cross::before {
  width: 12px;
  height: 2px;
  top: 5px;
  left: 0;
}

.cross::after {
  width: 2px;
  height: 12px;
  top: 0;
  left: 5px;
}

.diamond {
  width: 10px;
  height: 10px;
  border: 1px solid var(--text-color);
  transform: rotate(45deg);
}

.c1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.c2 {
  top: 60%;
  left: 25%;
  animation-delay: 1s;
}

.c3 {
  top: 30%;
  right: 20%;
  animation-delay: 2s;
}

.c4 {
  top: 75%;
  right: 15%;
  animation-delay: 0.5s;
}

.d1 {
  top: 15%;
  left: 25%;
  animation-delay: 1.5s;
}

.d2 {
  top: 65%;
  left: 10%;
  animation-delay: 0.2s;
}

.d3 {
  top: 40%;
  right: 25%;
  animation-delay: 1.2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

section {
  padding: 100px 0;
  position: relative;
}

.section-container {
  width: 100%;
  margin: 0 auto;
}

.section-heading {
  font-family: var(--font-secondary);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4rem;
  text-align: left;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 450px) 1fr;
  gap: 4rem;
  align-items: center;
}

.who-i-am {
  font-family: var(--font-secondary);
  font-size: 5rem;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-color);
  text-transform: uppercase;
  text-align: right;
  padding-right: 2rem;
}

.word-iam {
  color: var(--text-color);
  -webkit-text-stroke: 0;
}

.about-image-block {
  padding: 1rem;
}

.image-wrapper {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3/4;
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.about-portrait:hover {
  filter: grayscale(0%);
}

.about-text-block {
  padding-left: 2rem;
}

.highlight-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.body-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
}

.signature {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sig-line {
  width: 40px;
  height: 1px;
  background-color: var(--text-color);
}

.sig-name {
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: 1.2rem;
}

.gallery-section {
  position: relative;
  padding-top: calc(100px + 15vw);
}

.gallery-watermark-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.gallery-watermark {
  position: absolute;
  top: 50vh;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: 15vw;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  will-change: transform;
}

.gallery-categories {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.category-title {
  margin-bottom: 0;
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-nav {
  display: flex;
  gap: 10px;
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--text-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.nav-btn:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

.gallery-row {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  transition: margin-top 0.5s cubic-bezier(0.25, 1, 0.5, 1), margin-bottom 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 200px 0;
  margin: -200px 0;
}

.gallery-row::-webkit-scrollbar {
  display: none;
}

.gallery-row:active {
  cursor: grabbing;
}

.gallery-row.expanded {
  margin-top: -100px;
}

.gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 10px 0;
}

.gallery-item {
  width: 450px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: bottom center;
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.gallery-item.is-portrait {
  cursor: zoom-in;
}

.gallery-item.is-portrait::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item.is-portrait:hover::after {
  opacity: 1;
}

.gallery-item.active {
  transform: translateY(-40px) scale(1.5);
  z-index: 100;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
}

/* Zoom icon visible when active (for all items, not just portrait) */
.gallery-item.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ========== Portrait Photo Lightbox Overlay ========== */
.portrait-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portrait-overlay.active {
  pointer-events: auto;
  opacity: 1;
}

.portrait-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(0px);
}

.portrait-overlay.active .portrait-overlay-bg {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.portrait-overlay-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1200px);
  max-height: 95vh;
}

.portrait-overlay-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  max-height: 92vh;
  /* Start as cropped 16:9 then animate to full portrait */
  clip-path: inset(0 0 0 0);
  transform: scale(0.6);
  opacity: 0;
  transition: 
    clip-path 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.15s,
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s ease;
}

.portrait-overlay.active .portrait-overlay-img-wrapper {
  transform: scale(1);
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.portrait-overlay-img-wrapper.animating-in {
  /* Initially show only center 16:9 crop */
  clip-path: inset(var(--clip-top) 0 var(--clip-bottom) 0);
  transform: scale(0.85);
  opacity: 1;
}

.portrait-overlay-img-wrapper.animating-expand {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
  opacity: 1;
  transition: 
    clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Landscape mode: simple scale-in, no clip animation */
.portrait-overlay-img-wrapper.landscape-mode {
  clip-path: inset(0 0 0 0);
  transform: scale(0.8);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.portrait-overlay-img-wrapper.landscape-mode.animating-expand {
  transform: scale(1);
  opacity: 1;
}

.portrait-overlay-img {
  display: block;
  max-height: 92vh;
  max-width: min(92vw, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: filter 0.5s ease;
}

/* ---- Loading spinner ---- */
.portrait-overlay-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.portrait-overlay-spinner.visible {
  opacity: 1;
}

.portrait-overlay-spinner .spinner-ring {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: spinner-rotate 0.75s linear infinite;
}

.portrait-overlay-spinner .spinner-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-primary);
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

/* ---- HD badge that appears when full-res is loaded ---- */
.portrait-hd-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-primary);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.portrait-hd-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.portrait-overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.portrait-overlay.active .portrait-overlay-close {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.portrait-overlay-close:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.1);
}

.portrait-overlay-close::before,
.portrait-overlay-close::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2px;
  background: white;
  border-radius: 2px;
}

.portrait-overlay-close::before {
  transform: rotate(45deg);
}

.portrait-overlay-close::after {
  transform: rotate(-45deg);
}

/* Closing animation */
.portrait-overlay.closing .portrait-overlay-img-wrapper {
  transform: scale(0.7);
  opacity: 0;
  clip-path: inset(30% 10% 30% 10%);
  transition:
    clip-path 0.5s cubic-bezier(0.55, 0, 1, 0.45),
    transform 0.5s cubic-bezier(0.55, 0, 1, 0.45),
    opacity 0.4s ease 0.1s;
}

.portrait-overlay.closing .portrait-overlay-bg {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition: all 0.5s ease 0.15s;
}

.portrait-overlay.closing .portrait-overlay-close {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.gallery-item.tilt-left {
  transform: scale(0.95) translateX(70px) translateY(15px) rotate(-10deg);
  z-index: 50;
}

.gallery-item.tilt-right {
  transform: scale(0.95) translateX(-70px) translateY(15px) rotate(10deg);
  z-index: 50;
}

.gallery-item.pull-left {
  transform: scale(0.95) translateX(calc(140px + var(--pull-extra, 0px))) translateY(15px);
}

.gallery-item.pull-right {
  transform: scale(0.95) translateX(calc(-140px - var(--pull-extra, 0px))) translateY(15px);
}

.gallery-category {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-category.gallery-push-up {
  transform: translateY(-100px);
}

.gallery-category.gallery-push-down {
  transform: translateY(100px);
}

.section-heading,
.category-header {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 10;
}

.gallery-section.section-expanded .section-heading {
  transform: translateY(-100px) !important;
}

.gallery-category.has-expanded .category-header {
  transform: translateY(-100px) !important;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.social-link p {
  text-align: right;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.contact-divider {
  width: 100%;
  height: 1px;
  background-color: var(--text-color);
  margin-bottom: 4rem;
}

.form-title {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.form-input {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text-color);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-bottom-color: var(--text-color);
}

.textarea {
  grid-column: span 2;
  resize: none;
}

.submit-wrapper {
  grid-column: span 2;
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.submit-btn {
  background: transparent;
  border: 1px solid var(--text-color);
  padding: 1rem 3rem;
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

@media (max-width: 1024px) {
  .l-container {
    padding: 0 6%;
  }

  section {
    padding: 80px 0;
  }

  .gallery-section {
    padding-top: calc(80px + 18vw);
  }

  .section-heading {
    font-size: 2.4rem;
    margin-bottom: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .who-i-am {
    font-size: 3.5rem;
    grid-column: span 2;
    text-align: center;
    margin-bottom: 1rem;
    padding-right: 0;
  }

  .about-text-block {
    padding-left: 1rem;
  }

  .image-wrapper {
    max-width: 100%;
  }

  .gallery-item {
    width: 220px;
  }

  .gallery-watermark {
    font-size: 18vw;
  }

  .contact-header {
    flex-direction: column;
    gap: 1rem;
  }

  .social-link p {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-outline {
    display: none !important;
  }

  .l-container {
    padding: 0 5%;
  }

  section {
    padding: 60px 0;
  }

  .gallery-section {
    padding-top: calc(60px + 25vw);
  }

  .main-header {
    padding: 1rem 5%;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    border-width: 1px;
  }

  .hamburger-line {
    width: 24px;
    height: 2.5px;
  }

  .menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(25deg) translate(1.5px, 6px);
  }

  .menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-20deg) translate(1.5px, -4px);
  }

  .nav-overlay-inner {
    top: 12vh;
    left: 50%;
    right: auto;
    width: 80%;
    max-width: 340px;
    height: auto;
    min-height: 60vh;
    max-height: 75vh;
    border-radius: 24px;
    padding: 4rem 1.5rem 2rem;
    justify-content: center;
    transform: translate(100vw, -20%) rotate(20deg);
  }

  .nav-overlay.open .nav-overlay-inner {
    transform: translate(-50%, 0) rotate(3deg);
  }

  .nav-overlay.open .nav-overlay-inner.falling {
    transform: translate(-50%, 150vh) rotate(-10deg) !important;
  }

  .nav-menu-text {
    font-size: 2.2rem;
  }

  .nav-menu-sub {
    font-size: 0.7rem;
  }

  .hero-section {
    height: 100svh;
    padding: 0 5%;
  }

  .hero-title {
    font-size: clamp(2.5rem, 14vw, 5rem);
  }

  .hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
  }

  .top-subtitle {
    transform: translateY(0);
    margin-bottom: 1rem;
  }

  .bottom-subtitle {
    margin-top: 1rem;
  }

  .section-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .who-i-am {
    font-size: 2.8rem;
    grid-column: span 1;
  }

  .about-image-block {
    padding: 0;
  }

  .image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .about-text-block {
    padding-left: 0;
    text-align: center;
  }

  .highlight-text {
    font-size: 1.05rem;
  }

  .body-text {
    font-size: 0.9rem;
  }

  .signature {
    justify-content: center;
  }

  .gallery-watermark {
    font-size: 25vw;
  }

  .gallery-categories {
    gap: 2rem;
  }

  .category-header {
    padding: 0 5%;
    margin-bottom: 1rem;
  }

  .category-title {
    font-size: 1.2rem;
  }

  .gallery-item {
    width: 70vw;
    max-width: 300px;
  }

  .gallery-item.active {
    transform: translateY(-30px) scale(1.3);
  }

  .gallery-row {
    padding: 80px 0;
    margin: -80px 0;
  }

  .gallery-row.expanded {
    margin-top: -40px;
    margin-bottom: 0;
  }

  .contact-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .social-link p {
    text-align: left;
  }

  .form-title {
    font-size: 1.2rem;
  }

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

  .textarea {
    grid-column: span 1;
  }

  .submit-wrapper {
    grid-column: span 1;
    justify-content: center;
  }

  .submit-btn {
    width: 100%;
    text-align: center;
  }

  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 13vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: 0.7rem;
  }

  .section-heading {
    font-size: 1.6rem;
  }

  .who-i-am {
    font-size: 2.2rem;
  }

  .nav-menu-text {
    font-size: 2.2rem;
  }


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

@media (min-width: 2560px) {
  .hero-title {
    font-size: clamp(6rem, 8vw, 14rem);
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .section-heading {
    font-size: 4rem;
  }

  .about-grid {
    gap: 4rem;
  }

  .who-i-am {
    font-size: 6rem;
  }

  .highlight-text {
    font-size: 1.5rem;
  }

  .body-text {
    font-size: 1.15rem;
  }

  .gallery-item {
    width: 350px;
  }

  section {
    padding: 140px 0;
  }
}

@media (min-width: 3440px) {
  .hero-title {
    font-size: clamp(8rem, 7vw, 16rem);
  }

  .gallery-item {
    width: 450px;
  }

  .who-i-am {
    font-size: 8rem;
  }

  .section-heading {
    font-size: 5rem;
  }
}