/* ==========================================================================
   BARAA ABD EL-HADY - HIGH-TECH LIGHT GLASSMORPHISM DESIGN SYSTEM
   Theme: Medical Light Azure / Tech Sky Blue / Frosted Glass / Crystal Cyan
   Version: 4.0.0 (Executive Clean Edition)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  /* Color Palette: Light Medical Azure & Sky Blue */
  --bg-primary: #f0f7ff;
  --bg-secondary: #e8f4fc;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-hover: rgba(255, 255, 255, 0.94);
  --bg-card-solid: #ffffff;
  
  --azure-tech: #0284c7;
  --azure-vibrant: #0ea5e9;
  --cyan-laser: #00b4d8;
  --cyan-soft: #e0f2fe;
  --sky-light: #bae6fd;
  --emerald-accent: #059669;
  
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --glass-border: rgba(56, 189, 248, 0.28);
  --glass-border-hover: rgba(2, 132, 199, 0.65);
  --glass-glow: 0 10px 30px -5px rgba(2, 132, 199, 0.08);
  --glass-glow-hover: 0 18px 45px -5px rgba(2, 132, 199, 0.16);
  --glass-inner-bevel: inset 0 1px 1px 0 rgba(255, 255, 255, 0.85);
  
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ar);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body[dir="ltr"], body.lang-en {
  font-family: var(--font-en);
}

/* Light Tech Ambient Canvas & Subtle Moving Shapes */
.cyber-canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 10% 15%, rgba(56, 189, 248, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(6, 182, 212, 0.16) 0%, transparent 48%),
    radial-gradient(circle at 50% 85%, rgba(14, 165, 233, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 50%, #f0f7ff 100%);
}

.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background-image: 
    linear-gradient(rgba(14, 165, 233, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.045) 1px, transparent 1px);
  background-size: 45px 45px;
}

/* Floating animated light tech bubbles */
.ambient-tech-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: orb-float 18s ease-in-out infinite alternate;
}

.ambient-tech-orb.orb-1 {
  top: 15%;
  right: 10%;
  width: 380px;
  height: 380px;
  background: rgba(56, 189, 248, 0.25);
}

.ambient-tech-orb.orb-2 {
  bottom: 20%;
  left: 8%;
  width: 440px;
  height: 440px;
  background: rgba(6, 182, 212, 0.2);
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

.content-wrapper {
  position: relative;
  z-index: 2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f0f7ff;
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.45);
  border-radius: var(--radius-full);
  border: 2px solid #f0f7ff;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--azure-tech);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
}

.gradient-text-azure {
  background: linear-gradient(135deg, #0284c7 0%, #0284c7 40%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Components for Light Theme */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-glow), var(--glass-inner-bevel);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-glow-hover), var(--glass-inner-bevel);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--glass-glow), var(--glass-inner-bevel);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--azure-tech), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.glass-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-glow-hover);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(2, 132, 199, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-full);
  color: var(--azure-tech);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.05);
}

.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: rgba(240, 247, 255, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: var(--radius-sm);
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-ar);
}

/* Glass Buttons */
.btn-glass-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  background: linear-gradient(135deg, #0284c7 0%, #00b4d8 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-glass-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.42);
  color: #ffffff;
}

.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--azure-tech);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.06);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: all var(--transition-normal);
}

.btn-glass-secondary:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: var(--azure-tech);
  color: #0369a1;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15);
}

.btn-glass-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
  line-height: 1;
  vertical-align: middle;
}

.btn-glass-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.45);
  color: #ffffff !important;
}

.btn-glass-whatsapp svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

.btn-glass-whatsapp span {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  padding-top: 1px;
}

.btn-glass-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.45);
  color: #ffffff;
}

/* Floating Action Button (FAB) for CV Download */
.fab-cv-download {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.45rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--azure-vibrant);
  border-radius: var(--radius-full);
  color: #0284c7;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.22);
  transition: all var(--transition-normal);
  animation: fab-subtle-glow 3s infinite alternate;
}

[dir="ltr"] .fab-cv-download {
  left: auto;
  right: 25px;
}

.fab-cv-download:hover {
  transform: translateY(-3px) scale(1.03);
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.35);
}

@keyframes fab-subtle-glow {
  0% { box-shadow: 0 8px 20px rgba(2, 132, 199, 0.15); }
  100% { box-shadow: 0 12px 28px rgba(2, 132, 199, 0.3); }
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.25rem auto;
}

