/* ══════════════════════════════════════════════════════════════════════════
   NARENDER JANGRA PORTFOLIO — STYLESHEET
   Design Architecture & Aesthetic inspired by zainabkabira.com
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Color Palette Tokens & Theme Variables ── */
:root {
  /* Day Theme (Light Warm Cream Default) */
  --bg-base: #fff9f1;
  --bg-secondary: #f4eee3;
  --bg-card: #ffffff;
  --bg-accent-cloud: #fef2e2;
  --text-heading: #1a1918;
  --text-body: #4a4744;
  --text-muted: #8c857b;
  
  /* Hero Sky Gradient (Day) */
  --hero-from: #6bb0ff;
  --hero-to: #d6e8ff;
  --cream-text: #fff9e9;
  --gold: #f4d24a;
  --gold-hover: #ffd93d;
  
  /* Chrome & Glass */
  --nav-bg: rgba(255, 249, 241, 0.82);
  --nav-border: rgba(0, 0, 0, 0.08);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.06);
  --trail-stroke: rgba(40, 40, 40, 0.35);
  
  /* Neumorphic Player Variables */
  --player-bg: #dfdcd5;
  --player-border: #c9c9c9;
  --player-text: #070707;

  /* Typography Fonts */
  --font-serif: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', 'Figtree', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Night Theme Override */
body.night {
  --bg-base: #0f1218;
  --bg-secondary: #171c26;
  --bg-card: #1c2230;
  --bg-accent-cloud: #232a3b;
  --text-heading: #f0f3f8;
  --text-body: #a0abcf;
  --text-muted: #647094;
  
  /* Hero Sky Gradient (Night Sky) */
  --hero-from: #090c15;
  --hero-to: #1a233a;
  --cream-text: #eef3ff;
  
  --nav-bg: rgba(15, 18, 24, 0.85);
  --nav-border: rgba(255, 255, 255, 0.1);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  --trail-stroke: rgba(244, 210, 74, 0.45);
  
  --player-bg: #1c212d;
  --player-border: #2e364a;
  --player-text: #f0f3f8;
}

/* ── Global Resets ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── SITE NAVIGATION HEADER ── */
.site-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  width: 100%;
}

.nav-pill {
  pointer-events: auto;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--nav-border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 24px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), gap 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ff8a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1a1918;
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* "Available for work" badge — hidden by default, expands when compact */
.avail-tag {
  display: flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin-left: -24px;
  transition: max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease 0.05s, margin-left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.avail-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-heading);
}

.avail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffda3f;
  flex-shrink: 0;
  opacity: 0;
  margin-left: -24px;
  position: relative;
  transition: opacity 0.25s ease 0.2s, margin-left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.avail-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #ffda3f;
  animation: avail-pulse 1.8s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes avail-pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  max-width: 600px;
  opacity: 1;
  transition: max-width 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

/* COMPACT MODE STYLES when scrolling down */
.nav-pill.compact {
  gap: 12px;
  padding: 6px 14px;
}

.nav-pill.compact .avail-tag {
  max-width: 180px;
  opacity: 1;
  margin-left: 0;
}

.nav-pill.compact .avail-dot {
  opacity: 1;
  margin-left: 0;
}

.nav-pill.compact .nav-links {
  max-width: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: hidden;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.25s ease;
}

.nav-pill.compact .nav-actions {
  display: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s ease;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-heading);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--nav-border);
  background: rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  font-size: 18px;
  transition: transform 0.25s ease, background 0.25s ease;
}

body.night .theme-toggle {
  background: rgba(255,255,255,0.05);
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.08);
}

.btn-hire {
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--text-heading);
  color: var(--bg-base);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-hire:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ════ HERO SECTION (Pinned Sticky Background) ════ */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  background: radial-gradient(ellipse 1000px 1340px at 68.65% 23.5%, var(--hero-from) 0%, var(--hero-to) 100%);
  transition: background 0.5s ease;
}

.hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.4;
}

.hero-sky {
  position: absolute;
  inset: 0 -10%;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
}

.hero-stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

body.night .hero-stars {
  opacity: 0.85;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: star-twinkle 3s infinite ease-in-out;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-meteor {
  position: absolute;
  width: var(--m-len, 180px);
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0));
  top: var(--m-top, 100px);
  left: -200px;
  transform: rotate(var(--m-angle, 10deg));
  opacity: 0;
  pointer-events: none;
}

