/* ==========================================================================
   KENOMA PORTFOLIO STYLESHEET
   Crafted for high-fidelity 3D / Concept Art Portfolios.
   All values configurable via CSS variables for easy future prompt edits.
   ========================================================================== */

/* --- CUSTOM FONTS --- */
@font-face {
  font-family: 'Bai Jamjuree';
  src: url('./fonts/bai-jamjuree.bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bai Jamjuree';
  src: url('./fonts/bai-jamjuree.regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- DESIGN SYSTEM VARIABLES --- */
:root {
  /* Typography */
  --font-brand: 'Bai Jamjuree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette */
  --color-bg: #030107;
  --color-bg-card: rgba(16, 12, 24, 0.72);
  --color-text-white: #ffffff;
  --color-text-dim: #a69bb8;
  --color-accent-purple: #9d4edd;
  --color-accent-glow: #c084fc;
  --color-accent-pink: #e0aaff;
  
  /* White Glow System */
  --white-glow-soft: rgba(255, 255, 255, 0.22);
  --white-glow-strong: rgba(255, 255, 255, 0.5);
  --white-border-subtle: rgba(255, 255, 255, 0.4);
  --white-border-strong: rgba(255, 255, 255, 0.85);

  /* Navbar Dimensions (Tightly positioned towards top-left) */
  --nav-padding-y: clamp(1rem, 2vw, 1.6rem);
  --nav-padding-x: clamp(1.2rem, 2.5vw, 2.4rem);
  --brand-font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  --nav-link-font-size: clamp(0.92rem, 1.25vw, 1.12rem);
  --nav-gap: clamp(1.4rem, 2.8vw, 3.2rem);

  /* Layout & Transitions */
  --content-max-width: 1300px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-cylinder: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled Navbar State Variables (Shrinks smoothly on scroll) */
.navbar.scrolled {
  --nav-padding-y: 0.75rem;
  --brand-font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  --nav-link-font-size: clamp(0.78rem, 1vw, 0.88rem);
  --nav-gap: clamp(1.1rem, 2vw, 2rem);
  background: rgba(4, 2, 9, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* --- RESET & GLOBAL SETUP --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fluid, unrestricted scrolling */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--color-bg);
  font-family: var(--font-brand);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-white);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- HEADER & TOP-LEFT NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--nav-padding-y) var(--nav-padding-x);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  transition: var(--transition-smooth);
  pointer-events: auto;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.brand-logo-img {
  height: clamp(2.15rem, 3.5vw, 3.1rem);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 20px rgba(157, 78, 221, 0.4));
  transition: var(--transition-smooth);
}

.brand-logo-link:hover .brand-logo-img {
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 35px rgba(192, 132, 252, 0.95));
  transform: scale(1.03);
}

.navbar.scrolled .brand-logo-img {
  height: clamp(1.4rem, 2.1vw, 1.75rem);
}

.brand-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: var(--brand-font-size);
  letter-spacing: 0.16em;
  color: var(--color-text-white);
  text-transform: uppercase;
  line-height: 1;
  transition: var(--transition-smooth);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.brand-title:hover {
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
}

.nav-link {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: var(--nav-link-font-size);
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.2rem 0;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.8);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  pointer-events: auto;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--color-text-white);
  transition: var(--transition-smooth);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  transform: translateY(-0px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(3, 1, 7, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-text-white);
  transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
  color: #ffffff;
  transform: scale(1.05);
}


/* --- SECTION COMMON SETUP --- */
.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* --- PAGE 1: HERO SECTION (CORNER-TO-CORNER DIAGONAL & SEAMLESS) --- */
.hero-section {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background-image: url('background/homepage.jpg');
  background-size: 100% 100%;
  background-position: left top;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Portfolio Button at Bottom Center */
.portfolio-scroll-btn {
  position: absolute;
  bottom: clamp(1.8rem, 4.5vh, 3.4rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: clamp(1.6rem, 3.2vw, 2.8rem);
  cursor: pointer;
  padding: 0.7rem clamp(1.8rem, 3vw, 3rem);
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  will-change: transform, opacity, filter;
}

.portfolio-btn-text {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.65em;
  margin-right: -0.65em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.45), 0 0 32px rgba(157, 78, 221, 0.6);
  transition: letter-spacing 1.15s cubic-bezier(0.16, 1, 0.3, 1),
              margin-right 1.15s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              text-shadow 0.4s ease;
  display: inline-block;
  will-change: transform, letter-spacing, opacity, filter;
}

.chevron-icon {
  width: clamp(20px, 2.2vw, 28px);
  height: auto;
  color: var(--color-accent-glow);
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.8));
  animation: chevronBob 2.2s infinite ease-in-out;
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.right-chevron {
  animation-delay: 0.15s;
}

@keyframes chevronBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

.portfolio-scroll-btn:hover {
  transform: translateX(-50%) translateY(-3px);
}

.portfolio-scroll-btn:hover .portfolio-btn-text {
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.9), 0 0 40px rgba(192, 132, 252, 1);
  letter-spacing: 0.68em;
  margin-right: -0.68em;
}

.portfolio-scroll-btn:hover .chevron-icon {
  filter: drop-shadow(0 0 16px rgba(192, 132, 252, 1));
  color: #ffffff;
}

