/* ==========================================================================
   MOKHLESS AWAD ABOWAFIA — FRENCH LANGUAGE TEACHER PORTFOLIO
   Modern, Premium, Accessible & Fully Responsive Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS RESET & DESIGN TOKENS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette — Dark Mode (Default) */
  --bg-body: #080d1a;
  --bg-surface: #0e172a;
  --bg-surface-elevated: #152238;
  --bg-glass: rgba(14, 23, 42, 0.78);
  --bg-glass-strong: rgba(14, 23, 42, 0.92);
  --bg-card: rgba(21, 34, 56, 0.65);
  --bg-card-hover: rgba(26, 42, 70, 0.85);
  --bg-input: rgba(10, 17, 32, 0.75);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;
  
  --border-color: rgba(255, 255, 255, 0.09);
  --border-color-hover: rgba(59, 130, 246, 0.4);
  --border-light: rgba(255, 255, 255, 0.04);
  
  /* French Identity Colors */
  --french-blue: #3b82f6;
  --french-blue-deep: #1d4ed8;
  --french-blue-light: #60a5fa;
  --french-blue-glow: rgba(59, 130, 246, 0.25);
  
  --french-red: #f43f5e;
  --french-red-deep: #e11d48;
  --french-red-glow: rgba(244, 63, 94, 0.22);
  
  --french-white: #ffffff;
  --french-gold: #f59e0b;
  --french-gold-glow: rgba(245, 158, 11, 0.2);
  
  --tricolor-gradient: linear-gradient(135deg, #3b82f6 0%, #ffffff 50%, #f43f5e 100%);
  --tricolor-bar: linear-gradient(90deg, #3b82f6 0%, #3b82f6 33.3%, #ffffff 33.3%, #ffffff 66.6%, #f43f5e 66.6%, #f43f5e 100%);
  --blue-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --card-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow-blue: 0 0 35px rgba(59, 130, 246, 0.22);
  --shadow-glow-red: 0 0 30px rgba(244, 63, 94, 0.2);

  /* Spacing & Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Typography */
  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Cairo', 'Outfit', sans-serif;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-strong: rgba(255, 255, 255, 0.95);
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(37, 99, 235, 0.35);
  --border-light: rgba(15, 23, 42, 0.04);
  
  --french-blue: #2563eb;
  --french-blue-deep: #1e40af;
  --french-blue-light: #3b82f6;
  --french-blue-glow: rgba(37, 99, 235, 0.15);
  
  --french-red: #e11d48;
  --french-red-deep: #be123c;
  --french-red-glow: rgba(225, 29, 72, 0.12);
  
  --french-white: #0f172a;
  --french-gold: #d97706;
  --french-gold-glow: rgba(217, 119, 6, 0.15);
  
  --tricolor-gradient: linear-gradient(135deg, #2563eb 0%, #64748b 50%, #e11d48 100%);
  --tricolor-bar: linear-gradient(90deg, #2563eb 0%, #2563eb 33.3%, #0f172a 33.3%, #0f172a 66.6%, #e11d48 66.6%, #e11d48 100%);
  --blue-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --card-gradient: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(225, 29, 72, 0.01) 100%);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.1);
  --shadow-glow-blue: 0 0 30px rgba(37, 99, 235, 0.12);
  --shadow-glow-red: 0 0 25px rgba(225, 29, 72, 0.08);
}

/* --------------------------------------------------------------------------
   2. GLOBAL BASE STYLES & TYPOGRAPHY
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
}

/* Background Ambient Glow */
body::before {
  content: '';
  position: fixed;
  top: -15vw;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(244, 63, 94, 0.05) 50%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Section Common Styling */
section {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--french-blue-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

[data-theme="light"] .section-badge {
  color: var(--french-blue-deep);
  background: rgba(37, 99, 235, 0.08);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-title span.highlight {
  background: linear-gradient(135deg, var(--french-blue-light) 0%, var(--french-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .section-title span.highlight {
  background: linear-gradient(135deg, var(--french-blue) 0%, var(--french-blue-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.975rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-primary {
  background: var(--blue-gradient);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--french-blue-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  color: var(--french-blue-light);
}

[data-theme="light"] .btn-secondary:hover {
  color: var(--french-blue);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background: linear-gradient(135deg, var(--french-red) 0%, var(--french-red-deep) 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--french-red-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.35);
  color: #ffffff;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR (STICKY & GLASS)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-block: 1rem;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  padding-block: 0.65rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-flag {
  display: inline-flex;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.brand-flag span {
  flex: 1;
  height: 100%;
}
.brand-flag .f-blue { background-color: #2563eb; }
.brand-flag .f-white { background-color: #ffffff; }
.brand-flag .f-red { background-color: #e11d48; }

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-role {
  font-size: 0.725rem;
  font-weight: 500;
  color: var(--french-blue-light);
  letter-spacing: 0.02em;
}

[data-theme="light"] .brand-role {
  color: var(--french-blue);
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-link:hover {
  background: rgba(15, 23, 42, 0.04);
}

.nav-link.active {
  color: var(--french-blue-light);
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .nav-link.active {
  color: var(--french-blue);
  background: rgba(37, 99, 235, 0.08);
}

/* Nav Controls */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

[data-theme="light"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-moon { display: none; }

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   5. HERO SECTION (LA FAÇADE PRINCIPALE)
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(5.5rem + 3vw);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

/* Luxury Ambient Lighting Glow Orbs */
.hero-ambient-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.45;
  will-change: transform, opacity;
  animation: orb-breathe 9s ease-in-out infinite alternate;
}

.glow-blue {
  top: 8%;
  left: -6%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(37, 99, 235, 0.12) 60%, transparent 80%);
}

.glow-red {
  bottom: 0%;
  right: -6%;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.22) 0%, rgba(225, 29, 72, 0.08) 60%, transparent 80%);
  animation-delay: -3.5s;
}

.glow-cyan {
  top: 35%;
  left: 35%;
  width: 32vw;
  height: 32vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes orb-breathe {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  50% { transform: scale(1.1) translate(15px, -15px); opacity: 0.55; }
  100% { transform: scale(0.95) translate(-10px, 10px); opacity: 0.4; }
}

[data-theme="light"] .glow-orb {
  opacity: 0.18;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(2.5rem, 5vw, 4.75rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--french-blue-light);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .hero-badge {
  background: rgba(37, 99, 235, 0.08);
  color: var(--french-blue-deep);
  border-color: rgba(37, 99, 235, 0.25);
}

.hero-badge-flag {
  font-size: 1rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--french-blue-light);
  box-shadow: 0 0 10px var(--french-blue);
  animation: pulse-dot 2s infinite;
}

.hero-mini-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #10b981;
  backdrop-filter: blur(8px);
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.8s infinite;
}

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

.hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: clamp(0.95rem, 1.4vw, 1.125rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, var(--french-blue-light) 0%, var(--french-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 0.15rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-title .title-accent {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: var(--french-blue-light);
  margin-top: 0.45rem;
  letter-spacing: -0.01em;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.35);
}

[data-theme="light"] .hero-title .title-accent {
  color: var(--french-blue);
  text-shadow: none;
}

/* Glassmorphic Quote Box */
.hero-quote-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3.5px solid var(--french-blue);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem 1.15rem 2.85rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.quote-mark {
  position: absolute;
  top: 0.25rem;
  left: 0.85rem;
  font-size: 2.75rem;
  font-family: Georgia, serif;
  line-height: 1;
  color: var(--french-blue-light);
  opacity: 0.6;
}

[data-theme="light"] .quote-mark {
  color: var(--french-blue);
}

.hero-intro {
  font-size: clamp(0.975rem, 1.4vw, 1.075rem);
  color: var(--text-secondary);
  line-height: 1.65;
  border-left: none;
  padding-left: 0;
  max-width: 100%;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  position: relative;
  z-index: 1;
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 80%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.btn-glow:hover::before {
  transform: rotate(25deg) translateY(100%);
}

.hero-chips {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-chip-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.hero-chip-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.chip-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: rgba(59, 130, 246, 0.12);
  color: var(--french-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .chip-icon-box {
  color: var(--french-blue);
  background: rgba(37, 99, 235, 0.08);
}

.chip-icon-box svg {
  width: 16px;
  height: 16px;
}

.hero-chip-item div {
  display: flex;
  flex-direction: column;
}

.hero-chip-item strong {
  font-size: 0.825rem;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

.hero-chip-item span {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Hero Visual / Teacher Portrait Facade
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.portrait-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Luminous Aura Behind Portrait */
.portrait-aura {
  position: absolute;
  inset: -12px;
  border-radius: calc(var(--radius-xl) + 12px);
  background: conic-gradient(
    from 0deg at 50% 50%,
    #3b82f6 0deg,
    #ffffff 120deg,
    #f43f5e 240deg,
    #3b82f6 360deg
  );
  filter: blur(24px);
  opacity: 0.35;
  z-index: 1;
  animation: aura-spin 14s linear infinite;
  pointer-events: none;
}

@keyframes aura-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

[data-theme="light"] .portrait-aura {
  opacity: 0.2;
}

.portrait-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(59, 130, 246, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-surface);
  animation: portrait-float 5s ease-in-out infinite alternate;
  z-index: 2;
}

.portrait-tricolor-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4.5px;
  background: var(--tricolor-bar);
  z-index: 4;
}

.portrait-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(8, 13, 26, 0.65) 100%);
  pointer-events: none;
  z-index: 3;
}

[data-theme="light"] .portrait-overlay-gradient {
  background: linear-gradient(180deg, transparent 70%, rgba(248, 250, 252, 0.45) 100%);
}

@keyframes portrait-float {
  0% {
    transform: translateY(0);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(59, 130, 246, 0.25);
  }
  100% {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), 0 10px 40px rgba(59, 130, 246, 0.4);
  }
}

.portrait-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform var(--transition-smooth);
}

.portrait-wrapper:hover img {
  transform: scale(1.04);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 5;
  animation: float-badge 4.5s ease-in-out infinite alternate;
}

.floating-badge-1 {
  top: 20px;
  right: -25px;
  animation-delay: 1.2s;
}

.floating-badge-2 {
  bottom: 20px;
  left: -25px;
}

@keyframes float-badge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.floating-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-badge-icon.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--french-gold);
}

.floating-badge-icon.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--french-blue-light);
}

[data-theme="light"] .floating-badge-icon.badge-blue {
  color: var(--french-blue);
}

.floating-badge-icon svg {
  width: 20px;
  height: 20px;
}

.floating-badge-content {
  display: flex;
  flex-direction: column;
}

.floating-badge-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.floating-badge-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Center Bottom Floating Pill */
.floating-badge-pill {
  position: absolute;
  bottom: -15px;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(59, 130, 246, 0.25);
  z-index: 6;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.pill-spark {
  color: var(--french-gold);
  font-size: 0.85rem;
  animation: pulse-dot 1.5s infinite;
}

/* --------------------------------------------------------------------------
   6. ABOUT ME SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.about-card-visual {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.about-photo-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform var(--transition-smooth);
}

.about-photo-wrap:hover img {
  transform: scale(1.04);
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

[data-theme="light"] .credential-item {
  background: rgba(15, 23, 42, 0.02);
}

.credential-item svg {
  width: 18px;
  height: 18px;
  color: var(--french-blue-light);
  flex-shrink: 0;
}

[data-theme="light"] .credential-item svg {
  color: var(--french-blue);
}

.credential-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 500;
}

.about-lead span {
  color: var(--french-blue-light);
  font-weight: 600;
}

[data-theme="light"] .about-lead span {
  color: var(--french-blue);
}

.about-description {
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-pillars-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.pillar-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.pillar-pill:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.pillar-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--french-blue);
  flex-shrink: 0;
}

.about-quote-box {
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--french-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
}

[data-theme="light"] .about-quote-box {
  background: rgba(37, 99, 235, 0.06);
}

/* --------------------------------------------------------------------------
   7. HIGHLIGHTS / NON-NUMERICAL ACHIEVEMENTS SECTION
   -------------------------------------------------------------------------- */
.highlights-section {
  padding-block: 3.5rem;
  background: var(--bg-surface);
  border-block: 1px solid var(--border-color);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: left;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--french-blue) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

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

.highlight-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.12);
  color: var(--french-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

[data-theme="light"] .highlight-icon-wrap {
  color: var(--french-blue);
  background: rgba(37, 99, 235, 0.08);
}

.highlight-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.highlight-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.highlight-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   8. TEACHING SKILLS SECTION
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  position: relative;
}

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

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--french-blue-light);
}

.category-icon.red {
  background: rgba(244, 63, 94, 0.12);
  color: var(--french-red);
}

.category-icon.gold {
  background: rgba(245, 158, 11, 0.12);
  color: var(--french-gold);
}

[data-theme="light"] .category-icon.blue { color: var(--french-blue); }

.category-icon svg {
  width: 24px;
  height: 24px;
}

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.category-count {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

[data-theme="light"] .skill-item {
  background: rgba(15, 23, 42, 0.02);
}

.skill-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateX(3px);
}

.skill-check {
  width: 16px;
  height: 16px;
  color: var(--french-blue-light);
  flex-shrink: 0;
}

[data-theme="light"] .skill-check {
  color: var(--french-blue);
}

/* --------------------------------------------------------------------------
   9. PROJECTS / EDUCATIONAL WORK SECTION
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.project-num {
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--french-blue-light);
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xs);
}

[data-theme="light"] .project-num {
  color: var(--french-blue);
  background: rgba(37, 99, 235, 0.08);
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.1);
  color: var(--french-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .project-icon {
  color: var(--french-blue);
}

.project-icon svg {
  width: 22px;
  height: 22px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

[data-theme="light"] .project-tag {
  background: rgba(15, 23, 42, 0.04);
}

.project-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--french-blue-light);
  background: transparent;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-top: 1px solid var(--border-color);
  width: 100%;
  justify-content: space-between;
}

[data-theme="light"] .project-action-btn {
  color: var(--french-blue);
}

.project-action-btn:hover {
  color: var(--text-primary);
}

.project-action-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.project-action-btn:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   10. EXPERIENCE SECTION (VERTICAL TIMELINE)
   -------------------------------------------------------------------------- */
.timeline-wrap {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding-left: 2.5rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--french-blue) 0%, rgba(59, 130, 246, 0.2) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

.timeline-node {
  position: absolute;
  left: -2.5rem;
  top: 1.25rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--french-blue);
  box-shadow: 0 0 12px var(--french-blue-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-node::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--french-blue-light);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  border-color: var(--border-color-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

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

.timeline-org {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--french-blue-light);
  margin-top: 0.2rem;
}

[data-theme="light"] .timeline-role {
  color: var(--french-blue);
}

.timeline-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--french-blue-light);
}

[data-theme="light"] .timeline-date-badge {
  color: var(--french-blue-deep);
  background: rgba(37, 99, 235, 0.08);
}

.timeline-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
  margin-top: 1rem;
}

.timeline-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.timeline-highlight-item svg {
  width: 18px;
  height: 18px;
  color: var(--french-blue-light);
  flex-shrink: 0;
  margin-top: 2px;
}

[data-theme="light"] .timeline-highlight-item svg {
  color: var(--french-blue);
}

/* --------------------------------------------------------------------------
   11. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  color: var(--french-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

[data-theme="light"] .service-icon-wrap {
  color: var(--french-blue);
  background: rgba(37, 99, 235, 0.08);
}

.service-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.service-feature-item svg {
  width: 14px;
  height: 14px;
  color: var(--french-blue-light);
  flex-shrink: 0;
}

[data-theme="light"] .service-feature-item svg {
  color: var(--french-blue);
}

.service-inquire-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--french-blue-light);
  transition: all var(--transition-fast);
}

[data-theme="light"] .service-inquire-link {
  color: var(--french-blue);
}

.service-inquire-link:hover {
  gap: 0.65rem;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   12. TEACHING PHILOSOPHY SECTION
   -------------------------------------------------------------------------- */
.philosophy-section {
  position: relative;
  overflow: hidden;
}

.philosophy-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.philosophy-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tricolor-bar);
}

.philosophy-content {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.philosophy-quote-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  color: var(--french-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .philosophy-quote-mark {
  color: var(--french-blue);
  background: rgba(37, 99, 235, 0.08);
}

.philosophy-quote-mark svg {
  width: 28px;
  height: 28px;
}

.philosophy-text {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: normal;
  letter-spacing: -0.01em;
}

.philosophy-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.philosophy-author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.philosophy-author-sub {
  font-size: 0.85rem;
  color: var(--french-blue-light);
  font-weight: 500;
}

[data-theme="light"] .philosophy-author-sub {
  color: var(--french-blue);
}

/* Philosophy Core Pillars Grid */
.philosophy-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  width: 100%;
}

.philo-pillar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all var(--transition-fast);
}

[data-theme="light"] .philo-pillar-card {
  background: rgba(15, 23, 42, 0.02);
}

.philo-pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-3px);
}

