/* ==========================================================================
   TUBA KHAN PORTFOLIO — 2026 3D DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-base: #06070e;
  --bg-surface: #0c1020;
  --bg-surface-elevated: #121832;
  --bg-surface-glass: rgba(12, 16, 32, 0.72);
  --bg-card: rgba(16, 22, 44, 0.65);
  --bg-card-hover: rgba(22, 30, 60, 0.85);

  /* Vibrant Accents */
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.45);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-violet: #8b5cf6;
  --accent-rose: #f43f5e;
  --accent-amber: #fbbf24;

  /* Text Hierarchy */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Borders & Specular Glass */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-specular: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(99, 102, 241, 0.4);

  /* Shadows & Depth */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-3d: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.2);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  selection-background-color: var(--primary);
  selection-color: #fff;
}

::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

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

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

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */

.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.03);
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--primary), var(--accent-violet));
  box-shadow: 0 0 12px var(--primary-glow);
  transition: width 0.08s ease-out;
}

/* ==========================================================================
   BACKGROUND CANVAS & AMBIENT MESH
   ========================================================================== */

.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.ambient-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  mix-blend-mode: screen;
  will-change: transform;
}

.mesh-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #4f46e5 0%, rgba(99, 102, 241, 0) 70%);
  top: -15%;
  left: -10%;
  animation: orbDrift1 22s infinite alternate ease-in-out;
}

.mesh-orb--2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #7c3aed 0%, rgba(139, 92, 246, 0) 70%);
  top: 40%;
  right: -15%;
  animation: orbDrift2 26s infinite alternate ease-in-out;
}

.mesh-orb--3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #0284c7 0%, rgba(6, 182, 212, 0) 70%);
  bottom: -10%;
  left: 20%;
  animation: orbDrift3 20s infinite alternate ease-in-out;
}

.mesh-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.15); }
  100% { transform: translate(40px, 140px) scale(0.9); }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -90px) scale(1.2); }
  100% { transform: translate(-50px, 60px) scale(0.95); }
}

@keyframes orbDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -60px) scale(1.1); }
  100% { transform: translate(-60px, -100px) scale(0.85); }
}

/* ==========================================================================
   CUSTOM CURSOR (DESKTOP)
   ========================================================================== */

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.1s ease;
  display: none;
}

.cursor-glow {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(99, 102, 241, 0.6);
  background: rgba(99, 102, 241, 0.08);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth), background 0.3s, border-color 0.3s;
  display: none;
}

@media (pointer: fine) {
  .cursor-dot,
  .cursor-glow {
    display: block;
  }
}

.cursor-hover {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */

.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.section-spacing {
  padding-top: 130px;
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #93c5fd 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.section-tag__spark {
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav-container {
  position: sticky;
  top: 20px;
  z-index: 100;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: rgba(10, 14, 28, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-specular);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all var(--transition-normal);
}

.nav:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.15);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.nav__logo-accent {
  background: linear-gradient(135deg, #fff 40%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__logo-dot {
  color: var(--accent-cyan);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--primary));
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  transition: width var(--transition-normal);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  color: #fff;
  font-weight: 600;
}

.nav__link--active::after {
  width: 100%;
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.nav__mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav__mobile-toggle--active .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.nav__mobile-toggle--active .bar-2 {
  opacity: 0;
}

.nav__mobile-toggle--active .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile-cta {
  display: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn--primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.55), 0 0 15px rgba(6, 182, 212, 0.4);
}

.btn--primary:hover::before {
  left: 100%;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: var(--border-specular);
  backdrop-filter: blur(10px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: var(--border-specular);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   3D TILT CONTAINER & REVEAL ANIMATION
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.85s var(--ease-smooth), transform 0.85s var(--ease-smooth);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card-wrapper {
  perspective: 1200px;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ==========================================================================
   HERO SECTION & 3D PORTRAIT
   ========================================================================== */

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 40px 0 60px;
}

.hero__backdrop-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 13rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.03);
  user-select: none;
  pointer-events: none;
  z-index: -1;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.status-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6ee7b7;
  letter-spacing: 0.02em;
}

.hero__eyebrow-wrap {
  margin-bottom: 12px;
}

.hero__eyebrow {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero__subheadline {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.45;
}

.hero__description {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 24px;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-width: max-content;
}

.stat-badge {
  display: flex;
  flex-direction: column;
}

.stat-badge__value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-badge__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-badge__divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* Hero Visual / 3D Image Card */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero__image-card {
  position: relative;
  width: 420px;
  max-width: 100%;
  border-radius: var(--radius-xl);
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-specular);
  box-shadow: var(--shadow-3d);
}