/* Disintegration State on Scroll Down (Horizontal spread + blur/fade out) */
.portfolio-scroll-btn.disintegrated {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(1.08);
  filter: blur(8px);
}

.portfolio-scroll-btn.disintegrated .left-chevron {
  transform: translateX(-70px) scale(0.55);
  opacity: 0;
  filter: blur(10px);
}

.portfolio-scroll-btn.disintegrated .right-chevron {
  transform: translateX(70px) scale(0.55);
  opacity: 0;
  filter: blur(10px);
}

.portfolio-scroll-btn.disintegrated .portfolio-btn-text {
  letter-spacing: 1.85em;
  margin-right: -1.85em;
  transform: scaleX(1.35);
  opacity: 0;
  filter: blur(12px);
}

/* --- PAGE 2: PORTFOLIO SECTION --- */
.portfolio-section {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  /* Seamless bottom gradient feathering into #030107 to blend smoothly into About */
  background-image: linear-gradient(to bottom, transparent 82%, var(--color-bg) 100%), url('background/portfolio.jpg');
  background-size: 100% 100%, 100% 100%;
  background-position: left top, left top;
  background-repeat: no-repeat, no-repeat;
  margin-top: -1px;
  padding-top: 1px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-stage-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(3.2rem, 5.5vh, 4.8rem) clamp(1rem, 3vw, 3rem) clamp(1.2rem, 2.5vh, 2rem);
  position: relative;
  z-index: 2;
}

/* "SELECTED WORK" Header (Pop-out animation from behind center image) */
.portfolio-top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: clamp(1.5rem, 3vh, 2.6rem);
  margin-bottom: clamp(0.5rem, 1.2vh, 1rem);
  position: relative;
  z-index: 5;
}

.selected-works-tag {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.38em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.15);
  transform: translateY(115px) scale(0.72);
  opacity: 0;
  filter: blur(5px);
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.75s ease,
              filter 0.75s ease;
  will-change: transform, opacity, filter;
  display: inline-block;
}

.portfolio-section.in-view .selected-works-tag {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
}

/* 3D Cylindrical Viewport */
.carousel-cylindrical-viewport {
  position: relative;
  width: 100%;
  height: clamp(340px, 48vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  margin: auto 0;
  z-index: 20;
}

.carousel-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Navigation Arrows (White, hugging center card) */
.slider-arrow {
  position: absolute;
  top: 50%;
  width: clamp(40px, 3.2vw, 48px);
  height: clamp(40px, 3.2vw, 48px);
  border-radius: 50%;
  background: rgba(14, 14, 20, 0.85);
  border: 1px solid var(--white-border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
  transition: var(--transition-smooth);
}

.slider-arrow svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
}

/* Positioned directly adjacent to the center card */
.arrow-left {
  left: calc(50% - (clamp(480px, 58vw, 980px) / 2) - clamp(22px, 2.4vw, 38px));
  transform: translate(-50%, -50%);
}

.arrow-right {
  left: calc(50% + (clamp(480px, 58vw, 980px) / 2) + clamp(22px, 2.4vw, 38px));
  transform: translate(-50%, -50%);
}

.slider-arrow:hover {
  background: rgba(30, 30, 42, 0.95);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.6);
}

.arrow-left:hover svg {
  transform: translateX(-3px);
}

.arrow-right:hover svg {
  transform: translateX(3px);
}

/* 3D Cylindrical Cards */
.card-slide {
  position: absolute;
  left: 50%;
  width: clamp(480px, 58vw, 980px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-color: #06030c;
  user-select: none;
  transition: var(--transition-cylinder);
}

/* Stacked Images inside Card (16:9 Frame with YouTube-Style Ambient Glow) */
.card-image-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.card-slide-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  opacity: 0;
  overflow: hidden;
  border-radius: 12px;
  transition: opacity 0.8s ease-in-out;
}

.card-slide-frame.active {
  opacity: 1;
}

/* YouTube Ambient Glow: dynamic blurred layer reflecting image colors */
.card-ambient-blur-img {
  position: absolute;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  object-fit: cover;
  filter: blur(36px) brightness(0.65) saturate(1.45);
  opacity: 0.52;
  pointer-events: none;
  z-index: 1;
  transform: scale(1.08);
}

/* Subtle dark vignette to keep pillarbox/letterbox areas deep black */
.card-ambient-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Sharp foreground image: fitted within 16:9 without ANY cropping */
.card-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Center In-Focus Card (White Edge Glow, Pure 2D for maximum crispness) */
.card-slide.is-center {
  transform: translateX(-50%);
  border: 1px solid var(--white-border-subtle);
  box-shadow: 0 0 35px var(--white-glow-soft), 0 20px 60px rgba(0, 0, 0, 0.9);
  opacity: 1;
  z-index: 10;
  cursor: pointer;
}

.card-slide.is-center:hover {
  transform: translateX(-50%) scale(1.015);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 65px 12px rgba(255, 255, 255, 0.28), 0 25px 70px rgba(0, 0, 0, 0.95);
}

