/* ═══════════════════════════════════════════════════════════════
   PRAJWAL KOTIAN — Premium Portfolio
   Design System & Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────────────────────────── */
:root {
  /* Colors */
  --black:       #090909;
  --black-light: #111111;
  --gray-900:    #1a1a1a;
  --gray-800:    #222222;
  --gray-700:    #333333;
  --gray-600:    #555555;
  --gray-500:    #777777;
  --gray-400:    #999999;
  --gray-300:    #bbbbbb;
  --gray-200:    #dddddd;
  --gray-100:    #eeeeee;
  --white:       #ffffff;
  --blue-accent: #4a8eff;
  --blue-subtle: rgba(74, 142, 255, 0.08);
  --blue-glow:   rgba(74, 142, 255, 0.15);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 12vw, 160px);
  --container-max:   1200px;
  --container-px:    clamp(20px, 5vw, 60px);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.3s var(--ease-out-expo);
  --transition-med:  0.6s var(--ease-out-expo);
  --transition-slow: 1s var(--ease-out-expo);

  /* Glass */
  --glass-bg:     rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur:   20px;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-family);
  background: var(--black);
  color: var(--gray-300);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

::selection {
  background: rgba(74, 142, 255, 0.2);
  color: var(--white);
}

/* ─── Preloader ──────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader-line {
  width: 60px;
  height: 1px;
  background: var(--gray-700);
  position: relative;
  overflow: hidden;
}

.preloader-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  animation: preloaderSlide 1.2s var(--ease-out-expo) infinite;
}

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

.preloader-text {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 500;
}

/* ─── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-fast), backdrop-filter var(--transition-fast);
}

#navbar.scrolled {
  background: rgba(9, 9, 9, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-accent);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition-fast);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ─── Hero Section ───────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--container-px);
}

.hero-name {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-name-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-name-line {
  display: block;
  overflow: hidden;
  line-height: 1.05;
}

.hero-tagline {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--gray-400);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 32px;
}

.hero-description {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--gray-700);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  background: transparent;
}

.hero-cta:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
}

.hero-cta svg {
  transition: transform var(--transition-fast);
}

.hero-cta:hover svg {
  transform: translate(3px, -3px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--gray-800);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--gray-400);
  animation: scrollDown 2s var(--ease-out-expo) infinite;
}

@keyframes scrollDown {
  0%   { top: -40%; }
  100% { top: 100%; }
}

/* ─── Section Common ─────────────────────────────────────────── */
section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-label {
  display: block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--blue-accent);
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ─── About Section ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-card {
  position: relative;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 142, 255, 0.15);
}

.about-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--blue-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--blue-accent);
}

.about-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.7;
  flex-grow: 1;
}

.about-stat {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.about-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--blue-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.about-card:hover .about-card-glow {
  opacity: 1;
}

/* ─── Journey Timeline ───────────────────────────────────────── */
#journey {
  background: var(--black-light);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline-line {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gray-800);
  transform-origin: top center;
}

.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--blue-accent);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-700);
  border: 2px solid var(--black-light);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-item:hover .timeline-dot,
.timeline-dot--active {
  background: var(--blue-accent);
  box-shadow: 0 0 16px rgba(74, 142, 255, 0.3);
}

.timeline-content {
  padding: 0;
}

.timeline-year {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.timeline-age {
  font-size: 13px;
  color: var(--blue-accent);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}

.timeline-content p,
.timeline-content li {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.8;
}

.timeline-content ul {
  padding-left: 0;
}

.timeline-content li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.timeline-content li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray-600);
}

.timeline-content strong {
  color: var(--white);
  font-weight: 600;
}

/* ─── Projects ───────────────────────────────────────────────── */
.projects-grid {
  display: flex;
  justify-content: center;
}

.project-card--single {
  max-width: 560px;
  width: 100%;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 142, 255, 0.15);
}

.project-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

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

.project-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
}

.project-card-info {
  padding: 24px;
}

