/* ==========================================================================
   Aajera Banu S — Modern Human-Crafted Portfolio Design System
   Default: Pure White / Light Editorial Theme with Seamless Dark Mode Toggle
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens: Light (Default) & Dark Modes
   -------------------------------------------------------------------------- */
:root {
  /* Default Light Theme */
  --bg-page: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;

  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #2563eb;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-tint: rgba(37, 99, 235, 0.08);
  --accent-border: rgba(37, 99, 235, 0.25);
  --accent-contrast: #ffffff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-accent: 0 8px 25px rgba(37, 99, 235, 0.2);

  --terminal-bg: #0f172a;
  --terminal-text: #e2e8f0;
  --terminal-bar: #1e293b;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

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

  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-page: #0b0f19;
  --bg-subtle: #0f172a;
  --bg-card: #131b2e;
  --bg-card-hover: #17223b;
  --bg-input: #0b0f19;

  --border-color: #1e293b;
  --border-subtle: #172033;
  --border-focus: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent: #38bdf8;
  --accent-hover: #0284c7;
  --accent-light: rgba(56, 189, 248, 0.12);
  --accent-tint: rgba(56, 189, 248, 0.1);
  --accent-border: rgba(56, 189, 248, 0.3);
  --accent-contrast: #0b0f19;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 8px 25px rgba(56, 189, 248, 0.25);

  --terminal-bg: #070a12;
  --terminal-text: #f1f5f9;
  --terminal-bar: #0f172a;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--trans-smooth), color var(--trans-smooth);
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

.site-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-padding {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

.bg-subtle {
  background-color: var(--bg-subtle);
}

.text-accent {
  color: var(--accent) !important;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.w-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-intro {
  margin-bottom: 3.5rem;
}

.sub-heading {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.main-heading {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.8px;
  line-height: 1.2;
}

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

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background-color: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: all var(--trans-fast);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  color: var(--accent-contrast);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--trans-fast);
}

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

.btn-primary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-primary-outline:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: color var(--trans-fast);
}

.btn-ghost-link:hover {
  color: var(--accent);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
   Top Announcement & Dashboard Event Notification Alert
   -------------------------------------------------------------------------- */
.dashboard-event-alert, .events-top-banner {
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%);
  color: #ffffff;
  padding: 0.55rem 0;
  font-size: 0.86rem;
  position: relative;
  z-index: 1002;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all var(--trans-smooth);
}

.alert-inner, .top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.alert-content, .banner-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.live-dot-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.alert-text, .banner-msg {
  color: #ffffff;
  font-weight: 500;
}

.alert-actions, .banner-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.alert-link-btn, .banner-action-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.alert-link-btn:hover, .banner-action-btn:hover {
  background: #ffffff;
  color: #1e3a8a;
  border-color: #ffffff;
}

.alert-dismiss-btn, .banner-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  transition: color var(--trans-fast);
}

.alert-dismiss-btn:hover, .banner-close-btn:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.65rem 0;
  transition: all var(--trans-fast);
}

[data-theme="dark"] .site-header {
  background: rgba(11, 15, 25, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 1360px;
  margin: 0 auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--accent);
}

.brand-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.nav-link-highlight {
  color: var(--accent) !important;
  font-weight: 700;
}

.nav-event-badge {
  font-size: 0.62rem;
  font-weight: 700;
  background: #ef4444;
  color: #ffffff;
  padding: 0.08rem 0.35rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  position: relative;
}

/* Notification Bell */
.notif-bell-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  position: relative;
  transition: all var(--trans-fast);
}

.notif-bell-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.notif-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bg-card);
}

/* Notification Dropdown Popover */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 1050;
  overflow: hidden;
  animation: fadeInDown 0.2s ease-out;
}