/* "Click to expand" Pill on Center Card Hover */
.click-to-expand-pill {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: 0.45rem 1.15rem;
  background: rgba(8, 8, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 255, 255, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 15;
}

.card-slide.is-center:hover .click-to-expand-pill {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Left Preview Card (Cropped, blurred on screen edge) */
.card-slide.is-left {
  transform: translateX(calc(-50% - clamp(50vw, 56vw, 840px))) translateZ(-160px) rotateY(16deg) scale(0.85);
  opacity: 0.38;
  filter: blur(5px) brightness(0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
  cursor: pointer;
}

.card-slide.is-left:hover {
  opacity: 0.6;
  filter: blur(3px) brightness(0.65);
}

/* Right Preview Card (Cropped, blurred on screen edge) */
.card-slide.is-right {
  transform: translateX(calc(-50% + clamp(50vw, 56vw, 840px))) translateZ(-160px) rotateY(-16deg) scale(0.85);
  opacity: 0.38;
  filter: blur(5px) brightness(0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
  cursor: pointer;
}

.card-slide.is-right:hover {
  opacity: 0.6;
  filter: blur(3px) brightness(0.65);
}

/* Hidden Cards beyond Left/Right */
.card-slide.is-hidden {
  transform: translateX(-50%) translateZ(-350px) scale(0.6);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}

/* --- ARTWORK DETAILS: BOTTOM-LEFT ALIGNED WITH CENTER CARD (matching naming_placement.png) --- */
.artwork-info-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.25rem;
  margin-top: 0.6rem;
  width: 100%;
  max-width: clamp(480px, 58vw, 980px);
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.3s ease;
}

/* Category: very small, thin, minimal */
.info-category {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--color-accent-glow);
  text-transform: uppercase;
}

/* Title: biggest font in the info */
.info-title {
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

/* Time: normal size */
.info-time {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
}

/* Software Logos: arranged below horizontally, aligned left with title */
.info-softwares-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.4rem, 2.5vw, 2.5rem);
  margin-top: 0.4rem;
}

.software-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

.software-logo-img {
  height: 24px;
  width: auto;
  max-width: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

/* Portfolio Bottom Progress Bar & Counter */
.portfolio-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.progress-bar-track {
  width: clamp(100px, 15vw, 200px);
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 33.33%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transition: width 0.4s ease;
}

.slide-counter-display {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.75);
}

/* --- SUBDUED & ASYMMETRIC PURPLE FOGGY AMBIENT GLOWS --- */
.foggy-spherical-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

/* About Left Glow: soft, gentle, off-center */
.glow-about-left {
  top: 18%;
  left: -8vw;
  width: clamp(440px, 48vw, 760px);
  height: clamp(400px, 42vw, 700px);
  background: radial-gradient(circle at 40% 40%, 
    rgba(168, 85, 247, 0.32) 0%, 
    rgba(124, 58, 237, 0.18) 35%, 
    rgba(79, 70, 229, 0.06) 60%, 
    transparent 75%
  );
  filter: blur(85px);
  animation: fogFloatLeft 18s infinite alternate ease-in-out;
}

/* Contact Right Glow: lower opacity, offset position */
.glow-contact-right {
  bottom: 8%;
  right: -10vw;
  width: clamp(460px, 50vw, 800px);
  height: clamp(420px, 46vw, 720px);
  background: radial-gradient(circle at 60% 45%, 
    rgba(192, 132, 252, 0.28) 0%, 
    rgba(147, 51, 234, 0.15) 38%, 
    rgba(99, 102, 241, 0.05) 62%, 
    transparent 75%
  );
  filter: blur(90px);
  animation: fogFloatRight 22s infinite alternate-reverse ease-in-out;
}

@keyframes fogFloatLeft {
  0% {
    transform: translateY(0) scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-20px) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateY(15px) scale(0.98);
    opacity: 0.85;
  }
}

@keyframes fogFloatRight {
  0% {
    transform: translateY(0) scale(1.02);
    opacity: 0.85;
  }
  50% {
    transform: translateY(25px) scale(0.95);
    opacity: 0.75;
  }
  100% {
    transform: translateY(-15px) scale(1.04);
    opacity: 0.9;
  }
}

/* =========================================================================
   PAGE 3A: ABOUT ME SECTION (MINDMAP + BIO)
   ========================================================================= */
.about-section {
  position: relative;
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(2.8rem, 4.5vh, 4rem) clamp(2rem, 5vw, 6rem);
}

.about-inner {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: clamp(1.4rem, 2.5vh, 2.2rem);
}

.about-me-title {
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

.title-underline {
  width: clamp(75px, 8vw, 120px);
  height: 3px;
  background: linear-gradient(to right, #ffffff, var(--color-accent-glow), transparent);
  border-radius: 2px;
  margin-top: 0.5rem;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}

.about-main-layout {
  display: grid;
  grid-template-columns: 1.85fr auto 1.15fr;
  gap: clamp(1.4rem, 2.6vw, 3rem);
  align-items: stretch;
}

/* Left Column: 8-Box Mindmap Chain (All 8 Boxes Strictly Equal Sized) */
.mindmap-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1rem, 1.8vh, 1.4rem);
  width: 100%;
  height: 100%;
}

.mindmap-row {
  display: flex;
  align-items: stretch;
  gap: clamp(0.5rem, 0.85vw, 0.9rem);
  width: 100%;
  flex: 1 1 0;
}

