:root {
  --bg: #0f172a;
  --text: #ffffff;
  --card: #1e293b;
  --accent: #38bdf8;
}

.light {
  --bg: #ffffff;
  --text: #111;
  --card: #f1f5f9;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: 0.3s;
}

/* LOADER */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

/* SECTIONS */
section {
  padding: 80px 20px;
  text-align: center;
}

/* NAV */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
}

nav a:hover {
  color: var(--accent);
}

/* ACTIONS */
.actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

#burger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* HERO */
#hero {
  text-align: center;
  padding: 100px 20px;
}

h2 {
  font-size: 3rem;
}

/* BUTTON */
button {
  padding: 12px 25px;
  border: none;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
  color: black;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 0 40px var(--accent);
}

/* CARDS */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin: 20px;
  width: 250px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px) scale(1.03) !important;
}

/* FORM */
form input,
form textarea {
  display: block;
  margin: 20px auto;
  padding: 10px;
  width: 250px;
  border-radius: 6px;
  border: none;
}

/* FOOTER */
footer {
  text-align: center;
  font-size: 0.75rem;
  padding: 20px;
}

/* ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s;
}

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

.delay {
  transition-delay: 0.3s;
}

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

/* MOBILE */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--card);
    flex-direction: column;
    width: 200px;
    padding: 20px;
    display: none;
  }

  nav.active {
    display: flex;
  }

  #burger {
    display: block;
  }
}
