/* ==========================================================================
   ABDO TAHA PORTFOLIO - DESIGN SYSTEM & STYLESHEET
   Theme: White + Medical Blue + Dark Navy Blue + Soft Light Blue
   Aesthetics: Clean, Modern, Elegant, Dental-Inspired & Professional
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  /* Color Tokens - Light Theme Default */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F0F9FF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  --medical-blue: #0284C7;
  --medical-blue-hover: #0369A1;
  --medical-blue-light: #E0F2FE;
  --medical-blue-glow: rgba(2, 132, 199, 0.15);
  
  --dark-navy: #0F172A;
  --navy-slate: #1E293B;
  
  --border-color: #E2E8F0;
  --border-focus: #38BDF8;

  --nav-bg: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(2, 132, 199, 0.12);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.2);

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

  --font-main: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Cairo', sans-serif;

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

/* Dark Theme Overrides - High-End Electric Cyan & Slate Navy */
[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #1E293B;
  --bg-card: #1E293B;
  --bg-card-hover: #334155;
  
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;

  --medical-blue: #38BDF8;
  --medical-blue-hover: #7DD3FC;
  --medical-blue-light: rgba(56, 189, 248, 0.14);
  --medical-blue-glow: rgba(56, 189, 248, 0.3);
  
  --dark-navy: #0F172A;
  --navy-slate: #1E293B;
  
  --border-color: rgba(255, 255, 255, 0.12);
  --border-focus: #38BDF8;

  --nav-bg: rgba(15, 23, 42, 0.88);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

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

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

a:hover {
  color: var(--medical-blue-hover);
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

a, button, input, textarea, select, .lang-toggle-btn, .theme-toggle-btn, .mobile-menu-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Dental Pattern Backdrop Subtlety */
.dental-bg-pattern {
  background-image: radial-gradient(var(--medical-blue-glow) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  box-shadow: 0 1px 0 rgba(56, 189, 248, 0.06), 0 8px 30px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(2, 132, 199, 0.12);
  background: var(--nav-bg);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  transition: transform var(--transition-fast);
}

.nav-brand:hover {
  transform: translateY(-1px);
}

.nav-brand-logo {
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--medical-blue-light), rgba(56,189,248,0.05));
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  transition: all var(--transition-fast);
}

.nav-brand:hover .nav-brand-logo {
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--medical-blue), rgba(56, 189, 248, 0.4));
  border-radius: var(--radius-full);
}

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

/* Language Toggle Button */
.lang-toggle-btn {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  background: var(--medical-blue-light);
  color: var(--medical-blue);
  border-color: var(--medical-blue);
  transform: translateY(-1px);
}

/* RTL Arabic Styles */
[dir="rtl"] body {
  font-family: var(--font-arabic);
}

[dir="rtl"] .nav-brand,
[dir="rtl"] .hero-badge,
[dir="rtl"] .section-tag,
[dir="rtl"] .btn,
[dir="rtl"] .admin-nav-item {
  font-family: var(--font-arabic);
}

[dir="rtl"] .admin-nav-item {
  text-align: right;
}

[dir="rtl"] .admin-search-input {
  padding: 0.75rem 2.75rem 0.75rem 1rem;
}

[dir="rtl"] .admin-search-icon {
  right: 1rem;
  left: auto;
}

/* RTL Mobile Nav Alignment */
[dir="rtl"] .nav-links {
  left: auto;
  right: 0;
  align-items: flex-end;
}

[dir="rtl"] .nav-link {
  text-align: right;
}

[dir="rtl"] .nav-links .nav-actions,
[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
}

.mobile-menu-btn {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.91) 0%, rgba(248, 250, 252, 0.86) 100%), url('../assets/dental-bg-4k.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

[data-theme="dark"] .hero-section::before {
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.93) 0%, rgba(30, 41, 59, 0.88) 100%), url('../assets/dental-bg-4k.jpg');
  opacity: 0.45;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--medical-blue-light);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius-full);
  color: var(--medical-blue);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.hero-role {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--medical-blue);
  margin-bottom: 0.25rem;
}

.hero-faculty {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

/* Button Component Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--medical-blue);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--medical-blue-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--medical-blue);
  color: var(--medical-blue) !important;
  transform: translateY(-2px);
  background: var(--medical-blue-light);
}

/* Hero Avatar Card */
.hero-avatar-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.hero-avatar-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 280px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-full);
  padding: 8px;
  background: linear-gradient(135deg, var(--medical-blue), var(--border-focus));
  box-shadow: var(--shadow-glow);
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
}

.hero-status-pill {
  position: absolute;
  bottom: 10px;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-md);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--medical-blue-light);
  color: var(--medical-blue);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

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

