/* ============================================
   DR. AUDAI ALTAIE — PORTFOLIO WEBSITE
   Claymorphism (Light) / Midnight (Dark) Theme
   Typography: EB Garamond
   Colors: #ffffff 60%, #000000 10%, #42f5e9 15%, #f1f44e 15%
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --primary: #00a896;
  --primary-rgb: 0, 168, 150;
  --accent: #b8860b;
  --accent-rgb: 184, 134, 11;
  --white: #ffffff;
  --black: #000000;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --bg-main: #f0ede6;
  --bg-card: #ffffff;
  --bg-card-alt: #faf8f4;
  --shadow-clay-1: 8px 8px 16px rgba(0,0,0,0.08);
  --shadow-clay-2: -8px -8px 16px rgba(255,255,255,0.9);
  --shadow-clay-inset-1: inset 4px 4px 8px rgba(0,0,0,0.05);
  --shadow-clay-inset-2: inset -4px -4px 8px rgba(255,255,255,0.8);
  --border-color: rgba(0,0,0,0.06);
  --nav-bg: rgba(240,237,230,0.92);
  --hero-overlay: rgba(240,237,230,0.6);
  --section-bg-alt: #e8e4dc;
  --footer-bg: #1a1a2e;
  --footer-text: #cccccc;
  --card-radius: 20px;
  --btn-radius: 12px;
  --transition-speed: 0.35s;
  --font-main: 'EB Garamond', Georgia, serif;
  --glow-color: rgba(66, 245, 233, 0.5);
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --text-primary: #e8e8f0;
  --text-secondary: #a0a0c0;
  --primary: #42f5e9;
  --primary-rgb: 66, 245, 233;
  --accent: #f1f44e;
  --accent-rgb: 241, 244, 78;
  --bg-main: #0a0a1a;
  --bg-card: #12122a;
  --bg-card-alt: #16163a;
  --shadow-clay-1: 8px 8px 20px rgba(0,0,0,0.5);
  --shadow-clay-2: -8px -8px 20px rgba(30,30,60,0.3);
  --shadow-clay-inset-1: inset 4px 4px 8px rgba(0,0,0,0.3);
  --shadow-clay-inset-2: inset -4px -4px 8px rgba(30,30,60,0.2);
  --border-color: rgba(66,245,233,0.1);
  --nav-bg: rgba(10,10,26,0.95);
  --hero-overlay: rgba(10,10,26,0.7);
  --section-bg-alt: #0e0e20;
  --footer-bg: #05050f;
  --footer-text: #888;
  --glow-color: rgba(66, 245, 233, 0.4);
}

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

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

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition-speed), color var(--transition-speed);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { font-size: 1.05rem; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.section-title p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section ── */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--section-bg-alt);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-speed), box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  position: relative;
  transition: color 0.3s, background 0.3s;
}
/* Active Indicator — Nav Hover Effect */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
  width: 30px; height: 30px;
  border: none;
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: var(--shadow-clay-1), var(--shadow-clay-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-left: 12px;
  color: var(--text-primary);
}
.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 968px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links a {
    padding: 12px 20px;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
  }
}

/* ============================================
   CLAY CARD (Claymorphism)
   ============================================ */
.clay-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--shadow-clay-1), var(--shadow-clay-2);
  border: 1px solid var(--border-color);
  transition: box-shadow var(--transition-speed), transform var(--transition-speed), border-color var(--transition-speed);
  position: relative;
  overflow: hidden;
}
/* Glow Borders — Card Hover Effect */
.clay-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb), 0.6);
  box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.25), var(--shadow-clay-2);
}

