/* ═══════════════════════════════════════════════════
   KANISHK BHARDWAJ — PORTFOLIO DESIGN SYSTEM
   ═══════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  /* Primary Palette */
  --navy-deep: #071739;
  --navy-mid: #0a1f47;
  --blue-slate: #4B6382;
  --blue-mist: #A4B5C4;
  --grey-cloud: #CDD5DB;

  /* Accent */
  --earth-brown: #A68868;
  --sand-light: #E3C39D;
  --accent-glow: rgba(227, 195, 157, 0.15);

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #A4B5C4;
  --text-muted: #6b8199;

  /* Surfaces */
  --bg-primary: #050e24;
  --bg-card: rgba(75, 99, 130, 0.08);
  --bg-card-hover: rgba(75, 99, 130, 0.15);
  --bg-glass: rgba(7, 23, 57, 0.75);
  --border-subtle: rgba(75, 99, 130, 0.2);
  --border-accent: rgba(227, 195, 157, 0.2);

  /* Fonts */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

button, a, [role="button"] {
  cursor: pointer;
}

input, textarea, select {
  cursor: text;
}

p {
  max-width: 65ch;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
}

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

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

::selection {
  background: var(--earth-brown);
  color: var(--navy-deep);
}

/* ═══════════════════════════════════════════════════
   SPLASH SCREEN
   ═══════════════════════════════════════════════════ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  text-align: center;
}

.splash-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--text-primary);
  opacity: 0;
  transform: scale(0.8);
  animation: splashFadeIn 0.8s var(--ease-out-expo) 0.2s forwards;
}

.splash-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sand-light), transparent);
  margin: 1.5rem auto;
  animation: splashLineExpand 0.6s var(--ease-out-expo) 0.8s forwards;
}

.splash-tagline {
  font-size: 1rem;
  color: var(--blue-mist);
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  animation: splashFadeIn 0.6s ease 1.2s forwards;
}

@keyframes splashFadeIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes splashLineExpand {
  to { width: 200px; }
}

/* ═══════════════════════════════════════════════════
   CUSTOM CURSOR — DISABLED, USING DEFAULT
   ═══════════════════════════════════════════════════ */
.cursor-dot,
.cursor-ring {
  display: none !important;
}

/* ═══════════════════════════════════════════════════
   FLOATING NAVIGATION — APPLE LIQUID GLASS
   ═══════════════════════════════════════════════════ */
.floating-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  padding: 0.4rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.6s ease;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.25),
    0 0 0 0.5px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.floating-nav.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.nav-pill {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.65rem 1.35rem;
  border-radius: 1.5rem;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.nav-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-pill:hover {
  color: rgba(255, 255, 255, 0.9);
}

.nav-pill:hover::before {
  opacity: 1;
}

.nav-pill.active {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 2px 12px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.nav-pill.active::before {
  opacity: 0;
}

/* ═══════════════════════════════════════════════════
   HERO SECTION — SPLIT LAYOUT
   ═══════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 5vw, 6rem);
  padding-top: clamp(4rem, 8vh, 8rem);
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: left;
  max-width: 650px;
}

.hero-right {
  flex: 1;
  position: relative;
  min-height: 100vh;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.hero-right spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
}

/* Curved Bottom Edge */
.hero-curve {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--bg-primary);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(166, 136, 104, 0.1);
  border: 1px solid var(--border-accent);
  padding: 0.5rem 1.25rem;
  border-radius: 3rem;
  font-size: 0.85rem;
  color: var(--sand-light);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.badge-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #4ade80;
  animation: online-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ade80;
  animation: online-blink 3s ease-in-out infinite;
}

@keyframes online-ping {
  0% { transform: scale(1); opacity: 0.6; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

@keyframes online-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-name {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -3px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
}

.name-line {
  display: block;
}

.name-line.accent {
  background: linear-gradient(135deg, var(--earth-brown), var(--sand-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--blue-mist);
  margin-bottom: 1.5rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(30px);
}

.separator {
  margin: 0 0.5rem;
  color: var(--earth-brown);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 50ch;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  margin-bottom: 2rem;
}

/* ─── Social Icons Bar (Hero) ─── */
.social-icons-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(20px);
  width: fit-content;
}

.social-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-icon-btn::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.social-icon-btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

.social-icon-btn:hover {
  color: var(--text-primary);
}

.social-icon-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  background: var(--text-primary);
  color: var(--navy-deep);
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.social-icon-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.social-icon-btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

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

/* ─── Buttons ─── */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--earth-brown), var(--sand-light));
  color: var(--navy-deep);
  padding: 1rem 2.5rem;
  min-height: 48px;
  border-radius: 3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 15px rgba(166, 136, 104, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 3rem;
  padding: 2px;
  background: linear-gradient(135deg, var(--sand-light), var(--earth-brown), var(--sand-light));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  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.3s;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(166, 136, 104, 0.4);
}

.btn-glow:hover::before {
  opacity: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  padding: 1rem 2.5rem;
  min-height: 48px;
  border-radius: 3rem;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--sand-light);
  background: rgba(227, 195, 157, 0.05);
  transform: translateY(-2px);
}