.mindmap-box {
  flex: 1 1 0px;
  min-width: 0;
  height: 100%;
  min-height: clamp(175px, 23vh, 235px);
  background: rgba(14, 11, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: clamp(1rem, 1.3vw, 1.4rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transition: var(--transition-smooth);
}

.mindmap-box:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 22px rgba(168, 85, 247, 0.25);
}

.box-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.box-num {
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-accent-glow);
}

.box-title {
  font-family: var(--font-brand);
  font-size: clamp(0.82rem, 0.88vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0.1rem 0 0.15rem;
  line-height: 1.25;
}

.box-underline {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1px;
}

.box-text {
  font-size: clamp(0.8rem, 0.85vw, 0.88rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  margin: 0;
}

.mindmap-arrow-h {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.15rem;
  flex-shrink: 0;
  user-select: none;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
}

.mindmap-bend-connector {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(12.5% - 8px);
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.25rem;
  user-select: none;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}

/* Sleek Vertical Divider Line */
.about-vertical-divider {
  width: 1px;
  min-height: 100%;
  align-self: stretch;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(255, 255, 255, 0.15) 15%, 
    rgba(192, 132, 252, 0.45) 50%, 
    rgba(255, 255, 255, 0.15) 85%, 
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

/* Right Column: Bio (Scaled Vertically Equal to the 8 Boxes) */
.about-bio-col {
  background: rgba(14, 11, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: clamp(2rem, 3.2vw, 3rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.bio-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  width: 100%;
}

.bio-top-row .bio-header {
  margin-bottom: 0;
}

.bio-pfp-wrapper {
  position: relative;
  flex-shrink: 0;
}

.bio-pfp-img {
  width: clamp(112px, 10.5vw, 148px);
  height: clamp(112px, 10.5vw, 148px);
  object-fit: contain;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.75));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  display: block;
  user-select: none;
}

.bio-pfp-img:hover {
  filter: drop-shadow(0 0 24px rgba(192, 132, 252, 0.75)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.85));
  transform: scale(1.05);
}

.bio-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
}

.bio-heading {
  font-family: var(--font-brand);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.bio-underline {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--color-accent-glow), rgba(255, 255, 255, 0.3), transparent);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
}