/* ============================================
   BUTTONS — Ripple Effect
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #36d4c9);
  color: var(--black);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.45);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: rgba(var(--primary-rgb), 0.1);
  transform: translateY(-2px);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #e0e340);
  color: var(--black);
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.45);
}
.btn-youtube {
  background: linear-gradient(135deg, #FF0000, #cc0000);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}
.btn-youtube:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.45);
  filter: brightness(1.1);
}

/* Ripple animation */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.hero-bg-shapes .shape-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -100px; right: -100px;
}
.hero-bg-shapes .shape-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -50px; left: -100px;
}
.hero-bg-shapes .shape-3 {
  width: 300px; height: 300px;
  background: var(--primary);
  bottom: 20%; right: 30%;
  opacity: 0.12;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding-top: 60px;
}
.hero-text {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-greeting {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}
[data-theme="dark"] .hero-greeting {
  background: rgba(var(--primary-rgb), 0.08);
}
.hero-name {
  margin-bottom: 12px;
}
.hero-name span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat {
  text-align: center;
}
.hero-stat .stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Image */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-image-frame {
  width: 380px; height: 380px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
  z-index: 0;
  animation: rotate-gradient 4s linear infinite;
}
@keyframes rotate-gradient {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
.hero-image-frame img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  position: relative;
  z-index: 1;
  border: 4px solid var(--bg-main);
}
/* Floating badges */
.hero-badge {
  position: absolute;
  background: var(--bg-card);
  box-shadow: var(--shadow-clay-1), var(--shadow-clay-2);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}
.hero-badge:nth-child(1) { top: 15%; right: -40px; animation-delay: 0s; }
.hero-badge:nth-child(2) { bottom: 15%; left: -40px; animation-delay: 1s; }
.hero-badge .badge-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.hero-badge .badge-icon.primary { background: rgba(var(--primary-rgb), 0.15); }
.hero-badge .badge-icon.accent { background: rgba(var(--accent-rgb), 0.15); }
.hero-badge .badge-text { font-size: 0.75rem; font-weight: 600; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-image-wrapper { order: -1; }
  .hero-image-frame { width: 260px; height: 260px; }
  .hero-image-frame img { width: 250px; height: 250px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-badge { display: none; }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}
.about-image-area {
  position: relative;
}
.about-image-area img {
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-clay-1), var(--shadow-clay-2);
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: right;
}
/* Zoom & Scale — Image Hover Effect */
.about-image-area img:hover {
  transform: scale(1.03);
  transition: transform 0.5s;
}
.about-content h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.about-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.about-traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.about-trait {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card-alt);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-trait:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.1);
}
.about-trait .trait-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.about-trait .trait-icon.c1 { background: rgba(var(--primary-rgb), 0.15); }
.about-trait .trait-icon.c2 { background: rgba(var(--accent-rgb), 0.15); }
.about-trait .trait-icon.c3 { background: rgba(66,133,244,0.15); }
.about-trait .trait-icon.c4 { background: rgba(234,67,53,0.15); }

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.mv-card {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-clay-1), var(--shadow-clay-2);
  border: 1px solid var(--border-color);
}
.mv-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--primary);
}
.mv-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-traits { grid-template-columns: 1fr; }
  .mission-vision { grid-template-columns: 1fr; }
}

