/* ==========================================================================
   YEHIA ALI — AI AUTOMATION DEVELOPER PORTFOLIO
   Design System & Master Stylesheet
   Pure CSS3 • Modern Responsive Grid & Flexbox • Dark/Light Mode Variables
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #070a12;
  --bg-secondary: #0d1322;
  --bg-tertiary: #131c31;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(22, 33, 58, 0.85);
  --bg-card-solid: #0f172a;
  --bg-elevated: #1a253c;

  /* Text & Content */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #070a12;

  /* Accents & Brand Colors */
  --cyan-primary: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.25);
  --blue-primary: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.25);
  --purple-primary: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.2);
  --success: #10b981;
  --danger: #ef4444;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #00f2fe 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(0, 242, 254, 0.3) 0%, rgba(59, 130, 246, 0.15) 50%, rgba(139, 92, 246, 0.25) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.12) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 80%);

  /* Borders & Glass */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(0, 242, 254, 0.4);
  --glass-bg: rgba(13, 19, 34, 0.78);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-backdrop-blur: blur(14px);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.2);

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout & Spacing */
  --container-max-width: 1200px;
  --section-spacing: clamp(4.5rem, 8vw, 7.5rem);
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

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

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-card-solid: #ffffff;
  --bg-elevated: #ffffff;

  --text-primary: #090d16;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;

  --cyan-primary: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.18);
  --blue-primary: #2563eb;
  --blue-glow: rgba(37, 99, 235, 0.18);
  --purple-primary: #7c3aed;
  --purple-glow: rgba(124, 58, 237, 0.15);

  --gradient-brand: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(37, 99, 235, 0.08) 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(2, 132, 199, 0.35) 0%, rgba(37, 99, 235, 0.2) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.1) 0%, rgba(37, 99, 235, 0.04) 50%, transparent 80%);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-highlight: rgba(2, 132, 199, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.15);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
}

/* Background Ambient Orbs */
.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  transition: opacity var(--transition-normal);
}

.orb-1 {
  width: 450px;
  height: 450px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
}

.orb-2 {
  width: 500px;
  height: 500px;
  bottom: 10%;
  left: -150px;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 700;
}

p {
  color: var(--text-secondary);
}

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

ul {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: 1rem;
}

img, svg {
  vertical-align: middle;
}

/* Gradient Text Effect */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-accent {
  color: var(--cyan-primary);
}

.text-success {
  color: var(--success);
}

/* --------------------------------------------------------------------------
   3. BUTTONS & UI CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.4);
  filter: brightness(1.06);
}

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

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

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  color: var(--cyan-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

.btn-outline:hover {
  background: var(--gradient-brand-subtle);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  transform: translateY(-2px);
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  padding: 0.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
  background: var(--bg-card);
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR (STICKY & RESPONSIVE)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: all var(--transition-normal);
  background: transparent;
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop-blur);
  -webkit-backdrop-filter: var(--glass-backdrop-blur);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

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

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.logo-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-brand-subtle);
  border: 1px solid var(--border-highlight);
  color: var(--cyan-primary);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

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

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.55rem 0.95rem;
  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.04);
}

.nav-link.active {
  color: var(--cyan-primary);
  font-weight: 600;
  background: var(--gradient-brand-subtle);
}

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

/* Theme Toggle Button */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.theme-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

/* Moon visible in dark mode, Sun visible in light mode */
[data-theme="dark"] .sun-icon {
  transform: translate(-50%, 120%);
  opacity: 0;
}
[data-theme="dark"] .moon-icon {
  transform: translate(-50%, -50%);
  opacity: 1;
}

[data-theme="light"] .sun-icon {
  transform: translate(-50%, -50%);
  opacity: 1;
  color: #f59e0b;
}
[data-theme="light"] .moon-icon {
  transform: translate(-50%, -120%);
  opacity: 0;
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: transparent;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  right: -100%;
  width: min(320px, 85vw);
  height: calc(100vh - var(--nav-height));
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  transition: right var(--transition-normal);
  z-index: 99;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--cyan-primary);
  background: var(--gradient-brand-subtle);
}

.mobile-nav-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