.bio-body-text {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.bio-body-text p,
.bio-placeholder {
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  font-weight: 400;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.015em;
  margin: 0;
}

/* =========================================================================
   PAGE 3B: EXPERIENCE & ACHIEVEMENTS SECTION
   ========================================================================= */
.about-exp-section {
  position: relative;
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(2.8rem, 4.5vh, 4rem) clamp(2rem, 5vw, 6rem);
}

.about-exp-inner {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-exp-title {
  font-family: var(--font-brand);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

.about-exp-layout {
  display: grid;
  grid-template-columns: 1.85fr auto 1.15fr;
  gap: clamp(1.4rem, 2.6vw, 3rem);
  align-items: stretch;
}

/* Left Column: 5 Vertically Stacked Prismatic Glassy Panels (2x vertically scaled) */
.exp-panels-col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 1.8vh, 1.45rem);
  justify-content: center;
}

.exp-panel {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 20, 38, 0.72) 0%, rgba(14, 11, 24, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  min-height: clamp(110px, 13vh, 160px);
  padding: clamp(1.2rem, 1.8vh, 1.6rem) clamp(1.4rem, 2vw, 2.2rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-start;
  gap: clamp(1.2rem, 2vw, 1.8rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: var(--transition-smooth);
  overflow: hidden;
}

/* Minimal prismatic edge sheen */
.exp-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #c084fc, #9d4edd, #60a5fa);
  opacity: 0.75;
  transition: var(--transition-smooth);
}

.exp-panel:hover {
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 25px rgba(168, 85, 247, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateX(4px);
}

.exp-panel:hover::before {
  opacity: 1;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.9);
}

.exp-panel-num {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-accent-glow);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.exp-panel-body {
  flex: 1;
}

.exp-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.exp-role-title {
  font-family: var(--font-brand);
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
}

.exp-timeline {
  font-family: var(--font-brand);
  font-size: clamp(0.78rem, 0.84vw, 0.86rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-accent-glow);
  text-transform: uppercase;
  white-space: nowrap;
}

.panel-underline {
  width: 38px;
  height: 2px;
  background: rgba(192, 132, 252, 0.5);
  margin-bottom: 0.75rem;
  border-radius: 1px;
}

.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.15rem;
  font-size: clamp(0.82rem, 0.88vw, 0.92rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.exp-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgba(192, 132, 252, 0.75);
  font-weight: 600;
}

.exp-panel-text {
  font-size: clamp(0.9rem, 1.05vw, 1.02rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

/* Right Column: Achievements */
.achievements-col {
  background: rgba(14, 11, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: clamp(2rem, 3.2vw, 3rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.achievements-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
}

.achievements-heading {
  font-family: var(--font-brand);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 1.8vh, 1.6rem);
}

.achievement-item {
  position: relative;
  padding-left: 1.15rem;
  border-left: 2px solid rgba(192, 132, 252, 0.45);
  transition: var(--transition-smooth);
}

.achievement-item:hover {
  border-left-color: #ffffff;
  transform: translateX(4px);
}

.achievement-subtitle {
  font-family: var(--font-brand);
  font-size: clamp(0.92rem, 1.05vw, 1.04rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.achievement-body {
  font-size: clamp(0.84rem, 0.92vw, 0.92rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin: 0;
}

.achievements-placeholder {
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  line-height: 1.85;
  color: var(--color-text-dim);
}

/* =========================================================================
   WORKED WITH — COMPANIES MARQUEE BAR (LEFT TO RIGHT INFINITE LOOP)
   ========================================================================= */
.companies-marquee-bar {
  width: 100%;
  background: #020104;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* Scaled up vertically */
  padding: clamp(2.4rem, 4.8vh, 3.8rem) 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  /* Animating from -50% to 0% creates an automatic flow from LEFT TO RIGHT */
  animation: marqueeLeftToRight 40s linear infinite;
  will-change: transform;
}

.companies-marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeLeftToRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

.marquee-group {
  display: flex;
  align-items: center;
  /* Balanced gap with min-width >= 100vw to ensure no logo repeats on screen */
  min-width: max(100vw, 1720px);
  justify-content: space-around;
  gap: clamp(2.2rem, 3.8vw, 4.5rem);
  padding: 0 clamp(2.5rem, 4.5vw, 5.5rem);
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: clamp(82px, 8.8vh, 108px);
}

.marquee-logo {
  /* Scaled up 1.3x with equal optical vertical alignment across all logos */
  height: clamp(75px, 8.2vh, 98px);
  max-height: 104px;
  width: auto;
  max-width: 330px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.85) contrast(1.1);
  opacity: 0.72;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  user-select: none;
  border-radius: 4px;
}

.marquee-item:hover .marquee-logo {
  filter: grayscale(0%) brightness(1) contrast(1);
  opacity: 1;
  transform: scale(1.08);
}

/* =========================================================================
   PAGE 4: REBUILT CONTACT SECTION
   ========================================================================= */
.contact-section {
  position: relative;
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.contact-inner {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(4.5rem, 8vh, 7rem) clamp(2rem, 5vw, 6rem) clamp(2rem, 3.5vh, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.contact-main-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 900px;
}

.contact-eyebrow {
  font-family: var(--font-brand);
  font-size: clamp(0.88rem, 1.1vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--color-accent-glow);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  display: inline-block;
}

.contact-main-heading {
  font-family: var(--font-brand);
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0.07em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.contact-heading-accent {
  color: #ffffff;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.45);
}

.contact-description {
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.015em;
}

/* Unclickable Contact Email Pill Badge */
.contact-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.8rem;
  background: rgba(18, 14, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin-bottom: 2.8rem;
  cursor: default;
  user-select: text;
  width: fit-content;
}

.email-pill-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent-glow);
  flex-shrink: 0;
}

.email-pill-text {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
}

/* Socials Block */
.contact-socials-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 3.5rem;
}

.contact-socials-heading {
  font-family: var(--font-brand);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--color-accent-glow);
  text-transform: uppercase;
}

.contact-social-icons {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.social-icon-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(18, 14, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition-smooth);
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.social-icon-link:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(36, 26, 52, 0.95);
  box-shadow: 0 0 22px rgba(192, 132, 252, 0.65), 0 0 10px rgba(255, 255, 255, 0.4);
  transform: translateY(-3px) scale(1.08);
}

.social-icon-link.is-placeholder {
  opacity: 0.42;
  cursor: default;
}

.social-icon-link.is-placeholder:hover {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(18, 14, 28, 0.78);
  box-shadow: none;
  transform: none;
}

.social-svg-icon {
  width: 20px;
  height: 20px;
}

/* Bottom Footer Container */
.contact-footer-container {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: auto;
  width: 100%;
}

.contact-availability-text {
  font-family: var(--font-brand);
  font-size: clamp(0.85rem, 1.05vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  width: 100%;
}

.back-to-top {
  color: #ffffff;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.back-to-top:hover {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

/* --- SEMI-FULLSCREEN LIGHTBOX MODAL (WHITE GLOW & WHITE ARROWS) --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 1, 5, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1.5rem;
}

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

/* Exit 'X' Button on TOP-LEFT */
.lightbox-close-top-left {
  position: absolute;
  top: clamp(1.2rem, 3vw, 2.5rem);
  left: clamp(1.2rem, 3vw, 2.5rem);
  background: none;
  border: none;
  color: #ffffff;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
  z-index: 2010;
}

.lightbox-close-top-left:hover {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.lightbox-content-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2.8rem);
  max-width: 95vw;
  max-height: 90vh;
}

.modal-img-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 82vw;
  max-height: 82vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--white-border-subtle);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 45px var(--white-glow-soft);
  transform: scale(0.98);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.modal-caption {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-transform: uppercase;
}

/* Modal Description Slide (Black / Obsidian card at rightmost end of project) */
.modal-description-slide {
  width: clamp(340px, 68vw, 840px);
  min-height: clamp(260px, 45vh, 460px);
  background: rgba(8, 6, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 255, 255, 0.08);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.desc-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.desc-project-title {
  font-family: var(--font-brand);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.desc-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, #ffffff, var(--color-accent-glow));
  margin-bottom: 1.4rem;
}

.desc-text {
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
  max-width: 680px;
  text-align: left;
}

/* White Modal Navigation Arrows */
.modal-arrow {
  width: clamp(42px, 3.5vw, 52px);
  height: clamp(42px, 3.5vw, 52px);
  border-radius: 50%;
  background: rgba(14, 14, 20, 0.85);
  border: 1px solid var(--white-border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.modal-arrow:hover {
  background: rgba(30, 30, 42, 0.95);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.6);
}

.modal-arrow-left:hover svg {
  transform: translateX(-3px);
}

.modal-arrow-right:hover svg {
  transform: translateX(3px);
}

/* =========================================================================
   FLUID SCROLL-REVEAL TRANSITIONS (PAGES 3A, 3B, 4 — HALF SPEED / CINEMATIC)
   ========================================================================= */

/* Silent instant reset when scrolled out of view (guarantees fresh animations when scrolling back up) */
body.js-ready #about:not(.revealed) .about-me-title,
body.js-ready #about:not(.revealed) .title-underline,
body.js-ready #about:not(.revealed) .mindmap-box,
body.js-ready #about:not(.revealed) .mindmap-arrow-h,
body.js-ready #about:not(.revealed) .about-vertical-divider,
body.js-ready #about:not(.revealed) .about-bio-col,
body.js-ready #about:not(.revealed) .bio-top-row,
body.js-ready #about:not(.revealed) .bio-body-text p,
body.js-ready #about-exp:not(.revealed) .about-exp-title,
body.js-ready #about-exp:not(.revealed) .title-underline,
body.js-ready #about-exp:not(.revealed) .exp-panel,
body.js-ready #about-exp:not(.revealed) .about-vertical-divider,
body.js-ready #about-exp:not(.revealed) .achievements-col,
body.js-ready #about-exp:not(.revealed) .achievement-item,
body.js-ready #contact:not(.revealed) .contact-eyebrow,
body.js-ready #contact:not(.revealed) .contact-main-heading,
body.js-ready #contact:not(.revealed) .contact-description,
body.js-ready #contact:not(.revealed) .contact-email-pill,
body.js-ready #contact:not(.revealed) .contact-socials-block,
body.js-ready #contact:not(.revealed) .contact-footer-container {
  transition: none !important;
  transition-delay: 0s !important;
}

/* --- PAGE 3A: ABOUT ME (Mindmap & Bio Cascade) --- */
body.js-ready #about .about-me-title,
body.js-ready #about .title-underline {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(5px);
  transition: opacity 1.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.55s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready #about.revealed .about-me-title {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.08s;
}

body.js-ready #about.revealed .title-underline {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.22s;
}

/* 8 Mindmap Boxes */
body.js-ready #about .mindmap-box {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  filter: blur(5px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

body.js-ready #about.revealed .mindmap-box {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

body.js-ready #about.revealed .mindmap-box:hover {
  transform: translateY(-3px);
}

/* Sequential Stagger for all 8 Boxes (half speed wave) */
body.js-ready #about.revealed .mindmap-row:first-of-type .mindmap-box:nth-child(1) { transition-delay: 0.12s; }
body.js-ready #about.revealed .mindmap-row:first-of-type .mindmap-box:nth-child(3) { transition-delay: 0.24s; }
body.js-ready #about.revealed .mindmap-row:first-of-type .mindmap-box:nth-child(5) { transition-delay: 0.36s; }
body.js-ready #about.revealed .mindmap-row:first-of-type .mindmap-box:nth-child(7) { transition-delay: 0.48s; }

body.js-ready #about.revealed .mindmap-row:last-of-type .mindmap-box:nth-child(1)  { transition-delay: 0.60s; }
body.js-ready #about.revealed .mindmap-row:last-of-type .mindmap-box:nth-child(3)  { transition-delay: 0.72s; }
body.js-ready #about.revealed .mindmap-row:last-of-type .mindmap-box:nth-child(5)  { transition-delay: 0.84s; }
body.js-ready #about.revealed .mindmap-row:last-of-type .mindmap-box:nth-child(7)  { transition-delay: 0.96s; }

/* Connecting Arrows */
body.js-ready #about .mindmap-arrow-h {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready #about.revealed .mindmap-arrow-h {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.5s;
}

/* Vertical Dividing Lines */
body.js-ready .about-vertical-divider {
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready #about.revealed .about-vertical-divider,
body.js-ready #about-exp.revealed .about-vertical-divider {
  opacity: 1;
  transform: scaleY(1);
  transition-delay: 0.25s;
}

/* Bio Column */
body.js-ready #about .about-bio-col {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(5px);
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready #about.revealed .about-bio-col {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.3s;
}

body.js-ready #about .bio-top-row,
body.js-ready #about .bio-body-text p {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.35s cubic-bezier(0.16, 1, 0.3, 1), transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready #about.revealed .bio-top-row {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

body.js-ready #about.revealed .bio-body-text p:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.60s;
}

body.js-ready #about.revealed .bio-body-text p:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.75s;
}

