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

:root {
  --bg: #eeedf6;
  --bg-elevated: #ffffff;
  --surface: #dfdee8;
  --border: #1a1a2e;
  --text-primary: #1a1a2e;
  --text-secondary: #3a3a50;
  --text-tertiary: #5a5a70;
  --accent: #3d5afe;
  --accent-dim: rgba(61, 90, 254, 0.1);
  --accent-glow: transparent;
  --font-display: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: #eeedf6;
  border-bottom: 3px solid #1a1a2e;
  transition: box-shadow 0.4s;
}

nav.scrolled {
  background: #eeedf6;
  box-shadow: 0 4px 0 #1a1a2e;
}

nav .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo span {
  color: #3d5afe;
}

nav a.nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

nav a.nav-link:hover {
  color: var(--accent);
}

/* ── HERO ── */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  position: relative;
}

.hero-content {
  padding: 0;
  width: 100%;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: #3d5afe;
  color: #fff;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease forwards 0.5s;
}

.hero h1 .accent-line {
  display: block;
  color: #3d5afe;
  font-weight: 700;
  font-size: 0.4em;
  letter-spacing: 0;
  line-height: 2;
}

.hero-description {
  max-width: 460px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: #fff;
  border: 3px solid #1a1a2e;
  box-shadow: 6px 6px 0 #1a1a2e;
  padding: 20px 24px;
  border-radius: 12px;
  line-height: 1.8;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.75s;
}

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

/* ── SECTIONS ── */
section {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #3d5afe;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: #1a1a2e;
  border-radius: 2px;
  margin-bottom: 48px;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
}

.about-text p + p {
  margin-top: 20px;
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.project-card {
  background: #fff;
  border: 3px solid #1a1a2e;
  border-radius: 16px;
  box-shadow: 6px 6px 0 #1a1a2e;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.project-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #1a1a2e;
}

.project-card:nth-child(2) {
  background: #c8d8ff;
}

.project-card:nth-child(3) {
  background: #ffe0f0;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: #3d5afe;
  color: #fff;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── FOOTER ── */
footer {
  border-top: 3px solid #1a1a2e;
  padding: 48px 0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.footer-right {
  display: flex;
  gap: 28px;
}

.footer-right a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.footer-right a:hover {
  color: var(--accent);
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  section {
    padding: 72px 0;
  }
}
