:root {
  --bg: #0b1020;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --ring: rgba(56, 189, 248, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(1200px 600px at 90% 10%, rgba(34, 211, 238, 0.14), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

#header.scrolled {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.6);
  background-color: rgba(17, 24, 39, 0.92);
}

.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.accent-color {
  color: var(--accent);
}

.nav-link {
  color: #cbd5f5;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.lang-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.lang-select {
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.6rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.lang-select:focus {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.hero-title {
  text-shadow: 0 12px 40px rgba(15, 23, 42, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.6rem;
  border-radius: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.2);
}

.btn-secondary {
  background: rgba(31, 41, 55, 0.85);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.2);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.35);
}

.project-card {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 20% -20%, rgba(56, 189, 248, 0.15), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
  border-color: rgba(56, 189, 248, 0.35);
}

.project-card:hover::after {
  opacity: 1;
}

.avatar-wrap {
  position: relative;
  width: 16rem;
  height: 16rem;
  margin: 0 auto;
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.6);
  overflow: hidden;
}

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

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.5);
}

.support-card a {
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.35);
}

.support-card a:hover {
  transform: translateY(-3px) scale(1.01);
}

.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  color: #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  animation: fade-in-up 0.6s ease forwards;
}

.visit-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.visit-counter .visit-sep {
  opacity: 0.7;
}

.visit-counter.bump {
  animation: bump 0.45s ease;
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 94%);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
  padding: 1.25rem 1.5rem;
  z-index: 60;
}

.cookie-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-text {
  max-width: 640px;
}

.cookie-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--accent);
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
}

@media (max-width: 640px) {
  .cookie-banner {
    padding: 1rem 1rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .nav-link {
    display: block;
    width: 100%;
  }
}