body.js-ready #about.revealed .bio-body-text p:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.90s;
}


/* --- PAGE 3B: EXPERIENCE & ACHIEVEMENTS --- */
body.js-ready #about-exp .about-exp-title,
body.js-ready #about-exp .title-underline {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(5px);
  transition: opacity 1.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.55s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready #about-exp.revealed .about-exp-title {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.08s;
}

body.js-ready #about-exp.revealed .title-underline {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.22s;
}

/* 5 Experience Panels */
body.js-ready #about-exp .exp-panel {
  opacity: 0;
  transform: translateX(-28px) translateY(8px);
  filter: blur(5px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

body.js-ready #about-exp.revealed .exp-panel {
  opacity: 1;
  transform: translateX(0) translateY(0);
  filter: blur(0);
}

body.js-ready #about-exp.revealed .exp-panel:hover {
  transform: translateX(4px);
}

body.js-ready #about-exp.revealed .exp-panel:nth-child(1) { transition-delay: 0.12s; }
body.js-ready #about-exp.revealed .exp-panel:nth-child(2) { transition-delay: 0.26s; }
body.js-ready #about-exp.revealed .exp-panel:nth-child(3) { transition-delay: 0.40s; }
body.js-ready #about-exp.revealed .exp-panel:nth-child(4) { transition-delay: 0.54s; }
body.js-ready #about-exp.revealed .exp-panel:nth-child(5) { transition-delay: 0.68s; }

