/* ==========================================================================
   ESMD - Eskişehir Serbest Mimarlar Derneği 
   Design System & Master Stylesheet
   Architectural Modernism, Glassmorphism, & Sleek Typography
   ========================================================================== */

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

:root {
  /* Color Palette - Light Architectural Theme */
  --clr-bg-dark: #e2e8f0;
  --clr-bg-surface: #ffffff;
  --clr-bg-card: #ffffff;
  --clr-bg-glass: rgba(255, 255, 255, 0.92);
  
  --clr-brand-red: #d32f2f;
  --clr-brand-red-hover: #b71c1c;
  --clr-brand-navy: #1e293b;
  --clr-brand-accent: #d97706;
  --clr-brand-bronze: #b45309;
  
  --clr-text-primary: #0f172a;
  --clr-text-secondary: #334155;
  --clr-text-muted: #64748b;

  --clr-border: #e2e8f0;
  --clr-border-glow: rgba(211, 47, 47, 0.35);

  --clr-success: #059669;
  --clr-danger: #dc2626;
  --clr-warning: #d97706;
  
  /* Fonts */
  --ff-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Shadows & Glass */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --backdrop-blur: blur(16px);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}



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

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

/* Scroll-Driven Chapter Page Transitions */
section {
  position: relative;
  opacity: 1 !important;
}

section.section-reveal {
  opacity: 1 !important;
}

section.section-reveal.section-in-view {
  opacity: 1 !important;
}

/* Architectural Chapter Divider Lines */
.chapter-divider {
  width: 90%;
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(229, 57, 53, 0.35) 30%, rgba(212, 175, 55, 0.6) 50%, rgba(229, 57, 53, 0.35) 70%, transparent 100%);
  margin: 0.5rem auto;
  position: relative;
}

.chapter-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  background: var(--clr-brand-red);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--clr-brand-red), 0 0 20px var(--clr-brand-bronze);
}

/* Floating Side Chapter Section Tracker */
.floating-section-tracker {
  position: fixed;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 0.8rem 0.6rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  z-index: 100;
  transition: opacity 0.3s ease;
}

.tracker-dot {
  position: relative;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dot-indicator {
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.25);
  border-radius: 50%;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tracker-dot:hover .dot-indicator,
.tracker-dot.active .dot-indicator {
  width: 12px;
  height: 12px;
  background: var(--clr-brand-red);
  box-shadow: 0 0 14px var(--clr-brand-red), 0 0 22px var(--clr-brand-bronze);
}

.tracker-tooltip {
  position: absolute;
  right: 2rem;
  background: #ffffff;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.1);
}

.tracker-dot:hover .tracker-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 992px) {
  .floating-section-tracker {
    display: none;
  }
}

body {
  font-family: var(--ff-body);
  background-color: var(--clr-bg-dark);
  color: var(--clr-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-brand-red);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--clr-text-primary);
}

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

button {
  font-family: var(--ff-body);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* Utility Layout Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

.text-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, var(--clr-brand-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(211, 47, 47, 0.08);
  color: var(--clr-brand-red);
  border: 1px solid rgba(211, 47, 47, 0.25);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

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

/* Logo Representation */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--ff-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--clr-brand-navy) 0%, #0f172a 100%);
  border: 2px solid var(--clr-brand-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(229, 57, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: rotate(45deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  20%, 100% { transform: translateX(100%) rotate(45deg); }
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-text-title {
  font-size: 0.85rem;
  color: var(--clr-text-secondary);
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.1;
}

.logo-text-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.logo-text-brand span {
  color: var(--clr-brand-red);
}

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

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

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-brand-red);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--clr-brand-red) 0%, #b71c1c 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 57, 53, 0.6);
  background: linear-gradient(135deg, #ef5350 0%, var(--clr-brand-red) 100%);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--clr-text-primary);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--clr-text-primary);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--clr-text-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  padding-top: 9rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(211, 47, 47, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(30, 41, 59, 0.04) 0%, transparent 50%),
              #f8fafc;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-content h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  margin: 1.2rem 0;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--clr-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

/* Hero Activity Photo Slideshow Component */
.hero-slider-container {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 3.5rem auto 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--clr-border);
  background: #0f172a;
  height: 420px;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.04);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.hero-slide-content {
  position: absolute;
  bottom: 2rem;
  left: 2.5rem;
  right: 2.5rem;
  color: #ffffff;
  z-index: 5;
  text-align: left;
}

.hero-slide-badge {
  display: inline-block;
  background: var(--clr-brand-red);
  color: #ffffff;
  padding: 0.25rem 0.8rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.4);
}

.hero-slide-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.hero-slide-desc {
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.9) !important;
  max-width: 750px;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.hero-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: underline;
  transition: var(--transition);
}