/* ============================================
   TIMELINE (Career)
   ============================================ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: translateX(-50%);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 60px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::before {
  content: '';
  position: absolute;
  top: 8px;
  width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  border: 3px solid var(--bg-main);
  z-index: 1;
}
.timeline-item:nth-child(odd)::before { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }

.timeline-content {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--shadow-clay-1), var(--shadow-clay-2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.12);
}
.timeline-year {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--black);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.timeline-content h4 {
  margin-bottom: 4px;
}
.timeline-content .company {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; padding-left: 50px; padding-right: 0; text-align: left !important; }
  .timeline-item::before { left: 12px !important; right: auto !important; }
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.skill-card {
  padding: 28px;
}
.skill-card .skill-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.1));
}
.skill-card h4 {
  margin-bottom: 8px;
}
.skill-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* ============================================
   BOOKS & PUBLICATIONS
   ============================================ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 28px;
}
.book-card {
  overflow: hidden;
  padding: 0;
}
.book-cover {
  height: 260px;
  overflow: hidden;
  position: relative;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}
/* Zoom & Scale — Image Hover */
.book-card:hover .book-cover img {
  transform: scale(1.08);
}
.book-info {
  padding: 24px;
}
.book-info h4 {
  margin-bottom: 8px;
}
.book-info p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 16px;
}
.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.book-tag {
  padding: 4px 12px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================================
   ARTICLES
   ============================================ */
.research-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.research-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.article-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.research-card:hover .article-thumbnail img {
  transform: scale(1.08);
}
.research-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.research-num {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px; height: 36px;
  z-index: 2;
  font-size: 0.9rem;
}
.research-details h4 {
  margin-bottom: 6px;
}
.research-details .journal {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.research-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ============================================
   MEDIA / VIDEOS
   ============================================ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: 24px;
  align-items: start;
}
.media-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 40px 0 20px;
  display: block;
  width: 100%;
}
.video-card {
  padding: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.video-wrapper.portrait {
  aspect-ratio: 9 / 16;
}
.video-wrapper.portrait video {
  object-fit: contain;
}
.video-wrapper iframe,
.video-wrapper video,
.video-wrapper .video-thumbnail {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  object-fit: cover;
}
video:fullscreen {
  object-fit: contain !important;
}
video:-webkit-full-screen {
  object-fit: contain !important;
}
.video-thumbnail {
  cursor: pointer;
  transition: transform 0.5s;
}
.video-card:hover .video-thumbnail {
  transform: scale(1.05);
}
.play-button-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(var(--primary-rgb), 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
  transition: transform 0.3s, background 0.3s;
}
.video-thumbnail:hover + .play-button-overlay,
.video-card:hover .play-button-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary);
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.6);
}
.video-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.video-info h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}
.video-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: auto;
}

/* ============================================
   AWARDS
   ============================================ */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}
.award-card {
  text-align: center;
  padding: 32px 24px;
}
.award-icon {
  width: 70px; height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--primary-rgb), 0.1));
}
.award-card h4 {
  margin-bottom: 6px;
}
.award-card .issuer {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.award-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   SPEAKING / PRESS
   ============================================ */
.speaking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}
.speaking-card {
  overflow: hidden;
  padding: 0;
}
.speaking-image {
  height: 200px;
  overflow: hidden;
}
.speaking-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.speaking-card:hover .speaking-image img {
  transform: scale(1.06);
}
.speaking-info {
  padding: 24px;
}
.speaking-info h4 { margin-bottom: 6px; }
.speaking-info .event-name { color: var(--primary); font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.speaking-info p { color: var(--text-secondary); font-size: 0.9rem; }

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.press-card {
  display: flex;
  align-items: center;
  gap: 20px;
}
.press-logo {
  width: 80px; height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: 10px;
}
.press-info h4 { font-size: 1rem; margin-bottom: 4px; }
.press-info p { color: var(--text-secondary); font-size: 0.85rem; }

/* ============================================
   RESEARCH PAPERS
   ============================================ */
.insights-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--black);
  border-color: transparent;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.insight-card {
  overflow: hidden;
  padding: 0;
}
.insight-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.insight-image img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  transition: transform 0.5s;
}
.insight-card:hover .insight-image img {
  transform: scale(1.06);
}
.insight-category {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 14px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.insight-body {
  padding: 24px;
}
.insight-body h4 { margin-bottom: 8px; }
.insight-body p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 14px; }
.insight-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.insight-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.btn-read-only {
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-read-only:hover {
  background: rgba(var(--primary-rgb), 0.1);
  transform: translateY(-2px);
}
.btn-download-pdf {
  background: var(--primary);
  color: var(--black) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-download-pdf:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.read-more:hover { gap: 12px; }

/* ============================================
   BLOG
   ============================================ */
.blog-featured {
  margin-bottom: 50px;
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  padding: 0;
}
.blog-featured-image {
  height: 300px;
  /* min-height: 350px; */
  overflow: hidden;
}
.blog-featured-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: top;
  transition: transform 0.5s;
}
.blog-featured-card:hover .blog-featured-image img {
  transform: scale(1.05);
}
.blog-featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-content .blog-category {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  width: fit-content;
}
.blog-featured-content h3 { margin-bottom: 12px; }
.blog-featured-content p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; }
.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.blog-meta span { display: flex; align-items: center; gap: 4px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.blog-grid > a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.blog-card {
  overflow: hidden;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card-image {
  height: 250px;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* object-position: top; */
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-image img { transform: scale(1.06); }
.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-body > div:last-child {
  margin-top: auto;
}
.blog-card-body .blog-category {
  display: inline-block;
  padding: 3px 12px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.blog-card-body h4 { margin-bottom: 8px; }
.blog-card-body p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 14px; }
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.blog-author-name { font-size: 0.85rem; font-weight: 600; }
.blog-share-btns {
  display: flex;
  gap: 6px;
}
.blog-share-btns a {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  font-size: 0.85rem;
  transition: background 0.3s, transform 0.3s;
}
.blog-share-btns a:hover {
  background: var(--primary);
  color: var(--black);
  transform: scale(1.1);
}

.blog-sidebar {
  margin-top: 50px;
}
.blog-subscribe {
  text-align: center;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}
.blog-subscribe h3 { margin-bottom: 8px; }
.blog-subscribe p { color: var(--text-secondary); margin-bottom: 20px; }
.subscribe-form {
  display: flex;
  gap: 12px;
}
.subscribe-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--btn-radius);
  background: var(--bg-card-alt);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.subscribe-form input:focus {
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-image { min-height: 200px; }
  .subscribe-form { flex-direction: column; }
}

/* ============================================
   PHOTO GALLERY
   ============================================ */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  text-align: center;
  padding: 40px 28px;
}
.service-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--accent-rgb), 0.08));
}
.service-card h4 { margin-bottom: 10px; }
.service-card p { color: var(--text-secondary); font-size: 0.93rem; margin-bottom: 20px; }