.philo-pillar-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--french-blue-light);
  margin-bottom: 0.35rem;
}

[data-theme="light"] .philo-pillar-num {
  color: var(--french-blue);
}

.philo-pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.philo-pillar-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   13. CAREER OBJECTIVE SECTION
   -------------------------------------------------------------------------- */
.objective-section {
  padding-block: 4rem;
}

.objective-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(244, 63, 94, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow-blue);
}

[data-theme="light"] .objective-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(225, 29, 72, 0.04) 100%);
  border-color: rgba(37, 99, 235, 0.2);
}

.objective-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--french-blue-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

[data-theme="light"] .objective-badge {
  color: var(--french-blue-deep);
  background: rgba(37, 99, 235, 0.1);
}

.objective-statement {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-primary);
  max-width: 920px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.objective-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   14. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  color: var(--french-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .contact-icon-box {
  color: var(--french-blue);
  background: rgba(37, 99, 235, 0.08);
}

.contact-icon-box svg {
  width: 22px;
  height: 22px;
}

.contact-item-title {
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-item-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-social-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-social-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.social-links-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.social-btn:hover {
  background: var(--french-blue);
  color: #ffffff;
  border-color: var(--french-blue);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--french-blue-glow);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

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

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--french-blue);
  box-shadow: 0 0 0 3px var(--french-blue-glow);
  background: var(--bg-surface);
}

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

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}

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

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.footer-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--french-blue-light);
}