/* Achievements Column */
body.js-ready #about-exp .achievements-col {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(5px);
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready #about-exp.revealed .achievements-col {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.32s;
}

body.js-ready #about-exp .achievement-item {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 1.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

body.js-ready #about-exp.revealed .achievement-item {
  opacity: 1;
  transform: translateX(0);
}

body.js-ready #about-exp.revealed .achievement-item:hover {
  transform: translateX(4px);
}

body.js-ready #about-exp.revealed .achievement-item:nth-child(1) { transition-delay: 0.45s; }
body.js-ready #about-exp.revealed .achievement-item:nth-child(2) { transition-delay: 0.58s; }
body.js-ready #about-exp.revealed .achievement-item:nth-child(3) { transition-delay: 0.71s; }
body.js-ready #about-exp.revealed .achievement-item:nth-child(4) { transition-delay: 0.84s; }


/* --- PAGE 4: REBUILT CONTACT ME (SLOW CINEMATIC CASCADE) --- */
body.js-ready #contact .contact-eyebrow,
body.js-ready #contact .contact-main-heading,
body.js-ready #contact .contact-description {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(5px);
  transition: opacity 1.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.55s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready #contact.revealed .contact-eyebrow {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.08s;
}

body.js-ready #contact.revealed .contact-main-heading {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.24s;
}

body.js-ready #contact.revealed .contact-description {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.40s;
}

body.js-ready #contact .contact-email-pill {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(5px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready #contact.revealed .contact-email-pill {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.54s;
}

body.js-ready #contact .contact-socials-block {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(5px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready #contact.revealed .contact-socials-block {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.68s;
}

body.js-ready #contact .contact-footer-container {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(5px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready #contact.revealed .contact-footer-container {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.82s;
}

/* =========================================================================
   COMPREHENSIVE RESPONSIVE ADAPTATIONS (TABLET & MOBILE)
   Desktop layout (> 1024px) remains 100% untouched and identical.
   ========================================================================= */

/* --- 1. TABLET & COMPACT DESKTOPS (<= 1024px) --- */
@media (max-width: 1024px) {
  .about-section,
  .about-exp-section,
  .contact-section {
    height: auto;
    min-height: 100vh;
    padding: clamp(3.5rem, 6vh, 5rem) clamp(1.5rem, 4vw, 3rem);
  }

  .about-main-layout,
  .about-exp-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-vertical-divider {
    display: none;
  }

  .about-bio-col,
  .achievements-col {
    height: auto;
  }

  .mindmap-box {
    min-height: auto;
    padding: 1.15rem;
  }

  .glow-about-left,
  .glow-contact-right {
    opacity: 0.35;
  }
}

/* --- 2. CAROUSEL ADAPTATIONS (<= 900px) --- */
@media (max-width: 900px) {
  .card-slide.is-left,
  .card-slide.is-right {
    display: none;
  }

  .card-slide.is-center {
    width: clamp(320px, 88vw, 680px);
  }

  .artwork-info-panel {
    width: clamp(320px, 88vw, 680px);
    max-width: 88vw;
  }

  .carousel-cylindrical-viewport {
    height: clamp(260px, 42vh, 440px);
  }

  .arrow-left {
    left: 1.5rem;
    transform: translateY(-50%);
  }

  .arrow-right {
    right: 1.5rem;
    left: auto;
    transform: translateY(-50%);
  }
}