.notif-dropdown.open {
  display: flex;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.notif-header h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.notif-count {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.notif-list {
  display: flex;
  flex-direction: column;
  max-height: 260px;
  overflow-y: auto;
}

.notif-item {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  transition: background var(--trans-fast);
}

.notif-item:hover {
  background: var(--bg-subtle);
}

.notif-item.unread {
  background: rgba(37, 99, 235, 0.04);
}

[data-theme="dark"] .notif-item.unread {
  background: rgba(37, 99, 235, 0.1);
}

.notif-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.coffee-emoji-sm {
  font-size: 1.1rem;
}

.notif-item-body {
  flex-grow: 1;
}

.notif-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.notif-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.notif-footer {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-subtle);
  text-align: center;
}

.notif-footer .btn-ghost-link {
  font-size: 0.82rem;
  font-weight: 600;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all var(--trans-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dark-icon { display: block; }
.light-icon { display: none; }

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

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--trans-fast);
}

.social-icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 1200;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.mobile-drawer.open {
  right: 0;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Drawer Backdrop Overlay */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1190;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-close-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover,
.drawer-close-btn:active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: rotate(90deg);
}

.drawer-scroll-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.drawer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-link i {
  width: 20px;
  font-size: 0.95rem;
  color: var(--accent);
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.drawer-link:hover,
.drawer-link:active {
  color: var(--accent);
  transform: translateX(5px);
}

.drawer-link:hover i {
  opacity: 1;
  transform: scale(1.15);
}

.drawer-action {
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Hero Section & BIG Photo Showcase
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 3rem;
  padding-bottom: 4rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.3rem;
}

[data-theme="dark"] .availability-badge {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hero-eyebrow-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-lead strong {
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-color);
}

.hero-stats-four {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1200px) {
  .hero-stats-four {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.15;
}

.stat-subtitle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.35;
}

/* Photo Column */
.hero-photo-column {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  margin-top: -55px;
}

/* The scene container — everything is positioned relative to this */
.orb-scene {
  position: relative;
  width: 420px;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---- Orbital Rings ---- */
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  pointer-events: none;
}

.orb-ring-1 {
  width: 320px;
  height: 320px;
  border-width: 1.5px;
  border-color: rgba(99, 102, 241, 0.25);
  animation: ring-spin 12s linear infinite;
}

.orb-ring-2 {
  width: 390px;
  height: 390px;
  border-width: 1px;
  border-color: rgba(6, 182, 212, 0.18);
  border-style: dashed;
  animation: ring-spin 20s linear infinite reverse;
}

.orb-ring-3 {
  width: 460px;
  height: 460px;
  border-width: 1px;
  border-color: rgba(139, 92, 246, 0.12);
  animation: ring-spin 30s linear infinite;
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- Orbiting Tech Icon Dots ---- */
.orbit-dot {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* Each dot sits on ring-1 (160px radius) and orbits */
.orbit-dot-1 {
  background: linear-gradient(135deg, #f97316, #ea580c);
  animation: orbit1 12s linear infinite;
  transform-origin: 0 0;
}

.orbit-dot-2 {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  animation: orbit2 12s linear infinite;
}

.orbit-dot-3 {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  animation: orbit3 12s linear infinite;
}

.orbit-dot-4 {
  background: linear-gradient(135deg, #10b981, #059669);
  animation: orbit4 12s linear infinite;
}

/* Place dots equidistant on a 160px radius circle */
@keyframes orbit1 {
  from { transform: rotate(0deg)   translate(160px) rotate(0deg); }
  to   { transform: rotate(360deg) translate(160px) rotate(-360deg); }
}
@keyframes orbit2 {
  from { transform: rotate(90deg)  translate(160px) rotate(-90deg); }
  to   { transform: rotate(450deg) translate(160px) rotate(-450deg); }
}
@keyframes orbit3 {
  from { transform: rotate(180deg) translate(160px) rotate(-180deg); }
  to   { transform: rotate(540deg) translate(160px) rotate(-540deg); }
}
@keyframes orbit4 {
  from { transform: rotate(270deg) translate(160px) rotate(-270deg); }
  to   { transform: rotate(630deg) translate(160px) rotate(-630deg); }
}

/* ---- Circular Image Frame ---- */
.orb-photo-frame {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.orb-photo-inner {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  background: #0f172a;
}

.orb-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

/* Name card below circle */
.orb-name-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 8px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  white-space: nowrap;
}

[data-theme="dark"] .orb-name-card {
  background: rgba(19, 27, 46, 0.9);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.orb-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
  animation: dot-blink 1.4s ease-in-out infinite;
}

.orb-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.orb-title {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.2;
}

/* ---- Floating Stat Chips ---- */
.orb-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 7px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 15;
  white-space: nowrap;
  animation: chip-float 3s ease-in-out infinite;
}

[data-theme="dark"] .orb-chip {
  background: rgba(19, 27, 46, 0.92);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.orb-chip i {
  color: var(--accent);
  font-size: 0.8rem;
}

.orb-chip-1 { top: 55px; left: -20px; animation-delay: 0s; }
.orb-chip-2 { top: 55px; right: -20px; animation-delay: 1s; }
.orb-chip-3 { bottom: 60px; left: 50%; transform: translateX(-50%); animation-delay: 2s; }

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

.orb-chip-3 {
  animation: chip-float-center 3s ease-in-out infinite 2s;
}
@keyframes chip-float-center {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ---- Photo Card Frame (restored) ---- */
.photo-card-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth);
}

[data-theme="dark"] .photo-card-frame {
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.photo-card-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.photo-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 580px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

[data-theme="dark"] .photo-inner {
  background: #090d16;
}

.hero-big-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.photo-card-frame:hover .hero-big-photo {
  transform: scale(1.02);
}

/* ===== AI SLIDESHOW ===== */
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.slide-img.slide-active {
  opacity: 1;
}

.photo-card-frame:hover .slide-img.slide-active {
  transform: scale(1.02);
}

/* ===== AI FRAME GLOW BORDER ===== */
.ai-frame {
  position: relative;
}

.ai-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  background: conic-gradient(#6366f1, #06b6d4, #8b5cf6, #10b981, #f97316, #6366f1);
  animation: ai-border-spin 3s linear infinite;
  z-index: -1;
  opacity: 0.8;
}

.ai-frame > * {
  position: relative;
  z-index: 1;
}

@keyframes ai-border-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== AI OVERLAY SYSTEM ===== */
.ai-photo-inner {
  position: relative;
}

.ai-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: 14px;
  overflow: hidden;
}

/* Scan Line */
.ai-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.8), rgba(6, 182, 212, 0.9), rgba(99, 102, 241, 0.8), transparent);
  box-shadow: 0 0 12px 3px rgba(99, 102, 241, 0.5);
  animation: ai-scan 3s ease-in-out infinite;
  top: 0;
}

@keyframes ai-scan {
  0%   { top: 0%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Grid Overlay */
.ai-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ai-frame:hover .ai-grid-overlay {
  opacity: 1;
}

/* Corner Brackets */
.ai-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(99, 102, 241, 0.85);
  border-style: solid;
  animation: corner-pulse 2.5s ease-in-out infinite;
}

.ai-corner-tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.ai-corner-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.ai-corner-bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.ai-corner-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

@keyframes corner-pulse {
  0%, 100% { border-color: rgba(99, 102, 241, 0.85); }
  50%       { border-color: rgba(6, 182, 212, 1); box-shadow: 0 0 8px rgba(6, 182, 212, 0.6); }
}

/* AI Badge */
.ai-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 30px;
  padding: 4px 10px;
}

.ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: dot-blink 1.4s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #10b981; }
  50%       { opacity: 0.4; box-shadow: none; }
}

.ai-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #c7d2fe;
  font-family: 'Courier New', monospace;
}