/* About Me Section */
.about-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.about-bio-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.quick-info-item {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.quick-info-item:hover {
  border-color: var(--medical-blue);
}

.quick-info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quick-info-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Journey Section Timeline */
.journey-section {
  padding: 5rem 0;
}

.timeline {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 3px solid var(--medical-blue-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.timeline-dot {
  position: absolute;
  left: calc(-2rem - 9px);
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--medical-blue);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 4px var(--medical-blue-light);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--medical-blue);
  background: var(--medical-blue-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* University Section (Assiut University & Dentistry) */
.university-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.university-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 132, 199, 0.78)), url('../assets/dental-bg-4k.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.university-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
  pointer-events: none;
}

.university-seal {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.university-info-box h3 {
  color: #FFFFFF;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.university-info-box .arabic-title {
  font-family: var(--font-arabic);
  color: #F3E5AB;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.university-info-box p {
  color: #94A3B8;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 45rem;
  margin-bottom: 1rem;
}

.official-links-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-white {
  background: #FFFFFF;
  color: #0F172A !important;
  font-weight: 700;
}

.btn-white:hover {
  background: #E0F2FE;
  color: #0284C7 !important;
}

/* College Departments Cards */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.dept-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--medical-blue-light);
  color: var(--medical-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.dept-name-en {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.dept-name-ar {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--medical-blue);
  margin-bottom: 0.75rem;
}

.dept-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: auto;
}

/* Projects Section */
.projects-section {
  padding: 5rem 0;
}

.project-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.filter-tab.active, .filter-tab:hover {
  background: var(--medical-blue);
  color: #FFFFFF;
  border-color: var(--medical-blue);
}

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

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

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

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.5s ease;
}

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

.project-category-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

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

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.tech-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--medical-blue-light);
  color: var(--medical-blue);
  border-radius: var(--radius-sm);
}

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

.project-link-btn {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Skills Section */
.skills-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.skills-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.skills-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.skills-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.skills-card-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  background: var(--medical-blue-light);
  color: var(--medical-blue);
  border-radius: var(--radius-full);
}

/* Certificates Section */
.certificates-section {
  padding: 5rem 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.cert-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

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

.cert-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  background: var(--medical-blue-light);
  color: var(--medical-blue);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.cert-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cert-org {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.contact-link-item:hover {
  border-color: var(--medical-blue);
  color: var(--medical-blue);
  transform: translateX(4px);
}

.contact-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--medical-blue-light);
  color: var(--medical-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.form-group {
  margin-bottom: 1.5rem;
}

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

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

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--medical-blue);
  box-shadow: 0 0 0 3px var(--medical-blue-light);
}

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

/* Footer */
.footer {
  background: var(--dark-navy);
  color: #94A3B8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

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

.footer-brand h4 {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.95rem;
  max-width: 24rem;
}

.footer-links h5 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

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

.footer-nav a {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #38BDF8;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  background: #0F172A;
  color: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--medical-blue);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Responsive Media Queries */
@media (max-width: 992px) {
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 2rem 1.5rem;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
    z-index: 999;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav-links.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 0.65rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 1px dashed var(--border-color);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .about-grid, .skills-wrapper, .contact-grid {
    grid-template-columns: 1fr;
  }
  .university-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .university-seal {
    margin: 0 auto;
  }
  .official-links-group {
    justify-content: center;
  }
}

/* Admin Dashboard Styles */
.admin-header {
  background: var(--dark-navy);
  color: #FFFFFF;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.admin-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
  padding: 2.5rem 0 5rem;
  align-items: start;
}

.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 5.5rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 0.4rem;
  transition: all var(--transition-fast);
  text-align: left;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: var(--medical-blue-light);
  color: var(--medical-blue);
  transform: translateX(4px);
}

.admin-nav-item .nav-tab-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--medical-blue);
}

.admin-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  transition: box-shadow var(--transition-fast);
}

.admin-panel-card:hover {
  box-shadow: var(--shadow-md);
}

.admin-panel-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  transition: all var(--transition-fast);
}

.admin-item-row:hover {
  border-color: var(--medical-blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.admin-actions-group {
  display: flex;
  gap: 0.5rem;
}

/* Dashboard KPI Statistics Cards Grid */
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.dash-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--medical-blue);
}

.dash-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dash-stat-icon-wrapper {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--medical-blue);
  flex-shrink: 0;
}

.dash-stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.dash-stat-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.admin-search-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.admin-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--medical-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.admin-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-danger {
  background: #EF4444;
  color: #FFFFFF !important;
  border: none;
}

.btn-danger:hover {
  background: #DC2626;
}

.admin-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 992px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .dash-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .dash-stat-grid {
    grid-template-columns: 1fr;
  }
}

/* Project Details Modal Popup Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  display: flex !important;
}

.modal-content-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 2rem;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  background: #EF4444;
  color: #FFF;
  transform: scale(1.1);
}

/* Light Blue Academic Statement Pill Box */
.academic-statement-box {
  background: var(--medical-blue-light);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.4rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--medical-blue);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.1);
}

