/* 
 * Leon's Photography Portfolio - Style Guide & Theme
 */

/* --- 1. Reset & Global Styles --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100svh;
  overflow: hidden;
}

body {
  background-color: #f2f2ee;
  background-image:
    linear-gradient(rgba(180, 180, 170, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 180, 170, 0.25) 1px, transparent 1px);
  background-size: 36px 36px;
  font-family: 'Inter', sans-serif;
  color: #222;
}

/* --- 2. Scroll Container (JS translates this) --- */
.scroll-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}

.portfolio-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* --- 3. Parallax Layer Pattern ---
   .px-anchor  → CSS layout responsibility (absolute position, centering)
   .px-inner   → JS animation target (only transform:translateY applied by JS)
*/
.px-anchor {
  position: absolute;
  /* Each anchor overrides top/left/transform below for its specific position */
}

.px-inner {
  will-change: transform;
  /* JS sets transform: translateY(...) only */
}

/* Profile anchor: center top */
.profile-anchor {
  top: clamp(16px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Name anchor: center of viewport */
.name-anchor {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Based-in anchor: bottom right */
.based-anchor {
  bottom: clamp(24px, 5vh, 60px);
  right: clamp(24px, 4vw, 64px);
  z-index: 10;
}

/* --- 4. Custom Cursor --- */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: #222;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.2s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.2s cubic-bezier(0.25, 1, 0.5, 1),
              background-color 0.2s ease;
}

.custom-cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(34, 34, 34, 0.35);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.3s ease,
              background-color 0.3s ease;
}

body.cursor-hover .custom-cursor {
  width: 14px;
  height: 14px;
  background-color: #e8e832;
}
body.cursor-hover .custom-cursor-follower {
  width: 56px;
  height: 56px;
  border-color: rgba(232, 232, 50, 0.6);
  background-color: rgba(232, 232, 50, 0.05);
}

/* --- 5. Profile Photo --- */
.profile-photo-wrap {
  /* No positioning transforms here — handled by .px-anchor */
}

.profile-photo-wrap:hover .profile-img {
  transform: scale(1.08) rotate(3deg);
}

.profile-img {
  width: clamp(80px, 10vw, 130px);
  height: clamp(80px, 10vw, 130px);
  border-radius: 50%;
  border: 3px solid #222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- 6. Tagline --- */
.tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(8px, 0.9vw, 12px);
  letter-spacing: 0.22em;
  color: #444;
  white-space: nowrap;
  margin-bottom: clamp(12px, 2vh, 24px);
  transform: translateX(30%) translateY(4em);
}

/* --- 7. Name Block --- */
.name-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.4;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.name-sans {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: #e8e832;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.08);
  letter-spacing: 0.08em;
}

.name-script {
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  color: #e8e832;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.08);
}

.row1 .name-script {
  font-size: clamp(170px, 24vw, 320px);
  margin-right: 0.08em;
  line-height: 0.5;
  transform: translateY(0.1em) translateX(-0.05em);
}
.row1 .name-sans {
  font-size: clamp(68px, 9.8vw, 138px);
}
.row2 .name-sans {
  font-size: clamp(55px, 8vw, 115px);
}
.row2 .name-script {
  font-size: clamp(120px, 17vw, 230px);
  margin-right: 0.08em;
  margin-left: 0.08em;
  line-height: 0.5;
  transform: translateY(-0.05em);
}

/* --- 8. Social Media (fixed, always visible) --- */
.socmed-block {
  position: fixed;
  bottom: clamp(24px, 5vh, 60px);
  left: clamp(24px, 4vw, 64px);
  z-index: 100;
}

.socmed-label {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(9px, 1vw, 12px);
  letter-spacing: 0.18em;
  color: #666;
  margin-bottom: 12px;
}

.socmed-icons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.socmed-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #222;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), color 0.25s ease;
}
.socmed-link:hover {
  transform: translateX(6px);
  color: #e8e832;
}