/* --------------------------------------------------------------------------
   5. HERO SECTION & INTERACTIVE AI WORKFLOW
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 0;
  opacity: 0.85;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan-primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 16px var(--cyan-glow);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-primary);
  box-shadow: 0 0 8px var(--cyan-primary);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.title-greeting {
  display: block;
  font-size: 0.45em;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.hero-roles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.role-tag {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.role-accent {
  color: var(--cyan-primary);
}

.role-separator {
  color: var(--text-muted);
}

.hero-tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 1rem;
  border-left: 3px solid var(--cyan-primary);
  padding-left: 1rem;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2rem;
}

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

.hero-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.metric-icon {
  font-size: 1.25rem;
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Hero Visual: Stylized n8n Workflow Diagram */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.workflow-card-preview {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 30px var(--cyan-glow);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.workflow-card-preview:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 242, 254, 0.35);
}

.workflow-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-medium);
}

.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.workflow-header-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.workflow-status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--success);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

/* Workflow Diagram Nodes Flow */
.workflow-diagram {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  padding: 0.5rem 0;
}

.wf-node {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition-fast);
}

.wf-node:hover {
  border-color: var(--cyan-primary);
  transform: translateX(4px);
}

.wf-node-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wf-node-trigger .wf-node-icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.wf-node-ai .wf-node-icon { background: rgba(0, 242, 254, 0.15); color: #00f2fe; }
.wf-node-tool .wf-node-icon { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.wf-node-action .wf-node-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.wf-node-body {
  display: flex;
  flex-direction: column;
}

.wf-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wf-name {
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Connector Line Between Nodes */
.wf-connector {
  width: 2px;
  height: 14px;
  margin-left: 26px;
  background: var(--border-medium);
  position: relative;
}

.flow-pulse {
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-primary);
  box-shadow: 0 0 6px var(--cyan-primary);
  animation: pulse-stream 1.6s infinite linear;
}

@keyframes pulse-stream {
  0% { top: 0%; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.workflow-terminal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.terminal-prompt {
  color: var(--cyan-primary);
  font-weight: 700;
}

.terminal-text {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   6. SECTION COMMON STYLES
   -------------------------------------------------------------------------- */
.section {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
  position: relative;
  z-index: 1;
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan-primary);
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.section-title-bar {
  width: 50px;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. ABOUT ME SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Photo Card & Placeholder */
.about-card-photo {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--cyan-glow);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform var(--transition-normal);
}

.photo-wrapper:hover .profile-image {
  transform: scale(1.04);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 10, 18, 0.85) 100%);
  pointer-events: none;
}

[data-theme="light"] .photo-overlay {
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.55) 100%);
}

.photo-status-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

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

/* About Meta Box */
.about-meta-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

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

.meta-label {
  color: var(--text-muted);
}

.meta-val {
  font-weight: 600;
  color: var(--text-primary);
}

/* Narrative Details */
.about-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

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

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-brand-subtle);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

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

/* --------------------------------------------------------------------------
   8. SKILLS & TECHNOLOGIES
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.skill-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition-fast);
}

.skill-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md), 0 0 20px var(--cyan-glow);
}

.skill-category-card:hover::before {
  background: var(--gradient-brand);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-ai { background: rgba(0, 242, 254, 0.12); color: var(--cyan-primary); }
.icon-code { background: rgba(59, 130, 246, 0.12); color: var(--blue-primary); }
.icon-data { background: rgba(139, 92, 246, 0.12); color: var(--purple-primary); }
.icon-tools { background: rgba(16, 185, 129, 0.12); color: var(--success); }

.category-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.category-title {
  font-size: 1.2rem;
  color: var(--text-primary);
}

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

.skills-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.skill-pill.highlight-pill {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.25);
  color: var(--text-primary);
}

.skill-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-primary);
}

/* --------------------------------------------------------------------------
   9. FEATURED PROJECTS SECTION
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

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

.project-card-banner {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, rgba(15, 23, 42, 0) 100%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-primary);
  letter-spacing: 0.08em;
}

.card-tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

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

.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.project-category {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.project-pipeline-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.project-pipeline-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

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

.project-features {
  margin-top: auto;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.features-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.check-icon {
  color: var(--cyan-primary);
  flex-shrink: 0;
}

.project-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   10. EXPERIENCE & LEARNING TIMELINE
   -------------------------------------------------------------------------- */
.timeline-container {
  position: relative;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 0;
}

.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan-primary) 0%, var(--blue-primary) 50%, var(--purple-primary) 100%);
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.timeline-marker {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 0 15px var(--cyan-glow);
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.1);
  border-color: var(--cyan-primary);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

.marker-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan-primary);
}

.timeline-content {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  flex-grow: 1;
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-highlight);
  transform: translateX(4px);
}

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

