/* =============================================
   DESIGN TOKENS — DARK (default: Z-Black)
   ============================================= */
:root {
  /* Z-Black palette */
  --bg: #080808;
  --bg-alt: #0F0F0F;
  --bg-card: #111111;
  --bg-raised: #181818;
  --border: rgba(255, 255, 255, 0.07);
  --border-alt: rgba(255, 255, 255, 0.12);

  /* Text */
  --fg: #F0F0F0;
  --fg-subtle: #888888;
  --fg-muted: #555555;

  /* Accent — orange unchanged */
  --accent: #E27500;
  --accent-dark: #C26500;
  --accent-glow: rgba(226, 117, 0, 0.22);

  /* Nav */
  --nav-bg: rgba(14, 14, 14, 0.85);

  /* Shadows */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.70);

  /* Shape */
  --radius-sm: 16px;
  --radius-md: 28px;
  --radius-lg: 40px;

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Syne', sans-serif;
  --font-hand: 'Caveat', cursive;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── LIGHT MODE override ─────────────────────── */
body.light {
  --bg: #E8E8E8;
  --bg-alt: #DADADA;
  --bg-card: #FFFFFF;
  --bg-raised: #F2F2F2;
  --border: rgba(0, 0, 0, 0.07);
  --border-alt: rgba(0, 0, 0, 0.12);
  --fg: #1A1A1A;
  --fg-subtle: #666666;
  --fg-muted: #AAAAAA;
  --nav-bg: rgba(22, 22, 22, 0.88);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.11);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.16);
  --accent-glow: rgba(226, 117, 0, 0.18);
}

/* =============================================
   RESET + BASE
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  /* Slightly smaller base for a tighter look at 100% zoom */
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

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

/* =============================================
   HEX BACKGROUND PATTERN
   ============================================= */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32L28 66zm0 32L0 82V50l28-16 28 16v32L28 98z' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  transition: opacity 0.4s ease;
}

body.light::before {
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32L28 66zm0 32L0 82V50l28-16 28 16v32L28 98z' fill='none' stroke='%23000000' stroke-width='1'/%3E%3C/svg%3E");
}

/* =============================================
   FLOATING NAV
   ============================================= */
.floating-nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-alt);
  border-radius: 60px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: all var(--transition);
}

.nav-logo {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 6px 12px;
  margin-right: 4px;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 40px;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.10);
}

.nav-cta {
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 40px;
  margin-left: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: scale(1.04);
}

/* ── Theme Toggle ── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* =============================================
   TOP ACTIONS (Fixed Top Right)
   ============================================= */
.top-actions {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 1001;
}

.linkedin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-alt);
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.linkedin-btn svg {
  width: 22px;
  height: 22px;
  fill: #0077b5;
  /* Standard LinkedIn color */
  transition: transform 0.3s ease;
}

.linkedin-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.linkedin-btn:hover svg {
  transform: scale(1.1);
}

body.light .linkedin-btn {
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 480px) {
  .top-actions {
    top: 16px;
    right: 16px;
  }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr minmax(0, 1160px) 1fr;
  align-items: center;
  padding: 64px 60px 100px;
  gap: 32px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-meta-left {
  align-items: flex-start;
}

.hero-meta-right {
  align-items: flex-end;
  text-align: right;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 40px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4ade80;
  box-shadow: var(--shadow-sm);
}

body.light .meta-badge {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.10);
  color: #16a34a;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-green 1.8s ease-in-out infinite;
}

body.light .badge-dot {
  background: #16a34a;
}

@keyframes pulse-green {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}