@keyframes hero-meteor-fly {
  0% { transform: translate(0, 0) rotate(var(--m-angle, 10deg)); opacity: 1; }
  100% { transform: translate(var(--m-travel, 1400px), 250px) rotate(var(--m-angle, 10deg)); opacity: 0; }
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.25;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  will-change: transform, opacity;
  --sun-w: clamp(300px, 48vw, 725px);
}

.sun-group {
  position: absolute;
  width: var(--sun-w);
  top: calc(var(--sun-w) * -0.25);
  right: calc(var(--sun-w) * -0.17);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.8s ease;
}

.sun-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(244, 210, 74, 0.4));
}

body.night .sun-group {
  transform: translateY(-80px) scale(0.85);
  opacity: 0.2;
}

/* Eyebrow & Vertical Label */
.hero-eyebrow {
  position: absolute;
  left: 5%;
  top: max(80px, calc(50vh - 240px));
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cream-text);
  white-space: nowrap;
  z-index: 5;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4cd964;
  box-shadow: 0 0 10px #4cd964;
}

.hero-vertical {
  position: absolute;
  left: 3%;
  top: 50vh;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: var(--font-mono);
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 1.6px;
  color: rgba(255, 249, 233, 0.75);
  white-space: nowrap;
  z-index: 5;
}

/* Big Hero Typography — Responsive & Overflow Protected */
.h-line {
  font-family: var(--font-serif);
  font-size: clamp(36px, 8.5vw, 136px);
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--cream-text);
  white-space: nowrap;
  line-height: 1.1;
  user-select: none;
}

.h-line.line-top {
  position: absolute;
  left: max(5vw, calc(50vw - 520px));
  top: calc(50vh - 180px);
  z-index: 4;
}

/* Line 2 Container: Recorder Pill on Left + Rotating Word Slot on Right */
.hero-line-bottom {
  position: absolute;
  left: max(5vw, calc(50vw - 520px));
  top: calc(50vh + 20px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  z-index: 5;
}

.h-line.designer {
  position: relative;
  overflow: clip;
  overflow-clip-margin: 20px;
  height: 1.25em;
  line-height: 1.25;
  margin: 0;
  padding: 0;
}

.h-line.designer .roll {
  display: block;
  will-change: transform;
}

.h-line.designer .roll-word {
  display: block;
  line-height: 1.25;
}

/* Hover Tilt Effect per letter */
.h-letter {
  display: inline-block;
  transform-origin: 50% 100%;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

.h-line:hover .h-letter {
  will-change: transform;
}

.h-letter:hover {
  transform: translateY(-0.16em) rotate(-7deg);
  color: var(--gold);
}

/* ════ NEUMORPHIC VINYL AUDIO RECORDER ════ */
.recorder {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 9999px;
  background: var(--player-bg);
  border: 1px solid var(--player-border);
  box-shadow: 0 16px 30px rgba(0,0,0,0.22);
  flex-shrink: 0;
  transform: scale(0.95);
  transform-origin: left center;
  transition: var(--transition-smooth);
}

.disk {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #292828;
  box-shadow: 0 0 0 2px #504f4d;
  overflow: hidden;
  flex-shrink: 0;
}

.disk-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 180deg,
    #121212 0%, #121212 9%, #272727 10%,
    #3b3b3b 12%, #505050 14%, #646464 15%,
    #3b3b3b 22%, #121212 40%, #121212 60%,
    #3b3b3b 64%, #646464 66%, #121212 90%);
}

.disk-cap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.disk-cap.c1 { width: 30px; height: 30px; background: #dcdad4; border: 1px solid #777; }
.disk-cap.c2 { width: 16px; height: 16px; background: #e02f2f; }
.disk-cap.c3 { width: 6px; height: 6px; background: #fff; }

.disk.spinning {
  animation: disk-spin 2s linear infinite;
}

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

.rec-center {
  display: flex;
  flex-direction: column;
  width: 170px;
}

.rec-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--player-text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-slider {
  position: relative;
  width: 100%;
  height: 20px;
  cursor: pointer;
  touch-action: none;
}

.slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 10px;
  border-radius: 9999px;
  background: #605c59;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
  overflow: hidden;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--gold);
}

.slider-knob {
  position: absolute;
  top: 0;
  left: 0%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #f6f4f5 0%, #caccc9 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transform: translateX(-50%);
}

.timestamps {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--player-text);
  margin-top: 4px;
}

.play-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #1f1e1c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.play-circle:hover {
  transform: scale(1.1);
}

