/* ================================================================
   BLOCKCHAIN EVENTS VIETNAM - Global Design System
   ================================================================ */

/* -------------------- CSS Variables -------------------- */
:root {
  /* Colors - Blockchain & Event Theme */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;

  --secondary: #8b5cf6;
  --secondary-dark: #7c3aed;
  --secondary-light: #a78bfa;

  --accent: #ec4899;
  --accent-dark: #db2777;
  --accent-light: #f472b6;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-dark: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  --gradient-subtle: linear-gradient(135deg, #f0f4ff 0%, #f5f3ff 50%, #fce7f3 100%);

  /* Neutral Colors */
  --dark: #1f2937;
  --dark-secondary: #374151;
  --light: #f9fafb;
  --light-secondary: #f3f4f6;
  --border: #e5e7eb;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Monaco', 'Courier New', monospace;

  --text-xl: 3.5rem;
  --text-lg: 2.25rem;
  --text-md: 1.875rem;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-base: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-base: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  font-size: 1rem;
}

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

a:hover {
  color: var(--primary-dark);
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

input, textarea, select {
  font-family: var(--font-family);
}

/* -------------------- Typography -------------------- */
h1 {
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

h3 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--spacing-base);
  color: var(--dark);
}

h4, h5, h6 {
  font-weight: 600;
  margin-bottom: var(--spacing-base);
  color: var(--dark);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--dark-secondary);
  line-height: 1.8;
}

.text-xl { font-size: var(--text-xl); }
.text-lg { font-size: var(--text-lg); }
.text-md { font-size: var(--text-md); }
.text-base { font-size: var(--text-base); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* -------------------- Containers & Layouts -------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-3xl) var(--spacing-lg);
}

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

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.flex {
  display: flex;
  gap: var(--spacing-base);
}

.flex-col { flex-direction: column; }
.flex-between { justify-content: space-between; }
.flex-center { justify-content: center; align-items: center; }
.flex-start { align-items: flex-start; }
.flex-wrap { flex-wrap: wrap; }

/* -------------------- Buttons -------------------- */
.btn {
  padding: var(--spacing-base) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

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

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

.btn-secondary {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--light-secondary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-small {
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--text-xs);
}

.btn-large {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--text-base);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* -------------------- Cards -------------------- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);
  border: 1px solid var(--border);
}

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

.card-gradient {
  background: var(--gradient-subtle);
  border: 1px solid transparent;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-base);
  padding-bottom: var(--spacing-base);
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: var(--text-md);
  font-weight: 700;
  margin: 0;
}

.card-body {
  flex: 1;
}

.card-footer {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
}

/* -------------------- Forms -------------------- */
.form-group {
  margin-bottom: var(--spacing-lg);
}

label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--dark);
  font-size: var(--text-sm);
}

input, textarea, select {
  width: 100%;
  padding: var(--spacing-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-family);
}

.form-error {
  color: var(--danger);
  font-size: var(--text-sm);
  margin-top: var(--spacing-sm);
}

.checkbox, .radio {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.checkbox input, .radio input {
  width: auto;
}

/* -------------------- Navigation -------------------- */
nav {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-base) var(--spacing-lg);
}

.nav-brand {
  font-size: var(--text-lg);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
}

.nav-links a {
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  color: var(--dark-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: var(--spacing-xs);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

/* -------------------- Hero Section -------------------- */
.hero {
  background: var(--gradient-primary);
  color: white;
  padding: var(--spacing-3xl) var(--spacing-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  top: -400px;
  right: -400px;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  bottom: -300px;
  left: -300px;
  animation: float 25s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  color: white;
  background: none;
  -webkit-text-fill-color: unset;
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-lg);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-md);
  margin-bottom: var(--spacing-xl);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn {
  font-size: var(--text-base);
  padding: var(--spacing-md) var(--spacing-xl);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
}

.hero .btn-secondary:hover {
  background: white;
  color: var(--primary);
}

/* -------------------- Features/Benefits -------------------- */
.feature {
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius-lg);
  font-size: 2rem;
}

.feature h3 {
  margin-bottom: var(--spacing-base);
}

.feature p {
  color: var(--dark-secondary);
}

/* -------------------- Event Card -------------------- */
.event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card-header {
  position: relative;
  height: 180px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-lg);
  color: white;
}

.event-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.event-card-badge {
  position: absolute;
  top: var(--spacing-base);
  right: var(--spacing-base);
  background: var(--accent);
  color: white;
  padding: var(--spacing-sm) var(--spacing-base);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  z-index: 2;
}

.event-card-date {
  position: relative;
  z-index: 2;
  font-size: var(--text-md);
  font-weight: 700;
}

.event-card-body {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-title {
  margin: 0 0 var(--spacing-sm) 0;
  color: var(--dark);
  font-size: var(--text-md);
  font-weight: 700;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  color: var(--dark-secondary);
  font-size: var(--text-sm);
}

.event-card-meta span {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.event-card-description {
  color: var(--dark-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-md);
  flex: 1;
}

.event-card-footer {
  margin-top: auto;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
}

.event-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--primary);
  font-weight: 600;
  font-size: var(--text-sm);
}

.event-card-link:hover {
  color: var(--primary-dark);
  gap: var(--spacing-base);
}

/* -------------------- Calendar -------------------- */
.calendar {
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.calendar-header {
  background: var(--gradient-primary);
  color: white;
  padding: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
}

.calendar-nav {
  display: flex;
  gap: var(--spacing-base);
}

.calendar-nav button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-base);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.calendar-nav button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: var(--spacing-base) var(--spacing-lg);
  background: var(--light-secondary);
  border-bottom: 1px solid var(--border);
}

