/* ================================================================== */
/* RESET & VARIABLE ROOT                                              */
/* ================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', "SF Mono", monospace;

  /* Colors (Light Mode Default) */
  --bg-primary: #fafafa;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f5f5f4;
  --bg-card: #ffffff;
  
  --text-primary: #1c1d21;
  --text-secondary: #4a4d55;
  --text-muted: #8e929f;
  
  --border-color: #e5e5e0;
  --border-color-light: #f0f0eb;
  
  --color-brand: #1c2e47; /* Navy blue from light logo */
  --color-accent: #3b82f6; /* Digital Blue */
  --color-accent-rgb: 59, 130, 246;
  --color-success: #10b981;
  --color-success-bg: #f0fdf4;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-premium: 0 20px 40px -15px rgba(28, 46, 71, 0.08);

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

/* Dark Mode Override */
body.dark-mode {
  --bg-primary: #0a0e17;
  --bg-surface: #101622;
  --bg-surface-hover: #171f30;
  --bg-card: #121927;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --border-color: #1e293b;
  --border-color-light: #151e2e;
  
  --color-brand: #efefef; /* Light gray from dark logo */
  --color-accent: #60a5fa; /* Glow Blue */
  --color-accent-rgb: 96, 165, 250;
  --color-success: #34d399;
  --color-success-bg: #064e3b;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* ================================================================== */
/* BASE STYLES                                                        */
/* ================================================================== */
body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================================================================== */
/* NAVBAR                                                             */
/* ================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 250, 250, 0.8);
  border-bottom: 1px solid var(--border-color-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

body.dark-mode .navbar {
  background-color: rgba(10, 14, 23, 0.8);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.nav-brand:hover .nav-logo {
  transform: rotate(-10deg) scale(1.05);
}

.nav-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.nav-title-full {
  display: inline-block;
}

.nav-title-short {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

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

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--text-secondary);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.sun-icon {
  display: none;
}

body.dark-mode .sun-icon {
  display: block;
}

body.dark-mode .moon-icon {
  display: none;
}

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

.menu-toggle-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.menu-toggle-btn:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--text-secondary);
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.menu-toggle-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile-actions {
  display: none;
}

.lang-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  font-size: 1.1rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
  line-height: 1;
}

.lang-toggle-btn:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--text-secondary);
  transform: scale(1.05);
}

/* ================================================================== */
/* HERO SECTION                                                       */
/* ================================================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  width: 100%;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  background-color: rgba(var(--color-accent-rgb), 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 20%, #818cf8 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -8px rgba(var(--color-accent-rgb), 0.5);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
  color: var(--bg-surface);
  transition: color var(--transition-normal);
}

.hero-wave svg {
  width: 100%;
  height: 60px;
}

/* ================================================================== */
/* STATS SECTION                                                      */
/* ================================================================== */
.stats-section {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color-light);
  padding: 1rem 0 3rem;
  position: relative;
  z-index: 5;
  transition: background-color var(--transition-normal);
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color-light);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================================================== */
/* COMMON SECTION STYLES                                              */
/* ================================================================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

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

/* ================================================================== */
/* ABOUT / FOCUS CARDS                                                */
/* ================================================================== */
.about-section {
  background-color: var(--bg-surface);
  transition: background-color var(--transition-normal);
}

.grid-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.focus-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color-light);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all var(--transition-normal);
}

.focus-card:hover {
  transform: translateY(-8px);
  background-color: var(--bg-surface);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-premium);
}

.focus-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.focus-icon svg {
  width: 26px;
  height: 26px;
}