.socmed-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- 8.5. Language Switcher Dropdown (Fixed Top-Right) --- */
.lang-switch-block {
  position: fixed;
  top: clamp(20px, 3.5vh, 32px);
  right: clamp(20px, 4vw, 40px);
  z-index: 1000;
}

.lang-toggle-btn {
  background-color: #f2f2ee;
  border: 2px solid #222222;
  box-shadow: 4px 4px 0 #000000;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 800;
  color: #111111;
  cursor: pointer;
  letter-spacing: 0.08em;
  border-radius: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lang-toggle-btn:hover {
  background-color: #e8e832; /* signature yellow */
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000000;
}

.lang-toggle-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000000;
}

.lang-chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.25s ease;
}

.lang-switch-block.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background-color: #f2f2ee;
  border: 2px solid #222222;
  box-shadow: 6px 6px 0 #000000;
  display: flex;
  flex-direction: column;
  padding: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.lang-switch-block.is-open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-align: left;
  border-radius: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-dropdown-item:hover {
  background-color: #e8e832;
  color: #000000;
}

.lang-dropdown-item.active {
  background-color: #222222;
  color: #f2f2ee;
}

.lang-dropdown-item.active:hover {
  background-color: #333333;
}

.lang-code {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.lang-name {
  font-weight: 500;
  font-size: 11px;
  opacity: 0.85;
}

/* --- 9. Based In Block --- */
.based-block {
  text-align: right;
}

.based-label {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 2vw, 26px);
  color: #666;
  margin-bottom: 10px;
  margin-right: 90px;
}

.based-city {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: clamp(28px, 4.5vw, 58px);
  color: #222;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* --- 10. Floating Objects --- */
.float-obj {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  z-index: 5;
}

.float-obj img {
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.16));
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.3s ease;
}

#obj-laptop  { top: 8vh;    left: 3vw; }
#obj-laptop  img { width: clamp(140px, 15vw, 240px); }

#obj-camera  { top: 2vh;    right: 2vw; }
#obj-camera  img { width: clamp(100px, 11vw, 170px); }

#obj-shoe    { bottom: 4vh;  right: 10vw; }
#obj-shoe    img { width: clamp(70px, 8vw, 120px); }

#obj-bicycle { bottom: 8vh;  left: 40vw; }
#obj-bicycle img { width: clamp(130px, 14vw, 220px); }

#obj-watch   { top: 48vh;   left: -2vw; }
#obj-watch   img { width: clamp(50px, 6vw, 90px); }

#obj-glasses { top: 22vh;   left: 29vw; z-index: 0; }
#obj-glasses img { width: clamp(100px, 12vw, 180px); }

#obj-guitar  { top: 30vh;   right: 10vw; }
#obj-guitar  img { width: clamp(110px, 12vw, 190px); }

/* --- 11. About Section --- */
#section-2.about-section {
  background-color: #f7f6f2;
  background-image:
    linear-gradient(rgba(180, 180, 170, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 180, 170, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, #f7f6f2 0%, #f7cbdc 60%, #ff5ebd 100%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.about-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  width: 90%;
  max-width: 1100px;
  height: 100%;
  align-items: center;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-title {
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.03em;
  margin: 0 0 clamp(20px, 3vh, 32px) 0;
  color: #222;
  text-transform: lowercase;
}

.about-title .about-highlight {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-style: italic;
  color: #222;
}

.about-text {
  max-width: 600px;
}

.about-para {
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.highlight-text {
  background-color: #e8e832;
  color: #111;
  padding: 4px 8px;
  box-shadow: 4px 0 0 #e8e832, -4px 0 0 #e8e832;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(10px, 1.1vw, 14px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-wrap {
  position: relative;
  width: clamp(200px, 25vw, 320px);
  aspect-ratio: 2 / 3;
}

.about-yellow-bg,
.about-green-bg {
  position: absolute;
  top: 16px;
  left: -16px;
  width: 100%;
  height: 100%;
  background-color: #e8e832; /* signature yellow */
  border: 3px solid #222;
  z-index: 1;
}

.about-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid #222;
  z-index: 2;
  transition: transform 0.3s ease;
}

.about-camera-floating {
  position: absolute;
  top: -48px;
  right: -48px;
  z-index: 3;
  width: clamp(95px, 11.5vw, 145px);
  pointer-events: none;
  animation: floatCamera 4s ease-in-out infinite;
}

.about-camera-floating img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.25));
}