/* ─── Scroll Indicator ─── */
.scroll-indicator {
  position: absolute;
  bottom: 6rem;
  left: clamp(2rem, 5vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 2.5s forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--blue-slate);
  border-radius: 14px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--sand-light);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

@keyframes fadeInUp {
  to { opacity: 0.6; }
}

/* ═══════════════════════════════════════════════════
   SKILLS MARQUEE — FUNNEL SECTION
   ═══════════════════════════════════════════════════ */
.skills-section {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(5, 14, 36, 0.8) 0%, rgba(10, 31, 71, 0.4) 50%, rgba(5, 14, 36, 0.8) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 180px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-track {
  display: inline-flex;
  gap: 1rem;
  animation: marqueeScroll 40s linear infinite;
}

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

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 3rem;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--blue-mist);
  transition: all 0.3s ease;
  user-select: none;
  white-space: nowrap;
}

.skill-icon {
  font-size: 1.1rem;
}

.skill-chip:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(227, 195, 157, 0.1);
}

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

/* ═══════════════════════════════════════════════════
   PROJECTS SECTION — WITH CURVED TOP
   ═══════════════════════════════════════════════════ */
.projects-section {
  position: relative;
  background: var(--bg-primary);
}

.projects-curve-top {
  width: 100%;
  height: 80px;
  background: var(--bg-primary);
  clip-path: ellipse(55% 100% at 50% 0%);
  margin-top: -2px;
  position: relative;
  z-index: 1;
}

/* ─── Section Layout — Shared ─── */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-padding) 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--earth-brown);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding: 0.3rem 1rem;
  border: 1px solid var(--border-accent);
  border-radius: 3rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--blue-mist) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   PROJECTS GRID
   ═══════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--border-accent), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  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.4s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: var(--bg-card-hover);
}

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

.project-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.6s var(--ease-out-expo);
}

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

.project-card-image-wrapper {
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
}

.project-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-card-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--earth-brown);
  background: rgba(166, 136, 104, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(166, 136, 104, 0.15);
}

/* ─── View Project Button ─── */
.btn-view-project {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--sand-light);
  padding: 0.6rem 1.25rem;
  border-radius: 2rem;
  border: 1px solid var(--border-accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: auto;
  transition: all 0.3s ease;
  width: fit-content;
  min-height: 44px;
}

