:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #38bdf8;
  --accent-gradient: linear-gradient(90deg, #38bdf8, #818cf8);
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
  --reveal-duration: 900ms;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

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

section,
footer {
  scroll-margin-top: 90px;
}

/* NAV */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.8);
  transition: box-shadow 400ms var(--ease-soft);
  z-index: 1000;
}

.navbar.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

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

.nav-links {
  display: flex;
  gap: 30px;
}

/* BUTTONS */
.btn-primary {
  background: var(--accent-gradient);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
}

.btn-secondary {
  border: 1px solid var(--border);
  padding: 10px 25px;
  border-radius: 50px;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
}

.gradient-text {
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  margin: 20px 0 40px;
}

/* SECTIONS */
.container {
  padding: 80px 10%;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
}

/* GRIDS */
.bento-grid,
.project-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

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

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

/* CARDS */
.card,
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
}

/* CONTACT */
.contact-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-muted {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.contact-actions {
  display: flex;
  gap: 10px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 50px 0;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* REVEALS */
.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(8px);
  transition: opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out),
    filter var(--reveal-duration) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal-title {
  transform: translateY(26px) scale(0.96);
}

.reveal-calm {
  transform: translateY(10px);
}

/* Re-trigger polish */
.reveal:not(.in-view) {
  transition-delay: 0ms;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .bento-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* --- Fix: remove dot/indicator from navbar links --- */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}