.section-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.section-header h2 {
  font-size: 2.35rem;
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   STREAMLINED FLOATING PILL NAVBAR
   ========================================================================== */
.glass-navbar {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0 auto;
}

.glass-navbar.scrolled .nav-container {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 35px -5px rgba(2, 132, 199, 0.16);
  border-color: rgba(2, 132, 199, 0.4);
}

.nav-brand-simple {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-heading);
}

.brand-text-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.brand-live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--emerald-accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.2rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--azure-tech);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
  color: var(--azure-tech);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle-btn {
  background: rgba(240, 247, 255, 0.8);
  border: 1px solid var(--glass-border);
  color: var(--azure-tech);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  background: #ffffff;
  border-color: var(--azure-tech);
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-heading);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 8.5rem;
  padding-bottom: 4.5rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.hero-title {
  font-size: 3.35rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 1.15rem;
  color: var(--text-heading);
}

.typewriter-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--azure-tech);
  min-height: 2.2rem;
  margin-bottom: 1.35rem;
}

.typewriter-text {
  border-left: 2px solid var(--azure-tech);
  padding-left: 0.35rem;
  animation: blink-caret 0.75s step-end infinite;
}

[dir="rtl"] .typewriter-text {
  border-left: none;
  border-right: 2px solid var(--azure-tech);
  padding-right: 0.35rem;
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--azure-tech); }
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(56, 189, 248, 0.25);
}

.stat-capsule {
  display: flex;
  flex-direction: column;
}

.stat-capsule .stat-num {
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--azure-tech);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-capsule .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero Portrait Light Card */
.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-portrait-card {
  position: relative;
  width: 100%;
  max-width: 410px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 
    0 20px 50px -10px rgba(2, 132, 199, 0.18),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  padding: 1.15rem;
  transition: transform var(--transition-slow);
}

.portrait-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: #f0f7ff;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: all var(--transition-normal);
}

.photo-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding: 0.55rem 0.85rem;
  background: rgba(240, 247, 255, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.photo-toggle-label {
  font-size: 0.78rem;
  color: var(--azure-tech);
  font-weight: 600;
}

.photo-toggle-btn {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid var(--azure-tech);
  color: var(--azure-tech);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.photo-toggle-btn:hover {
  background: var(--azure-tech);
  color: #ffffff;
}

/* Floating Badges around Hero Card */
.floating-glass-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.15);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
  animation: float-gentle 4s ease-in-out infinite;
}

.floating-glass-badge.badge-top-left {
  top: -20px;
  left: -35px;
  animation-delay: 0s;
}

.floating-glass-badge.badge-bottom-right {
  bottom: 25px;
  right: -35px;
  animation-delay: 2s;
}

[dir="rtl"] .floating-glass-badge.badge-top-left {
  left: auto;
  right: -35px;
}

[dir="rtl"] .floating-glass-badge.badge-bottom-right {
  right: auto;
  left: -35px;
}

.floating-badge-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azure-tech);
}

.floating-badge-info h5 {
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
}

.floating-badge-info p {
  font-size: 0.75rem;
  color: var(--azure-tech);
  font-weight: 600;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   INSTITUTIONAL SERVICES & CAPABILITIES (FROM DOCX)
   ========================================================================== */
.services-real-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-real-card {
  display: flex;
  flex-direction: column;
}

.service-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azure-tech);
  margin-bottom: 1.25rem;
}

.service-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.service-card-desc {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-features-list {
  list-style: none;
  margin-bottom: 1.25rem;
}

.service-features-list li {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.service-features-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--azure-tech);
}

/* ==========================================================================
   PORTFOLIO & SOLUTIONS GALLERY
   ========================================================================== */
.portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
}

.filter-btn {
  padding: 0.55rem 1.35rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--azure-tech);
  border-color: var(--azure-tech);
}

.filter-btn.active {
  background: var(--azure-tech);
  border-color: var(--azure-tech);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--glass-glow);
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-glow-hover);
}

