/* ============================================
   IKDF Corporate Design System
   Interkulturelle Denkfabrik e.V.
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --ikdf-cyan: #00BCD4;
  --ikdf-teal: #009688;
  --ikdf-green: #00A651;
  --ikdf-yellow: #FFD700;
  --ikdf-amber: #FFC107;
  --ikdf-pink: #E6007E;
  --ikdf-magenta: #E91E63;
  --ikdf-red: #E30613;
  --ikdf-blue: #1565C0;
  --ikdf-light-blue: #2196F3;
  --ikdf-purple: #9C27B0;
  --ikdf-dark: #1a1a2e;
  --ikdf-darker: #0f0f1a;
  --ikdf-light: #f8f9fa;
  --ikdf-white: #ffffff;
  --ikdf-gray: #6c757d;
  --ikdf-light-gray: #e9ecef;
  
  --gradient-primary: linear-gradient(135deg, var(--ikdf-cyan), var(--ikdf-blue), var(--ikdf-purple));
  --gradient-warm: linear-gradient(135deg, var(--ikdf-yellow), var(--ikdf-pink), var(--ikdf-red));
  --gradient-cool: linear-gradient(135deg, var(--ikdf-teal), var(--ikdf-cyan), var(--ikdf-light-blue));
  --gradient-rainbow: linear-gradient(135deg, var(--ikdf-cyan), var(--ikdf-green), var(--ikdf-yellow), var(--ikdf-pink), var(--ikdf-purple));
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.2);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ikdf-dark);
  background: var(--ikdf-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

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

a:hover {
  color: var(--ikdf-cyan);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   POLYGON BACKGROUND (SVG-based)
   ============================================ */
.polygon-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.polygon-bg svg {
  width: 100%;
  height: 100%;
}

.polygon-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.85);
}

/* ============================================
   NAVIGATION
   ============================================ */
.ikdf-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all var(--transition-normal);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ikdf-nav.scrolled {
  padding: 0.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 50px;
  width: auto;
  transition: height var(--transition-normal);
  border-radius: 6px;
}

.ikdf-nav.scrolled .nav-logo img {
  height: 40px;
}

.nav-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.nav-logo-text small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  -webkit-text-fill-color: var(--ikdf-gray);
}

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

.nav-links a {
  padding: 0.5rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ikdf-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ikdf-cyan);
  background: rgba(0, 188, 212, 0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.nav-cta {
  padding: 0.6rem 1.5rem !important;
  background: var(--gradient-primary) !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
  border-radius: var(--radius-xl) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.4);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--ikdf-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg canvas {
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,26,46,0.7), rgba(0,188,212,0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  color: white;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-xl);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: white;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 .highlight {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-3px);
  color: white;
}

.btn-dark {
  background: var(--ikdf-dark);
  color: white;
}

.btn-dark:hover {
  background: var(--ikdf-darker);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 100px 2rem;
  position: relative;
}

.section-alt {
  background: var(--ikdf-light);
}

.section-dark {
  background: var(--ikdf-dark);
  color: white;
}

.section-gradient {
  background: var(--gradient-primary);
  color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .overline {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ikdf-cyan);
  margin-bottom: 1rem;
}

.section-dark .section-header .overline {
  color: var(--ikdf-yellow);
}

.section-header h2 {
  margin-bottom: 1.5rem;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--ikdf-gray);
  max-width: 700px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 1.5rem auto;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-gradient-top {
  height: 5px;
  background: var(--gradient-primary);
}

.card-body {
  padding: 2rem;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(0,188,212,0.1), rgba(33,150,243,0.1));
  color: var(--ikdf-cyan);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--ikdf-gray);
  font-size: 0.95rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  padding-right: 3rem;
  padding-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  padding-left: 3rem;
}

.timeline-content {
  flex: 1;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ikdf-cyan);
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline-year {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ikdf-cyan);
  margin-bottom: 0.5rem;
}

/* ============================================
   STATS / COUNTERS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ikdf-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-dark .stat-label {
  color: rgba(255,255,255,0.7);
}

/* ============================================
   QUOTE
   ============================================ */