@keyframes floatCamera {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(6deg);
  }
}

/* --- 12. Scroll Hint --- */
.scroll-hint {
  position: fixed;
  bottom: clamp(24px, 5vh, 60px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.scroll-hint.hidden {
  opacity: 0;
}
.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #999);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(1); }
  50%       { opacity: 1;    transform: scaleY(1.2); }
}

/* ─── 12.5. My Porto Section ─── */
.porto-section {
  background-color: #ff5ebd;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.porto-header {
  position: absolute;
  top: clamp(50px, 10vh, 100px);
  left: clamp(50px, 8vw, 120px);
  z-index: 10;
}

.porto-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(24px, 3.5vw, 42px);
  color: #000000;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.porto-logo span {
  font-weight: 900;
}

.porto-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: clamp(60px, 10vw, 150px);
  width: max-content;
  margin-top: clamp(40px, 6vh, 80px);
  align-items: center;
  will-change: transform;
}

.porto-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.8vh, 24px);
  width: clamp(280px, 26vw, 400px);
  flex-shrink: 0;
}

.polaroid-card {
  background-color: #ffffff;
  padding: clamp(12px, 1.4vw, 20px);
  padding-bottom: clamp(24px, 3vw, 42px);
  border: 2px solid #222222;
  box-shadow: 6px 6px 0 #000000;
  cursor: pointer;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.polaroid-card.tilt-right {
  transform: rotate(3deg) translateY(-20px);
}

.polaroid-card.tilt-left {
  transform: rotate(-3deg) translateY(20px);
}

.polaroid-card:hover {
  transform: scale(1.05) rotate(0deg) translateY(-8px) !important;
  box-shadow: 10px 10px 0 #000000;
}

.polaroid-img-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 2px solid #222222;
  background-color: #ffffff;
  display: block;
}

.polaroid-img-wrap.is-portrait {
  aspect-ratio: 2 / 3;
}

.polaroid-img-wrap.is-landscape {
  aspect-ratio: 3 / 2;
}

.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.porto-caption {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 18px);
  color: #000000;
  line-height: 1.4;
  text-align: center;
}

/* --- 12.6. My Porto Call-to-Action --- */
.porto-cta {
  width: clamp(280px, 26vw, 400px);
  justify-content: center;
}

.cta-card {
  background-color: #f2f2ee; /* warm paper off-white like contact-form-box */
  color: #222222;            /* dark charcoal text */
  padding: clamp(24px, 3.2vw, 40px);
  border: 3px solid #222222;
  border-radius: 0;          /* matching raw/retro brutalist paper aesthetic */
  box-shadow: 8px 8px 0 #000000; /* offset solid shadow matching contact-form-box */
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  transform: rotate(1.5deg); /* playful angle like the other cards */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s ease,
              background-color 0.3s ease;
}

.cta-card:hover {
  background-color: #f2f2ee;
  transform: scale(1.05) rotate(0deg) translateY(-10px) !important;
  box-shadow: 12px 12px 0 #000000;
}

.cta-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: #111111; /* dark bold title matching contact theme */
}

.cta-desc {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 400;
  line-height: 1.6;
  color: #444444; /* legible dark body text */
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background-color: #e8e832; /* signature yellow */
  color: #000000;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(10px, 0.9vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: clamp(12px, 1.6vh, 18px) clamp(16px, 2vw, 24px);
  border: 2px solid #222222;
  box-shadow: 4px 4px 0 #222222;
  transition: background-color 0.25s ease,
              color 0.25s ease,
              box-shadow 0.15s ease,
              transform 0.15s ease;
  margin-top: 8px;
}

.cta-btn:hover {
  background-color: #efef5a;
  color: #000000;
  border-color: #222222;
  box-shadow: 6px 6px 0 #222222;
  transform: translate(-2px, -2px);
}