/* Data Stream */
.ai-data-stream {
  position: absolute;
  bottom: 90px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-data-stream span {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(6, 182, 212, 0.9);
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 4px;
  border-left: 2px solid rgba(6, 182, 212, 0.7);
  animation: stream-flicker 3s ease-in-out infinite;
}

.ai-data-stream span:nth-child(2) { animation-delay: 0.6s; }
.ai-data-stream span:nth-child(3) { animation-delay: 1.2s; }

@keyframes stream-flicker {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0.3; }
}

.photo-card-frame:hover .slide-img.slide-active {
  transform: scale(1.01);
}

.photo-info-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .photo-info-card {
  background: rgba(19, 27, 46, 0.94);
  border-color: var(--border-color);
}

.info-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.info-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.info-card-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Floating Tech Pills */
.floating-pill {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.pill-aws {
  top: 15px;
  left: -20px;
  color: #d97706;
}

.pill-docker {
  top: 60px;
  right: -20px;
  color: #0284c7;
}

.pill-terraform {
  bottom: 100px;
  left: -25px;
  color: #7c3aed;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-card-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
}

.about-story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.about-story-card p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.about-story-card strong {
  color: var(--text-primary);
}

.story-highlights {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-color);
}

.highlight-point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.about-feature-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-fast);
}

.feature-box:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

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

/* --------------------------------------------------------------------------
   Skills Grid
   -------------------------------------------------------------------------- */