.project-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-accent);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.project-card-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.project-card-info p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--blue-accent);
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(74, 142, 255, 0.06);
  border: 1px solid rgba(74, 142, 255, 0.1);
}

.project-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin: 0 24px 24px;
  border-radius: 100px;
  background: rgba(74, 142, 255, 0.06);
  border: 1px solid rgba(74, 142, 255, 0.1);
  color: var(--blue-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  width: fit-content;
}

.project-card-action svg {
  transition: transform 0.4s var(--ease-out-expo);
  width: 14px;
  height: 14px;
}

.project-card:hover .project-card-action {
  background: rgba(74, 142, 255, 0.12);
  border-color: rgba(74, 142, 255, 0.2);
  transform: translateY(-1px);
}

.project-card:hover .project-card-action svg {
  transform: translate(3px, -3px);
}

/* ═══════════════════════════════════════════════════════════════
   FEATURED PROJECT — Apple-Inspired Case Study
   ═══════════════════════════════════════════════════════════════ */
#featured {
  position: relative;
  overflow: hidden;
  background: var(--black);
}

#featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 30% 20%, rgba(74, 142, 255, 0.04), transparent 70%),
              radial-gradient(ellipse 60% 40% at 70% 80%, rgba(255, 215, 0, 0.02), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.featured-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(74, 142, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.featured-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
  position: relative;
  z-index: 1;
}

.featured-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-accent);
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid rgba(74, 142, 255, 0.15);
  border-radius: 100px;
  background: rgba(74, 142, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.featured-project-wrapper {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}

.featured-project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.featured-project-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gray-900);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(74, 142, 255, 0.05);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.featured-project-card:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 0 1px rgba(74, 142, 255, 0.15),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(74, 142, 255, 0.1);
}

.featured-project-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.featured-project-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.featured-project-card:hover .featured-project-bg img {
  transform: scale(1.08);
}

.featured-project-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.5) 100%);
  transition: background 0.6s var(--ease-out-expo);
}

.featured-project-card:hover .featured-project-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.featured-project-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.featured-project-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  transition: transform 0.5s var(--ease-out-expo), background 0.4s;
}

.featured-project-play-btn svg {
  margin-left: 3px;
}

.featured-project-card:hover .featured-project-play-btn {
  transform: scale(1.12);
  background: rgba(255, 255, 255, 0.18);
}

.featured-project-play-btn:active {
  transform: scale(0.95);
}

.featured-project-play-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

.featured-project-card:hover .featured-project-play-label {
  opacity: 1;
  transform: translateY(0);
}

.featured-project-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent 40%, rgba(74, 142, 255, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo);
  pointer-events: none;
  z-index: 3;
}

.featured-project-card:hover .featured-project-border {
  opacity: 1;
}

/* ── Content Below Video ───────────────────────────────────── */
.featured-content {
  position: relative;
  z-index: 1;
}

.featured-content-header {
  margin-bottom: 40px;
}

.featured-subtitle {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.featured-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.featured-body {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.featured-description {
  flex: 1;
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.8;
  max-width: 580px;
  margin: 0;
}

.featured-details-grid {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.featured-role-block,
.featured-tech-block {
  flex: 1;
  min-width: 180px;
  padding: 28px 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.featured-role-block:hover,
.featured-tech-block:hover {
  border-color: rgba(74, 142, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.meta-label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 14px;
  font-weight: 500;
}

.featured-role-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.featured-role-list li {
  font-size: 13px;
  color: var(--gray-300);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.featured-role-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-accent);
  flex-shrink: 0;
  opacity: 0.6;
}

.featured-role-list li:hover {
  color: var(--white);
  transform: translateX(4px);
}

/* ── Tech List ──────────────────────────────────────────────── */
.featured-tech-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.featured-tech-list li {
  font-size: 13px;
  color: var(--gray-300);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.featured-tech-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.6);
  flex-shrink: 0;
  opacity: 0.6;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.featured-tech-list li:hover {
  color: var(--white);
  transform: translateX(4px);
}

/* ── CTA Button ────────────────────────────────────────────── */
.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(74, 142, 255, 0.15), rgba(74, 142, 255, 0.05));
  border: 1px solid rgba(74, 142, 255, 0.2);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.featured-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(74, 142, 255, 0.3), rgba(74, 142, 255, 0.1));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.featured-cta .cta-text,
.featured-cta .cta-icon {
  position: relative;
  z-index: 1;
}

.featured-cta .cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease-out-expo), background 0.4s;
}