.cta-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #222222;
}

.cta-arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-btn:hover .cta-arrow {
  transform: translateX(6px);
}

/* --- 13. Responsive --- */
@media (max-width: 1024px) {
  .custom-cursor,
  .custom-cursor-follower { display: none; }
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    padding: clamp(20px, 4vh, 60px) 20px;
    height: 100%;
    align-content: center;
  }
  .about-title {
    font-size: clamp(26px, 6vw, 42px);
    margin-bottom: 12px;
    text-align: center;
  }
  .about-text {
    max-width: 100%;
    text-align: center;
  }
  .about-para {
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .highlight-text {
    font-size: clamp(9px, 2vw, 12px);
    padding: 2px 4px;
  }
  .about-image-wrap {
    width: clamp(120px, 20vh, 160px);
    height: auto;
    aspect-ratio: 2 / 3;
    margin: 0 auto;
  }
  .about-yellow-bg,
  .about-green-bg {
    top: 10px;
    left: -10px;
  }
  .about-camera-floating {
    top: -24px;
    right: -24px;
    width: 80px;
  }
  
  /* Section 3 Responsive */
  .porto-header {
    top: clamp(20px, 4vh, 80px);
    left: clamp(24px, 4vw, 80px);
  }
  .porto-logo {
    font-size: clamp(20px, 3vw, 32px);
  }
  .porto-container {
    gap: clamp(40px, 8vw, 80px);
    margin-top: clamp(20px, 4vh, 60px);
  }
  .polaroid-card.tilt-right,
  .polaroid-card.tilt-left {
    transform: rotate(0deg) translateY(0px);
  }
  .porto-caption {
    font-size: clamp(14px, 2.2vw, 18px);
  }
  .cta-card {
    transform: rotate(0deg) translateY(0px) !important;
    padding: clamp(16px, 2.5vw, 24px);
  }
}