.academic-statement-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
  color: var(--medical-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   MOBILE FIRST-AID / OVERFLOW & THEME POLISH
   ========================================================================== */
html, body {
  max-width: 100%;
}

section, main, header, footer {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Prevent horizontal scroll from any wider children on phones */
.skills-wrapper,
.projects-grid,
.contact-grid,
.about-grid,
.hero-grid,
.dept-grid,
.cert-grid,
.university-banner {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .nav-container {
    height: 4rem;
  }
  .hero-card-name {
    font-size: 1.05rem !important;
  }
  .modal-content-card {
    max-height: 85vh;
    overflow-y: auto;
  }
}

/* ==========================================================================
   DYNAMIC THEME ANIMATIONS & ENTRANCE EFFECTS
   ========================================================================== */

/* Theme Smooth Transition */
body, section, .navbar, .card, .btn, .hero-badge, .modal-content-card, .dept-card, .project-card, .cert-card {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Ambient Glowing Orbs in Hero */
.hero-ambient-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.glow-top-left {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, rgba(2, 132, 199, 0.1) 70%, transparent 100%);
}

.glow-bottom-right {
  bottom: -100px;
  right: -50px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, rgba(15, 23, 42, 0.05) 70%, transparent 100%);
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, 30px) scale(1.1);
  }
  100% {
    transform: translate(-30px, -20px) scale(0.95);
  }
}

/* Hero Entrance Animations */
.hero-content > * {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.25s; }
.hero-role { animation-delay: 0.35s; }
.hero-faculty { animation-delay: 0.45s; }
.hero-tagline { animation-delay: 0.55s; }
.hero-cta-group { animation-delay: 0.65s; }

.hero-visual {
  opacity: 0;
  animation: zoomInScale 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-avatar-card {
  animation: subtleFloat 6s ease-in-out infinite alternate 1.4s;
}

.hero-avatar-wrapper {
  position: relative;
}

.hero-avatar-wrapper::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--medical-blue), transparent, var(--medical-blue-hover));
  z-index: -1;
  opacity: 0.6;
  filter: blur(8px);
  animation: pulseGlowRing 4s ease-in-out infinite alternate;
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomInScale {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes subtleFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

@keyframes pulseGlowRing {
  0% {
    opacity: 0.3;
    transform: scale(0.98);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.03);
  }
}

/* Scroll Reveal Elements */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays for Grid Items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Interactive Hover Lift & Glow on Cards */
.dept-card, .project-card, .cert-card, .timeline-content, .info-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.dept-card:hover, .project-card:hover, .cert-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 25px var(--medical-blue-glow);
  border-color: var(--medical-blue);
}

/* Animated Skill Bar Filling */
.skill-progress-bar {
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Quick Links & Social Profiles Styling - Premium 3D Glass Look */
.quick-links-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quick-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.quick-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: background 0.3s ease;
}

.quick-link-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: var(--medical-blue);
  box-shadow: 0 12px 30px var(--medical-blue-glow), 0 2px 8px rgba(0,0,0,0.06);
}

.quick-link-card:hover::before {
  background: var(--medical-blue);
}

.quick-link-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.quick-link-icon-box {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  font-weight: bold;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.quick-link-card:hover .quick-link-icon-box {
  transform: scale(1.1) rotate(-3deg);
}

.quick-link-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.15rem;
}

.quick-link-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quick-link-arrow {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.quick-link-card:hover .quick-link-arrow {
  background: var(--medical-blue);
  color: #FFFFFF;
  border-color: var(--medical-blue);
  transform: translateX(4px);
}

/* 3D Rotating Tooth Interactive Model Section */
.tooth-3d-interactive-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2.25rem auto 1.5rem auto;
  position: relative;
  z-index: 2;
}

.tooth-3d-scene {
  position: relative;
  width: 260px;
  height: 260px;
  perspective: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooth-3d-model-wrapper {
  width: 180px;
  height: 220px;
  transform-style: preserve-3d;
  animation: rotate3DTooth 8s linear infinite;
  transform-origin: center center;
  cursor: grab;
  will-change: transform;
}

.tooth-3d-model-wrapper:hover {
  animation-play-state: paused;
}

.tooth-3d-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 28px rgba(2, 132, 199, 0.4));
}

.tooth-3d-shadow {
  position: absolute;
  bottom: 5px;
  width: 130px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(2, 132, 199, 0.4) 0%, transparent 70%);
  animation: shadowPulse 8s ease-in-out infinite;
  pointer-events: none;
}

/* 3D Continuous 360-Degree Rotation Keyframes */
@keyframes rotate3DTooth {
  0% {
    transform: rotateY(0deg) translateY(0px) rotateX(3deg);
  }
  25% {
    transform: rotateY(90deg) translateY(-8px) rotateX(0deg) scale(0.96);
  }
  50% {
    transform: rotateY(180deg) translateY(0px) rotateX(-3deg) scale(0.93);
  }
  75% {
    transform: rotateY(270deg) translateY(-8px) rotateX(0deg) scale(0.96);
  }
  100% {
    transform: rotateY(360deg) translateY(0px) rotateX(3deg);
  }
}

@keyframes shadowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.35;
  }
}

.tooth-3d-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--medical-blue);
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
}






