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

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #7c4dff;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --text: #ffffff;
  --text-secondary: #b8b8b8;
}

body {
  font-family: "Jost", sans-serif;
  background: #0b0b0b;
  color: var(--text);
  overflow-x: hidden;
}

.navbar {
  position: absolute;
  top: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 28px 8%;
  z-index: 100;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
}

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

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.hero {
  position: relative;
  min-height: 100vh;

  background:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("/static/img/ui/background.webp");

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
}

.hero-content {
  width: 100%;
  padding: 0 8%;
  max-width: 900px;
}

.hello {
  display: inline-block;

  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 4px;

  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  font-weight: 800;
}

.hero h2 {
  margin-top: 20px;

  font-size: 1.8rem;
  font-weight: 500;

  color: #dddddd;
}

.hero p {
  margin-top: 25px;

  max-width: 650px;

  color: var(--text-secondary);

  font-size: 1.15rem;
  line-height: 1.8;
}

.buttons {
  display: flex;
  gap: 15px;

  margin-top: 35px;
}

.btn-primary,
.btn-secondary {
  text-decoration: none;

  padding: 14px 26px;

  border-radius: 20px;

  transition: 0.3s;

  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

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

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ABOUT */

.about {
  position: relative;

  padding: 120px 8%;

  background:
    linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url("/static/img/about.webp");

  background-size: cover;
  background-position: center;
}

.section-content {
  max-width: 900px;
}

.about h2 {
  font-size: 3rem;
  margin-bottom: 30px;
}

.about p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.9;

  margin-bottom: 20px;
}

/* PROJECTS & APPS */

.projects,
.apps {
  padding: 120px 8%;
}

.section-header {
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 3rem;
}

.section-header p {
  margin-top: 10px;
  color: var(--text-secondary);
}

/* MATERIAL 3 CARDS */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 25px;
}

.m3-card {
  background: var(--surface);

  border-radius: 28px;

  padding: 30px;

  border: 1px solid rgba(255, 255, 255, 0.06);

  transition: 0.3s;
}

.m3-card:hover {
  transform: translateY(-5px);

  background: var(--surface-2);
}

.m3-card h3 {
  margin-bottom: 12px;

  font-size: 1.4rem;
}

.m3-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* FOOTER */

footer {
  background: #050505;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  padding: 60px 8% 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 30px;
}

.footer-brand h3 {
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #cfcfcf;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;

  margin-top: 40px;
  padding-top: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  color: #888;
}

/* MOBILE */

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
  }

  .about h2,
  .section-header h2 {
    font-size: 2.2rem;
  }
}