.hero__image-inner {
  position: relative;
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  background: radial-gradient(circle at 50% 65%, #1d2547 0%, #0d1226 70%, #080b16 100%);
  aspect-ratio: 1 / 1.15;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Scale and center subject with equal spacing on left and right */
  transform: scale(1.65) translate(2.8%, 14%);
  transform-origin: center bottom;
  transition: transform 0.6s var(--ease-smooth);
}

.hero__image-card:hover .hero__image {
  transform: scale(1.72) translate(2.8%, 12%);
}

/* Floating 3D Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(13, 18, 38, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-specular);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(99, 102, 241, 0.25);
  transform: translateZ(40px);
  animation: floatBadge 5s infinite ease-in-out;
  z-index: 5;
}

.floating-badge--top {
  top: -12px;
  right: -20px;
  animation-delay: 0s;
}

.floating-badge--bottom {
  bottom: 20px;
  left: -25px;
  animation-delay: 2.5s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateZ(40px) translateY(0); }
  50% { transform: translateZ(40px) translateY(-8px); }
}

.floating-badge__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 0 10px var(--primary-glow);
  flex-shrink: 0;
}

.floating-badge__content {
  display: flex;
  flex-direction: column;
}

.floating-badge__title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.floating-badge__sub {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 56px;
  scroll-margin-top: 100px;
}

.about__image-frame {
  position: relative;
}

.about__image-glow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(50px);
  z-index: -1;
}

.about__image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-specular);
  background: var(--bg-surface-glass);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.about__image-card:hover .about__image {
  transform: scale(1.05);
}

.about__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.about__body {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 34px;
}

.about__dna-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about__dna-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--primary));
  border-radius: var(--radius-full);
}

.dna-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dna-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 22px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.dna-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.15);
}

.dna-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.dna-card__label {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.dna-card__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   FEATURED PROJECTS (PORTFOLIO)
   ========================================================================== */

.projects {
  position: relative;
  scroll-margin-top: 100px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: 32px;
  margin-bottom: 48px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-specular);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.project-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.2);
}

.project-card--reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.project-card--reverse .project-card__mockup {
  order: 2;
}

.project-card--reverse .project-card__info {
  order: 1;
}

.project-card__mockup {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-specular);
  background: #080b16;
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
}

.project-card__screen {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card__screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease-smooth);
}

.project-card__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

.project-card:hover .project-card__screen-img {
  transform: scale(1.05);
}

.project-card__screen-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(10, 14, 28, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-specular);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.project-card__tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 14px;
}

.project-card__role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.project-card__role-pill .role-title {
  color: var(--text-muted);
  font-weight: 500;
}

.project-card__role-pill .role-value {
  color: #a5b4fc;
  font-weight: 600;
}

.project-card__desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ==========================================================================
   THE BEAT / EDITORIAL & MEDIUM ARTICLES
   ========================================================================== */

.beat {
  position: relative;
  scroll-margin-top: 100px;
}

.beat__category {
  margin-bottom: 50px;
}

.beat__category-header {
  margin-bottom: 24px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-specular);
  backdrop-filter: blur(12px);
}

.category-pill--tech {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.category-pill--media {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.3);
}

.category-pill--fashion {
  color: #e879f9;
  border-color: rgba(232, 121, 249, 0.3);
}

.category-pill--trending {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.beat__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.beat-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.beat-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
}

.beat-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.beat-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c1020;
}

.beat-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.beat-card:hover .beat-card__thumb img {
  transform: scale(1.08);
}

.beat-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 28, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.beat-card:hover .beat-card__overlay {
  opacity: 1;
}

.beat-card__read-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: #0b0f19;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: translateY(10px);
  transition: transform var(--transition-fast);
}

.beat-card:hover .beat-card__read-btn {
  transform: translateY(0);
}

.beat-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.beat-card__meta {
  margin-bottom: 10px;
}

.beat-card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

.beat-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  margin-bottom: 16px;
  flex-grow: 1;
}

.beat-card__cta {
  font-size: 0.84rem;
  font-weight: 600;
  color: #818cf8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.beat-card:hover .beat-card__cta {
  color: var(--accent-cyan);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact__card {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, rgba(13, 17, 36, 0.8) 70%);
  border: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-3d);
  overflow: hidden;
}