@media (max-width: 768px) {
  /* Section 1 Name styling overrides for mobile */
  .row1 .name-script {
    font-size: clamp(120px, 26vw, 200px) !important;
  }
  .row1 .name-sans {
    font-size: clamp(48px, 11vw, 82px) !important;
  }
  .row2 .name-sans {
    font-size: clamp(38px, 9vw, 66px) !important;
  }
  .row2 .name-script {
    font-size: clamp(90px, 19vw, 140px) !important;
  }
  .tagline {
    order: 1 !important; /* Forces tagline to render at the bottom of the flex column */
    transform: none !important;
    font-size: clamp(8px, 2.2vw, 10px) !important;
    letter-spacing: 0.15em !important;
    text-align: center !important;
    width: 100%;
    white-space: normal !important;
    margin-top: clamp(16px, 3vh, 32px) !important;
    margin-bottom: 0 !important;
  }

  /* Floating objects optimized for small mobile screens (no hiding, beautiful framing) */
  #obj-laptop, #obj-camera, #obj-shoe, #obj-bicycle, #obj-watch, #obj-glasses, #obj-guitar {
    display: block !important;
  }
  .float-obj img {
    width: clamp(90px, 20vw, 130px) !important;
    max-width: clamp(90px, 20vw, 130px) !important;
    opacity: 0.8 !important;
  }
  /* Balanced framing layout for the 7 new items on mobile screens */
  #obj-laptop  { top: 2vh !important;   left: 4vw !important; }
  #obj-camera  { top: 1vh !important;   right: 4vw !important; }
  #obj-watch   { top: 15vh !important;  left: -1vw !important; }
  #obj-guitar  { top: 16vh !important;  right: 2vw !important; }
  #obj-glasses { top: 32vh !important;  left: 18vw !important; }
  #obj-bicycle { bottom: 12vh !important; left: 24vw !important; }
  #obj-shoe    { bottom: 8vh !important;  right: 6vw !important; }

  /* Bottom UI elements sizing & safe offsets for mobile */
  .socmed-block {
    bottom: clamp(16px, 3vh, 30px) !important;
    left: clamp(16px, 4vw, 30px) !important;
  }
  .socmed-label {
    margin-bottom: 8px !important;
    font-size: 12px !important;
  }
  .socmed-icons {
    gap: 12px !important;
  }
  .lang-switch-block {
    top: clamp(14px, 2.5vh, 24px) !important;
    right: clamp(14px, 3.5vw, 24px) !important;
  }
  .lang-toggle-btn {
    padding: 7px 12px !important;
    font-size: 12px !important;
    box-shadow: 3px 3px 0 #000000 !important;
  }
  .lang-dropdown-menu {
    min-width: 130px !important;
    box-shadow: 4px 4px 0 #000000 !important;
  }
  .lang-dropdown-item {
    padding: 7px 10px !important;
  }
  .socmed-icon {
    width: 24px !important;
    height: 24px !important;
  }
  .based-anchor {
    bottom: clamp(16px, 3vh, 30px) !important;
    right: clamp(16px, 4vw, 30px) !important;
  }
  .based-label {
    font-size: 18px !important;
    margin-right: 40px !important;
  }
  .based-city {
    font-size: 32px !important;
  }
  .scroll-hint {
    bottom: clamp(16px, 3vh, 30px) !important;
  }
  .scroll-hint-line {
    height: 24px !important;
  }

  /* Section 2 About: compact for mobile */
  .about-container {
    gap: 12px !important;
    padding: clamp(12px, 3vh, 24px) 16px !important;
  }
  .about-title {
    font-size: clamp(22px, 6vw, 34px) !important;
    margin-bottom: 8px !important;
  }
  .about-para {
    margin-bottom: 6px !important;
  }
  .highlight-text {
    font-size: clamp(8px, 2.2vw, 10px) !important;
  }
  .about-image-wrap {
    width: clamp(120px, 22vh, 180px) !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
  }
  .about-camera-floating {
    width: 70px !important;
    top: -20px !important;
    right: -20px !important;
  }

  /* Section 3 Porto: mobile fine-tune */
  .porto-header {
    top: clamp(90px, 15vh, 140px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .porto-logo {
    font-size: clamp(17px, 5vw, 24px) !important;
  }
  .porto-container {
    margin-top: clamp(50px, 8.5vh, 72px) !important;
    gap: clamp(28px, 7vw, 48px) !important;
  }
  .porto-item {
    width: clamp(220px, 65vw, 300px) !important;
  }
  .porto-caption {
    font-size: clamp(12px, 3vw, 16px) !important;
  }
  .cta-card {
    padding: 12px 14px !important;
  }
  .cta-title {
    font-size: clamp(16px, 4.5vw, 22px) !important;
  }
  .cta-desc {
    font-size: clamp(9px, 2.5vw, 11px) !important;
  }
  .cta-btn {
    font-size: clamp(9px, 2.5vw, 11px) !important;
    padding: 10px 12px !important;
  }
}

/* ─── 12.7. Contact Section ─── */
#section-4.contact-section {
  background-color: #0c0c0e;
  background-image:
    linear-gradient(rgba(199, 131, 232, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 131, 232, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, #ff5ebd 0%, #0c0c0e 40%, #0c0c0e 80%, rgba(255, 94, 189, 0.15) 100%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.contact-glow-overlay {
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(255, 94, 189, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  filter: blur(40px);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  width: 90%;
  max-width: 1100px;
  align-items: center;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.contact-form-wrapper {
  display: flex;
  justify-content: flex-end;
}

.contact-form-box {
  background-color: #f2f2ee; /* warm paper off-white */
  padding: clamp(24px, 3.5vh, 36px) clamp(24px, 3vw, 40px);
  border-radius: 0;
  box-shadow: 8px 8px 0 #000000;
  width: 100%;
  max-width: 440px;
  border: 3px solid #222222;
}

.contact-form-box .form-group {
  margin-bottom: clamp(12px, 1.8vh, 18px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form-box label {
  font-family: 'Inter', sans-serif;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 700;
  color: #222222;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form-box input,
.contact-form-box select {
  background-color: #ffffff;
  border: 2px solid #222222;
  border-radius: 0;
  padding: clamp(10px, 1.4vh, 14px) 14px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: clamp(12px, 1vw, 14px);
  color: #111111;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form-box select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

.contact-form-box input:focus,
.contact-form-box select:focus,
.contact-form-box textarea:focus {
  outline: none;
  background-color: #fdfde6; /* highlight yellow tint */
  box-shadow: 4px 4px 0 #222222;
}

.contact-form-box textarea {
  background-color: #ffffff;
  border: 2px solid #222222;
  border-radius: 0;
  padding: 12px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: clamp(12px, 1vw, 14px);
  color: #111111;
  resize: vertical;
  min-height: 100px;
  max-height: 200px;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.form-step {
  display: flex;
  flex-direction: column;
}

.form-step-hidden {
  display: none !important;
}

.form-btn-group {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(8px, 1.2vw, 16px);
}

.form-submit-btn,
.form-next-btn,
.form-back-btn {
  width: 100%;
  border: 2px solid #222222;
  border-radius: 0;
  padding: clamp(12px, 1.6vh, 16px);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(12px, 1.1vw, 14px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 4px 4px 0 #222222;
  position: relative;
  transition: background-color 0.25s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.form-submit-btn {
  background-color: #e8e832; /* signature yellow */
  color: #000000;
  margin-top: 0;
}

.form-next-btn {
  background-color: #e8e832; /* signature yellow */
  color: #000000;
  margin-top: 10px;
}

.form-back-btn {
  background-color: #f2f2ee;
  color: #222222;
}

.form-submit-btn:hover,
.form-next-btn:hover {
  background-color: #efef5a;
}

.form-back-btn:hover {
  background-color: #e3e3df;
}

.form-submit-btn:active,
.form-next-btn:active,
.form-back-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 #222222;
}

.form-footer-note {
  font-family: 'Inter', sans-serif;
  font-size: clamp(9px, 0.8vw, 10px);
  color: #555555;
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

.contact-info-wrapper {
  display: flex;
  justify-content: flex-start;
}

.contact-tabs-container {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 40px);
}

.contact-tabs {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
}

.contact-tab {
  background: none;
  border: none;
  font-size: clamp(42px, 5.5vw, 76px);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  /* Default inactive state: Elegant sans-serif italic */
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
  text-shadow: none;
  transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              text-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              font-weight 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              letter-spacing 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-tab:hover {
  color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

/* Active State: Bold, modern sans-serif Inter */
.contact-tab.active {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.04em;
}

#tab-email.active {
  color: #ff5ebd;
  text-shadow: 0 0 25px rgba(255, 94, 189, 0.8), 0 0 50px rgba(255, 94, 189, 0.4);
}

#tab-whatsapp.active {
  color: #ffffff;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.4);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.8vh, 28px);
  max-width: 500px;
}

.contact-info-list li {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: clamp(11px, 1.1vw, 13px);
  color: #ffffff;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-info-list li:hover {
  opacity: 1;
  transform: translateX(4px);
}

@media (max-width: 900px) {
  /* On tablets, switch to 1-col but still fits if content is compact */
  .contact-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 28px;
    padding: 56px 24px 32px;
    height: 100%;
    align-content: center;
    overflow: hidden;
  }
  
  .contact-form-wrapper {
    justify-content: center;
  }
  
  .contact-form-box {
    margin-left: 0;
    max-width: 100%;
    padding: clamp(16px, 2.5vh, 28px) clamp(16px, 3vw, 28px);
  }

  .contact-info-wrapper {
    justify-content: center;
  }

  .contact-tabs-container {
    align-items: center;
    gap: clamp(12px, 2vh, 20px);
  }

  .contact-tabs {
    justify-content: center;
    gap: clamp(16px, 3vw, 32px);
  }

  .contact-tab {
    font-size: clamp(28px, 5vw, 42px);
  }

  .contact-info-list {
    max-width: 100%;
    text-align: center;
    align-items: center;
    gap: clamp(10px, 1.8vh, 18px);
  }

  .contact-info-list li {
    font-size: clamp(10px, 1.4vw, 12px);
  }
}

/* ─── 13.6. Mobile Contact (≤768px): compact layout that fits 1 viewport ─── */
@media (max-width: 768px) {
  /* Restructure contact: tabs+info on top, form below — all fitting in 100vh */
  .contact-container {
    grid-template-columns: 1fr !important;
    /* Flip order: info/tabs (row 1) then form (row 2) */
    grid-template-rows: auto auto !important;
    gap: 14px !important;
    padding: 16px 16px 12px !important;
    align-content: center !important;
    height: 100vh !important;
    height: 100svh !important;
    overflow: hidden !important;
  }

  /* Move info wrapper before form wrapper using order */
  .contact-form-wrapper {
    order: 2;
    justify-content: center !important;
  }
  .contact-info-wrapper {
    order: 1;
    justify-content: center !important;
  }

  /* Contact tabs: much smaller on mobile */
  .contact-tabs-container {
    align-items: center !important;
    gap: 8px !important;
  }
  .contact-tabs {
    justify-content: center !important;
    gap: 20px !important;
  }
  .contact-tab {
    font-size: clamp(22px, 6.5vw, 34px) !important;
  }

  /* Info list: very compact */
  .contact-info-list {
    max-width: 100% !important;
    text-align: center !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .contact-info-list li {
    font-size: clamp(8px, 2.2vw, 10px) !important;
    letter-spacing: 0.02em !important;
    line-height: 1.3 !important;
    opacity: 0.7 !important;
  }

  /* Form box: compact padding + reduce field spacing */
  .contact-form-box {
    max-width: 100% !important;
    padding: 14px 14px 10px !important;
    border-radius: 0 !important;
    box-shadow: 6px 6px 0 #000000 !important;
  }
  .contact-form-box .form-group {
    margin-bottom: 8px !important;
    gap: 3px !important;
  }
  .contact-form-box label {
    font-size: 9px !important;
  }
  .contact-form-box input,
  .contact-form-box select {
    padding: 7px 10px !important;
    font-size: 12px !important;
    border-radius: 0 !important;
    border-width: 1.5px !important;
  }
  .contact-form-box textarea {
    padding: 7px 10px !important;
    font-size: 12px !important;
    min-height: 70px !important;
    max-height: 100px !important;
    border-radius: 0 !important;
    border-width: 1.5px !important;
  }
  .form-submit-btn,
  .form-next-btn,
  .form-back-btn {
    padding: 9px !important;
    font-size: 11px !important;
    border-radius: 0 !important;
    border-width: 1.5px !important;
    box-shadow: 3px 3px 0 #222222 !important;
  }
  .form-submit-btn:active,
  .form-next-btn:active,
  .form-back-btn:active {
    transform: translate(3px, 3px) !important;
    box-shadow: 0px 0px 0 #222222 !important;
  }
  .form-next-btn {
    margin-top: 6px !important;
  }
  .form-footer-note {
    margin-top: 6px !important;
    font-size: 8px !important;
  }

  /* Hide glow overlay on mobile (perf + not visible anyway) */
  .contact-glow-overlay {
    display: none !important;
  }
}

/* ─── 13.7. Very small phones (≤380px) ─── */
@media (max-width: 380px) {
  .contact-container {
    gap: 10px !important;
    padding: 12px 12px 8px !important;
  }
  .contact-tab {
    font-size: clamp(18px, 5.5vw, 26px) !important;
  }
  .contact-info-list li {
    font-size: 7.5px !important;
  }
  .contact-form-box {
    padding: 10px 10px 8px !important;
  }
  .about-camera-floating {
    width: 55px !important;
    top: -16px !important;
    right: -16px !important;
  }
  .contact-form-box .form-group {
    margin-bottom: 6px !important;
  }
  .contact-form-box input,
  .contact-form-box select {
    padding: 6px 8px !important;
    font-size: 11px !important;
  }
  .form-submit-btn,
  .form-next-btn,
  .form-back-btn {
    padding: 7px !important;
    font-size: 10px !important;
  }
}