.play-circle svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
  transition: transform 0.2s ease;
}

.play-circle .icon-pause {
  display: none;
}

.play-circle.playing .icon-play {
  display: none;
}

.play-circle.playing .icon-pause {
  display: block;
}

/* ════ PROJECTS SECTION ════ */
.projects {
  position: relative;
  z-index: 10;
  background: var(--bg-base);
  padding: 300px 0 160px;
  transition: background-color 0.4s ease;
}

.sky-band {
  position: absolute;
  left: 0;
  width: 100%;
  aspect-ratio: 1440 / 471;
  top: calc(200px - 32.7vw);
  background-image: url('../assets/sky-band.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.intro-copy {
  position: relative;
  z-index: 3;
  width: min(90%, 980px);
  margin: 0 auto 90px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -1.2px;
  line-height: 1.4;
  color: var(--text-heading);
}

.intro-copy .bold {
  font-weight: 700;
  display: block;
  margin-top: 18px;
}

/* Paper Plane Trail — Trail & Plane sit UNDER all content columns & cards */
.plane-fly {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.plane-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#planeTrailPath {
  stroke: var(--trail-stroke);
  stroke-dasharray: 8, 8;
}

.plane-sprite {
  position: absolute;
  width: 64px;
  height: auto;
  transform-origin: center center;
  transform: translate(-50%, -50%);
  will-change: transform;
  z-index: 1;
}

/* Marquee Brands */
.logo-marquee-wrap {
  position: relative;
  z-index: 10;
  overflow: hidden;
  width: min(90%, 800px);
  margin: 0 auto 96px;
}

.logo-marquee-wrap::before, .logo-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-base), transparent); }
.logo-marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--bg-base), transparent); }

.logo-marquee-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: logo-scroll 22s linear infinite;
}

.logo-marquee-inner:hover {
  animation-play-state: paused;
}

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

.brand-badge {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.brand-badge:hover {
  opacity: 1;
  color: var(--text-heading);
}

/* Featured Projects Grid */
.featured-heading {
  position: relative;
  z-index: 10;
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -1.6px;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 48px;
}

.project-tiles {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 min(5vw, 60px);
  max-width: 1380px;
  margin: 0 auto;
}

.tiles-row {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 24px;
  --reveal: 0;
  transform: scale(calc(0.6 + 0.4 * var(--reveal)));
  opacity: calc(0.3 + 0.7 * var(--reveal));
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.project-tile {
  flex: 1;
  height: 540px;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  z-index: 10;
  isolation: isolate;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.project-tile:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
}

.tile-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-tile:hover .tile-media {
  transform: scale(1.05);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.tile-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tile-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.tile-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tile-desc {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.5;
  max-width: 90%;
}

/* ════ 3D COVERFLOW PLAYGROUND GALLERY ════ */
.playground {
  position: relative;
  z-index: 10;
  background: var(--bg-secondary);
  padding: 120px 0;
  overflow: hidden;
  transition: background-color 0.4s ease;
}

.pg-header {
  text-align: center;
  margin-bottom: 60px;
}

.pg-title {
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 300;
  letter-spacing: -1.4px;
  color: var(--text-heading);
}

.pg-subtitle {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.pgf-stage {
  position: relative;
  width: 100%;
  height: 520px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.pgf-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.pgf-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(85vw, 440px);
  height: 480px;
  margin-left: calc(min(85vw, 440px) / -2);
  margin-top: -240px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.pgf-card-media {
  width: 100%;
  height: 100%;
}

.pgf-card-media video, .pgf-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgf-card-expand {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pgf-card.is-active:hover .pgf-card-expand {
  opacity: 1;
}

.pgf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.pgf-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--nav-border);
  background: var(--bg-card);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pgf-arrow:hover {
  transform: scale(1.1);
  background: var(--gold);
  color: #1a1918;
}

.pgf-caption {
  text-align: center;
  margin-top: 20px;
}

.pgf-cap-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}

.pgf-cap-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 4px 0;
}

.pgf-cap-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ════ TESTIMONIALS & FAN-DECK ════ */
.testimonials {
  position: relative;
  z-index: 10;
  background: var(--bg-base);
  padding: 140px 0;
  transition: background-color 0.4s ease;
}

.t-heading {
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 300;
  text-align: center;
  color: var(--text-heading);
  margin-bottom: 60px;
}

.t-cards {
  position: relative;
  width: min(90%, 900px);
  height: 380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  perspective: 1000px;
  touch-action: pan-y;
}

.t-card {
  position: absolute;
  width: min(85vw, 680px);
  padding: 40px;
  border-radius: 32px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  will-change: transform, opacity;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.t-card:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 40px -10px rgba(244, 210, 74, 0.25);
}

.t-card.active-card {
  border-color: rgba(244, 210, 74, 0.4);
}

/* Pagination Dots */
.t-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease;
}

.t-dot:hover {
  transform: scale(1.2);
  border-color: var(--gold);
}

.t-dot.active {
  width: 32px;
  border-radius: 9999px;
  background: var(--gold);
  border-color: var(--gold);
}

.t-quote {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-heading);
  margin-bottom: 24px;
  font-style: italic;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-heading);
}

