/* =====================================================
   UW iGEM - Design System
   ===================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Color Palette - Washington iGEM Brand Colors */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #D8D3E6;        /* Snuff - light lavender */
  --color-bg-elevated: #ffffff;
  
  /* Brand Colors - Washington iGEM */
  --color-snuff: #D8D3E6;              /* Light lavender */
  --color-gigas: #593F8F;              /* Deep purple - primary */
  --color-lavender: #9382B4;           /* Medium purple */
  --color-deluge: #8470AC;             /* Purple accent */
  
  /* Accent Colors mapped to brand */
  --color-accent-primary: #593F8F;     /* Gigas - deep purple */
  --color-accent-secondary: #8470AC;   /* Deluge */
  --color-accent-tertiary: #9382B4;    /* Lavender Purple */
  --color-accent-light: #D8D3E6;       /* Snuff */
  --color-accent-warm: #f59e0b;        /* Amber - for warnings/status */
  
  /* Gradients - Use sparingly for pop */
  --gradient-primary: linear-gradient(135deg, #593F8F 0%, #8470AC 100%);
  --gradient-secondary: linear-gradient(135deg, #9382B4 0%, #D8D3E6 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(89, 63, 143, 0.08) 0%, transparent 70%);
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(89, 63, 143, 0.1) 0%, transparent 100%);
  
  /* Text Colors */
  --color-text-primary: #1a1a2e;
  --color-text-secondary: #4a4a5a;
  --color-text-tertiary: #6b7280;
  --color-text-muted: #9ca3af;
  
  /* Glass Effect Variables */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-bg-hover: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(89, 63, 143, 0.1);
  --glass-border-hover: rgba(89, 63, 143, 0.2);
  --glass-blur: blur(20px);
  --glass-blur-heavy: blur(40px);
  
  /* Typography */
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  
  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
  --text-hero: clamp(3.5rem, 2.5rem + 6vw, 7rem);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(89, 63, 143, 0.15);
  --shadow-glow-purple: 0 0 40px rgba(132, 112, 172, 0.2);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.text-gradient {
  color: var(--color-gigas);
}

.text-gradient-bio {
  color: var(--color-deluge);
}

.overline {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gigas);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

.section {
  padding: var(--space-20) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-32) 0;
  }
}

/* ===== LIQUID GLASS EFFECTS ===== */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

.glass-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.glass-card:hover {
  background: #ffffff;
  border-color: var(--color-gigas);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}


/* ===== BUTTONS ===== */
.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.btn-glass::before {
  display: none;
}

.btn-glass::after {
  display: none;
}

.btn-glass:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-gigas);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-glass:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-glass:focus-visible {
  outline: 2px solid var(--color-gigas);
  outline-offset: 3px;
}

/* Primary Button - Solid fill */
.btn-glass--primary {
  background: var(--color-gigas);
  border: none;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-glass--primary:hover {
  background: #4a3378;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Secondary Button - Outlined */
.btn-glass--secondary {
  background: transparent;
  border: 2px solid var(--color-gigas);
  color: var(--color-gigas);
}

.btn-glass--secondary:hover {
  background: var(--color-snuff);
  border-color: var(--color-gigas);
  box-shadow: var(--shadow-md);
}

/* Ghost Button */
.btn-glass--ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn-glass--ghost:hover {
  background: var(--color-bg-secondary);
  border-color: transparent;
  box-shadow: none;
}

/* Button Sizes */
.btn-glass--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-glass--lg {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-base);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-4) 0;
  transition: all var(--transition-base);
}

.navbar--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.navbar__logo img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--color-snuff);
  padding: 2px;
}

.navbar__nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

@media (min-width: 768px) {
  .navbar__nav {
    display: flex;
  }
}

.navbar__link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.navbar__cta {
  display: none;
}

@media (min-width: 768px) {
  .navbar__cta {
    display: flex;
  }
}

.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

@media (min-width: 768px) {
  .navbar__toggle {
    display: none;
  }
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  padding: var(--space-24) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all var(--transition-base);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.mobile-menu__close:hover {
  color: var(--color-text-primary);
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--color-text-primary);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--space-24);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero__bg::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  transform: translateY(-50%);
}

