/* ==========================================================================
   Ronit Paul - Executive Portfolio Stylesheet
   Theme: Executive Premium Architecture & Luxury Preloader
   Clean, modern, high-contrast, fully responsive engineering portfolio
   ========================================================================== */

:root {
  /* Ultra-Premium Executive Palette */
  --bg-main: #f8fafc;
  --bg-secondary: #f0f4f9;
  --bg-subtle: #e2e8f0;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #f8fbff;
  --bg-accent-light: #eff6ff;
  --bg-pill: rgba(29, 78, 216, 0.07);

  /* Crisp Executive Borders */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #93c5fd;
  --border-accent: #2563eb;

  /* Typography Hierarchy (Optimal 15:1+ Contrast) */
  --text-main: #0a1122;       /* Deep obsidian navy for primary headings */
  --text-muted: #2d3e56;      /* Crisp readable slate for body copy */
  --text-dim: #627694;        /* Cool gray for dates & captions */

  /* Executive Blue Hierarchy */
  --accent-blue: #1d4ed8;
  --accent-blue-hover: #1e40af;
  --accent-navy: #0f2b5c;
  --accent-sky: #0284c7;
  --accent-ice: #1d4ed8;
  --accent-blue-dim: rgba(29, 78, 216, 0.07);
  --accent-cyan-dim: rgba(2, 132, 199, 0.07);
  --accent-emerald: #059669;
  --accent-emerald-dim: rgba(5, 150, 105, 0.1);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Layout */
  --container-width: 1200px;
  --nav-height: 74px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 14px 34px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-blue: 0 10px 30px -4px rgba(29, 78, 216, 0.2);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  color-scheme: light;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 8%, rgba(37, 99, 235, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 90% 18%, rgba(2, 132, 199, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 60%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5fa 40%, #f8fafc 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* ==========================================================================
   Executive Luxury Starting Screen Animation (Dual Curtain Preloader)
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: all;
}

.preloader.loaded {
  pointer-events: none;
}

/* Dual Split Panels for Luxury Reveal Wipe */
.preloader-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: #030712;
  z-index: 1;
  transition: transform 0.95s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader-panel-top {
  top: 0;
  transform: translateY(0);
}

.preloader-panel-bottom {
  bottom: 0;
  transform: translateY(0);
}

.preloader.loaded .preloader-panel-top {
  transform: translateY(-100%);
}

.preloader.loaded .preloader-panel-bottom {
  transform: translateY(100%);
}

.preloader-ambient {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(2, 132, 199, 0.08) 45%, transparent 70%);
  border-radius: 50%;
  z-index: 2;
  animation: luxuryGlowPulse 4s ease-in-out infinite alternate;
}

.preloader-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  transition: opacity 0.45s ease, transform 0.5s ease;
}

.preloader.loaded .preloader-content {
  opacity: 0;
  transform: scale(0.96);
}

/* SVG Tracing Ring & Emblem */
.preloader-emblem-wrap {
  position: relative;
  width: 106px;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.preloader-svg-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.preloader-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2.5;
}

.preloader-circle-fill {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 289.03;
  stroke-dashoffset: 289.03;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.75));
  transition: stroke-dashoffset 0.08s linear;
}

.preloader-avatar-frame {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.35);
  animation: luxuryAvatarReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preloader-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #60a5fa;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  opacity: 0.95;
}

.preloader-title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #ffffff;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  animation: luxuryTitleIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-subtitle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

/* Precision Progress & Telemetry */
.preloader-progress-box {
  width: 100%;
  max-width: 300px;
}

.preloader-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.85rem;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1d4ed8, #38bdf8);
  border-radius: 2px;
  box-shadow: 0 0 10px #38bdf8;
  transition: width 0.08s linear;
}

.preloader-telemetry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
}

.preloader-status {
  color: #64748b;
  letter-spacing: 0.1em;
  font-size: 0.675rem;
  text-transform: uppercase;
}