.t-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
}

.t-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ════ ABOUT & EXPERIENCE SECTION ════ */
.about {
  position: relative;
  z-index: 10;
  background: var(--bg-secondary);
  padding: 140px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  width: min(90%, 1140px);
  margin: 0 auto;
  align-items: start;
}

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

.about-title {
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--text-heading);
  line-height: 1.15;
}

.about-text {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.7;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.skill-chip {
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-heading);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-chip:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-left: 2px solid var(--nav-border);
  padding-left: 32px;
}

.tl-item {
  position: relative;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -39px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-secondary);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 4px;
}

.tl-role {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
}

.tl-company {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tl-desc {
  font-size: 14px;
  line-height: 1.6;
}

/* ════ LIGHTBOX & MODALS ════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.lb-content {
  width: min(92vw, 1000px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
}

.lb-stage {
  width: 100%;
  height: 60vh;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.lb-stage video, .lb-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lb-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lb-close:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.3);
}

/* ════ FOOTER ════ */
.footer {
  position: relative;
  z-index: 10;
  background: var(--bg-base);
  padding: 80px 0 40px;
  border-top: 1px solid var(--nav-border);
  transition: background-color 0.4s ease;
}

.footer-inner {
  width: min(90%, 1140px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 16px;
}

.footer-subtext {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

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

.meta-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-heading);
  opacity: 0.85;
}

/* Contact Form Styling */
.contact-form-wrap {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--bg-base);
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 210, 74, 0.2);
}

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

.service-chip {
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  background: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-chip:hover, .service-chip.active {
  background: var(--text-heading);
  color: var(--bg-base);
  border-color: var(--text-heading);
}

.btn-submit {
  padding: 14px 28px;
  border-radius: 9999px;
  background: var(--gold);
  color: #1a1918;
  border: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  align-self: flex-start;
}

.btn-submit:hover {
  transform: translateY(-2px);
  background: var(--gold-hover);
}

.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #4cd964;
  margin-top: 4px;
}

.footer-middle {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--nav-border);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-btn {
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  background: var(--bg-card);
  color: var(--text-heading);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--nav-border);
  padding-top: 24px;
  margin-top: 24px;
}

.back-to-top {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ── RESPONSIVE MEDIA QUERIES ── */

/* Laptops & Tablets (<= 1024px) */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .tiles-row { flex-direction: column; }
  .project-tile { height: 480px; }
  .intro-copy { font-size: 26px; }
}

/* Medium Tablets & Mobile Screens (<= 900px) */
@media (max-width: 900px) {
  .hero-line-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
    top: calc(50vh - 40px);
  }
  .h-line.line-top {
    top: calc(50vh - 160px);
  }
  .recorder {
    transform: scale(0.9);
    transform-origin: left center;
  }
  .hero-vertical {
    display: none;
  }
}