.hero-slide-link:hover {
  color: var(--clr-brand-red);
  transform: translateX(4px);
}

/* Slider Controls */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.slider-nav-btn:hover {
  background: #ffffff;
  color: var(--clr-brand-red);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev {
  left: 1.2rem;
}

.slider-nav-btn.next {
  right: 1.2rem;
}

.slider-dots {
  position: absolute;
  bottom: 1.2rem;
  right: 2.2rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 28px;
  border-radius: 6px;
  background: var(--clr-brand-red);
}

@media (max-width: 768px) {
  .hero-slider-container {
    height: 340px;
    margin-top: 2rem;
  }
  .hero-slide-content {
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
  }
  .hero-slide-title {
    font-size: 1.2rem;
  }
  .hero-slide-desc {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .slider-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

.stat-item h3 {
  font-size: 2.2rem;
  color: var(--clr-brand-red);
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  margin-bottom: 0;
}

/* Grand Full-Width Architectural Showcase Layout */
.hero-full-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.hero-header-text {
  max-width: 850px;
  margin: 0 auto;
}

.hero-header-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 1.2rem 0;
  letter-spacing: -1px;
}

.hero-header-text p {
  font-size: 1.15rem;
  color: var(--clr-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-art-container.grand-showcase {
  width: 96vw;
  max-width: 1450px;
  margin: 1.5rem auto 0 auto;
}

.hero-art-canvas.grand-canvas {
  aspect-ratio: 16 / 7.5;
  min-height: 520px;
  max-height: 680px;
  border-radius: var(--radius-xl);
}

.grand-logo-badge {
  top: 50% !important;
}

/* Integrated Landmark Watermark Typography Overlay */
.landmark-text {
  position: absolute;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--ff-heading);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 8;
  transition: all 0.4s ease;
}

.landmark-line {
  width: 35px;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-brand-red), var(--clr-brand-bronze));
  margin-top: 0.35rem;
  border-radius: 2px;
  transition: width 0.4s ease, background 0.4s ease;
}

.hero-art-container:hover .landmark-text {
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.95);
  transform: translateY(-2px);
}

.hero-art-container:hover .landmark-line {
  width: 65px;
  background: linear-gradient(90deg, #ffd700, var(--clr-brand-red));
}

.text-odunpazari {
  top: 2rem;
  left: 2.5rem;
}

.text-kursunlu {
  top: 2rem;
  left: 24%;
}

.text-porsuk {
  bottom: 2.2rem;
  left: 54%;
}

.text-saatkulesi {
  top: 2rem;
  right: 2.5rem;
}

@media (max-width: 992px) {
  .hero-art-canvas.grand-canvas {
    aspect-ratio: 16 / 9;
    min-height: 380px;
  }
  .text-kursunlu, .text-saatkulesi {
    display: none;
  }
}

/* Photo Collage Architectural Showcase */
.collage-canvas {
  position: relative;
  overflow: hidden;
  background: var(--clr-bg-dark);
}

.collage-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Base Monochromatic / Grayscale Image Layer */
.collage-bg-img.bw-img {
  filter: grayscale(100%) brightness(0.85) contrast(1.15);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  z-index: 1;
}

/* Persistent Paint-to-Reveal Color Canvas Layer */
.color-paint-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
  filter: saturate(1.15) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When Hovering Over the Collage Canvas, Expand Base Image & Canvas */
.hero-art-container:hover .collage-bg-img.bw-img,
.hero-art-container:hover .color-paint-canvas {
  transform: scale(1.03);
}

.collage-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(15, 17, 23, 0.15) 0%, rgba(15, 17, 23, 0.6) 100%),
              linear-gradient(180deg, rgba(15, 17, 23, 0.2) 0%, rgba(15, 17, 23, 0.5) 100%);
  pointer-events: none;
  z-index: 3;
}