.preloader-counter {
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

@keyframes luxuryGlowPulse {
  0% { transform: scale(0.9); opacity: 0.55; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

@keyframes luxuryAvatarReveal {
  0% { transform: scale(0.75); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes luxuryTitleIn {
  0% { letter-spacing: 0.4em; opacity: 0; transform: translateY(8px); }
  100% { letter-spacing: 0.28em; opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Page Layout & Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.section:nth-of-type(even) {
  background-color: rgba(240, 244, 249, 0.5);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
  background: var(--bg-accent-light);
  border: 1px solid var(--border-medium);
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.025rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.38);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-medium);
  background: #ffffff;
  color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: var(--bg-accent-light);
  color: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.btn-text {
  padding: 0;
  color: var(--accent-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-text:hover {
  color: var(--accent-blue-hover);
  gap: 0.65rem;
}

/* ==========================================================================
   Navigation Bar (Frosted Glass)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  background: rgba(248, 250, 252, 0.98);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.navbar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-blue);
  box-shadow: 0 0 14px rgba(29, 78, 216, 0.2);
  transition: var(--transition);
}

.logo:hover .navbar-avatar {
  transform: scale(1.08) rotate(3deg);
  border-color: var(--accent-blue-hover);
  box-shadow: 0 0 20px rgba(29, 78, 216, 0.4);
}

.avatar-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  background-color: var(--accent-emerald);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.6);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

.nav-link.active {
  font-weight: 600;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: var(--bg-accent-light);
  border: 1px solid var(--border-medium);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 580px;
}

.hero-creds-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-cred-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.hero-cred-item i {
  color: var(--accent-blue);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Hero Portrait Card */
.hero-portrait-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.portrait-photo-box {
  width: 100%;
  height: 440px;
  position: relative;
}

.portrait-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.portrait-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 17, 34, 0.92) 85%);
}

.portrait-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.portrait-role {
  font-size: 0.85rem;
  color: #93c5fd;
  margin-bottom: 0.75rem;
}

.portrait-socials {
  display: flex;
  gap: 0.65rem;
}

.portrait-social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #ffffff;
  transition: var(--transition);
}

.portrait-social-btn:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

/* ==========================================================================
   Editorial Gallery / Image Slider Section
   ========================================================================== */
.slider-container {
  max-width: 1100px;
  margin: 0 auto;
}

.slider-main {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(10, 17, 34, 0.95) 0%,
    rgba(10, 17, 34, 0.65) 50%,
    rgba(10, 17, 34, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 3rem;
  z-index: 3;
}

.slide-content {
  max-width: 760px;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.slide-badge {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(29, 78, 216, 0.4);
  border: 1px solid rgba(147, 197, 253, 0.5);
  color: #93c5fd;
}

.slide-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #cbd5e1;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.slide-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.slide-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f8fafc;
}

.slide-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-view-full {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(29, 78, 216, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-view-full:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.slider-arrow.prev {
  left: 1.25rem;
}

.slider-arrow.next {
  right: 1.25rem;
}

/* Slider Progress Bar */
.slider-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.slider-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-blue);
  transition: width 0.1s linear;
}

/* Thumbnails Strip */
.slider-thumbnails-bar {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.slider-thumb-item {
  flex: 0 0 135px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 2px solid var(--border-subtle);
  opacity: 0.65;
  transition: var(--transition);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.slider-thumb-item:hover {
  opacity: 0.9;
  border-color: var(--border-medium);
}

.slider-thumb-item.active {
  opacity: 1;
  border-color: var(--accent-blue);
  box-shadow: 0 0 14px rgba(29, 78, 216, 0.35);
}

.slider-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.25rem 0.4rem;
  background: rgba(10, 17, 34, 0.88);
  font-size: 0.65rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   About Me & Academic Background
   ========================================================================== */
.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
}

.about-bio-lead {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.about-bio-text {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.pillar-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pillar-item:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pillar-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 0.3rem;
}

.pillar-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Education Cards */
.education-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.education-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.education-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.edu-level {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 0.3rem;
}

.edu-degree {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.edu-school {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.edu-meta {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-dim);
}

/* Languages */
.languages-strip {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.lang-label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-main);
}

.lang-items {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.lang-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Experience Timeline
   ========================================================================== */
.timeline-stream {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.timeline-stream::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-row {
  position: relative;
  padding-left: 55px;
  margin-bottom: 2.5rem;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  top: 6px;
  left: 13px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent-blue);
  box-shadow: 0 0 10px rgba(29, 78, 216, 0.3);
}

.timeline-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.timeline-duration {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.timeline-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.timeline-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.timeline-points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.timeline-points li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

/* ==========================================================================
   Projects Section - Differentiated & Structured
   ========================================================================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.filter-tab:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: var(--bg-accent-light);
}

.filter-tab.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.project-card:hover {
  border-color: rgba(29, 78, 216, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(29, 78, 216, 0.08);
}

.project-card.featured {
  border: 2px solid rgba(29, 78, 216, 0.35);
  box-shadow: 0 8px 25px rgba(29, 78, 216, 0.12);
}

.project-img-box {
  width: 100%;
  height: 200px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img-box img {
  transform: scale(1.03);
}

.project-status-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.project-status-pill.live {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-emerald);
}

.project-status-pill.live .status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.project-status-pill.scheme {
  border-color: rgba(29, 78, 216, 0.3);
  color: var(--accent-blue);
}

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

.project-domain {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 0.35rem;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

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

.project-tag {
  font-size: 0.725rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-accent-light);
  border: 1px solid var(--border-subtle);
  color: var(--accent-blue);
  font-weight: 500;
}

.project-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Skills Matrix
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.skill-category-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.skill-category-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.skill-name {
  color: var(--text-main);
  font-weight: 500;
}

.skill-level {
  font-size: 0.725rem;
  font-family: var(--font-mono);
  color: var(--accent-blue);
  background: var(--bg-accent-light);
  border: 1px solid rgba(29, 78, 216, 0.15);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* ==========================================================================
   Certifications & Honors
   ========================================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cert-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cert-issuer {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 0.3rem;
}

.cert-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.contact-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.contact-entry {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
}

.contact-link {
  font-size: 0.925rem;
  color: var(--text-main);
  font-weight: 500;
}

.contact-link:hover {
  color: var(--accent-blue);
}

/* Form */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
  margin-bottom: 1rem;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

/* ==========================================================================
   Footer - Executive Grounding Anchor
   ========================================================================== */
.footer {
  background: #091122;
  color: #94a3b8;
  padding: 3.5rem 0;
  border-top: 1px solid #162444;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-inner p {
  color: #cbd5e1;
}

.footer-inner strong {
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #38bdf8;
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 28, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
}

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

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  color: #ffffff;
  font-size: 1.5rem;
}

.lightbox-close:hover {
  color: #38bdf8;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: #0a1122;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
}

.lightbox-nav-btn:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.lightbox-nav-btn.lightbox-prev {
  left: -60px;
}

.lightbox-nav-btn.lightbox-next {
  right: -60px;
}

/* ==========================================================================
   Responsive & Mobile Simplification
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .slider-main {
    height: 460px;
  }

  .lightbox-nav-btn.lightbox-prev {
    left: 10px;
  }

  .lightbox-nav-btn.lightbox-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    padding-inline: 1.25rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

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

  .section-title {
    font-size: 1.85rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.75rem 1.25rem;
    gap: 1.15rem;
    border-bottom: 1px solid var(--border-medium);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  /* Compact Hero on Mobile */
  .hero {
    padding-top: calc(var(--nav-height) + 2.25rem);
    padding-bottom: 3.25rem;
  }

  .portrait-photo-box {
    height: 320px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Compact Slider on Mobile */
  .slider-main {
    height: 370px;
  }

  .slide-overlay {
    padding: 1.25rem 1.25rem;
  }

  .slide-title {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }

  .slide-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  .slide-tags {
    display: none;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .slider-arrow.prev {
    left: 0.65rem;
  }

  .slider-arrow.next {
    right: 0.65rem;
  }

  .slider-thumb-item {
    flex: 0 0 110px;
    height: 65px;
  }

  /* Horizontal Scrollable Filter Tabs for Mobile */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    font-size: 0.775rem;
  }

  /* Single Column Layouts */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-body {
    padding: 1.25rem;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .timeline-stream::before {
    left: 10px;
  }

  .timeline-row {
    padding-left: 32px;
    margin-bottom: 2rem;
  }

  .timeline-node {
    left: 3px;
  }

  .timeline-card {
    padding: 1.35rem;
  }

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

  .contact-card {
    padding: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.2rem;
  }

  .portrait-photo-box {
    height: 280px;
  }

  .slider-main {
    height: 330px;
  }

  .slide-title {
    font-size: 1.15rem;
  }

  .preloader-title {
    font-size: 1.65rem;
    letter-spacing: 0.2em;
  }

  .preloader-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
  }
}
