/* ==========================================================================
   DEBASISH SUTRADHAR - 3D INTERACTIVE PORTFOLIO STYLES
   ========================================================================== */

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(14, 19, 30, 0.82);
  --bg-card-hover: rgba(22, 29, 46, 0.9);
  --border-subtle: rgba(255, 107, 53, 0.2);
  --border-hover: rgba(255, 128, 70, 0.5);
  
  --primary-orange: #ff6b35;
  --primary-light: #ff8c5a;
  --primary-glow: rgba(255, 107, 53, 0.35);
  --accent-gold: #fbbf24;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--bg-dark);
}

/* ==========================================================================
   AMBIENT BACKGROUNDS & GRID
   ========================================================================== */

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.4;
  animation: pulseGlow 12s infinite alternate ease-in-out;
}

.glow-1 {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, #ea580c 0%, rgba(234, 88, 12, 0) 70%);
}

.glow-2 {
  width: 45vw;
  height: 45vw;
  max-width: 550px;
  max-height: 550px;
  bottom: 5%;
  left: -5%;
  background: radial-gradient(circle, #c2410c 0%, rgba(194, 65, 12, 0) 70%);
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
  50% { transform: scale(1.15) translate(20px, 30px); opacity: 0.5; }
  100% { transform: scale(0.95) translate(-20px, -15px); opacity: 0.35; }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* Cursor follower */
.cursor-glow {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, rgba(255, 107, 53, 0) 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: transform 0.15s ease-out, opacity 0.3s ease;
}

@media (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  background: #07090e;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.loader-content {
  text-align: center;
  max-width: 440px;
  padding: 30px;
}

.loader-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-orange);
  box-shadow: 0 0 10px var(--primary-orange);
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.loader-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.loader-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff8c42, #ff521b);
  border-radius: var(--radius-full);
  box-shadow: 0 0 14px rgba(255, 107, 53, 0.8);
  transition: width 0.15s ease-out;
}

.loader-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 32px;
  transition: background-color 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(9, 12, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 32px;
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
}

.logo-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7a3d, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 107, 53, 0.4);
}

.logo-name {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: var(--primary-orange);
  border-radius: 2px;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(9, 12, 18, 0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* ==========================================================================
   BUTTONS & TYPOGRAPHY
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, #ff7a3d, #ea580c);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.55);
  background: linear-gradient(135deg, #ff8c4e, #f97316);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

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

.btn-glass {
  background: rgba(255, 107, 53, 0.1);
  color: #ff9d6c;
  border: 1px solid rgba(255, 107, 53, 0.3);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 107, 53, 0.2);
  border-color: rgba(255, 107, 53, 0.5);
  color: #fff;
}

.w-full {
  width: 100%;
}

.gradient-text {
  background: linear-gradient(135deg, #ff9e75, #ff5722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ff9460;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-orange);
  box-shadow: 0 0 8px var(--primary-orange);
}

/* ==========================================================================
   SCROLL TRACK & STICKY 3D STAGE
   ========================================================================== */

.scroll-track {
  position: relative;
  height: 520vh;
  z-index: 10;
}

.sticky-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Canvas Wrapper */
.canvas-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

#canvas-3d {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Enhance sharpness and color for upscaled frames */
  image-rendering: high-quality;
  filter: contrast(1.05) saturate(1.1) brightness(1.02);
}

/* Cinematic dark vignette over canvas */
.canvas-shadow-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, rgba(7, 9, 14, 0.15) 0%, rgba(7, 9, 14, 0.72) 80%, rgba(7, 9, 14, 0.95) 100%),
    linear-gradient(to right, rgba(7, 9, 14, 0.92) 0%, rgba(7, 9, 14, 0.6) 42%, rgba(7, 9, 14, 0.15) 70%, rgba(7, 9, 14, 0.75) 100%),
    linear-gradient(to bottom, rgba(7, 9, 14, 0.75) 0%, transparent 20%, transparent 80%, rgba(7, 9, 14, 0.95) 100%);
  pointer-events: none;
}

.canvas-corner-glow {
  position: absolute;
  top: 15%;
  right: 15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.25) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

/* ==========================================================================
   STORY OVERLAY CARDS (Scroll Stages)
   ========================================================================== */

.stage-overlay-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  z-index: 20;
  pointer-events: none;
}

.story-card {
  position: absolute;
  opacity: 0;
  transform: translateY(35px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 107, 53, 0.1);
}

.story-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Specific Card Layout Positions */
#card-hero {
  left: 48px;
  max-width: 500px;
  padding: 38px;
  background: rgba(12, 16, 25, 0.84);
}

#card-about {
  left: 48px;
  max-width: 510px;
  padding: 38px;
}

#card-experience {
  left: 48px;
  max-width: 520px;
  padding: 36px;
}

#card-skills {
  left: 48px;
  max-width: 530px;
  padding: 36px;
}

#card-contact {
  left: 48px;
  max-width: 560px;
  padding: 32px;
}

/* ==========================================================================
   HERO CARD STYLING
   ========================================================================== */

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.9rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero-description strong {
  color: #fff;
  font-weight: 600;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: #e2e8f0;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mouse-icon {
  width: 20px;
  height: 30px;
  border: 2px solid rgba(255, 107, 53, 0.6);
  border-radius: 12px;
  position: relative;
}

.mouse-icon .wheel {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: var(--primary-orange);
  border-radius: 2px;
  animation: mouseWheel 1.8s infinite;
}