.featured-cta:hover::before {
  opacity: 1;
}

.featured-cta:hover {
  border-color: rgba(74, 142, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(74, 142, 255, 0.15);
}

.featured-cta:hover .cta-icon {
  transform: scale(1.15);
  background: rgba(74, 142, 255, 0.2);
}

.featured-cta:active {
  transform: translateY(0) scale(0.98);
}

/* ── Responsive: Featured Section ───────────────────────────── */
@media (max-width: 1024px) {
  .featured-body {
    flex-direction: column;
    gap: 32px;
  }

  .featured-description {
    max-width: 100%;
  }

  .featured-details-grid {
    width: 100%;
  }

  .featured-role-block,
  .featured-tech-block {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .featured-project-wrapper {
    margin-bottom: 36px;
  }

  .featured-project-play-btn {
    width: 64px;
    height: 64px;
  }

  .featured-project-play-btn svg {
    width: 22px;
    height: 22px;
  }

  .featured-cta {
    width: 100%;
    justify-content: center;
  }

  .featured-details-grid {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .featured-project-play-btn {
    width: 56px;
    height: 56px;
  }

  .featured-project-play-btn svg {
    width: 18px;
    height: 18px;
  }

  .featured-project-card {
    border-radius: var(--radius-lg);
  }
}

/* ─── Books Section ──────────────────────────────────────────── */
#books {
  background: var(--black-light);
}

.bookshelf {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bookshelf-shelf {
  width: 100%;
  max-width: 600px;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--gray-700), transparent);
  border-radius: 3px;
  margin-top: 20px;
  order: 2;
}

.books-container {
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: flex-end;
  order: 1;
  perspective: 1200px;
}

.book {
  cursor: pointer;
  transition: transform var(--transition-med);
}

.book:hover {
  transform: translateY(-12px);
}

.book.active {
  transform: translateY(-30px);
}

.book-3d {
  width: 180px;
  height: 260px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out-expo);
}

.book:hover .book-3d {
  transform: rotateY(-15deg);
}

.book.active .book-3d {
  transform: rotateY(-180deg);
}

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

.book-cover-front {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 2px 10px 10px 2px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 4px 4px 20px rgba(0,0,0,0.5);
}

.book:nth-child(2) .book-cover-front {
  background: linear-gradient(135deg, #1a1a1a, #0a1628);
}

.book-spine-edge {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255,255,255,0.08);
}

.book-cover-content {
  text-align: center;
  padding: 20px;
}

.book-cover-label {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--blue-accent);
  display: block;
  margin-bottom: 16px;
}

.book-cover-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.book-cover-author {
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 1px;
}

.book-cover-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.book-cover-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #151520, #0d1117);
  border-radius: 10px 2px 2px 10px;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow: -4px 4px 20px rgba(0,0,0,0.5);
}

.book-description h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.book-description p {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 16px;
}

.book-description .book-year {
  font-size: 11px;
  color: var(--blue-accent);
  letter-spacing: 1px;
}

/* ─── AI Showcase (Skills) ───────────────────────────────────── */
#skills {
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.skills-bg-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.skills-glow-orb {
  position: absolute;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(74, 142, 255, 0.08) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.ai-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.ai-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: rgba(20, 20, 22, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
  z-index: 1;
}

.ai-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(30, 30, 34, 0.8);
}

