* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body{
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-3);
  background: linear-gradient(120deg, var(--bg-1), var(--bg-2), var(--bg-3));
  background-size: 400% 400%;
  animation: gradientFlow 18s ease infinite;
}

#site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: scroll;
  height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* NAVBAR */
.logo img {
  width: 200px;
}

.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  backdrop-filter: blur(1px) saturate(180%);
  background: var(--bg-4);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  transition: all 0.4s ease;
}

.glass-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.glass-nav a {
  color: var(--text-4);
  text-decoration: none;
  position: relative;
  font-weight: 500;
}

.glass-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.4s;
}

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

/* flex */
.bento-flex {
  padding: 120px 3rem 3rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  align-content: center;
  gap: 1.5rem;
}

/* CARDS */
.card.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;

  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.glass:hover {
  transform: translateY(-6px);

  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.14),
    0 6px 16px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* HERO */
.hero {
  flex: 1;
  display: block flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
  font-weight: 800;
}

.hero h2 {
  margin-top: 0.5rem;
  color: var(--accent);
  font-weight: 600;
}

.hero p {
  max-width: 520px;
  line-height: 1.7;
  opacity: 0.9;
  text-align: justify;
}

.section {
  scroll-margin-top: 100px;
}

/* BUTTONS */
.cta-row {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.btn {
  cursor: pointer;
  background-color: transparent;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: var(--text-on-accent);
}

.btn.ghost {
  border: 1px solid var(--glass-border);
  color: var(--text-3);
}

.btn:hover {
  transform: translateY(-3px);
}

/* FOOTER */
.footer {
  text-align: center;
  opacity: 0.85;
  font-size: 0.9rem;
  flex-shrink: 0;
  padding-bottom: 3rem;
}

.footer .socials {
  margin-bottom: 1rem;
}

.footer a {
  color: var(--text-3);
  margin: 0 0.8rem;
  text-decoration: none;
  opacity: 0.8;
}

.footer a:hover {
  opacity: 1;
}

/* Tablets */
@media (max-width: 1024px) {
  .bento-flex {
    /* grid-template-columns: repeat(2, 1fr); */
    padding: 100px 2rem 2rem;
  }

  .hero {
    /* grid-column: span 2; */
  }

  .glass-nav {
    padding: 1rem 1.5rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .glass-nav {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }

  .glass-nav ul {
    gap: 1.2rem;
  }

  .card.glass {
    padding: 1rem;
  }

  .bento-flex {
    /* grid-template-columns: 1fr; */
    padding: 140px 1rem 1.5rem;
  }

  .hero.project {
    /* grid-column: span 6; */
  }

  .hero {
    /* grid-column: span 1; */
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .footer {
    font-size: 0.85rem;
  }
}