.calendar-weekday {
  text-align: center;
  font-weight: 700;
  color: var(--dark-secondary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  padding: var(--spacing-base) 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: var(--spacing-lg);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-base);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--dark);
}

.calendar-day:hover {
  border-color: var(--primary);
  background: var(--light-secondary);
}

.calendar-day.has-event {
  background: var(--gradient-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.calendar-day.other-month {
  color: var(--border);
  background: transparent;
  cursor: default;
}

.calendar-day.other-month:hover {
  border-color: var(--border);
  background: transparent;
}

.event-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-full);
  position: absolute;
  bottom: 4px;
}

/* -------------------- Speaker Profile -------------------- */
.speaker-card {
  text-align: center;
}

.speaker-image {
  width: 160px;
  height: 160px;
  margin: 0 auto var(--spacing-lg);
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
}

.speaker-card h3 {
  margin-bottom: var(--spacing-sm);
}

.speaker-title {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  font-size: var(--text-sm);
  text-transform: uppercase;
}

.speaker-bio {
  color: var(--dark-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-md);
}

.speaker-socials {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.speaker-social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light-secondary);
  color: var(--primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.speaker-social:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* -------------------- Sponsors -------------------- */
.sponsor-tier {
  margin-bottom: var(--spacing-3xl);
}

.sponsor-tier-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.sponsor-logo {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-secondary);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  color: var(--dark-secondary);
  font-weight: 600;
  text-align: center;
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
}

.sponsor-logo:hover {
  border-color: var(--primary);
  background: var(--gradient-subtle);
}

/* -------------------- Footer -------------------- */
footer {
  background: var(--dark);
  color: white;
  padding: var(--spacing-3xl) var(--spacing-lg) var(--spacing-lg);
  margin-top: var(--spacing-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: var(--text-base);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-base);
}

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

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-brand {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

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

.footer-social:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

.footer-legal a:hover {
  color: white;
}

/* -------------------- Cookie Consent -------------------- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: white;
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  z-index: 999;
  box-shadow: var(--shadow-xl);
  animation: slideUp 300ms ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent.hidden {
  display: none;
}

.cookie-message {
  flex: 1;
  font-size: var(--text-sm);
}

.cookie-message a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--spacing-base);
  white-space: nowrap;
}

.cookie-actions .btn {
  padding: var(--spacing-sm) var(--spacing-md);
}

/* -------------------- Alerts & Messages -------------------- */
.alert {
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin-bottom: var(--spacing-lg);
}

.alert-success {
  background: #ecfdf5;
  border-color: var(--success);
  color: #065f46;
}

.alert-error {
  background: #fef2f2;
  border-color: var(--danger);
  color: #7f1d1d;
}

.alert-warning {
  background: #fffbeb;
  border-color: var(--warning);
  color: #78350f;
}

.alert-info {
  background: #eff6ff;
  border-color: var(--primary);
  color: #0c2d6b;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

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

.animate-spin {
  animation: spin 1s linear infinite;
}

/* -------------------- Utilities -------------------- */
.mt { margin-top: var(--spacing-lg); }
.mb { margin-bottom: var(--spacing-lg); }
.ml { margin-left: var(--spacing-lg); }
.mr { margin-right: var(--spacing-lg); }
.mx { margin-left: auto; margin-right: auto; }
.my { margin-top: var(--spacing-lg); margin-bottom: var(--spacing-lg); }

.pt { padding-top: var(--spacing-lg); }
.pb { padding-bottom: var(--spacing-lg); }
.pl { padding-left: var(--spacing-lg); }
.pr { padding-right: var(--spacing-lg); }
.px { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }
.py { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }

.gap-sm { gap: var(--spacing-sm); }
.gap-base { gap: var(--spacing-base); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.hidden { display: none; }
.visible { display: block; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 768px) {
  :root {
    --text-xl: 2.5rem;
    --text-lg: 1.875rem;
    --text-md: 1.5rem;
    --spacing-3xl: 3rem;
    --spacing-2xl: 2rem;
  }

  .section {
    padding: var(--spacing-2xl) var(--spacing-base);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--spacing-base);
    background: white;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: var(--spacing-base);
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: 400px;
    padding: var(--spacing-2xl) var(--spacing-base);
  }

  .hero h1 {
    font-size: var(--text-lg);
  }

  .hero p {
    font-size: var(--text-base);
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--spacing-base);
  }

  .hero .btn {
    padding: var(--spacing-base) var(--spacing-lg);
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-base);
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .cookie-consent {
    flex-direction: column;
    gap: var(--spacing-base);
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  .calendar-weekdays,
  .calendar-days {
    padding: var(--spacing-base);
  }

  .calendar-day {
    font-size: var(--text-xs);
  }

  .event-card-header {
    height: 140px;
  }

  .container {
    padding: 0 var(--spacing-base);
  }
}

@media (max-width: 480px) {
  :root {
    --text-xl: 2rem;
    --text-lg: 1.5rem;
    --text-md: 1.25rem;
  }

  .grid-4 { grid-template-columns: 1fr; }

  .speaker-image {
    width: 120px;
    height: 120px;
    font-size: 2rem;
  }

  .calendar {
    font-size: var(--text-xs);
  }

  .calendar-day {
    aspect-ratio: auto;
    padding: var(--spacing-sm);
  }

  h1 {
    font-size: var(--text-lg);
  }

  h2 {
    font-size: var(--text-md);
  }
}