/* Small Tablets & Mobile (<= 640px) */
@media (max-width: 640px) {
  .h-line {
    font-size: clamp(28px, 8vw, 48px);
    letter-spacing: 0.5px;
  }
  .h-line.line-top {
    left: 5%;
    top: calc(50vh - 140px);
  }
  .hero-line-bottom {
    left: 5%;
    top: calc(50vh - 50px);
    gap: 16px;
  }
  .hero-eyebrow {
    left: 5%;
    top: 70px;
    font-size: 11px;
  }
  .recorder {
    transform: scale(0.78);
    transform-origin: left center;
  }
  .rec-title {
    font-size: 10px;
  }
  .rec-center {
    width: 130px;
  }
  .intro-copy {
    font-size: 20px;
    letter-spacing: -0.5px;
    margin-bottom: 50px;
  }
  .featured-heading {
    font-size: 28px;
    margin-bottom: 32px;
  }
  .project-tiles {
    padding: 0 16px;
  }
  .project-tile {
    height: 380px;
    border-radius: 24px;
  }
  .tile-overlay {
    padding: 20px;
  }
  .tile-title {
    font-size: 22px;
  }
  .tile-desc {
    font-size: 13px;
    max-width: 100%;
  }
  .pg-title {
    font-size: 28px;
  }
  .pgf-stage {
    height: 380px;
  }
  .pgf-card {
    width: min(88vw, 320px);
    height: 360px;
    margin-left: calc(min(88vw, 320px) / -2);
    margin-top: -180px;
  }
  .t-heading {
    font-size: 28px;
    margin-bottom: 36px;
  }
  .t-cards {
    height: 360px;
  }
  .t-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .t-quote {
    font-size: 15px;
    margin-bottom: 16px;
  }
  .about-title {
    font-size: 32px;
  }
  .about-text {
    font-size: 16px;
  }
  .contact-form-wrap {
    padding: 20px 16px;
    border-radius: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .btn-submit {
    width: 100%;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Extra Small Phones (<= 400px) */
@media (max-width: 400px) {
  .recorder {
    transform: scale(0.7);
    transform-origin: left center;
  }
  .h-line {
    font-size: 26px;
  }
  .project-tile {
    height: 340px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVICES SECTION STYLING (WordPress, Web Dev, SMO & SEO)
   ══════════════════════════════════════════════════════════════════════════ */
.services-section {
  position: relative;
  z-index: 10;
  background: var(--bg-base);
  padding: 120px 0;
  transition: background-color 0.4s ease;
}

.services-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 64px;
  padding: 0 20px;
}

.services-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
}

.services-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 50px);
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 16px;
}

.services-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  width: min(92%, 1200px);
  margin: 0 auto;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 36px 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease, box-shadow 0.35s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px -10px rgba(244, 210, 74, 0.22);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--gold);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-card:hover .service-icon-box {
  transform: scale(1.08) rotate(3deg);
  background: var(--gold);
  color: #1a1918;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 22px;
}

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  border-top: 1px dashed var(--card-border);
  padding-top: 18px;
}

.service-features-list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features-list li svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
}

.service-card-action {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-card:hover .service-card-action {
  color: var(--gold);
  gap: 10px;
}

/* ── Contact Direct Badges & Quick Action Buttons ── */
.contact-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.quick-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-heading);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.quick-contact-badge:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: var(--gold);
  color: #1a1918;
}

.quick-contact-badge.call-btn {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.28);
}

.quick-contact-badge.call-btn:hover {
  background: #1557b0;
  border-color: #1557b0;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.42);
}

.quick-contact-badge.whatsapp-btn {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}

.quick-contact-badge.whatsapp-btn:hover {
  background: #20ba5a;
  border-color: #20ba5a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42);
}

.quick-contact-badge.email-btn {
  background: #ea4335;
  border-color: #ea4335;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(234, 67, 53, 0.28);
}

.quick-contact-badge.email-btn:hover {
  background: #d93025;
  border-color: #d93025;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.42);
}

.quick-contact-badge.call-btn svg,
.quick-contact-badge.whatsapp-btn svg,
.quick-contact-badge.email-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .services-section {
    padding: 80px 0;
  }
  .services-header {
    margin-bottom: 40px;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-card {
    padding: 28px 22px;
  }
}