.skills-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.skill-category-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-fast);
}

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

.cat-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.cat-icon {
  font-size: 1.4rem;
  color: var(--accent);
}

.cat-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
}

.skill-pill:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Interactive CI/CD Pipeline Simulator
   -------------------------------------------------------------------------- */
.pipeline-simulator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.sim-repo-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.repo-badge {
  color: var(--text-primary);
  font-weight: 600;
}

.branch-badge {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.pipeline-visual-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.pipe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 100px;
  position: relative;
  z-index: 2;
  transition: all var(--trans-fast);
}

.node-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  transition: all var(--trans-fast);
}

.node-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.node-badge-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Pipeline States */
.pipe-node.running .node-circle {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
}

.pipe-node.running .node-badge-status {
  color: var(--accent);
  font-weight: 600;
}

.pipe-node.success .node-circle {
  border-color: #10b981;
  background: #ecfdf5;
  color: #10b981;
}

[data-theme="dark"] .pipe-node.success .node-circle {
  background: rgba(16, 185, 129, 0.15);
}

.pipe-node.success .node-badge-status {
  color: #10b981;
  font-weight: 600;
}

.node-bar {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 8px;
  position: relative;
  top: -20px;
  transition: background 0.3s ease;
}

.node-bar.active {
  background: var(--accent);
}

.sim-console {
  background: var(--terminal-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-mono);
  border: 1px solid var(--border-color);
}

.console-titlebar {
  background: var(--terminal-bar);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #475569;
}

.console-title {
  font-size: 0.75rem;
  color: #94a3b8;
}

.console-body {
  padding: 1.2rem;
  height: 150px;
  overflow-y: auto;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--terminal-text);
}

.log-entry {
  margin-bottom: 0.35rem;
}
.log-entry.dim {
  color: #64748b;
}

/* --------------------------------------------------------------------------
   Featured Projects
   -------------------------------------------------------------------------- */
.projects-display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.2rem;
}

.project-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-smooth);
}

.project-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.project-media-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--bg-subtle);
  overflow: hidden;
}

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

.project-showcase-card:hover .project-img {
  transform: scale(1.04);
}

.media-category-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .media-category-tag {
  background: rgba(19, 27, 46, 0.9);
}

.project-details {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.tag-pill {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

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

.project-card-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.project-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.project-bullet-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.2rem;
}

.project-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.project-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   Experience & Education Timeline
   -------------------------------------------------------------------------- */
.timeline-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.col-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.col-head i {
  font-size: 1.3rem;
  color: var(--accent);
}

.col-head h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-cards {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.timeline-entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-fast);
}

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

.entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.entry-period {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.entry-period.active-period {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
}

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

.entry-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.entry-company {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

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

.entry-points {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

/* --------------------------------------------------------------------------
   Interactive Developer Console
   -------------------------------------------------------------------------- */
.terminal-shell-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--terminal-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.terminal-header {
  background: var(--terminal-bar);
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.btn-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.btn-dot.close { background: #ef4444; }
.btn-dot.min { background: #f59e0b; }
.btn-dot.max { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
}

.terminal-status-online {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.online-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.terminal-shortcuts-bar {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shortcut-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #64748b;
}

.term-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.term-chip:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.terminal-viewport {
  padding: 1.5rem;
  min-height: 340px;
  max-height: 440px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--terminal-text);
}

.welcome-line {
  color: #94a3b8;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.welcome-line strong {
  color: #ffffff;
}

.term-code-hl {
  color: var(--accent);
  font-weight: 600;
}

.terminal-entry {
  margin-bottom: 1rem;
}

.terminal-entry-echo {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.terminal-entry-resp {
  color: #cbd5e1;
  padding-left: 0.6rem;
  border-left: 2px solid var(--accent);
  margin-bottom: 0.75rem;
}

.terminal-prompt-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.prompt-symbol {
  color: var(--accent);
  white-space: nowrap;
}

.prompt-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-card-body {
  flex: 1;
}

.contact-card-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}

.contact-card-link, .contact-card-static {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

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

.copy-action-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--trans-fast);
}

.copy-action-btn:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

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

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

.human-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Formspree Submission Status Feedback */
.form-status-msg {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.form-status-msg:empty {
  display: none;
}

.form-status-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: var(--radius-sm);
  line-height: 1.45;
}

.form-status-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: var(--radius-sm);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding-top: 3.5rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.8rem;
  padding-bottom: 2.5rem;
}

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

.footer-nav-links {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.footer-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--trans-fast);
}

.footer-nav-links a:hover {
  color: var(--accent);
}

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

.footer-social-links a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--trans-fast);
}

.footer-social-links a:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.2rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bottom-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--trans-fast);
}

