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

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --accent: #00d4ff;
  --text: #e0e0e0;
  --muted: #888;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* NAV */
header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid #222;
  z-index: 100;
}

nav {
  max-width: 1100px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

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

nav ul a:hover {
  color: #fff;
}

/* SECTIONS */
section {
  max-width: 1100px;
  margin: auto;
  padding: 5rem 2rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #fff;
}

/* HERO */
#hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: #fff;
}

#hero p {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 1rem 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--accent);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.card p {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  border-top: 1px solid #222;
  font-size: 0.9rem;
}

/* Fade-in animation */
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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