.grid-only-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Enhanced Central Logo Badge with Spring Growth Scale */
.collage-logo-badge {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(1) !important;
  background: rgba(15, 17, 23, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  border: 2px solid var(--clr-brand-red) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 57, 53, 0.4) !important;
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease !important;
  cursor: pointer;
}

.collage-logo-badge:hover {
  transform: translate(-50%, -50%) scale(1.22) !important;
  border-color: var(--clr-brand-bronze) !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 55px rgba(212, 175, 55, 0.6), 0 0 35px rgba(229, 57, 53, 0.7) !important;
}

.collage-logo-badge:hover .hero-logo-img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.9));
}

@media (max-width: 992px) {
  .hero-header-text h1 {
    font-size: 2.5rem;
  }
  .hero-art-canvas.grand-canvas {
    aspect-ratio: 16 / 9;
    max-height: 380px;
  }
}

/* Abstract Architectural Eskişehir Art & Logo Showcase */
.hero-art-container {
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-art-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-height: 440px;
  background: rgba(22, 25, 34, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(229, 57, 53, 0.05);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.hero-art-container:hover .hero-art-canvas {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(229, 57, 53, 0.2);
  border-color: rgba(229, 57, 53, 0.4);
}

.eskisehir-line-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* SVG Line Drawing & Pulse Animations */
.draw-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLineAnim 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wave-path {
  animation: drawLineAnim 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.bridge-path {
  animation: drawLineAnim 2.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes drawLineAnim {
  to {
    stroke-dashoffset: 0;
  }
}

.pulse-aura {
  animation: auraPulse 3.5s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes auraPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(229, 57, 53, 0.8));
  }
}

/* Central ESMD Logo Badge Overlay */
.hero-logo-badge {
  position: absolute;
  left: 50%;
  top: 41%;
  transform: translate(-50%, -50%);
  background: rgba(15, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border: 2px solid var(--clr-brand-red);
  padding: 1.2rem 1.8rem;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(229, 57, 53, 0.3);
  text-align: center;
  z-index: 10;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-art-container:hover .hero-logo-badge {
  transform: translate(-50%, -55%) scale(1.05);
  border-color: var(--clr-brand-bronze);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.4);
}

.hero-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.logo-subtitle-tag {
  font-family: var(--ff-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--clr-text-secondary);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* Floating Badges */
.hero-float-tag {
  position: absolute;
  background: rgba(22, 25, 34, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--clr-border);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  z-index: 12;
  transition: var(--transition);
}

.hero-float-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-brand-red);
  box-shadow: 0 0 8px var(--clr-brand-red);
}

.hero-float-tag .dot.gold {
  background: var(--clr-brand-bronze);
  box-shadow: 0 0 8px var(--clr-brand-bronze);
}

.tag-top-left {
  top: 1.2rem;
  left: 1.2rem;
}

.tag-bottom-right {
  bottom: 1.2rem;
  right: 1.2rem;
}

/* Hero Announcement Footer */
.hero-announcement-mini {
  background: rgba(22, 25, 34, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-brand-red);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-md);
}


/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin: 0.8rem 0;
}

.section-header p {
  color: var(--clr-text-secondary);
  font-size: 1.1rem;
}

/* About & Principles Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-card {
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.about-card p {
  color: var(--clr-text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.principle-item {
  display: flex;
  gap: 1.2rem;
  background: var(--clr-bg-card);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
}

.principle-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(229, 57, 53, 0.15);
  color: var(--clr-brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Board Members Section */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.board-card {
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.board-card:hover {
  transform: translateY(-5px);
  border-color: var(--clr-border-glow);
  box-shadow: var(--shadow-md);
}

.avatar-wrapper {
  width: 135px;
  height: 135px;
  min-width: 135px;
  min-height: 135px;
  margin: 0 auto 1.2rem auto;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--clr-brand-red), var(--clr-brand-navy));
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  background: #2a2f3d;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--clr-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--clr-brand-red);
  font-weight: 700;
}

.board-role {
  color: var(--clr-brand-red);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.board-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

/* Members Directory Grid */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--clr-bg-surface);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--clr-bg-card);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  flex: 1;
  min-width: 260px;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  width: 100%;
  font-size: 0.95rem;
}