.meta-stars {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.meta-stars span:first-child {
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 2px;
}

.hero-center {
  display: grid;
  grid-template-columns: minmax(320px, 580px) 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  width: 100%;
}

.hero-image-scene {
  perspective: 1200px;
  z-index: 10;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 580px;
  /* Significantly widened */
  height: auto;
  aspect-ratio: 4 / 4.5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-alt);
  border: 4px solid var(--bg-raised);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-name {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7.5vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.name-main {
  display: block;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.name-overlay {
  position: absolute;
  bottom: -0.15em;
  right: -0.05em;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 0.58em;
  color: var(--fg);
  text-shadow: 0 0 15px var(--bg);
  transform: rotate(-6deg);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  /* Hidden initially to prevent flash of content */
}

/* ── Scramble text animation ── */
.scramble {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  white-space: nowrap;
}

/* Each character wrapper */
.scramble .char {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* The cycling symbol — shown as faded */
.scramble .char .sym {
  color: var(--fg-muted);
  transition: opacity 0.08s;
}

/* The final locked letter — hidden until resolved */
.scramble .char .final {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  text-align: center;
  opacity: 0;
  color: var(--fg);
  transition: opacity 0.15s ease;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* When a character is resolved, hide symbol, show final */
.scramble .char.resolved .sym {
  opacity: 0;
}

.scramble .char.resolved .final {
  opacity: 1;
  position: static;
}

/* Hero fade-in stagger for subtitle + buttons */
.hero-title,
.hero-actions {
  opacity: 1;
  transform: none;
}

.hero-image-wrapper {
  /* Dimensions already defined in .hero-center section */
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-subtle);
  text-align: left;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border: 1px solid var(--border-alt);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

body.light .btn-ghost {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.14);
}

body.light .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.09);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1rem;
}

/* Contact section ghost override */
.contact .btn-ghost,
body.light .contact .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.14);
}

.contact .btn-ghost:hover,
body.light .contact .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* =============================================
   TICKER
   ============================================= */
.ticker-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  /* single row for both tracks */
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.ticker-orange {
  background: var(--accent);
  border-color: transparent;
}

.ticker-orange .ticker-track {
  color: #FFFFFF;
}

.ticker-track {
  display: inline-flex;
  /* sits inline, never wraps */
  flex-shrink: 0;
  min-width: 100%;
  /* each track fills at least the viewport */
  white-space: nowrap;
  animation: ticker-scroll 90s linear infinite;
  color: var(--fg-subtle);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ticker-track span {
  display: inline-block;
  padding: 0 32px;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* =============================================
   SECTION HEADER
   ============================================= */
.section-tag {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  color: var(--fg);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

section {
  position: relative;
  z-index: 1;
  padding: 80px 60px;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 4.2fr 5.8fr;
  gap: 60px;
  align-items: start;
}

.about-main-wrap {
  position: relative;
}

.about-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
  position: relative;
}

.about-main p:not(.about-lead) {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--fg-subtle);
}

.about-sub-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-alt);
  box-shadow: var(--shadow-md);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--fg-subtle);
}

.about-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(226, 117, 0, 0.05), transparent);
}

.about-card.highlight h3 {
  color: var(--accent);
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-main {
    position: static;
  }
}

/* =============================================
   SERVICES
   ============================================= */
.services-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.services-sticky {
  position: sticky;
  top: 100px;
}

.sticky-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.sticky-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.sticky-tagline {
  padding: 24px;
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--fg-subtle);
  line-height: 1.6;
}

.services-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  gap: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-alt);
}

.service-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  flex-shrink: 0;
  min-width: 72px;
}

body.light .service-number {
  color: rgba(0, 0, 0, 0.06);
}

.service-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.service-content p {
  color: var(--fg-subtle);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  background: var(--bg-raised);
  color: var(--fg-subtle);
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* =============================================
   CAREER
   ============================================= */
.career {
  background: var(--bg-alt);
}

.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.career-item {
  padding: 40px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  background: var(--bg-card);
}

.career-item:hover {
  background: var(--bg-raised);
  border-color: var(--border-alt);
}

.career-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.career-role {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.career-role h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
}

.career-company {
  font-size: 0.85rem;
  color: var(--fg-subtle);
  font-weight: 500;
}

.career-item p {
  color: var(--fg-subtle);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.portfolio-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--border);
  position: relative;
  /* Make it the relative parent for the stretched link */
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-alt);
}

.portfolio-card.large {
  grid-column: 1 / -1;
}

.portfolio-img-wrap {
  overflow: hidden;
}

.portfolio-card.large .portfolio-img-wrap {
  height: 380px;
}

.portfolio-card:not(.large) .portfolio-img-wrap {
  height: 240px;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 28px 32px;
}

.portfolio-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}