.modal-backdrop.active,
.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-dialog-compact {
  max-width: 720px;
}

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

.modal-title-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--trans-fast);
}

.modal-close-btn:hover {
  color: #ef4444;
}

.modal-body-scroll {
  padding: 2rem;
  overflow-y: auto;
}

/* Printable Resume Styling */
.resume-paper {
  background: #ffffff;
  color: #1e293b;
  border-radius: var(--radius-sm);
  line-height: 1.55;
  font-family: var(--font-sans);
}

.r-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.r-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
}

.r-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563eb;
  margin-top: 0.15rem;
}

.r-location {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.r-head-links {
  font-size: 0.85rem;
  color: #334155;
  text-align: right;
}

.r-head-links a {
  color: #2563eb;
  text-decoration: none;
}

.r-line {
  border: none;
  border-top: 2px solid #2563eb;
  margin: 1.2rem 0;
}

.r-section {
  margin-bottom: 1.4rem;
}

.r-section-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.25rem;
  margin-bottom: 0.6rem;
}

.r-paragraph {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
}

.r-skills-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.2rem;
  font-size: 0.85rem;
  color: #334155;
}

.r-entry {
  margin-bottom: 1rem;
}

.r-entry-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.r-date {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}

.r-org {
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.r-bullets {
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Toast Box */
.toast-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-primary);
  color: var(--bg-card);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--trans-smooth);
  pointer-events: none;
}

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

/* Print */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-cv-document, #printable-cv-document * {
    visibility: visible;
  }
  #printable-cv-document {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
}

/* ==========================================================================
   BLOGS & TECHNICAL ARTICLES SECTION
   ========================================================================== */
.blog-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--trans-fast);
}

[data-theme="dark"] .blog-pill-btn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.blog-pill-btn:hover {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.drawer-link-highlight {
  color: #d97706 !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .drawer-link-highlight {
  color: #fbbf24 !important;
}

.blog-publication-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(217, 119, 6, 0.06) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .blog-publication-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: var(--border-color);
}

.banner-coffee-icon {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.banner-content {
  flex-grow: 1;
}

.banner-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.banner-live-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.banner-domain {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
}

.banner-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.banner-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 780px;
}

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

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

.btn-primary-xs {
  background: var(--accent);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all var(--trans-fast);
}

.btn-primary-xs:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.filter-pill {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth), border-color var(--trans-smooth);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.blog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.blog-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-aws {
  background: rgba(255, 153, 0, 0.12);
  color: #d97706;
}

[data-theme="dark"] .badge-aws {
  background: rgba(255, 153, 0, 0.2);
  color: #fbbf24;
}

.badge-docker {
  background: rgba(36, 150, 237, 0.12);
  color: #0284c7;
}

[data-theme="dark"] .badge-docker {
  background: rgba(36, 150, 237, 0.2);
  color: #38bdf8;
}

.badge-terraform {
  background: rgba(132, 79, 186, 0.12);
  color: #7c3aed;
}

[data-theme="dark"] .badge-terraform {
  background: rgba(132, 79, 186, 0.2);
  color: #a78bfa;
}

.badge-cisco {
  background: rgba(4, 159, 217, 0.12);
  color: #0891b2;
}

[data-theme="dark"] .badge-cisco {
  background: rgba(4, 159, 217, 0.2);
  color: #22d3ee;
}

.blog-read-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

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

.tag-item {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.blog-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.read-article-btn {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: gap var(--trans-fast), color var(--trans-fast);
}

.read-article-btn:hover {
  gap: 0.75rem;
  color: var(--accent-hover);
}

/* ==========================================================================
   EVENTS & WORKSHOPS SECTION
   ========================================================================== */
.events-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth), border-color var(--trans-smooth);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.event-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.event-type-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-livewire {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
}