.focus-icon--blue {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}
.focus-icon--green {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.focus-icon--purple {
  background-color: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}
.focus-icon--orange {
  background-color: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.focus-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.focus-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ================================================================== */
/* EVENTS SECTION (FEATURED EVENT)                                    */
/* ================================================================== */
.events-section {
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

.featured-event {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  box-shadow: var(--shadow-lg);
  margin-bottom: 4rem;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.fe-image-wrapper {
  position: relative;
  flex: 1.1;
  min-height: 350px;
  background-color: #111;
  overflow: hidden;
}

.fe-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fe-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 50%, rgba(0, 0, 0, 0.4));
}

.fe-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fe-date-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background-color: #ffffff;
  color: #111827;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

.fe-date-badge .day {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.fe-date-badge .month {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.fe-details {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-success);
  background-color: rgba(16, 185, 129, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

.status-tag--done {
  color: var(--text-secondary);
  background-color: var(--bg-surface-hover);
}

.fe-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.fe-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.fe-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.fe-meta-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
}

.fe-speakers {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.speaker-avatar-wrap {
  display: flex;
  align-items: center;
}

.speaker-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-surface);
}

.speaker-avatar:not(:first-child) {
  margin-left: -12px;
}

.speaker-names {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.fe-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================================================================== */
/* PAST EVENTS LIST                                                   */
/* ================================================================== */
.past-events-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.past-events-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.past-events-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.past-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

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

.past-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-premium);
}

.past-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #111;
  overflow: hidden;
}

.past-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.past-card-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.past-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.past-card-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.past-card-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.past-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color-light);
  padding-top: 1rem;
}

.past-card-date {
  font-family: var(--font-mono);
}

/* ================================================================== */
/* PHOTO GALLERY DECK                                                 */
/* ================================================================== */
.gallery-section {
  background-color: var(--bg-surface);
  transition: background-color var(--transition-normal);
}

.stack-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 0;
  overflow: visible;
}

.stack-box {
  width: min(75vw, 300px);
  aspect-ratio: 1;
  position: relative;
}

.stack-card {
  position: absolute;
  inset: 0;
  width: 100%;
  background-color: var(--bg-card);
  border-radius: 8px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  padding: 4% 4% 14% 4%;
  transition: border-color var(--transition-normal), background-color var(--transition-normal);
}

.stack-card:active {
  cursor: grabbing;
}

.stack-card .photo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--bg-primary);
}

.stack-card .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.stack-card .card-label {
  padding: 5% 2% 0;
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
}

.stack-hint {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
}

.stack-logo-img {
  height: 60%;
  width: 60%;
  object-fit: contain;
}

.stack-counter {
  display: none;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-family: var(--font-mono);
}

/* ================================================================== */
/* SOCIAL CHANNELS                                                    */
/* ================================================================== */
.join-section {
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.social-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color-light);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: var(--color-accent);
}

.social-card .social-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.social-card:hover .social-icon {
  background-color: var(--color-accent);
  color: #ffffff;
}

.social-card .social-icon svg {
  width: 22px;
  height: 22px;
}

.social-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.social-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

.social-link-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: transform var(--transition-fast);
}

.social-card:hover .social-link-label {
  transform: translateX(4px);
}

/* ================================================================== */
/* FOOTER                                                             */
/* ================================================================== */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 5;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color-light);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.foot-logo-wrapper {
  height: 30px;
  width: 30px;
}

.foot-logo {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.foot-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.foot-social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.foot-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: 8px;
  color: var(--text-secondary);
  border: 1px solid var(--border-color-light);
  transition: all var(--transition-fast);
}

.foot-social-links a:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-hover);
  border-color: var(--text-secondary);
}

.foot-social-links a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.foot-sep {
  height: 20px;
  width: 1px;
  background-color: var(--border-color);
}

/* CONTACT POPOVER */
.contact-wrapper {
  position: relative;
}

.contact-trigger {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.contact-trigger:hover {
  color: var(--text-primary);
}

.contact-popover {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 50%;
  transform: translate(50%, 6px);
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  z-index: 50;
}

.contact-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text-primary);
}

.contact-wrapper.is-open .contact-popover {
  opacity: 1;
  transform: translate(50%, 0);
  pointer-events: auto;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
}