.filter-tags {
  display: flex;
  gap: 0.6rem;
}

.tag-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--clr-bg-card);
  color: var(--clr-text-secondary);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}

.tag-btn.active, .tag-btn:hover {
  background: var(--clr-brand-red);
  color: #fff;
  border-color: var(--clr-brand-red);
}

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

.member-card {
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 57, 53, 0.4);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 57, 53, 0.2);
}

.member-avatar {
  width: 75px;
  height: 75px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--clr-bg-card);
}

.member-info h4 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.member-title {
  color: var(--clr-brand-red);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.6rem;

}

.member-office {
  font-size: 0.88rem;
  color: var(--clr-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Activities Section */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.activity-card {
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.activity-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.activity-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--clr-bg-card);
}

.activity-body {
  padding: 1.8rem;
}

.activity-date {
  font-size: 0.8rem;
  color: var(--clr-brand-red);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.activity-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.activity-body p {
  font-size: 0.92rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-box {
  background: var(--clr-bg-surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
}

.contact-detail {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(229, 57, 53, 0.12);
  color: var(--clr-brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--clr-text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--clr-brand-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}

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

/* Member Portal Modal & System */
.portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: var(--backdrop-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.portal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.portal-container {
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.portal-header {
  padding: 1.2rem 2rem;
  background: var(--clr-bg-card);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-close-btn {
  font-size: 1.5rem;
  color: var(--clr-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.portal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Login View inside Portal */
.portal-login-view {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--clr-bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  text-align: center;
}

.demo-account-notice {
  margin-top: 1.5rem;
  padding: 0.8rem;
  background: rgba(229, 57, 53, 0.1);
  border: 1px dashed rgba(229, 57, 53, 0.4);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--clr-text-secondary);
}

/* Portal Dashboard View */
.portal-dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: calc(90vh - 65px);
  overflow: hidden;
}

.portal-sidebar {
  background: var(--clr-bg-card);
  border-right: 1px solid var(--clr-border);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portal-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--clr-text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
  text-align: left;
}

.portal-nav-btn:hover, .portal-nav-btn.active {
  background: rgba(229, 57, 53, 0.15);
  color: var(--clr-brand-red);
}

.portal-content-area {
  padding: 2rem;
  overflow-y: auto;
  background: var(--clr-bg-dark);
}

/* Portal Tab: Forum */
.forum-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}

.forum-post-card {
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.forum-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--clr-brand-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.forum-post-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.forum-post-desc {
  font-size: 0.92rem;
  color: var(--clr-text-secondary);
  margin-bottom: 1rem;
}

.forum-footer-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  border-top: 1px solid var(--clr-border);
  padding-top: 0.8rem;
}

/* Portal Tab: Whitelist & Blacklist */
.list-filter-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sector-card {
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sector-card.whitelist {
  border-left: 4px solid var(--clr-success);
}

.sector-card.blacklist {
  border-left: 4px solid var(--clr-danger);
}

.sector-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sector-tag.white {
  background: rgba(16, 185, 129, 0.15);
  color: var(--clr-success);
}

.sector-tag.black {
  background: rgba(239, 68, 68, 0.15);
  color: var(--clr-danger);
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--clr-brand-accent);
}

/* Member Bio Modal (Clean Initial Layout) */
.bio-modal-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.bio-modal-avatar {
  width: 115px !important;
  height: 115px !important;
  min-width: 115px !important;
  min-height: 115px !important;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  border: 3px solid var(--clr-brand-red);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  margin: 0 auto;
  display: block;
}

@media (max-width: 600px) {
  .bio-modal-body {
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center;
    gap: 1rem !important;
  }
  .bio-modal-avatar {
    width: 130px !important;
    height: 130px !important;
    min-width: 130px !important;
    min-height: 130px !important;
  }
}

/* Footer */
.footer {
  background: #090b0f;
  border-top: 1px solid var(--clr-border);
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
}

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

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: #fff;
}

.footer-col p {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: var(--clr-text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--clr-brand-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-grid, .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .portal-dashboard {
    grid-template-columns: 1fr;
  }
  .portal-sidebar {
    flex-direction: row;
    overflow-x: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .bio-modal-body {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Nav Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--clr-text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-only-btn {
  display: none;
}

@media (max-width: 868px) {
  .mobile-only-btn {
    display: block;
  }

  .nav-actions {
    display: none !important;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--clr-bg-surface);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--clr-border);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    transform: translateY(0);
  }
}

/* Avatar Image & Card Styling (Perfect Circles) */
.member-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  transition: var(--transition);
}

.avatar-wrapper {
  position: relative;
  width: 115px;
  height: 115px;
  min-width: 115px;
  min-height: 115px;
  margin: 0 auto 1.2rem auto;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--clr-brand-red), var(--clr-brand-navy));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
}

img[src*="erturk_tasdemir"] {
  object-position: center 30% !important;
}

img[src*="huseyin_kirbas"] {
  object-position: center 22% !important;
}

img[src*="guner_gultekin"] {
  object-position: 45% 42% !important;
}

img[src*="behsat_koc"] {
  object-position: center 22% !important;
}

img[src*="burak_aydin"] {
  object-position: center 35% !important;
}

img[src*="sibel_ozdemir_ilhan"] {
  object-position: 55% 25% !important;
}

img[src*="durdusen_ozturk"] {
  object-position: center 30% !important;
}

img[src*="mehmet_zahid_bayrak"] {
  object-position: center 25% !important;
}

img[src*="mustafa_ozdemir"] {
  object-position: 52% 35% !important;
}

img[src*="caner_can"] {
  object-position: 42% 35% !important;
}

img[src*="extracted_img_21"], img[src*="uygur_yuksel"] {
  object-position: center 20% !important;
}

.avatar-wrapper-sm {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--clr-bg-card);
  border: 3px solid var(--clr-brand-red);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.avatar-wrapper-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
}

.bio-modal-avatar {
  width: 200px;
  height: 200px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  border: 4px solid var(--clr-brand-red);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
  display: block;
}


/* Modal Form Styles */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-text-primary);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--clr-brand-red);
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.2);
}