/* PixelBlast Interactive Background */
#pixelblast-hero {
  position: absolute;
  inset: 0;
  z-index: 0;  /* Above hero__bg (-1) but below content */
  pointer-events: auto;
  overflow: hidden;
}

#pixelblast-hero canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Grid removed - clean background */

.hero__content {
  position: relative;
  z-index: 2;  /* Above PixelBlast */
  max-width: 900px;
  pointer-events: none;  /* Allow clicks to pass through to PixelBlast */
}

.hero__content * {
  pointer-events: auto;  /* But keep text selectable and buttons clickable */
}

.hero__overline {
  margin-bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.hero__overline::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--color-gigas);
}

.hero__title {
  margin-bottom: var(--space-6);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.hero__title span {
  display: block;
}

.hero__description {
  max-width: 600px;
  margin-bottom: var(--space-10);
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;  /* Above PixelBlast */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== STATS SECTION ===== */
.stats {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--color-bg-secondary);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats__item {
  text-align: center;
}

.stats__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--color-gigas);
  margin-bottom: var(--space-2);
}

.stats__label {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  max-width: 700px;
  margin-bottom: var(--space-12);
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header__overline {
  margin-bottom: var(--space-4);
}

.section-header__title {
  margin-bottom: var(--space-4);
}

.section-header__description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.project-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.project-card__year {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-gigas);
  color: #ffffff;
  border-radius: var(--radius-full);
}

.project-card__content {
  padding: var(--space-6);
}

.project-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.project-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gigas);
  transition: gap var(--transition-fast);
}

.project-card__link:hover {
  gap: var(--space-3);
}

.project-card__link svg {
  width: 16px;
  height: 16px;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.about__image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.about__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(89, 63, 143, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.about__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__content {
  max-width: 560px;
}

.about__text {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

/* ===== TEAM SECTION ===== */
.team-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  overflow: hidden;
}

.team-hero__image {
  position: absolute;
  inset: 0;
}

.team-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, var(--color-bg-primary) 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  text-align: center;
}

.team-card__avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-gigas);
  padding: 3px;
  overflow: hidden;
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.team-card__name {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* ===== DONATE SECTION ===== */
.donate-section {
  position: relative;
  padding: var(--space-24) 0;
  background: var(--color-bg-secondary);
  overflow: hidden;
}

.donate-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(89, 63, 143, 0.06) 0%, transparent 100%);
}

.donate__content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.donate__title {
  margin-bottom: var(--space-6);
}

.donate__description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-10);
}

/* ===== FOOTER ===== */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--glass-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer__logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

.footer__description {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-gigas);
  border-color: var(--color-gigas);
  color: #ffffff;
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__column h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-gigas);
}

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__address {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ===== APPLY PAGE ===== */
.apply-status {
  padding: var(--space-4) var(--space-6);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: var(--space-8);
}

.apply-status--closed {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.apply-status__text {
  font-weight: 500;
  color: var(--color-accent-tertiary);
}

.apply-status--closed .apply-status__text {
  color: var(--color-accent-warm);
}

.timeline-list {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-gigas);
}

.timeline-item {
  position: relative;
  padding-left: var(--space-12);
  padding-bottom: var(--space-8);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--color-bg-primary);
  border: 2px solid var(--color-gigas);
  border-radius: var(--radius-full);
}

.timeline-item__date {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gigas);
  margin-bottom: var(--space-1);
}

.timeline-item__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.timeline-item__description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gigas);
  box-shadow: 0 0 0 3px rgba(89, 63, 143, 0.1);
}

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

/* ===== UTILITY CLASSES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }

/* ===== GLARE HOVER EFFECT ===== */
.glare-hover {
  position: relative;
  overflow: hidden;
}

.glare-hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.glare-hover:hover::before {
  left: 100%;
}

/* ===== STAR BORDER EFFECT ===== */
.star-border {
  position: relative;
}

.star-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 0deg,
    var(--color-gigas),
    var(--color-deluge),
    var(--color-lavender),
    var(--color-gigas)
  );
  border-radius: inherit;
  z-index: -1;
  animation: rotate-border 4s linear infinite;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.star-border:hover::before {
  opacity: 1;
}

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

/* Glow orbs for background */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.glow-orb--purple {
  background: var(--color-gigas);
}

.glow-orb--cyan {
  background: var(--color-deluge);
}

.glow-orb--green {
  background: var(--color-lavender);
}