@keyframes mouseWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

.scroll-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   ABOUT & VISION STYLING
   ========================================================================== */

.card-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.vision-quote {
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #e2e8f0;
  border-left: 3px solid var(--primary-orange);
  padding-left: 18px;
  margin-bottom: 24px;
  background: rgba(255, 107, 53, 0.06);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.metric-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   EXPERIENCE CARD STYLING
   ========================================================================== */

.experience-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.exp-company {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
}

.exp-title {
  font-size: 0.95rem;
  color: var(--primary-light);
  font-weight: 600;
}

.exp-place {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.exp-badge {
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.35);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.exp-summary {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.exp-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.bullet-icon {
  width: 18px;
  height: 18px;
  background: rgba(255, 107, 53, 0.2);
  color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SKILLS & LANGUAGES STYLING
   ========================================================================== */

.skills-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.skill-category-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 107, 53, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-header h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skills-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: #cbd5e1;
}

.check-icon {
  color: var(--primary-light);
  font-weight: bold;
}

.language-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lang-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.lang-info span:first-child {
  font-weight: 600;
  color: #fff;
}

.lang-info span:last-child {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.lang-meter {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.lang-progress {
  height: 100%;
  background: linear-gradient(90deg, #ff8c42, #ff521b);
  border-radius: 4px;
}

.hobbies-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.hobby-tag {
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  color: #fed7aa;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
}

/* ==========================================================================
   CONTACT CARD STYLING
   ========================================================================== */

.contact-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.contact-box-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 107, 53, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.info-val {
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 500;
  line-height: 1.4;
}

.quick-links-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.form-group label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.25);
}

/* ==========================================================================
   FLOATING 3D CONTROL DOCK
   ========================================================================== */

.control-dock {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  pointer-events: auto;
}

.dock-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(12, 16, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 53, 0.28);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 53, 0.1);
}

.dock-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a3d, #ea580c);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.dock-btn:hover {
  transform: scale(1.08);
}

.dock-btn .hidden {
  display: none;
}

.dock-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-light);
}

#frame-scrubber {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

#frame-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-orange);
  box-shadow: 0 0 8px var(--primary-orange);
  cursor: pointer;
  transition: transform 0.15s ease;
}

#frame-scrubber::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.frame-tag {
  font-size: 0.78rem;
  font-family: monospace;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   RESUME MODAL & PRINTING
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: #0f141f;
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 107, 53, 0.15);
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.modal-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 32px 36px;
  overflow-y: auto;
  color: #cbd5e1;
}

/* Printable CV Styling */
.printable-cv {
  font-family: var(--font-body);
}

.cv-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.cv-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 4px;
}

.cv-subtitle {
  color: var(--primary-light);
  font-size: 0.95rem;
  font-weight: 600;
}

.cv-contact-details {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.6;
}

.cv-divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 18px 0 24px;
}

.cv-section {
  margin-bottom: 22px;
}

.cv-heading {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 107, 53, 0.25);
  padding-bottom: 4px;
}

.cv-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.cv-job {
  margin-bottom: 12px;
}

.cv-job-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cv-job-company {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.cv-job-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cv-job-role {
  font-size: 0.9rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 6px;
}

.cv-job-description {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.cv-bullets {
  list-style-type: disc;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
}

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

/* Print Rules */
@media print {
  body * {
    visibility: hidden;
  }

  .modal-backdrop, .modal-backdrop * {
    visibility: visible;
  }

  .modal-backdrop {
    position: absolute;
    inset: 0;
    background: #fff !important;
    padding: 0;
    backdrop-filter: none !important;
  }

  .modal-card {
    max-width: 100%;
    max-height: 100%;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #111 !important;
  }

  .modal-header {
    display: none !important;
  }

  .modal-body {
    padding: 20px;
    color: #111 !important;
  }

  .cv-name {
    color: #000 !important;
  }

  .cv-subtitle {
    color: #ea580c !important;
  }

  .cv-heading {
    color: #c2410c !important;
    border-bottom: 1px solid #ddd !important;
  }

  .cv-text, .cv-job-company, .cv-job-description, .cv-bullets {
    color: #222 !important;
  }

  .cv-contact-details {
    color: #555 !important;
  }
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 20, 31, 0.95);
  border: 1px solid var(--primary-orange);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .story-card {
    max-width: 480px;
    padding: 28px;
  }

  .contact-box-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .stage-overlay-container {
    padding: 0 16px;
  }

  .story-card {
    left: 16px !important;
    right: 16px !important;
    max-width: none !important;
    padding: 24px;
  }

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

  .card-title {
    font-size: 1.6rem;
  }

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

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

  .control-dock {
    bottom: 12px;
    width: 90%;
  }

  .dock-pill {
    width: 100%;
    justify-content: space-between;
    padding: 6px 14px;
  }

  #frame-scrubber {
    width: 90px;
  }

  .canvas-shadow-overlay {
    background: 
      radial-gradient(ellipse at center, rgba(7, 9, 14, 0.35) 0%, rgba(7, 9, 14, 0.85) 90%),
      linear-gradient(to bottom, rgba(7, 9, 14, 0.8) 0%, rgba(7, 9, 14, 0.5) 50%, rgba(7, 9, 14, 0.95) 100%);
  }

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

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

  .cv-contact-details {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .dock-label {
    display: none;
  }
}