[data-theme="light"] .footer-role {
  color: var(--french-blue);
}

.footer-tagline {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--french-blue-light);
  transform: translateX(3px);
  display: inline-block;
}

[data-theme="light"] .footer-link:hover {
  color: var(--french-blue);
}

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

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

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.back-to-top-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.back-to-top-btn svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   16. MODAL / PROJECT DETAIL VIEWER
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-bounce);
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--french-red);
  border-color: var(--french-red);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--french-blue-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin-top: 0.5rem;
}

.modal-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.modal-highlight-item svg {
  width: 16px;
  height: 16px;
  color: var(--french-blue-light);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   17. TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(30px) scale(0.9);
  opacity: 0;
  transition: all var(--transition-bounce);
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-icon {
  width: 20px;
  height: 20px;
  color: #10b981;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   18. SCROLL ANIMATIONS (INTERSECTION OBSERVER)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   19. RESPONSIVE BREAKPOINTS (NO HORIZONTAL SCROLL)
   -------------------------------------------------------------------------- */

/* Large Tablets & Small Laptops (Max 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-visual {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
  }

  .portrait-wrapper {
    max-width: 320px;
    margin-inline: auto;
  }

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

  .hero-intro {
    border-left: none;
    border-top: 3px solid var(--french-blue);
    padding-left: 0;
    padding-top: 1rem;
    margin-inline: auto;
  }

  .hero-badge-wrap, .hero-cta-group, .hero-chips {
    justify-content: center;
  }

  .floating-badge-1 { left: -10px; bottom: -8px; }
  .floating-badge-2 { right: -10px; top: 10px; }

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

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

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

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

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

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

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

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

/* Tablets & Mobile (Max 768px) */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3.5rem;
  }

  .hero-visual {
    order: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
  }

  .portrait-wrapper {
    width: 100%;
    max-width: 260px;
    border-radius: var(--radius-lg);
    margin-inline: auto;
  }

  .floating-badge {
    padding: 0.45rem 0.75rem;
    font-size: 0.775rem;
  }

  .floating-badge-icon {
    width: 28px;
    height: 28px;
  }

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

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

  .floating-badge-pill {
    font-size: 0.725rem;
    padding: 0.35rem 0.75rem;
    bottom: -12px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.35rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
  }

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

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

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

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

  .philosophy-pillars-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .timeline-node {
    left: -2rem;
  }
}

/* Small Mobiles (Max 480px) */
@media (max-width: 480px) {
  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-visual {
    max-width: 230px;
    margin-bottom: 0.5rem;
  }

  .portrait-wrapper {
    max-width: 220px;
    border-radius: var(--radius-lg);
  }

  .floating-badge,
  .floating-badge-pill {
    display: none;
  }

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

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

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

  .hero-chips {
    gap: 0.75rem;
  }

  .hero-chip-item {
    font-size: 0.8rem;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