/* ==========================================================================
   ESMD INTERACTIVE TIMELINE & ARCHITECTURAL UI ENHANCEMENTS
   ========================================================================== */

.timeline-section {
  position: relative;
  background: var(--clr-bg-dark);
  padding: 6rem 0;
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(229, 57, 53, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 3rem auto 0 auto;
  padding: 2rem 0;
}

/* Timeline Central Axis Line */
.timeline-axis {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  border-radius: 3px;
}

/* Dynamic Fill Line that tracks mouse */
.timeline-axis-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--timeline-progress, 20%);
  background: linear-gradient(180deg, var(--clr-brand-red) 0%, var(--clr-brand-bronze) 100%);
  box-shadow: 0 0 12px var(--clr-brand-red);
  border-radius: 3px;
  transition: height 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mouse Following Glow Dot */
.timeline-cursor-glow {
  position: absolute;
  left: 50%;
  top: var(--timeline-progress, 20%);
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--clr-brand-red);
  box-shadow: 0 0 20px 6px rgba(229, 57, 53, 0.6), 0 0 8px #fff;
  pointer-events: none;
  z-index: 10;
  transition: top 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
}

/* Timeline Milestone Items */
.timeline-item {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  margin-bottom: 3.5rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

/* Node Dot Indicator */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--clr-bg-surface);
  border: 3px solid var(--clr-brand-navy);
  z-index: 5;
  transition: var(--transition);
  box-shadow: 0 0 0 4px var(--clr-bg-dark);
}

.timeline-item.active .timeline-dot,
.timeline-item:hover .timeline-dot {
  background: var(--clr-brand-red);
  border-color: #fff;
  box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.25), 0 0 15px var(--clr-brand-red);
  transform: translateX(-50%) scale(1.3);
}

/* Timeline Card */
.timeline-card {
  width: 88%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin: 0 1.5rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.timeline-item:hover .timeline-card {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--clr-brand-red);
  box-shadow: 0 15px 35px -10px rgba(211, 47, 47, 0.25), 0 0 20px rgba(211, 47, 47, 0.15);
  background: #0f172a;
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--clr-brand-red);
  border-radius: 4px;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #ffffff !important;
}

.timeline-desc {
  font-size: 0.95rem;
  color: #ffffff !important;
  line-height: 1.6;
  opacity: 0.95;
}