.portfolio-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.portfolio-info p {
  color: var(--fg-subtle);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.portfolio-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.portfolio-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  /* Ensure it covers the thumbnail and info */
}

.portfolio-link:hover {
  text-decoration: underline;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  grid-auto-flow: dense;
  gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  will-change: transform, opacity;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-img-wrap {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.gallery-img-wrap img,
.gallery-img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-alt);
}

.gallery-item:hover .gallery-img-wrap img,
.gallery-item:hover .gallery-img-wrap video {
  transform: scale(1.05);
}

.gallery-desc {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
  min-height: 52px;
}

.gallery-desc span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-subtle);
  line-height: 1.35;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}


/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: #050505;
  text-align: center;
  padding: 120px 60px;
  position: relative;
}

/* Floating Availability Badge */
.contact-badge {
  position: absolute;
  top: 40px;
  right: 60px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4ade80;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-green 2s ease-in-out infinite;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 68px);
  color: #FFFFFF;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}

.contact-title .word {
  display: inline-block;
  will-change: transform, opacity;
}

.contact-title .highlight-accent {
  color: #E8820C;
}

.contact-sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact .section-tag {
  color: var(--accent);
}

/* Minimal Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
  margin-top: 40px;
}

.form-group {
  width: 100%;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  padding: 12px 4px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: #FFFFFF;
  outline: none;
  transition: border-color var(--transition);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:focus {
  border-bottom-color: #E8820C;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* Social Proof availability line */
.contact-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-green 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Button improvements */
.contact .btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(232, 130, 12, 0.4);
  background: #E8820C;
}

.contact .btn-ghost {
  border-color: rgba(255, 255, 255, 0.15);
}

.contact .btn-ghost:hover {
  border-color: #E8820C;
  color: #E8820C;
  background: transparent;
  box-shadow: none;
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .contact {
    padding: 80px 20px;
  }

  .contact-badge {
    position: static;
    margin-bottom: 24px;
    justify-content: center;
  }
}

/* =============================================
   BOTTOM TICKER + FOOTER
   ============================================= */
.footer {
  background: #030303;
  padding: 60px 60px 32px;
  position: relative;
  z-index: 1;
}

body.light .footer {
  background: #0A0A0A;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-group h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-links-group a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links-group a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom span {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px) translateZ(0);
  will-change: transform, opacity;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
  will-change: auto;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.35s;
}

/* =============================================
   HAMBURGER MENU BUTTON (hidden on desktop)
   ============================================= */