/* ============================================
   TESTIMONIALS — KNOW ME FROM OTHERS
   ============================================ */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  padding: 0 60px;
}
.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 30px;
}
.testimonial-card {
  width: calc(50% - 15px);
  flex: 0 0 calc(50% - 15px);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: 4px solid var(--primary);
  height: auto;
}
.testimonial-quote {
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 16px;
  line-height: 1;
}
.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}
.testimonial-author h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}
.testimonial-author span {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* Navigation Arrows */
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: var(--shadow-clay-1);
}
.testimonial-nav:hover {
  background: var(--primary);
  color: var(--black);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}
.testimonial-prev { left: 0; }
.testimonial-next { right: 0; }

/* Dot Indicators */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.testimonial-dot.active {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}

@media (max-width: 768px) {
  .testimonials-slider {
    padding: 0 50px;
  }
  .testimonial-card {
    min-width: 100%;
    padding: 28px;
  }
  .testimonial-nav {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.contact-info-card .ci-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.1));
  flex-shrink: 0;
}
.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-card p { color: var(--text-secondary); font-size: 0.9rem; }

.contact-form-wrapper {
  padding: 36px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--btn-radius);
  background: var(--bg-card-alt);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-social {
  display: flex;
  gap: 16px;
  margin-top: 5px;
}
.contact-social a {
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow-clay-1), var(--shadow-clay-2);
  color: var(--text-primary);
  font-size: 1.35rem;
  transition: transform 0.3s, color 0.3s, box-shadow 0.3s;
}
.contact-social a:hover {
  transform: translateY(-5px) scale(1.05);
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   QUALIFICATIONS
   ============================================ */
.qual-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.qual-tab {
  padding: 10px 24px;
  border: 2px solid var(--border-color);
  border-radius: 30px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.qual-tab.active,
.qual-tab:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--black);
  border-color: transparent;
}
.qual-content {
  display: none;
}
.qual-content.active {
  display: block;
}
.qual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.qual-card {
  display: flex;
  gap: 16px;
  align-items: start;
}
.qual-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.1));
}
.qual-details h4 { margin-bottom: 4px; }
.qual-details .qual-place { color: var(--primary); font-size: 0.9rem; font-weight: 600; }
.qual-details .qual-year { color: var(--text-secondary); font-size: 0.85rem; }
.qual-details p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo {
  font-size: 1.6rem;
  margin-bottom: 14px;
  display: inline-block;
}
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--footer-text);
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--footer-text);
  font-size: 1.25rem;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.footer-social a:hover {
  background: var(--primary);
  color: var(--black);
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 8px 15px rgba(var(--primary-rgb), 0.4);
}
.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: var(--footer-text);
  font-size: 0.93rem;
  transition: color 0.3s, padding-left 0.3s;
}
.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: var(--primary);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* On mobile, disable the reveal animation entirely —
   JS IntersectionObserver can fail on tall containers */