.timeline-role {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.timeline-institution {
  font-size: 0.95rem;
  color: var(--cyan-primary);
  font-weight: 500;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--success);
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.timeline-type {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-primary);
}

/* --------------------------------------------------------------------------
   11. SERVICES SECTION (WHAT I CAN BUILD)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

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

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

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-brand-subtle);
  border: 1px solid var(--border-highlight);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-number {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--border-medium);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.service-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-tag {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-primary);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   12. CAREER OBJECTIVE SECTION
   -------------------------------------------------------------------------- */
.career-objective-section {
  padding-top: calc(var(--section-spacing) * 0.7);
  padding-bottom: calc(var(--section-spacing) * 0.7);
  position: relative;
}

.objective-card {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(22, 33, 58, 0.85) 100%);
  backdrop-filter: var(--glass-backdrop-blur);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 35px var(--cyan-glow);
}

.objective-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
  pointer-events: none;
}

.objective-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan-primary);
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.objective-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.objective-quote {
  font-family: var(--font-primary);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 820px;
  margin: 0 auto 2.5rem auto;
}

.objective-pathway {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.path-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  text-align: left;
}

.path-step.active-step {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.path-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-brand-subtle);
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

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

.path-arrow {
  color: var(--border-medium);
}

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

.contact-info-card,
.contact-form-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.contact-card-heading {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

.contact-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.info-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-brand-subtle);
  border: 1px solid var(--border-highlight);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.info-link {
  color: var(--cyan-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  word-break: break-all;
}

.info-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
  text-shadow: 0 0 10px var(--cyan-glow);
}

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

/* Social Buttons */
.social-links-block {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.social-heading {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--bg-elevated);
  border-color: var(--border-highlight);
  color: var(--cyan-primary);
  transform: translateY(-2px);
}

/* Contact Form Elements */
.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.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.required-star {
  color: var(--cyan-primary);
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px var(--cyan-glow);
  background: var(--bg-tertiary);
}

.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.field-error {
  font-size: 0.8rem;
  color: var(--danger);
  min-height: 18px;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  position: relative;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-arrow {
  display: none;
}

.btn-submit.loading .btn-spinner {
  display: inline-block;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
  line-height: 1.5;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--success);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   14. SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  position: relative;
  z-index: 10;
}

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

.footer-brand {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

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

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  color: var(--cyan-primary);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.arrow-up {
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   15. PROJECT DETAILS MODAL
   -------------------------------------------------------------------------- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 30px var(--cyan-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition-bounce);
  z-index: 2;
}

.project-modal.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.modal-badge-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.badge-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan-primary);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-title {
  font-size: 1.65rem;
  color: var(--text-primary);
}

.modal-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.modal-subtitle {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.modal-pipeline-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.pipeline-node {
  padding: 0.35rem 0.65rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.pipeline-node.node-trigger { border-color: #3b82f6; color: #60a5fa; }
.pipeline-node.node-ai { border-color: #00f2fe; color: #00f2fe; }
.pipeline-node.node-tool { border-color: #8b5cf6; color: #a78bfa; }
.pipeline-node.node-output { border-color: #10b981; color: #34d399; }

.pipeline-arrow {
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

/* --------------------------------------------------------------------------
   16. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.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.12s;
}

.reveal-delay-2 {
  transition-delay: 0.22s;
}

.reveal-delay-3 {
  transition-delay: 0.32s;
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
/* Large Screens */
@media (min-width: 1200px) {
  .hero-container {
    gap: 4.5rem;
  }
}

/* Tablet Screens (1024px and down) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    margin-top: 1.5rem;
  }

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

  .about-card-photo {
    max-width: 480px;
  }

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

/* Mobile Screens (768px and down) */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-section {
    padding-top: calc(var(--nav-height) + 1.5rem);
    min-height: auto;
  }

  .hero-metrics {
    gap: 1.25rem;
  }

  .timeline-container {
    padding-left: 0;
  }

  .timeline-track {
    left: 20px;
  }

  .timeline-item {
    gap: 1rem;
  }

  .timeline-marker {
    width: 42px;
    height: 42px;
  }

  .marker-number {
    font-size: 0.85rem;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  .social-buttons-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Small Mobile Screens (480px and down) */
@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
  }

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

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

  .workflow-card-preview {
    padding: 1rem;
  }

  .wf-node {
    padding: 0.6rem 0.75rem;
  }

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

  .modal-dialog {
    max-height: 95vh;
  }

  .modal-footer {
    flex-direction: column;
    width: 100%;
  }

  .modal-footer .btn {
    width: 100%;
  }
}