.contact__glow-orb {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

.contact__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.section-tag--center {
  margin-left: auto;
  margin-right: auto;
}

.contact__headline {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact__subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  text-align: left;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(16, 22, 44, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.contact-channel:hover {
  background: rgba(26, 36, 70, 0.9);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.2);
}

.contact-channel__icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel__icon--email {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.contact-channel__icon--whatsapp {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.contact-channel__icon--linkedin {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
}

.contact-channel__info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-grow: 1;
}

.contact-channel__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.contact-channel__value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-channel__arrow {
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.contact-channel:hover .contact-channel__arrow {
  color: #fff;
  transform: translate(2px, -2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  margin-top: 100px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.back-to-top:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE OPTIMIZATIONS)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 20px;
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__stats {
    margin: 0 auto;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image-frame {
    max-width: 380px;
    margin: 0 auto;
  }

  .project-card,
  .project-card--reverse {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 28px;
  }

  .project-card--reverse .project-card__mockup {
    order: 1;
  }

  .project-card--reverse .project-card__info {
    order: 2;
  }

  .project-card__mockup {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .page-wrapper {
    padding: 0 14px 50px;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .section-spacing {
    padding-top: 75px;
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
  }

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

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding-top: 20px;
  }

  .hero__content {
    display: contents;
  }

  .status-pill {
    order: 1;
    margin-bottom: 16px;
  }

  .hero__eyebrow-wrap {
    order: 2;
    margin-bottom: 10px;
  }

  .hero__headline {
    order: 3;
    margin-bottom: 12px;
    font-size: clamp(2.2rem, 7.5vw, 3rem);
  }

  .hero__subheadline {
    order: 4;
    margin-bottom: 26px;
    font-size: 1.05rem;
  }

  .hero__visual {
    order: 5;
    margin-bottom: 28px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero__description {
    order: 6;
    margin-bottom: 28px;
    font-size: 0.96rem;
    max-width: 580px;
  }

  .hero__buttons {
    order: 7;
    margin-bottom: 32px;
  }

  .hero__stats {
    order: 8;
    margin-bottom: 20px;
  }

  .nav-container {
    padding-top: 6px;
    top: 10px;
  }

  .nav {
    padding: 10px 18px;
  }

  .nav__links {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    max-width: calc(100vw - 28px);
    background: rgba(10, 14, 28, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-specular);
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    display: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  }

  .nav__links.nav__links--open {
    display: flex;
    animation: menuSlideDown 0.3s var(--ease-spring);
  }

  @keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .nav__cta--desktop {
    display: none;
  }

  .nav__mobile-cta {
    display: block;
    width: 100%;
    margin-top: 8px;
  }

  .nav__mobile-cta .btn {
    width: 100%;
  }

  .hero__image-card {
    width: min(340px, 92vw);
    padding: 10px;
  }

  .hero__image-inner {
    aspect-ratio: 1 / 1.12;
  }

  .floating-badge {
    padding: 8px 14px;
    gap: 8px;
  }

  .floating-badge--top {
    right: -6px;
    top: -10px;
  }

  .floating-badge--bottom {
    left: -6px;
    bottom: 12px;
  }

  .floating-badge__title {
    font-size: 0.76rem;
  }

  .floating-badge__sub {
    font-size: 0.66rem;
  }

  .about__headline {
    font-size: 1.95rem;
  }

  .dna-card {
    padding: 14px 16px;
    gap: 14px;
  }

  .dna-card__icon-wrap {
    width: 36px;
    height: 36px;
  }

  .project-card {
    padding: 20px 16px;
    gap: 20px;
    margin-bottom: 32px;
  }

  .project-card__title {
    font-size: 1.35rem;
  }

  .project-card__desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .beat__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact__card {
    padding: 36px 18px;
    border-radius: var(--radius-lg);
  }

  .contact__headline {
    font-size: 1.95rem;
  }

  .contact__subtext {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .contact-channel {
    padding: 14px 16px;
    gap: 12px;
  }

  .footer {
    margin-top: 60px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer__right {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero__headline {
    font-size: 2.1rem;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__stats {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 16px;
    gap: 12px;
  }

  .stat-badge {
    align-items: center;
  }

  .stat-badge__divider {
    width: 60%;
    height: 1px;
  }

  .floating-badge--top {
    right: 0;
  }

  .floating-badge--bottom {
    left: 0;
  }
}

/* ==========================================================================
   REDUCED MOTION PREFERENCE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