.btn-view-project:hover {
  background: rgba(227, 195, 157, 0.1);
  border-color: var(--sand-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(166, 136, 104, 0.15);
}

.btn-view-project svg {
  transition: transform 0.3s ease;
}

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

/* ═══════════════════════════════════════════════════
   JOURNEY TIMELINE
   ═══════════════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--earth-brown), var(--blue-slate), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 3rem 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--earth-brown);
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 15px rgba(166, 136, 104, 0.3);
  transition: all 0.3s ease;
}

.timeline-item:hover::before {
  background: var(--earth-brown);
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 25px rgba(166, 136, 104, 0.5);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--earth-brown);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateX(5px);
}

.timeline-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.timeline-card .timeline-place {
  font-size: 0.9rem;
  color: var(--sand-light);
  margin-bottom: 0.75rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-type-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-education {
  background: rgba(100, 180, 255, 0.1);
  color: #64b5f6;
  border: 1px solid rgba(100, 180, 255, 0.2);
}

.badge-work {
  background: rgba(129, 199, 132, 0.1);
  color: #81c784;
  border: 1px solid rgba(129, 199, 132, 0.2);
}

.badge-research {
  background: rgba(206, 147, 216, 0.1);
  color: #ce93d8;
  border: 1px solid rgba(206, 147, 216, 0.2);
}

.badge-achievement {
  background: rgba(255, 183, 77, 0.1);
  color: #ffb74d;
  border: 1px solid rgba(255, 183, 77, 0.2);
}

/* ═══════════════════════════════════════════════════
   BOOK SHOWCASE — FULL 3D ROTATING BOOK
   ═══════════════════════════════════════════════════ */
.book-showcase {
  display: flex;
  align-items: center;
  gap: 5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.book-3d-wrapper {
  flex: 0 0 300px;
  perspective: 1500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.book-3d {
  position: relative;
  width: 240px;
  height: 340px;
  transform-style: preserve-3d;
  animation: bookFloat 8s ease-in-out infinite;
  cursor: grab;
}

.book-3d:hover {
  animation-play-state: paused;
}

@keyframes bookFloat {
  0% { transform: rotateY(-35deg) rotateX(2deg); }
  50% { transform: rotateY(35deg) rotateX(-2deg); }
  100% { transform: rotateY(-35deg) rotateX(2deg); }
}

@keyframes bookSpin {
  from { transform: rotateY(0deg) rotateX(5deg); }
  to { transform: rotateY(360deg) rotateX(5deg); }
}

.book-face {
  position: absolute;
  backface-visibility: hidden;
}

/* Front Cover */
.book-front {
  width: 240px;
  height: 340px;
  transform: translateZ(15px);
  border-radius: 0 8px 8px 0;
  overflow: hidden;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.5);
}

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

/* Back Cover */
.book-back {
  width: 240px;
  height: 340px;
  transform: rotateY(180deg) translateZ(15px);
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  box-shadow: -5px 5px 30px rgba(0, 0, 0, 0.5);
}

.book-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Spine */
.book-spine-face {
  width: 30px;
  height: 340px;
  left: -15px;
  transform: rotateY(-90deg) translateZ(0px);
  transform-origin: right center;
  background: linear-gradient(90deg, #4a3220, var(--earth-brown), #4a3220);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Top Edge */
.book-top {
  width: 240px;
  height: 30px;
  top: -15px;
  transform: rotateX(90deg) translateZ(0px);
  transform-origin: bottom center;
  background: repeating-linear-gradient(
    90deg,
    #f5f0e8 0px,
    #f5f0e8 2px,
    #e8e0d4 2px,
    #e8e0d4 3px
  );
}

/* Bottom Edge */
.book-bottom {
  width: 240px;
  height: 30px;
  bottom: -15px;
  transform: rotateX(-90deg) translateZ(0px);
  transform-origin: top center;
  background: repeating-linear-gradient(
    90deg,
    #f5f0e8 0px,
    #f5f0e8 2px,
    #e8e0d4 2px,
    #e8e0d4 3px
  );
}

/* Page Edges (Right side) */
.book-pages-edge {
  width: 30px;
  height: 340px;
  right: -15px;
  transform: rotateY(90deg) translateZ(0px);
  transform-origin: left center;
  background: repeating-linear-gradient(
    180deg,
    #f5f0e8 0px,
    #f5f0e8 2px,
    #e8e0d4 2px,
    #e8e0d4 3px
  );
}

.book-info {
  flex: 1;
}

.book-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--text-primary), var(--sand-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.book-author {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stars {
  color: #fbbf24;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.book-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.book-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.highlight-icon {
  font-size: 1.2rem;
}

.book-cta {
  display: inline-flex;
}

/* ═══════════════════════════════════════════════════
   CONTACT SECTION — MODERN SOCIAL BAR
   ═══════════════════════════════════════════════════ */
.contact-section {
  padding-bottom: 6rem;
}

.contact-cta {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-email-btn {
  font-size: 1rem;
  margin: 0 auto;
}

/* Contact Social Bar */
.contact-social-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: fit-content;
  margin: 0 auto;
}

.contact-social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
  min-height: 48px;
}

.contact-social-btn::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.contact-social-btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

.contact-social-btn:hover {
  color: var(--text-primary);
}

.contact-social-btn svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.contact-social-btn:hover svg {
  transform: scale(1.15);
}

.social-label {
  font-size: 0.65rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.contact-social-btn:hover .social-label {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   FOOTER — PROFESSIONAL
   ═══════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--earth-brown), var(--sand-light));
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.75rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-tagline .heart {
  color: #ef4444;
  display: inline-block;
  animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: var(--sand-light);
}

.footer-dot {
  color: var(--text-muted);
  opacity: 0.4;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid rgba(75, 99, 130, 0.1);
  width: 100%;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════
   SPOTLIGHT EFFECT — CURSOR TRACKING
   ═══════════════════════════════════════════════════ */
.spotlight-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.spotlight {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 40%, transparent 70%);
  filter: blur(40px);
  will-change: transform;
  transform: translateZ(0);
  pointer-events: none;
  top: -250px;
  left: -250px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — COMPREHENSIVE MOBILE-FIRST
   ═══════════════════════════════════════════════════ */

/* ── Tablets & Small Desktops (≤1024px) ── */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
  }

  .hero-left {
    align-items: center;
    text-align: center;
    padding: 5rem 2rem 2rem;
  }

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

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .social-icons-bar {
    margin: 0 auto;
  }

  .scroll-indicator {
    left: 50%;
    transform: translateX(-50%);
  }

  .section-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ── Robot: hide on all mobile < 768px ── */
@media (max-width: 767px) {
  .hero-right {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-left {
    padding-bottom: 4rem;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* ── Robot: hide on portrait tablets 768px–1024px ── */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-right {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-left {
    padding-bottom: 4rem;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* ── Robot: show on landscape tablets ── */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-right {
    display: block;
    min-height: 50vh;
    flex: none;
  }
}

/* ── Robot: VISIBLE on desktop (>1024px) ── */
@media (min-width: 1025px) {
  .hero-right {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* ── Mid-range screens (≤768px) ── */
@media (max-width: 768px) {
  .hero-left {
    padding: 4.5rem 1.25rem 2rem;
  }

  .hero-name {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  }

  .hero-description {
    font-size: 0.95rem;
  }

  /* Nav — compact pills */
  .floating-nav {
    gap: 0;
    padding: 0.3rem;
    max-width: calc(100vw - 1rem);
    border-radius: 1.5rem;
  }

  .nav-pill {
    font-size: 0.72rem;
    padding: 0.5rem 0.7rem;
    min-height: 38px;
    border-radius: 1rem;
  }

  .nav-pill::before {
    border-radius: 1rem;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section-tag {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
  }

  /* Projects — single column */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card-img {
    height: 180px;
  }

  /* View Project button — better touch target */
  .btn-view-project {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  /* Book — stacked + smaller */
  .book-showcase {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .book-3d-wrapper {
    flex: none;
  }

  .book-3d {
    width: 180px;
    height: 255px;
    animation: bookSpin 15s linear infinite;
  }

  .book-front, .book-back {
    width: 180px;
    height: 255px;
  }

  /* Precise resizing for 3D edges on mobile */
  .book-spine-face {
    height: 255px;
    width: 25px;
    left: -12.5px;
  }

  .book-top, .book-bottom {
    width: 180px;
    height: 25px;
    top: -12.5px;
  }

  .book-bottom {
    top: auto;
    bottom: -12.5px;
  }

  .book-pages-edge {
    width: 25px;
    height: 255px;
    right: -12.5px;
  }

  .book-front { transform: translateZ(12.5px); }
  .book-back { transform: rotateY(180deg) translateZ(12.5px); }

  .book-title {
    font-size: 1.8rem;
  }

  .book-highlights {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .book-cta {
    margin: 0 auto;
  }

  .book-description {
    font-size: 0.9rem;
  }

  /* Book section — extra bottom padding so nav doesn't overlap */
  .book-section {
    padding-bottom: 8rem;
  }

  /* Contact section — extra bottom padding on mobile */
  .contact-section {
    padding-bottom: 7rem;
  }

  /* Contact */
  .contact-social-bar {
    flex-wrap: wrap;
    padding: 0.75rem;
    gap: 0.5rem;
    max-width: 100%;
    justify-content: center;
  }

  .contact-social-btn {
    min-width: 60px;
  }

  .contact-email-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  /* Timeline */
  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  /* Scroll indicator hidden */
  .scroll-indicator {
    display: none;
  }

  /* Curves — smaller */
  .hero-curve,
  .projects-curve-top {
    height: 40px;
  }

  /* Marquee */
  .marquee-wrapper::before,
  .marquee-wrapper::after {
    width: 60px;
  }

  .skill-chip {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-links {
    gap: 0.5rem;
  }

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

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .hero-left {
    padding: 4rem 1rem 2rem;
  }

  .hero-name {
    font-size: clamp(2.2rem, 14vw, 3rem);
    letter-spacing: 0px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
  }

  .btn-glow, .btn-outline {
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.5rem;
  }

  .social-icons-bar {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 280px;
    margin: 0 auto;
  }

  .social-icon-btn {
    width: 40px;
    height: 40px;
  }

  /* Book extra small */
  .book-3d-wrapper {
    transform: scale(0.8);
    transform-origin: center;
  }

  .book-info {
    padding: 0 0.5rem;
  }

  .book-title {
    font-size: 1.5rem;
  }

  .book-author {
    font-size: 0.95rem;
  }

  .book-description {
    font-size: 0.85rem;
  }

  /* Contact bar — vertical grid */
  .contact-social-bar {
    gap: 0.35rem;
    padding: 0.6rem;
  }

  .contact-social-btn {
    min-width: 55px;
    padding: 0.5rem 0.4rem;
  }

  .social-label {
    font-size: 0.55rem;
  }

  /* Floating nav ultra-compact */
  .floating-nav {
    padding: 0.25rem;
    bottom: 0.75rem;
  }

  .nav-pill {
    font-size: 0.65rem;
    padding: 0.4rem 0.55rem;
    min-height: 34px;
  }

  /* Section padding */
  .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Projects */
  .project-card-body {
    padding: 1rem;
  }

  .project-card-body h3 {
    font-size: 1.1rem;
  }

  .project-card-body p {
    font-size: 0.85rem;
  }

  /* Timeline */
  .timeline {
    padding-left: 1rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }

  .timeline-card {
    padding: 1rem;
  }

  .timeline-card h3 {
    font-size: 1rem;
  }

  /* Footer compact */
  .footer-tagline {
    font-size: 0.8rem;
  }

  .footer-copy {
    font-size: 0.72rem;
  }

  .footer-legal {
    font-size: 0.65rem;
  }
}

/* ── Tiny phones (≤360px) ── */
@media (max-width: 360px) {
  .hero-name {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .nav-pill {
    font-size: 0.6rem;
    padding: 0.35rem 0.45rem;
  }

  .floating-nav {
    border-radius: 1rem;
  }

  .book-3d-wrapper {
    transform: scale(0.7);
  }
}

/* ── Landscape phones (short height) ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-left {
    padding-top: 2rem;
    min-height: auto;
  }

  .hero-right {
    min-height: 100vh;
    max-width: 40%;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .floating-nav {
    bottom: 0.5rem;
  }
}

/* ═══════════════════════════════════════════════════
   GSAP ANIMATION HELPERS
   ═══════════════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

/* Spline viewer shadow DOM overrides */
spline-viewer {
  --spline-viewer-background: transparent !important;
}

/* Hide spline logo */
spline-viewer::part(logo) {
  display: none !important;
}

/* Accessibility: Reduced Motion */
@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;
  }

  .hero-right {
    display: none !important;
  }

  .hero-section {
    background: radial-gradient(circle at center, #0a192f 0%, #020617 100%);
  }

  .marquee-track {
    animation: none !important;
    white-space: normal !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
  }

  .book-3d {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════
   TIMELINE — LIVE BLINKING DOT (current item)
   ═══════════════════════════════════════════════════ */
.timeline-item.current::before {
  background: #4ade80;
  border-color: #4ade80;
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 20px rgba(74, 222, 128, 0.5);
}

.timeline-item.current .live-dot-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.live-dot {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.live-dot-inner {
  position: absolute;
  inset: 0;
  background: #4ade80;
  border-radius: 50%;
  z-index: 2;
}

.live-dot-ping {
  position: absolute;
  inset: 0;
  background: #4ade80;
  border-radius: 50%;
  opacity: 0.75;
  animation: livePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes livePing {
  0% { transform: scale(1); opacity: 0.75; }
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

.live-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #4ade80;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   BLOG SECTION
   ═══════════════════════════════════════════════════ */
.blog-section {
  padding: var(--section-padding) 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* GlowCard */
.glow-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
  cursor: pointer;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.25rem;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(166, 136, 104, 0.25),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

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

.glow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Blog Card */
.blog-card {
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blog-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.glow-card:hover .blog-card-bg img {
  transform: scale(1.05);
}

.blog-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 14, 36, 0.92) 0%, rgba(5, 14, 36, 0.4) 50%, transparent 100%);
  z-index: 1;
}

.blog-card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.blog-card-glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.875rem;
  padding: 1.25rem;
}

.blog-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--earth-brown);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.blog-card-read {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sand-light);
  transition: gap 0.3s ease;
}

.glow-card:hover .blog-card-read {
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card {
    height: 320px;
  }
}

/* ═══════════════════════════════════════════════════
   BOOK SECTION — BACKGROUND EFFECTS
   ═══════════════════════════════════════════════════ */
.book-section {
  position: relative;
  overflow: hidden;
}

.book-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.book-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbPulse 10s ease-in-out infinite;
}

.book-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #667eea, #764ba2);
  top: -200px;
  left: -150px;
  animation-delay: 0s;
}

.book-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--earth-brown), var(--sand-light));
  bottom: -150px;
  right: -100px;
  animation-delay: 5s;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50% { transform: scale(1.15); opacity: 0.28; }
}

.book-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  animation: bookShimmer 6s ease-in-out infinite;
}

@keyframes bookShimmer {
  0% { left: -60%; }
  100% { left: 160%; }
}

.book-section .book-showcase,
.book-section .section-header {
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════════════════
   144Hz PERFORMANCE OPTIMIZATION
   ═══════════════════════════════════════════════════ */

/* Enable GPU acceleration for all animated elements */
* {
  -webkit-font-smoothing: antialiased;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Optimize animations */
@media (prefers-reduced-motion: no-preference) {
  /* Use transform and opacity only */
  .hero-badge,
  .hero-name,
  .hero-subtitle,
  .hero-description,
  .hero-actions,
  .social-icons-bar,
  .scroll-indicator,
  .project-card,
  .timeline-item,
  .blog-card,
  .book-3d,
  .nav-pill,
  .btn-glow,
  .btn-outline,
  .skill-chip,
  .contact-social-btn {
    will-change: transform, opacity;
    transform: translateZ(0);
  }

  /* Smooth transitions */
  .hero-badge,
  .hero-name,
  .hero-subtitle,
  .hero-description,
  .hero-actions,
  .social-icons-bar,
  .project-card,
  .timeline-card,
  .blog-card,
  .glow-card,
  .nav-pill,
  .btn-glow,
  .btn-outline,
  .skill-chip,
  .contact-social-btn {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
  }

  /* Marquee optimization */
  .marquee-track {
    will-change: transform;
    transform: translateZ(0);
  }

  /* Spline viewer optimization */
  spline-viewer {
    will-change: transform, opacity;
  }
}

/* Reduce motion for accessibility */
@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;
  }
}