@media (max-width: 968px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--black);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  transform: translateY(-3px);
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-spinner {
  width: 50px; height: 50px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   MISC UTILITIES
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.toast-notification {
  position: fixed;
  bottom: 50px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 28px;
  background: rgba(var(--bg-card-rgb, 20, 20, 23), 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.toast-icon {
  width: 24px; height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Responsive images inside cards */
.img-zoom-wrap {
  overflow: hidden;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}
.img-zoom-wrap img {
  transition: transform 0.5s;
}
.img-zoom-wrap:hover img {
  transform: scale(1.08);
}
/* ============================================
   SECTION FEATURED IMAGES — HEADER ROW LAYOUT
   Heading + description LEFT, image RIGHT
   ============================================ */

/* The header row: heading on left, portrait on right */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  width: 100%;
}
.section-header-text {
  flex: 1;
  text-align: left;
}
.section-header-text .section-title {
  text-align: left;
  margin-bottom: 20px;
}
.section-header-text .section-title h2 {
  text-align: left;
}
.section-header-text .section-intro {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 0;
}

/* Image container sitting to the right of the heading */
.section-image-container {
  flex: 0 0 370px;
  max-width: 380px;
  position: relative;
  z-index: 1;
}
.featured-portrait {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-clay-1), var(--shadow-clay-2);
  border: 1px solid var(--border-color);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.featured-portrait:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.25);
}
.section-image-container::after {
  content: '';
  position: absolute;
  top: 15px; right: -15px;
  width: 100%; height: 100%;
  border: 2px solid var(--primary);
  border-radius: var(--card-radius);
  z-index: -1;
  opacity: 0.3;
  transition: transform 0.5s ease;
}
.section-image-container:hover::after {
  transform: translate(10px, -10px);
}

/* Remove old centered layout — content area is now full-width below header */
.section-content-area {
  width: 100%;
}

@media (max-width: 1100px) {
  .section-header-row {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .section-header-text {
    text-align: center;
  }
  .section-header-text .section-title,
  .section-header-text .section-title h2 {
    text-align: center;
  }
  .section-image-container {
    flex: 0 0 auto;
    max-width: 280px;
    margin-left: 0;
    margin: 0 auto;
  }
  .featured-portrait {
    height: 320px;
  }
}

@media (max-width: 768px) {
  /* Hide decorative section images on mobile to prevent overflow */
  .section-image-container {
    display: none;
  }
  .section-header-row {
    flex-direction: column;
    gap: 20px;
  }
  .section-header-text {
    width: 100%;
    text-align: center;
  }
  .section-header-text .section-title h2 {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }
  .container {
    padding: 0 16px;
  }
  .section-image-container {
    max-width: 220px;
  }
  .featured-portrait {
    height: 260px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .research-list {
    grid-template-columns: 1fr;
  }
  .awards-grid {
    grid-template-columns: 1fr;
  }
  .books-grid {
    grid-template-columns: 1fr;
  }
  .videos-grid {
    grid-template-columns: 1fr;
  }
}

/* --- View More Toggle --- */
.toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}
.toggle-content {
  display: grid;
  width: 100%;
}
.hidden-items {
  display: none !important;
}
.toggle-btn-wrapper {
  margin-top: 20px;
  text-align: center;
  width: 100%;
}

