/* =========================
   VARIABLES
========================= */

:root {
  --bg: #050505;
  --surface: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);

  --accent: #8b5cf6;
  --accent2: #22d3ee;

  --radius: 16px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
}

/* =========================
   RESET / BASE
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top, #111 0%, #050505 60%);
  color: var(--text);
  line-height: 1.6;
  animation: fadeIn 0.6s ease-out;
}

/* =========================
   BACKGROUND EFFECT
========================= */

body::before {
  content: "";
  position: fixed;
  width: 600px;
  height: 600px;
  background: var(--accent);
  filter: blur(200px);
  opacity: 0.12;
  top: -200px;
  left: -200px;
  z-index: -1;
}

/* =========================
   LAYOUT
========================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  position: relative;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-3);
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3 {
  margin: 0 0 var(--space-3);
  letter-spacing: -0.2px;
  line-height: 1.2;
}

p {
  margin: 0 0 var(--space-3);
  color: var(--muted);
  font-size: 16px;
  max-width: 65ch;
}

h1 {
  font-size: 64px;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 28px;
}

/* =========================
   LINKS
========================= */

a {
  transition: all 0.25s ease;
}

/* =========================
   NAVIGATION
========================= */

nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.7);

  padding: var(--space-4) 0;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover,
nav li.active a {
  color: var(--text);
  font-weight: 600;
}

/* =========================
   HERO
========================= */

.hero {
  text-align: center;
  padding: 140px 20px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  letter-spacing: -1px;
}

.hero h2 {
  font-weight: 500;
  opacity: 0.9;
}

.hero p {
  font-size: 18px;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

/* =========================
   BUTTONS
========================= */

.btn-branding,
.btn-branding-outline {
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-branding {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  color: white;
}

.btn-branding:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-branding-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-branding-outline:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================
   PROJECTS
========================= */

.projects {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.project-card {
  padding: var(--space-6);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;

  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);

  background: rgba(255, 255, 255, 0.08);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(139, 92, 246, 0.15);
}

.project-card img {
  width: 100%;
  display: block;
  border-radius: var(--radius);

  transition: transform 0.4s ease;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.project-card:hover img {
  transform: scale(1.02);
}

.project-info {
  padding-top: var(--space-3);
}

/* =========================
   FOOTER
========================= */

footer {
  margin-top: var(--space-7);
  padding: var(--space-7) 0 var(--space-6);
  text-align: center;
}

footer .contact-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 20px;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

footer .email-link {
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
}

footer .email-link:hover {
  color: var(--accent);
}

footer .social-links a {
  margin: 0 10px;
  color: var(--text);
  background: var(--surface);
  padding: 10px 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

footer p {
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   HELPERS
========================= */

img {
  max-width: 100%;
  height: auto;
}

/* =========================
   ANIMATION
========================= */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  .hero {
    padding: 80px 20px 50px;
  }

  .hero p {
    font-size: 16px;
  }

  nav {
    display: flex;
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
    gap: var(--space-3);
  }
}