/* --- 3. TABLET PORTRAIT & MOBILE (<= 768px) --- */
@media (max-width: 768px) {
  /* Navigation */
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .navbar {
    padding: 1.1rem 1.4rem;
  }

  /* Hero Section */
  .portfolio-scroll-btn {
    bottom: clamp(1.5rem, 3.5vh, 2.5rem);
    padding: 0.6rem 1.6rem;
    gap: 1.2rem;
    max-width: 92vw;
  }

  .portfolio-btn-text {
    font-size: clamp(0.92rem, 3.2vw, 1.15rem);
    letter-spacing: 0.38em;
    margin-right: -0.38em;
  }

  /* Portfolio Section */
  .portfolio-section {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 2rem;
    justify-content: flex-start;
    gap: 0.85rem;
  }

  .portfolio-top-bar {
    margin-top: clamp(4rem, 7vh, 5.5rem);
    margin-bottom: 0.5rem;
  }

  .carousel-cylindrical-viewport {
    height: clamp(220px, 34vh, 320px);
    margin: 0.5rem 0;
  }

  .slider-arrow {
    width: 38px;
    height: 38px;
  }

  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }

  .arrow-left {
    left: 0.75rem;
  }

  .arrow-right {
    right: 0.75rem;
  }

  .artwork-info-panel {
    width: 88vw;
    max-width: 88vw;
    margin-top: 0.5rem;
  }

  .info-title {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    line-height: 1.2;
  }

  .info-softwares-row {
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
  }

  .software-item span {
    font-size: 0.78rem;
  }

  .portfolio-bottom-bar {
    width: 88vw;
    margin: 0.85rem auto 0;
  }

  /* About Section Mindmap (2-Column Grid on Tablet/Mobile) */
  .mindmap-col {
    gap: 1rem;
  }

  .mindmap-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    width: 100%;
  }

  .mindmap-arrow-h,
  .mindmap-bend-connector {
    display: none !important;
  }

  .mindmap-box {
    width: 100%;
    min-height: auto;
    padding: 1.1rem 1rem;
  }

  .box-title {
    font-size: 0.88rem;
  }

  .box-text {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* About Bio Column */
  .about-bio-col {
    padding: 1.8rem 1.4rem;
  }

  .bio-pfp-img {
    width: clamp(90px, 20vw, 120px);
    height: clamp(90px, 20vw, 120px);
  }

  .bio-body-text p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  /* Experience Section */
  .about-exp-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .exp-panel {
    padding: 1.2rem 1.2rem;
    gap: 1rem;
    min-height: auto;
  }

  .exp-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .exp-role-title {
    font-size: 0.95rem;
  }

  .exp-timeline {
    font-size: 0.78rem;
  }

  .achievements-col {
    padding: 1.8rem 1.4rem;
  }

  /* Companies Marquee Bar */
  .companies-marquee-bar {
    padding: clamp(1.4rem, 2.8vh, 2rem) 0;
  }

  .marquee-item {
    height: 60px;
  }

  .marquee-logo {
    height: clamp(48px, 6vh, 60px);
    max-height: 62px;
    max-width: 220px;
  }

  .marquee-group {
    min-width: max(100vw, 1400px);
    gap: 2rem;
    padding: 0 1.5rem;
  }

  /* Contact Section */
  .contact-section {
    height: auto;
    min-height: 100vh;
  }

  .contact-inner {
    padding: clamp(4rem, 7vh, 5.5rem) 1.5rem 2rem;
    justify-content: flex-start;
    gap: 2.5rem;
  }

  .contact-main-heading {
    font-size: clamp(2rem, 7.5vw, 3.2rem);
    margin-bottom: 1rem;
  }

  .contact-description {
    font-size: clamp(0.95rem, 3.2vw, 1.1rem);
    line-height: 1.65;
    margin-bottom: 1.6rem;
  }

  .contact-email-pill {
    padding: 0.75rem 1.25rem;
    margin-bottom: 2rem;
    max-width: 100%;
  }

  .email-pill-text {
    font-size: clamp(0.76rem, 2.8vw, 0.92rem);
    letter-spacing: 0.08em;
  }

  .contact-socials-block {
    margin-bottom: 2rem;
  }

  .contact-social-icons {
    gap: 0.85rem;
  }

  .social-icon-link {
    width: 42px;
    height: 42px;
  }

  /* Site Footer */
  .site-footer {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }

  /* Lightbox Modal */
  .lightbox {
    padding: 1rem;
  }

  .lightbox-close-top-left {
    top: 1rem;
    left: 1rem;
    font-size: 2.2rem;
  }

  .lightbox-content-box {
    width: 100%;
    max-width: 100vw;
    gap: 0;
    position: relative;
  }

  .modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
  }

  .modal-arrow-left {
    left: 0.25rem;
  }

  .modal-arrow-right {
    right: 0.25rem;
  }

  .modal-img-wrapper {
    max-width: 94vw;
    max-height: 72vh;
    width: 100%;
  }

  .lightbox-img {
    max-width: 100%;
    max-height: 68vh;
  }

  .modal-description-slide {
    width: 92vw;
    max-width: 92vw;
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.5rem;
  }

  .desc-text {
    font-size: 0.88rem;
    line-height: 1.7;
  }
}

/* --- 4. SMALL MOBILE PHONES (<= 480px) --- */
@media (max-width: 480px) {
  /* Hero */
  .portfolio-scroll-btn {
    padding: 0.55rem 1.2rem;
    gap: 0.85rem;
  }

  .portfolio-btn-text {
    letter-spacing: 0.28em;
    margin-right: -0.28em;
    font-size: 0.88rem;
  }

  /* Mindmap (Single Column Chain) */
  .mindmap-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .mindmap-box {
    padding: 1rem 0.95rem;
  }

  /* Contact */
  .contact-main-heading {
    font-size: clamp(1.75rem, 8vw, 2.3rem);
  }

  .contact-email-pill {
    padding: 0.65rem 1rem;
    gap: 0.6rem;
  }

  .email-pill-icon {
    width: 16px;
    height: 16px;
  }

  .email-pill-text {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
  }

  /* Modal */
  .modal-arrow {
    width: 34px;
    height: 34px;
  }

  .modal-caption {
    font-size: 0.78rem;
  }
}