/* Mouse follow glow */
.ai-card-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(74, 142, 255, 0.15) 0%, transparent 70%);
  top: -250px; /* Initially hidden out of bounds */
  left: -250px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0;
  z-index: 0;
}

.ai-card:hover .ai-card-glow {
  opacity: 1;
}

/* Subtle border highlight on hover */
.ai-card-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,215,0,0.1), transparent 40%, rgba(74,142,255,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.ai-card:hover .ai-card-border {
  opacity: 1;
}

.ai-card-content {
  position: relative;
  z-index: 2;
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ai-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-card:hover .ai-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(74, 142, 255, 0.2);
}

.ai-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.ai-desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 0;
}

.ai-card-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.ai-card.expanded .ai-card-details {
  max-height: 200px;
  opacity: 1;
}

.ai-card-details span {
  font-size: 13px;
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-card-details span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: rgba(255, 215, 0, 0.6); /* Subtle gold */
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Capabilities Section */
.capabilities-section {
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.capabilities-header {
  margin-bottom: 40px;
  text-align: center;
}

.sub-section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.capability-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), transparent);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.capability-card:hover {
  transform: translateX(8px);
  border-color: rgba(74, 142, 255, 0.15);
}

.cap-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  color: var(--blue-accent);
}

.cap-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.cap-info p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ─── Modeling Portfolio ─────────────────────────────────────── */
#modeling {
  background: var(--black-light);
}

.modeling-info {
  margin-bottom: 40px;
}

.modeling-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.modeling-stat-label {
  font-size: 13px;
  color: var(--gray-500);
  letter-spacing: 1px;
}

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

.modeling-tag {
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--gray-700);
  color: var(--gray-300);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.modeling-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-card {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  transition: transform var(--transition-fast);
}

.gallery-card:hover {
  transform: scale(1.02);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

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

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray-600);
  font-size: 13px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 32px;
  color: var(--white);
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

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

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: var(--white);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.1);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ─── Currently Exploring ────────────────────────────────────── */
.exploring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.exploring-card {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: var(--transition-fast);
  overflow: hidden;
}

.exploring-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 142, 255, 0.15);
}

.exploring-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.exploring-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.exploring-pulse {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 142, 255, 0.4); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 8px rgba(74, 142, 255, 0); }
}

/* ─── Contact ────────────────────────────────────────────────── */
#contact {
  background: var(--black-light);
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-300);
  transition: var(--transition-fast);
}

.contact-link:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
}

.contact-link svg {
  flex-shrink: 0;
}

.contact-message {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

/* ─── Footer ─────────────────────────────────────────────────── */
#footer {
  padding: 40px var(--container-px);
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

#footer p {
  font-size: 12px;
  color: var(--gray-600);
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modeling-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(9, 9, 9, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 18px;
  }

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

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

  .ai-showcase-grid {
    grid-template-columns: 1fr;
  }

  .modeling-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .exploring-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .books-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

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

  .timeline {
    padding-left: 32px;
  }

  .timeline-dot {
    left: -28px;
  }
}

@media (max-width: 480px) {
  .ai-showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ai-card {
    padding: 24px;
  }

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

  .modeling-gallery {
    grid-template-columns: 1fr;
  }

  .book-3d {
    width: 160px;
    height: 230px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ENHANCED INTERACTIONS — Additions for Premium Feel
   ═══════════════════════════════════════════════════════════════ */

/* ─── Magnetic Button ────────────────────────────────────────── */
.magnetic-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  will-change: transform;
}

.magnetic-btn .magnetic-inner {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ─── About Card Tilt ────────────────────────────────────────── */
.about-card {
  perspective: 800px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.4s var(--ease-out-expo), border-color var(--transition-fast);
  backface-visibility: hidden;
}

.about-card .about-card-icon,
.about-card .about-stat,
.about-card h3,
.about-card p {
  will-change: transform;
  backface-visibility: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(74, 142, 255, 0.2), transparent 40%, rgba(74, 142, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo);
  pointer-events: none;
}

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

/* ─── About Card Glow Enhanced ───────────────────────────────── */
.about-card-glow {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at center, rgba(74, 142, 255, 0.12) 0%, transparent 60%);
  transform: translate(-50%, -50%) scale(0);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo);
}