.quote-block {
  position: relative;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(0,188,212,0.05), rgba(156,39,176,0.05));
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--ikdf-cyan);
  margin: 3rem 0;
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  color: var(--ikdf-cyan);
  opacity: 0.2;
  line-height: 1;
}

.quote-block p {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ikdf-dark);
  line-height: 1.6;
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ikdf-cyan);
}

/* ============================================
   SPONSOR / PARTNER LOGOS
   ============================================ */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  align-items: center;
}

.logo-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--ikdf-light-gray);
}

.logo-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--ikdf-cyan);
}

.logo-item span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  color: var(--ikdf-dark);
  line-height: 1.3;
}

/* ============================================
   FOOTER
   ============================================ */
.ikdf-footer {
  background: var(--ikdf-darker);
  color: rgba(255,255,255,0.8);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--ikdf-cyan);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--ikdf-cyan);
  color: white;
  transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(0, 188, 212, 0); }
}

.pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Gradient text animation */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text-animated {
  background: linear-gradient(270deg, var(--ikdf-cyan), var(--ikdf-pink), var(--ikdf-yellow), var(--ikdf-green), var(--ikdf-purple), var(--ikdf-cyan));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

/* Polygon shapes decorative */
.deco-polygon {
  position: absolute;
  opacity: 0.06;
  z-index: 0;
}

.deco-polygon svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-rainbow);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 999;
  border: none;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   EVENT CARDS (for Politische Bildung / Literaturtage)
   ============================================ */
.event-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.event-card-color {
  height: 6px;
  background: var(--gradient-primary);
}

.event-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-year {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ikdf-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.event-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.event-card p {
  font-size: 0.9rem;
  color: var(--ikdf-gray);
  flex: 1;
}

/* Color variants for event cards */
.event-card.color-cyan .event-card-color { background: var(--ikdf-cyan); }
.event-card.color-pink .event-card-color { background: var(--ikdf-pink); }
.event-card.color-green .event-card-color { background: var(--ikdf-green); }
.event-card.color-yellow .event-card-color { background: var(--ikdf-yellow); }
.event-card.color-purple .event-card-color { background: var(--ikdf-purple); }
.event-card.color-red .event-card-color { background: var(--ikdf-red); }
.event-card.color-blue .event-card-color { background: var(--ikdf-blue); }

.event-card.color-cyan .event-card-year { color: var(--ikdf-cyan); }
.event-card.color-pink .event-card-year { color: var(--ikdf-pink); }
.event-card.color-green .event-card-year { color: var(--ikdf-green); }
.event-card.color-yellow .event-card-year { color: var(--ikdf-amber); }
.event-card.color-purple .event-card-year { color: var(--ikdf-purple); }
.event-card.color-red .event-card-year { color: var(--ikdf-red); }
.event-card.color-blue .event-card-year { color: var(--ikdf-blue); }

/* ============================================
   FEATURE BLOCKS (2-column text+visual)
   ============================================ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-visual {
  position: relative;
}

.feature-visual .visual-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: white;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-visual .visual-card .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-block { grid-template-columns: 1fr; gap: 2rem; }
  .feature-block.reverse { direction: ltr; }
  
  .timeline::before { left: 30px; }
  .timeline-item, .timeline-item:nth-child(odd) { flex-direction: column; padding-left: 60px; }
  .timeline-item:nth-child(odd) .timeline-content { text-align: left; padding-right: 0; padding-left: 0; }
  .timeline-item:nth-child(even) .timeline-content { padding-left: 0; }
  .timeline-dot { left: 30px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links a {
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .section { padding: 60px 1.5rem; }
  
  .stat-number { font-size: 2.5rem; }
  
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .logo-grid { grid-template-columns: 1fr; }
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--ikdf-light-gray);
  border-top-color: var(--ikdf-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SPECIAL: Accordion
   ============================================ */
.accordion-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--ikdf-light);
}

.accordion-header .icon {
  transition: transform var(--transition-fast);
  font-size: 1.2rem;
  color: var(--ikdf-cyan);
}

.accordion-item.active .accordion-header .icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.accordion-body-inner {
  padding: 0 2rem 1.5rem;
  color: var(--ikdf-gray);
  line-height: 1.8;
}

.accordion-item.active .accordion-body {
  max-height: 1000px;
}