/* Responsive Timeline for Mobile */
@media (max-width: 768px) {
  .timeline-axis {
    left: 24px;
  }
  .timeline-cursor-glow {
    left: 24px;
  }
  .timeline-dot {
    left: 24px;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 55px;
    padding-right: 0;
  }
  .timeline-card {
    width: 100%;
    margin: 0;
  }
}

/* Refined UI Glow on Board & Member Cards */
.board-card:hover, .member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 57, 53, 0.2);
  border-color: rgba(229, 57, 53, 0.4);
}

/* Comprehensive Mobile & Tablet Responsive Enhancements */
@media (max-width: 576px) {
  .hero-header-text h1 {
    font-size: 1.85rem;
    line-height: 1.3;
  }
  .hero-header-text p {
    font-size: 0.9rem;
  }
  .portal-container {
    width: 95%;
    max-height: 92vh;
    padding: 1rem;
  }
  .bio-modal-avatar {
    width: 130px;
    height: 130px;
    min-width: 130px;
    min-height: 130px;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-tags {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   MOBILE & TOUCH DEVICE RESPONSSIVENESS AUDIT & UI SCALING
   ========================================================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 0.7rem 1rem;
  }
  
  .brand-logo img {
    height: 34px !important;
  }

  .hero {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
    min-height: auto;
  }

  .hero-header-text h1 {
    font-size: 1.95rem !important;
    line-height: 1.25 !important;
    margin: 0.8rem 0;
  }

  .hero-header-text p {
    font-size: 0.92rem !important;
    line-height: 1.5;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.7rem;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
    margin-top: 1.5rem !important;
  }

  .stat-item h3 {
    font-size: 1.4rem !important;
  }

  .stat-item p {
    font-size: 0.72rem !important;
  }

  .hero-slider-container {
    height: 270px !important;
    margin-top: 1.8rem;
    border-radius: 12px;
  }

  .hero-slide-content {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .hero-slide-title {
    font-size: 1.15rem !important;
    line-height: 1.35;
  }

  .hero-slide-desc {
    font-size: 0.78rem !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slider-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .section-header h2 {
    font-size: 1.65rem !important;
  }

  .about-card {
    padding: 1.25rem !important;
  }

  .board-grid, .member-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1rem !important;
  }

  .avatar-wrapper {
    width: 130px !important;
    height: 130px !important;
    min-width: 130px !important;
    min-height: 130px !important;
  }

  /* Timeline Mobile Alignment */
  .timeline-axis {
    left: 16px !important;
  }

  .timeline-cursor-glow {
    left: 16px !important;
  }

  .timeline-item, .timeline-item:nth-child(even) {
    padding-left: 42px !important;
    padding-right: 0 !important;
    margin-bottom: 1.8rem !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .timeline-dot {
    left: 16px !important;
  }

  .timeline-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 1.2rem !important;
  }

  /* Filter bar mobile adjustment */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .filter-tags {
    flex-wrap: wrap;
    width: 100%;
  }

  .filter-tags .tag-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
  }

  /* Modals & Forms Mobile Optimization */
  .portal-overlay {
    padding: 0.6rem !important;
  }

  .portal-container, 
  #bioModalOverlay > div, 
  #appModalOverlay > div, 
  #docViewerOverlay > div {
    padding: 1.4rem 1rem !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-height: 94vh !important;
  }

  .bio-modal-body {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .bio-modal-avatar {
    width: 160px !important;
    height: 160px !important;
    min-width: 160px !important;
    min-height: 160px !important;
  }

  /* Prevent automatic iOS Safari input zoom */
  .form-control, input, select, textarea {
    font-size: 16px !important;
  }
}

/* Member LinkedIn Badge Button */
.member-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  padding: 0.25rem 0.65rem;
  margin-top: 0.6rem;
  color: #0a66c2 !important;
  border: 1px solid rgba(10, 102, 194, 0.4);
  background: rgba(10, 102, 194, 0.08);
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.member-linkedin-btn:hover {
  background: #0a66c2 !important;
  color: #ffffff !important;
  border-color: #0a66c2 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(10, 102, 194, 0.35);
}

.member-linkedin-btn svg {
  fill: currentColor;
  transition: fill 0.2s ease;
}