.contact-copy {
  background-color: rgba(255, 255, 255, 0.15);
  color: inherit;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color var(--transition-fast);
}

body.dark-mode .contact-copy {
  background-color: rgba(0, 0, 0, 0.2);
}

.contact-copy:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

body.dark-mode .contact-copy:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.contact-copy.copied {
  background-color: var(--color-success);
  color: #ffffff;
}

.contact-copy svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.foot-bottom .made span {
  color: #ef4444;
}

/* ================================================================== */
/* MEDIUM BLOG SECTION                                               */
/* ================================================================== */
.blog-section {
  background-color: var(--bg-surface);
  transition: background-color var(--transition-normal);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-premium);
}

.blog-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #111;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.blog-card-tags {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.blog-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.blog-card:hover h3 {
  color: var(--color-accent);
}

.blog-card-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-readmore {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.blog-card-readmore svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform var(--transition-fast);
}

.blog-card:hover .blog-card-readmore svg {
  transform: translateX(4px);
}

/* Skeleton Loading State */
.blog-skeleton {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: 20px;
  height: 400px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.blog-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: loading-shimmer 1.5s infinite;
}

body:not(.dark-mode) .blog-skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.04), transparent);
}

@keyframes loading-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.blog-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.blog-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
}

.blog-error p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* ================================================================== */
/* RESPONSIVE DESIGN                                                  */
/* ================================================================== */

@media (max-width: 992px) {
  .featured-event {
    flex-direction: column;
  }
  .fe-image-wrapper {
    min-height: 280px;
  }
  .fe-image-wrapper::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  }
  .fe-details {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle-btn {
    display: flex;
  }
  
  .nav-title-full {
    display: none;
  }
  
  .nav-title-short {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 800;
  }
  
  #langToggle, #themeToggle {
    display: none;
  }
  
  .nav-mobile-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color-light);
  }
  
  .nav-mobile-actions .mobile-action-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.65rem;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
  }
  
  body.dark-mode .nav-mobile-actions .mobile-action-btn {
    background: var(--bg-card);
  }
  
  .nav-mobile-actions .mobile-action-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--text-secondary);
  }

  .nav-mobile-actions .mobile-action-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
  }
  body.dark-mode .nav-menu {
    background-color: rgba(16, 22, 34, 0.95);
  }
  .nav-menu.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-link {
    font-size: 1.05rem;
    padding: 0.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color-light);
    width: 100%;
  }
  .nav-link:last-of-type {
    border-bottom: none;
  }
  .nav-link::after {
    display: none;
  }
  .focus-card, .social-card {
    padding: 1.75rem 1.25rem;
  }
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-container {
    padding: 2rem 1.5rem 4rem;
  }
  .section-container {
    padding: 4rem 1.5rem;
  }
  
  /* Photo Stack on Mobile: tap cycle deck */
  .stack-wrapper {
    padding: 1rem 0 0;
  }
  .stack-box {
    width: 80vw;
    aspect-ratio: auto;
    margin: 0 auto;
  }
  .stack-card {
    position: absolute;
    inset: auto;
    top: 0;
    left: 0;
    width: 100%;
    cursor: pointer;
    touch-action: pan-y;
    padding: 12px 12px 36px 12px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  }
  .stack-card .card-label {
    font-size: 0.75rem;
    padding: 8px 2px 0;
  }
  .stack-hint {
    display: none;
  }
  .stack-counter {
    display: block;
  }
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
  }
  .fe-details {
    padding: 1.75rem;
  }
  .fe-title {
    font-size: 1.4rem;
  }
  .foot-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .foot-right {
    width: 100%;
    justify-content: space-between;
  }
  .contact-popover {
    right: 0;
    transform: translateY(6px);
  }
  .contact-popover::after {
    left: auto;
    right: 20px;
    transform: none;
  }
  .contact-wrapper.is-open .contact-popover {
    transform: translateY(0);
  }
}
