@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@400;500&display=swap');

:root {
  --bg: #0a0a0a;
  --text: #e8e4df;
  --text-muted: #8a8580;
  --accent: #3a9fd8;
  --card-bg: #141414;
  --card-border: #1e1e1e;
  --heading-font: 'Playfair Display', Georgia, serif;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.brand {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
}

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

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  animation: fadeInUp 0.8s ease both;
}

.hero-logo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(58, 159, 216, 0.25), 0 0 80px rgba(58, 159, 216, 0.1);
  margin-bottom: 2.5rem;
}

.tagline {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Projects */
.projects {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.projects h2 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
  animation: fadeInUp 0.8s ease both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card h3 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Info page */
.info-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem;
  flex: 1;
  animation: fadeInUp 0.8s ease both;
}

.info-content h1 {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.info-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.info-content a {
  color: var(--accent);
}

.info-content a:hover {
  color: var(--text);
}

.info-content h2 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  nav {
    padding: 1.5rem;
  }

  .hero {
    padding: 3rem 1.5rem 2rem;
  }

  .hero-logo {
    width: 200px;
    height: 200px;
  }

  .tagline {
    font-size: 1.5rem;
  }

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

  .projects {
    padding: 2rem 1.5rem 3rem;
  }

  .info-content {
    padding: 2rem 1.5rem;
  }
}