.badge-speaker {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

[data-theme="dark"] .badge-speaker {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.badge-research {
  background: rgba(147, 51, 234, 0.12);
  color: #9333ea;
}

[data-theme="dark"] .badge-research {
  background: rgba(147, 51, 234, 0.2);
  color: #c084fc;
}

.event-date-pill {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.event-location-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.event-loc, .event-audience {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.event-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.event-key-points {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-color);
}

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

/* ==========================================================================
   ARTICLE / BLOG MODAL
   ========================================================================== */
.modal-dialog-readable {
  max-width: 780px;
}

.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.modal-cat-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-reader-content {
  padding: 1.75rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article-reader-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

.article-reader-content p {
  margin-bottom: 1.15rem;
}

.article-reader-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.4rem;
}

.article-reader-content li {
  margin-bottom: 0.5rem;
}

.article-callout-box {
  background: var(--bg-subtle);
  border-left: 4px solid var(--accent);
  padding: 1.1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.25rem 0;
}

.article-callout-box p {
  margin-bottom: 0;
  font-size: 0.94rem;
  color: var(--text-primary);
}

/* ==========================================================================
   EVENTS EXPLORE BANNER (HOME PAGE)
   ========================================================================== */
.events-explore-banner {
  margin-top: 2.75rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .events-explore-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.explore-banner-content {
  flex-grow: 1;
}

.banner-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.explore-banner-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.explore-banner-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
}

.explore-banner-action {
  flex-shrink: 0;
}

/* ==========================================================================
   DEDICATED EVENTS PAGE STYLES (events.html)
   ========================================================================== */
.events-hero-section {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-color);
}

.events-hero-content {
  max-width: 860px;
}

.events-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.events-hero-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.events-hero-desc {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.events-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.event-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

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

/* Events Search & Filter Controls */
.events-filter-wrapper {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.events-search-box {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.events-search-box i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.events-search-box input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 2.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-fast);
}

.events-search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.events-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.event-pill {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.48rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.event-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.event-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Rich Event Cards Full Grid */
.events-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.event-card-rich {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth), border-color var(--trans-smooth);
}

.event-card-rich:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.rich-card-status-bar {
  padding: 0.75rem 1.5rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.status-tag {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.status-upcoming {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

[data-theme="dark"] .status-upcoming {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.status-completed {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

[data-theme="dark"] .status-completed {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

.status-date {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.rich-card-cat-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-bottom: 0.75rem;
}

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

.rich-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rich-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.rich-curriculum-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-top: auto;
  margin-bottom: 0.5rem;
}

.curriculum-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.curr-item {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rich-card-footer {
  padding: 1.15rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote-icon {
  font-size: 1.75rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 0.85rem;
}

.quote-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.reviewer-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* Event Invite CTA Card */
.event-invite-cta-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(14, 165, 233, 0.06) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .event-invite-cta-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.cta-card-content {
  max-width: 680px;
  margin: 0 auto;
}

.cta-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* RSVP Form in Modal */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* ==========================================================================
   RESPONSIVE STYLES & MOBILE UI SYSTEM
   Unified, conflict-free, mobile-first responsive architecture (1120px, 992px, 768px, 550px, 380px)
   ========================================================================== */

/* Universal mobile overflow protection */
@media (max-width: 992px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Container padding */
  .site-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   1. TABLET LANDSCAPE & SMALL DESKTOP (≤ 1120px)
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .nav-menu,
  #open-resume-btn {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   2. TABLET PORTRAIT (≤ 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  /* Layout & Spacing */
  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
    min-height: unset;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    text-align: center;
  }

  .hero-content {
    order: 1;
    max-width: 700px;
    margin: 0 auto;
  }

  .hero-photo-column {
    order: 2;
    margin-top: 0;
    display: flex;
    justify-content: center;
  }

  .photo-card-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  /* Hide floating badge pills that overflow the card on tablet */
  .floating-pill {
    display: none;
  }

  .availability-badge {
    margin: 0 auto 1.25rem;
  }

  .hero-title {
    font-size: 2.35rem;
    line-height: 1.25;
  }

  .hero-lead {
    font-size: 1.02rem;
    max-width: 580px;
    margin: 0 auto 1.75rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }

  /* Hero stats in a clean 2x2 grid */
  .hero-stats-four,
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 460px;
    margin: 0 auto;
    gap: 1rem;
  }

  /* Adapt All Main Multi-column Grids to Single Column */
  .about-card-grid,
  .skills-card-grid,
  .projects-display-grid,
  .blog-cards-grid,
  .events-cards-grid,
  .events-grid-full,
  .timeline-two-column,
  .contact-split-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Events Hero on Tablet */
  .events-hero-title {
    font-size: 2.2rem;
  }

  .events-metrics-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .events-explore-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .events-explore-banner .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Photo Info Card Positioning */
  .photo-info-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* --------------------------------------------------------------------------
   3. MOBILE PHONES & PHABLETS (≤ 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Prevent horizontal drag/overflow */
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  /* Spacing */
  .site-container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Typography */
  .main-heading {
    font-size: 1.7rem;
    line-height: 1.25;
  }

  .sub-heading {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .section-intro {
    text-align: center;
    margin-bottom: 2rem;
  }

  .section-desc {
    font-size: 0.92rem;
    max-width: 100%;
  }

  /* Header & Navigation */
  .site-header {
    height: 64px;
  }

  .header-inner {
    padding: 0 1rem;
    height: 100%;
  }

  .brand-logo-link {
    gap: 0.65rem;
  }

  .brand-avatar {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
  }

  .brand-badge {
    display: none;
  }

  /* Compact header buttons */
  .notif-bell-btn,
  .theme-toggle-btn,
  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 1.5rem;
    padding-bottom: 2.75rem;
  }

  .hero-title {
    font-size: 1.95rem;
    line-height: 1.22;
  }

  .hero-lead {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  /* Action buttons full-width touch friendly */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1.75rem;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 0.92rem;
  }

  /* 2x2 Stats Grid */
  .hero-stats-four,
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 100%;
  }

  .stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.5rem;
    text-align: center;
  }

  .stat-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.35rem;
  }

  .stat-subtitle {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  /* Photo Frame */
  .photo-card-frame {
    max-width: 275px;
    padding: 8px;
  }

  .photo-inner {
    max-height: 340px;
    aspect-ratio: 3 / 4;
  }

  /* CI/CD Pipeline Simulator — Horizontal swipe track with snap */
  .sim-container {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .sim-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .sim-header .btn-primary {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .pipeline-visual-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 1rem 0.5rem;
    gap: 0.6rem;
    scrollbar-width: thin;
  }

  .pipeline-visual-track::-webkit-scrollbar {
    height: 4px;
  }

  .pipeline-visual-track::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
  }

  .pipe-node {
    flex: 0 0 115px;
    min-width: 115px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.25rem;
  }

  .node-circle {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
  }

  .node-title {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.3rem;
  }

  .node-badge-status {
    font-size: 0.65rem;
    padding: 2px 7px;
  }

  .node-bar {
    flex: 0 0 20px;
    min-width: 20px;
    height: 2px;
    background: var(--border-color);
    display: block;
  }

  .sim-console {
    margin-top: 1rem;
  }

  .console-body {
    max-height: 180px;
    font-size: 0.78rem;
    padding: 0.75rem;
  }

  /* Projects Showcase Cards */
  .project-showcase-card {
    padding: 1.25rem;
  }

  .project-actions {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }

  .project-actions a,
  .project-actions button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  /* Blog & Articles Cards */
  .blog-card,
  .article-card {
    padding: 1.25rem;
  }

  .blog-card-actions,
  .article-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }

  .blog-card-actions a,
  .blog-card-actions button,
  .article-actions a,
  .article-actions button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  /* Events Page Elements */
  .events-hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
  }

  .events-metrics-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

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

  .events-pills-row,
  .blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .event-pill,
  .filter-pill {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  .event-card-actions {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }

  .event-card-actions .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  /* Timeline & Experience */
  .timeline-header,
  .exp-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .timeline-item {
    padding: 1.25rem 1rem;
  }

  /* Contact & Forms — iOS auto-zoom prevention: inputs must be ≥ 16px */
  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  .rsvp-form input,
  .rsvp-form textarea,
  .rsvp-form select,
  .events-search-box input {
    font-size: 16px !important;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .contact-info-cards {
    gap: 0.85rem;
  }

  .contact-card-item {
    padding: 1rem;
  }

  /* Mobile Drawer Navigation */
  .mobile-drawer {
    width: 86vw;
    max-width: 340px;
    right: -100%;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .drawer-scroll-body {
    padding: 1.25rem 1.25rem 3rem;
  }

  .drawer-link {
    min-height: 48px;
    padding: 0.75rem 0.6rem;
    font-size: 0.96rem;
  }

  /* Notification Dropdown */
  .notif-dropdown {
    width: calc(100vw - 1.5rem);
    max-width: 360px;
    right: 0.75rem;
    max-height: 70vh;
    overflow-y: auto;
  }

  /* Modal Dialogs */
  .modal-dialog {
    width: 95vw;
    max-width: 95vw;
    max-height: 92vh;
    margin: 1rem auto;
    padding: 0;
    border-radius: var(--radius-sm);
  }

  .modal-header-bar {
    padding: 0.85rem 1rem;
  }

  .modal-body-scroll {
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
  }

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

  .events-hero-actions .btn,
  .events-hero-actions a,
  .events-hero-actions button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    text-align: center;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    width: 100%;
  }

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

/* --------------------------------------------------------------------------
   4. SMALL MOBILE SCREENS (≤ 550px)
   -------------------------------------------------------------------------- */
@media (max-width: 550px) {
  /* Header Alignment */
  .site-header {
    height: 58px;
  }

  .header-inner {
    padding: 0 0.85rem;
    gap: 0.5rem;
  }

  .brand-name {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 700;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide desktop-only elements in header */
  .header-actions .blog-pill-btn,
  .header-actions .social-icon-btn,
  .site-header #open-resume-btn {
    display: none !important;
  }

  /* Keep drawer social icons visible and touch-sized */
  .drawer-socials .social-icon-btn {
    display: inline-flex !important;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 1.05rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .notif-bell-btn,
  .theme-toggle-btn,
  .mobile-menu-toggle {
    width: 35px;
    height: 35px;
    font-size: 0.95rem;
  }

  /* Alert / Top Banner */
  .alert-inner,
  .top-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
  }

  .alert-text {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .alert-actions {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .alert-link-btn {
    font-size: 0.74rem;
    padding: 0.35rem 0.75rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 1.25rem;
    padding-bottom: 2.25rem;
  }

  .hero-grid {
    gap: 1.75rem;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.24;
    margin-bottom: 0.75rem;
  }

  .hero-lead {
    font-size: 0.88rem;
    line-height: 1.58;
    margin-bottom: 1.25rem;
  }

  .availability-badge {
    font-size: 0.72rem;
    padding: 0.28rem 0.7rem;
    margin-bottom: 0.9rem;
  }

  /* Photo Frame */
  .photo-card-frame {
    max-width: 250px;
    padding: 6px;
  }

  .photo-inner {
    max-height: 300px;
  }

  .photo-info-card {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 0.5rem 0.65rem;
  }

  .info-card-name {
    font-size: 0.78rem;
  }

  .info-card-role {
    font-size: 0.62rem;
  }

  /* 2x2 Stats */
  .hero-stats-four,
  .hero-stats-row {
    gap: 0.55rem;
  }

  .stat-box {
    padding: 0.75rem 0.4rem;
  }

  .stat-title {
    font-size: 1.25rem;
  }

  .stat-subtitle {
    font-size: 0.66rem;
  }

  /* Section Headings */
  .main-heading {
    font-size: 1.45rem;
  }

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

  /* Tags uniform wrapping */
  .skill-tags,
  .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .skill-tag,
  .tag {
    font-size: 0.74rem;
    padding: 0.25rem 0.65rem;
  }

  /* Events Rich Card Footer */
  .rich-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 1rem 1.15rem;
  }

  .rich-card-footer button,
  .rich-card-footer a {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   5. ULTRA-COMPACT MOBILE SCREENS (≤ 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .site-container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .header-inner {
    padding: 0 0.65rem;
  }

  .brand-name {
    font-size: 0.86rem;
    max-width: 120px;
  }

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

  .hero-lead {
    font-size: 0.84rem;
  }

  .hero-actions .btn {
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
  }

  .photo-card-frame {
    max-width: 225px;
  }

  .photo-inner {
    max-height: 270px;
  }

  .hero-stats-four,
  .hero-stats-row {
    gap: 0.45rem;
  }

  .stat-box {
    padding: 0.65rem 0.35rem;
  }

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

  .stat-subtitle {
    font-size: 0.62rem;
  }

  .notif-bell-btn,
  .theme-toggle-btn,
  .mobile-menu-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
  }
}