.about-card:hover .about-card-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ─── Timeline Dot Pulse ─────────────────────────────────────── */
.timeline-dot {
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.timeline-dot--active {
  animation: timelinePulse 2s ease infinite;
}

@keyframes timelinePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 142, 255, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(74, 142, 255, 0); }
}

/* ─── Timeline Content Reveal ────────────────────────────────── */
.timeline-item {
  overflow: hidden;
}

.timeline-item .timeline-year {
  transform-origin: left center;
}

.timeline-item .timeline-content {
  transform-origin: left center;
}

/* ─── AI Showcase Expanded State ─────────────────────────────── */
.ai-card {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, box-shadow 0.6s var(--ease-out-expo);
}

.ai-card.expanded {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(74, 142, 255, 0.08);
}

.ai-card-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, margin-top 0.4s ease;
  margin-top: 0;
}

.ai-card.expanded .ai-card-details {
  max-height: 200px;
  opacity: 1;
  margin-top: 24px;
}

/* ─── AI Card Connection Lines ───────────────────────────────── */
.ai-connection-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ai-connection-lines svg {
  width: 100%;
  height: 100%;
}

/* ─── Currently Exploring Floating Cards ─────────────────────── */
.exploring-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.exploring-card {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
  overflow: hidden;
  will-change: transform;
  animation: cardFloat 4s ease-in-out infinite;
}

.exploring-card:nth-child(2) { animation-delay: -0.5s; }
.exploring-card:nth-child(3) { animation-delay: -1s; }
.exploring-card:nth-child(4) { animation-delay: -1.5s; }
.exploring-card:nth-child(5) { animation-delay: -2s; }
.exploring-card:nth-child(6) { animation-delay: -2.5s; }
.exploring-card:nth-child(7) { animation-delay: -3s; }
.exploring-card:nth-child(8) { animation-delay: -3.5s; }

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

.exploring-card:hover {
  animation: none;
  transform: translateY(-12px);
  border-color: rgba(74, 142, 255, 0.25);
  box-shadow: 0 20px 60px rgba(74, 142, 255, 0.08);
}

.exploring-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(74, 142, 255, 0.2), transparent 50%, rgba(74, 142, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo);
  pointer-events: none;
}

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

.exploring-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.4s var(--ease-out-expo);
}

.exploring-card:hover .exploring-icon {
  transform: scale(1.15);
}

.exploring-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.exploring-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}

/* ─── Modeling Parallax ──────────────────────────────────────── */
.modeling-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-card {
  overflow: hidden;
  transform-style: preserve-3d;
}

.gallery-card img {
  will-change: transform;
}

.gallery-card:hover {
  z-index: 2;
}

/* ─── Contact Section Premium ────────────────────────────────── */
.contact-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.contact-message {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 40px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-300);
  transition: all 0.4s var(--ease-out-expo);
  will-change: transform;
}

.contact-link:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.05);
}

/* ─── Hero Mouse-Reactive Typography ─────────────────────────── */
.hero-name-inner {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* ─── Constellation Canvas Overlay ───────────────────────────── */
#constellation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Smooth Shadow for About Cards ──────────────────────────── */
.about-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s var(--ease-out-expo), border-color var(--transition-fast), box-shadow 0.6s var(--ease-out-expo);
}

.about-card:hover {
  box-shadow: 0 20px 60px rgba(74, 142, 255, 0.08), 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ─── Featured Description ───────────────────────────────────── */
.featured-description {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.8;
}

/* ─── Responsive: Exploring Grid ─────────────────────────────── */
@media (max-width: 1024px) {
  .exploring-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .exploring-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-heading {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  .exploring-grid {
    grid-template-columns: 1fr;
  }
}