.project-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f0f7ff;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-thumb {
  transform: scale(1.04);
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-org {
  font-size: 0.8rem;
  color: var(--azure-tech);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.project-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--azure-tech);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.project-link-btn:hover {
  color: #0369a1;
  transform: translateX(-3px);
}

[dir="ltr"] .project-link-btn:hover {
  transform: translateX(3px);
}


/* ==========================================================================
   PERFECTLY CENTERED SYMMETRICAL TIMELINE (17+ YEARS)
   ========================================================================== */
.timeline-symmetrical-container {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* Center vertical guide rail passing exactly through 50% */
.timeline-center-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, #0284c7 0%, #38bdf8 50%, rgba(56, 189, 248, 0.25) 100%);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  z-index: 1;
}

.timeline-row-card {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 2.75rem;
  position: relative;
  z-index: 2;
}

.timeline-card-side {
  width: calc(50% - 30px);
  flex-shrink: 0;
}

.timeline-node-side {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-center-dot {
  width: 22px;
  height: 22px;
  background: #ffffff;
  border: 4px solid #0284c7;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.18), 0 4px 12px rgba(2, 132, 199, 0.35);
  transition: all var(--transition-fast);
}

.timeline-row-card:hover .timeline-center-dot {
  transform: scale(1.3);
  background: #0284c7;
  border-color: #ffffff;
  box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.28), 0 0 18px rgba(2, 132, 199, 0.6);
}

.timeline-empty-side {
  width: calc(50% - 30px);
  flex-shrink: 0;
}

.timeline-card {
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--azure-tech);
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.14);
}

.timeline-role-title {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: var(--text-heading);
}

.timeline-role-subtitle {
  color: var(--azure-tech);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.timeline-role-desc {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Mobile responsive timeline */
@media (max-width: 768px) {
  .timeline-center-spine {
    left: 24px;
    transform: none;
  }
  [dir="rtl"] .timeline-center-spine {
    left: auto;
    right: 24px;
    transform: none;
  }
  .timeline-row-card,
  .timeline-row-card.row-right,
  .timeline-row-card.row-left {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding-left: 56px !important;
    padding-right: 0 !important;
    margin-bottom: 2rem !important;
  }
  [dir="rtl"] .timeline-row-card,
  [dir="rtl"] .timeline-row-card.row-right,
  [dir="rtl"] .timeline-row-card.row-left {
    padding-right: 56px !important;
    padding-left: 0 !important;
  }
  .timeline-node-side {
    position: absolute !important;
    top: 1.5rem !important;
    left: 4px !important;
    width: auto !important;
  }
  [dir="rtl"] .timeline-node-side {
    left: auto !important;
    right: 4px !important;
  }
  .timeline-card-side {
    width: 100% !important;
  }
  .timeline-empty-side {
    display: none !important;
  }
}
/* ==========================================================================
   ACADEMIC & AI RESEARCH
   ========================================================================== */
.academic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.phd-spotlight-card {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 247, 255, 0.95) 100%);
  border: 1px solid rgba(2, 132, 199, 0.4);
  box-shadow: 0 12px 35px -5px rgba(2, 132, 199, 0.12);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  color: var(--text-heading);
  transition: all var(--transition-normal);
}

.contact-item:hover {
  background: #ffffff;
  border-color: var(--azure-tech);
  transform: translateY(-3px);
  box-shadow: var(--glass-glow);
}

.contact-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azure-tech);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.glass-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.glass-input:focus {
  outline: none;
  border-color: var(--azure-tech);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.2);
}