.hamburger {
  display: none;
  /* shown via media query */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  margin-left: 6px;
  padding: 0;
  flex-shrink: 0;
  transition: background var(--transition);
  z-index: 1002;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animated X state */
.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   MOBILE MENU OVERLAY
   ============================================= */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

body.light .mobile-menu-overlay {
  background: rgba(232, 232, 232, 0.96);
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    opacity 0.4s ease 0.1s;
}

.mobile-menu-overlay.open .mobile-menu-nav {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--fg);
  padding: 12px 24px;
  border-radius: 16px;
  transition: color 0.2s, background 0.2s;
  text-align: center;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

body.light .mobile-menu-link:hover,
body.light .mobile-menu-link:focus {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-cta {
  margin-top: 16px;
  background: var(--accent);
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 40px;
  font-size: 1.1rem;
}

.mobile-menu-cta:hover {
  background: var(--accent-dark);
}

/* =============================================
   RESPONSIVE — ADAPTIVE BREAKPOINTS
   ============================================= */

/* ── Extra-large: ≤ 1440px ──────────────────── */
@media (max-width: 1440px) {
  .hero {
    grid-template-columns: 1fr minmax(0, 1000px) 1fr;
    padding: 80px 48px 120px;
  }

  .hero-center {
    grid-template-columns: 360px 1fr;
    gap: 48px;
  }

  .hero-image-wrapper {
    max-width: 360px;
    height: auto;
  }
}

/* ── Large: ≤ 1200px ────────────────────────── */
@media (max-width: 1200px) {
  section {
    padding: 80px 40px;
  }

  .hero {
    grid-template-columns: 1fr minmax(0, 860px) 1fr;
    padding: 80px 40px 120px;
    gap: 28px;
  }

  .hero-center {
    grid-template-columns: 320px 1fr;
    gap: 40px;
  }

  .hero-image-wrapper {
    max-width: 320px;
    height: auto;
  }

  .hero-name {
    font-size: clamp(33px, 5vw, 67px);
  }

  .meta-value {
    font-size: 1.35rem;
  }

  .services-layout {
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }

  .service-card {
    padding: 32px;
    gap: 24px;
  }

  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

/* ── Medium: ≤ 1024px ───────────────────────── */
@media (max-width: 1024px) {
  section {
    padding: 72px 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
    padding: 100px 32px 120px;
    gap: 24px;
  }

  .hero-meta-left,
  .hero-meta-right {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 16px;
  }

  .hero-meta-right {
    text-align: center;
  }

  .hero-center {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 32px;
  }

  .hero-text {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-wrapper {
    max-width: 240px;
    height: 320px;
  }

  .hero-name {
    align-items: center;
    font-size: clamp(29px, 6vw, 59px);
  }

  .services-layout {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }

  .sticky-img {
    height: 280px;
  }

  .career-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .contact {
    padding: 80px 32px;
  }

  .floating-nav {
    padding: 8px 12px;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 7px 10px;
  }

  .nav-cta {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}

/* ── Tablet: ≤ 768px ────────────────────────── */
@media (max-width: 768px) {
  section {
    padding: 56px 20px;
  }

  .hero {
    padding: 80px 20px 100px;
    gap: 20px;
  }

  .hero-image-wrapper {
    max-width: 200px;
    height: 270px;
  }

  .hero-name {
    font-size: clamp(27px, 8vw, 45px);
  }

  .hero-title {
    font-size: 0.9rem;
  }

  .meta-label {
    font-size: 0.75rem;
  }

  .meta-value {
    font-size: 1.15rem;
  }

  .meta-badge {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Nav: hide links, show hamburger */
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .floating-nav {
    bottom: 16px;
    padding: 8px 12px;
    gap: 4px;
    border-radius: 50px;
  }

  /* Services: stack */
  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-sticky {
    position: static;
  }

  .sticky-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .sticky-img {
    height: 240px;
  }

  .service-card {
    padding: 28px;
    gap: 20px;
    flex-direction: column;
  }

  .service-number {
    font-size: 2.2rem;
    min-width: unset;
  }

  .service-content h3 {
    font-size: 1.25rem;
  }

  /* Career */
  .career-grid {
    grid-template-columns: 1fr;
  }

  .career-item {
    padding: 28px;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card.large {
    grid-column: 1;
  }

  .portfolio-card.large .portfolio-img-wrap {
    height: 260px;
  }

  .portfolio-card:not(.large) .portfolio-img-wrap {
    height: 200px;
  }

  .portfolio-info {
    padding: 20px 24px;
  }

  .portfolio-info h3 {
    font-size: 1.1rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
    gap: 12px;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

  /* Contact */
  .contact {
    padding: 72px 20px;
  }

  .contact-title {
    font-size: clamp(28px, 6vw, 48px);
  }

  .btn-large {
    padding: 14px 32px;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 40px 20px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Ticker */
  .ticker-track {
    font-size: 0.85rem;
  }

  .ticker-track span {
    padding: 0 20px;
  }

  /* Lightbox */
  .lightbox-inner {
    width: 95vw;
  }

  .lightbox-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lightbox-close {
    top: -40px;
    width: 32px;
    height: 32px;
  }

  .lightbox-img-wrap {
    border-radius: 8px;
  }
}

/* ── Small Phone: ≤ 480px ───────────────────── */
@media (max-width: 480px) {
  section {
    padding: 44px 16px;
  }

  .hero {
    padding: 72px 16px 80px;
    gap: 16px;
    min-height: auto;
  }

  .hero-image-wrapper {
    max-width: 170px;
    height: 230px;
    border-radius: 16px;
  }

  .hero-name {
    font-size: clamp(23px, 10vw, 39px);
  }

  .hero-title {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .hero-meta-left,
  .hero-meta-right {
    gap: 12px;
  }

  .meta-label {
    font-size: 0.7rem;
  }

  .meta-value {
    font-size: 1rem;
  }

  .meta-badge {
    padding: 7px 14px;
    font-size: 0.75rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
  }

  .btn-large {
    padding: 12px 28px;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

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

  /* Services */
  .service-card {
    padding: 20px;
    gap: 16px;
    border-radius: var(--radius-md);
  }

  .service-number {
    font-size: 1.8rem;
  }

  .service-content h3 {
    font-size: 1.1rem;
  }

  .service-content p {
    font-size: 0.85rem;
  }

  .service-tags span {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .sticky-card {
    max-width: 100%;
  }

  .sticky-img {
    height: 200px;
  }

  .sticky-tagline {
    padding: 16px;
    font-size: 0.9rem;
  }

  /* Career */
  .career-item {
    padding: 20px;
  }

  .career-role h3 {
    font-size: 1.05rem;
  }

  .career-company {
    font-size: 0.8rem;
  }

  .career-item p {
    font-size: 0.82rem;
  }

  /* Portfolio */
  .portfolio-card.large .portfolio-img-wrap {
    height: 200px;
  }

  .portfolio-card:not(.large) .portfolio-img-wrap {
    height: 170px;
  }

  .portfolio-info {
    padding: 16px 18px;
  }

  .portfolio-info h3 {
    font-size: 1rem;
  }

  .portfolio-info p {
    font-size: 0.82rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
    gap: 8px;
  }

  /* Contact */
  .contact {
    padding: 56px 16px;
  }

  .contact-title {
    font-size: clamp(24px, 7vw, 40px);
  }

  .contact-sub {
    font-size: 0.88rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Footer */
  .footer {
    padding: 32px 16px 16px;
  }

  .footer-links-group h4 {
    font-size: 0.8rem;
  }

  .footer-links-group a {
    font-size: 0.82rem;
  }

  .footer-bottom span {
    font-size: 0.72rem;
  }

  /* Lightbox */
  .lightbox-stage {
    gap: 8px;
  }

  .lightbox-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .lightbox-img-wrap {
    aspect-ratio: 4/3;
  }

  /* Floating nav */
  .floating-nav {
    bottom: 12px;
    padding: 6px 10px;
  }

  .nav-logo {
    font-size: 0.9rem;
    padding: 5px 10px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .hamburger {
    width: 32px;
    height: 32px;
  }

  .hamburger-line {
    width: 16px;
  }
}

/* ── Extra-small: ≤ 360px ───────────────────── */
@media (max-width: 360px) {
  .hero {
    padding: 64px 12px 72px;
  }

  .hero-image-wrapper {
    max-width: 150px;
    height: 200px;
  }

  .hero-name {
    font-size: clamp(19px, 12vw, 33px);
  }

  .hero-meta-left,
  .hero-meta-right {
    flex-direction: column;
    gap: 10px;
  }

  .meta-value {
    font-size: 0.9rem;
  }

  section {
    padding: 36px 12px;
  }

  .contact {
    padding: 44px 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
}

/* =============================================
   LIGHTBOX MODAL
   ============================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-overlay.open .lightbox-inner {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.lightbox-counter {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.lightbox-stage {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lightbox-img-wrap {
  flex: 1;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-img.lb-visible {
  opacity: 1;
}

.lightbox-arrow {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
}

.lightbox-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.lb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lb-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.cursor-active #cursor {
  transform: translate(-50%, -50%) scale(1.5);
}

/* Mobile Fallback: Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

  #cursor,
  #cursor-follower {
    display: none;
  }

  html,
  body {
    cursor: auto;
  }
}

/* =============================================
   LANDSCAPE PHONES
   ============================================= */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 60px 32px 80px;
  }

  .hero-image-wrapper {
    max-width: 160px;
    height: 200px;
  }
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
/* Hide default cursor on desktop when custom cursor is active */
@media (min-width: 768px) {

  body,
  a,
  button,
  [role="button"],
  .project-trigger,
  .gallery-item,
  .portfolio-card,
  .linkedin-btn,
  .nav-link,
  .nav-cta,
  .theme-toggle,
  .hamburger {
    cursor: none !important;
  }
}

.custom-cursor {
  display: none;
}

@media (min-width: 768px) {
  .custom-cursor {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ffffff;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
      height 0.3s cubic-bezier(0.25, 1, 0.5, 1),
      background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
      border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1),
      border-width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 0px solid #ffffff;
  }

  /* Hover state: 48px hollow circle */
  .custom-cursor.state-hover {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid #ffffff;
    mix-blend-mode: difference;
  }

  /* View state: 80px solid circle with background color */
  .custom-cursor.state-view {
    width: 80px;
    height: 80px;
    background-color: var(--fg);
    border: 0px solid transparent;
    mix-blend-mode: normal;
  }

  .custom-cursor-text {
    font-family: var(--font-sans);
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s cubic-bezier(0.25, 1, 0.5, 1),
      transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
  }

  .custom-cursor.state-view .custom-cursor-text {
    opacity: 1;
    transform: scale(1);
  }
}

/* =============================================
   NEW PREMIUM CONTACT SECTION (Arpan-Style)
   ============================================= */
.contact {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 60px;
  background-color: var(--bg);
  overflow: hidden;
  border-top: 1px solid var(--border);
  box-sizing: border-box;
}

.contact-bg-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
  background: radial-gradient(circle at 50% 100%, var(--accent-glow), transparent 70%);
  transition: opacity 0.4s ease;
}

.contact-top {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-socials-col {
  align-items: flex-end;
  text-align: right;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-subtle);
  opacity: 0.6;
}

.contact-email {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 500;
  color: var(--fg);
  transition: font-style 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.contact-email:hover {
  font-style: italic;
  transform: translateX(4px);
}

.contact-socials-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-social-link {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg);
  transition: padding-right 0.3s ease, color 0.3s ease;
}

.contact-social-link:hover {
  padding-right: 12px;
  color: var(--accent);
}

.contact-middle {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px 0;
  position: relative;
  z-index: 10;
}

.contact-huge-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.contact-huge-title {
  font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
  font-size: clamp(50px, 15vw, 180px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--fg);
  -webkit-text-stroke: 2px var(--fg);
  text-align: center;
  transition: color 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  margin: 0;
  user-select: none;
}

.contact-huge-link:hover .contact-huge-title {
  color: transparent !important;
}

/* Responsiveness */
@media (max-width: 768px) {
  .contact {
    padding: 80px 32px 60px;
    min-height: auto;
  }

  .contact-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .contact-socials-col {
    align-items: flex-start;
    text-align: left;
  }

  .contact-middle {
    margin: 40px 0;
  }
}

/* =============================================
   CV WIDGET & PANEL
   ============================================= */
.cv-widget-container {
  position: relative;
  display: inline-block;
}

.cv-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-alt);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  position: relative;
  z-index: 1002;
  /* Sits above panel */
}

.cv-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

body.light .cv-toggle-btn {
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.15);
}

.cv-toggle-btn .cv-close-icon {
  display: none;
  font-size: 1.5rem;
  line-height: 1;
}

/* Open state of button */
.cv-widget-container.open .cv-toggle-btn {
  background: #fff;
  color: #000;
  border-color: #fff;
}

body.light .cv-widget-container.open .cv-toggle-btn {
  background: #000;
  color: #fff;
  border-color: #000;
}

.cv-widget-container.open .cv-toggle-btn .cv-text {
  display: none;
}

.cv-widget-container.open .cv-toggle-btn .cv-close-icon {
  display: block;
}

/* CV Panel */
.cv-panel {
  position: absolute;
  top: 65px;
  right: 0;
  width: 280px;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transform-origin: top right;
}

body.light .cv-panel {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cv-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cv-panel-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

body.light .cv-panel-title {
  color: #1a1a1a;
}

.cv-panel-desc {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  padding-left: 12px;
  margin: 0;
}

body.light .cv-panel-desc {
  color: #555555;
  border-color: rgba(0, 0, 0, 0.15);
}

.cv-panel-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.cv-panel-link {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.light .cv-panel-link {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.04);
}

.cv-panel-link:hover {
  background: var(--accent);
  color: #ffffff;
  padding-left: 16px;
}

body.light .cv-panel-link:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Adjust top-actions layout to accommodate the CV button */
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}