textarea.glass-input {
  resize: vertical;
  min-height: 130px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.glass-footer {
  margin-top: 5rem;
  padding: 3rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(56, 189, 248, 0.25);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN & MOBILE DRAWER SYSTEM
   Theme: Medical Light Azure / Frosted Glass
   ========================================================================== */

/* Animation for mobile menu slide */
@keyframes mobileMenuSlide {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base Body Containment to prevent horizontal overflow */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.content-wrapper {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 3rem !important;
  }
  .hero-text-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .hero-badge-row, .hero-ctas {
    justify-content: center !important;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 580px !important;
    margin: 2rem auto 0 auto !important;
  }
  .services-real-grid, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .academic-grid {
    grid-template-columns: 1fr !important;
  }
  .phd-spotlight-card {
    grid-column: span 1 !important;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile & Standard Phones (max-width: 768px) */
@media (max-width: 768px) {
  /* Compact Floating Navbar */
  .glass-navbar {
    top: 10px !important;
    width: calc(100% - 20px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: var(--radius-lg) !important;
  }

  .nav-container {
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Mobile Slide-down Menu Drawer */
  .nav-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 15px 40px rgba(2, 132, 199, 0.18) !important;
    padding: 1.25rem 0.75rem !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
    z-index: 1005 !important;
  }

  .nav-menu.active {
    display: flex !important;
    animation: mobileMenuSlide 0.25s ease-out forwards !important;
  }

  .nav-link {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 0.65rem 1rem !important;
    border-radius: var(--radius-md) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
  }

  .nav-actions .btn-glass-whatsapp {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: var(--radius-sm) !important;
    background: rgba(2, 132, 199, 0.08) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: var(--azure-tech) !important;
    font-size: 1.35rem !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
  }

  /* Hero Section */
  .hero-section {
    padding-top: 6.75rem !important;
    padding-bottom: 2.5rem !important;
  }

  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.35 !important;
  }

  .hero-desc {
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
    padding: 0 0.25rem !important;
  }

  .hero-badge-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .hero-badge-row .glass-pill {
    width: 100% !important;
    text-align: center !important;
    font-size: 0.82rem !important;
  }

  .hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 1.5rem auto !important;
    gap: 0.65rem !important;
  }

  .hero-ctas a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.92rem !important;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .stat-capsule {
    padding: 0.65rem 0.35rem !important;
  }

  .stat-num {
    font-size: 1.6rem !important;
  }

  .stat-label {
    font-size: 0.72rem !important;
  }

  /* Hero Portrait Card & Badges (Fix horizontal overflow) */
  .hero-portrait-card {
    max-width: 270px !important;
    margin: 1.5rem auto 0 auto !important;
  }

  .floating-glass-badge {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin: 0.65rem auto !important;
    max-width: 300px !important;
    width: 100% !important;
    animation: none !important;
  }

  /* Symmetrical Timeline on Mobile: Clean Side Line with Full Width Cards */
  .timeline-symmetrical-container {
    padding: 1.5rem 0 !important;
  }

  [dir="rtl"] .timeline-center-spine {
    right: 20px !important;
    left: auto !important;
    transform: none !important;
    width: 3px !important;
  }

  [dir="ltr"] .timeline-center-spine {
    left: 20px !important;
    right: auto !important;
    transform: none !important;
    width: 3px !important;
  }

  .timeline-row-card,
  .timeline-row-card.row-right,
  .timeline-row-card.row-left {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
  }

  [dir="rtl"] .timeline-row-card,
  [dir="rtl"] .timeline-row-card.row-right,
  [dir="rtl"] .timeline-row-card.row-left {
    padding-right: 48px !important;
    padding-left: 0 !important;
  }

  [dir="ltr"] .timeline-row-card,
  [dir="ltr"] .timeline-row-card.row-right,
  [dir="ltr"] .timeline-row-card.row-left {
    padding-left: 48px !important;
    padding-right: 0 !important;
  }

  .timeline-card-side {
    width: 100% !important;
    display: block !important;
  }

  .timeline-empty-side {
    display: none !important;
  }

  .timeline-node-side {
    position: absolute !important;
    top: 1.25rem !important;
    width: 22px !important;
    height: 22px !important;
    z-index: 5 !important;
  }

  [dir="rtl"] .timeline-node-side {
    right: 9px !important;
    left: auto !important;
  }

  [dir="ltr"] .timeline-node-side {
    left: 9px !important;
    right: auto !important;
  }

  .timeline-center-dot {
    width: 18px !important;
    height: 18px !important;
    border-width: 3px !important;
  }

  .timeline-card {
    padding: 1.25rem 1.15rem !important;
  }

  .timeline-role-title {
    font-size: 1.15rem !important;
  }

  /* Services Grid */
  .services-real-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .service-real-card {
    padding: 1.5rem 1.15rem !important;
  }

  /* Portfolio Grid & Filter Bar */
  .portfolio-filter-bar {
    gap: 0.4rem !important;
    margin-bottom: 1.75rem !important;
  }

  .filter-btn {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
  }

  .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .project-card {
    padding: 1.25rem !important;
  }

  .project-thumb-wrap {
    aspect-ratio: 16/10 !important;
  }

  .project-footer-actions {
    flex-direction: column !important;
    gap: 0.65rem !important;
    align-items: stretch !important;
    text-align: center !important;
  }

  .project-link-btn {
    justify-content: center !important;
    padding: 0.5rem !important;
  }

  /* Academic Grid */
  .academic-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .phd-spotlight-card {
    padding: 1.5rem 1.15rem !important;
  }

  /* Contact Section */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .contact-grid div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Floating Action Button (CV) */
  .fab-cv-download {
    bottom: 12px !important;
    left: 12px !important;
    padding: 0.55rem 0.85rem !important;
    font-size: 0.8rem !important;
    gap: 0.4rem !important;
  }
}

/* Small Smart Phones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.55rem !important;
  }

  .nav-actions .btn-glass-whatsapp span {
    display: none !important;
  }

  .nav-actions .btn-glass-whatsapp {
    padding: 0.45rem !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
  }

  .stat-capsule {
    padding: 0.5rem 0.25rem !important;
  }

  .stat-num {
    font-size: 1.35rem !important;
  }

  .stat-label {
    font-size: 0.68rem !important;
  }

  .timeline-date-badge {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  .timeline-role-title {
    font-size: 1.05rem !important;
  }
}
