* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

body {
  margin: 0;
  background: #0f172a;
  color: #e5e7eb;
  line-height: 1.6;
}

header {
  padding: 5rem 2rem 4rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.9s forwards;
}

h1 {
  font-size: 3.2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.tagline {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #cbd5f5;
}

main {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
}

section {
  margin-bottom: 4rem;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

/* Project cards */
.project-card {
  background: #020617;
  padding: 1.6rem;
  border-radius: 14px;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeIn 0.8s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.project-card h3 {
  margin-top: 0;
}

a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}


/* About section */
.about {
  background: #020617;
  padding: 2.5rem;
  border-radius: 16px;
  opacity: 0;
  animation: fadeIn 0.8s forwards;
  animation-delay: 1.1s;
}

.about h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.about p {
  color: #cbd5f5;
}

.about ul.interests {
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
}

.about ul.interests li {
  margin-bottom: 0.4rem;
}

/* Contact Form */
.contact {
  background: #020617;
  padding: 2.5rem;
  border-radius: 16px;
  opacity: 0;
  animation: fadeIn 0.8s forwards;
  animation-delay: 1.3s;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56,189,248,0.3);
}

.contact-form button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 10px;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.contact-form button:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger project cards */
.project-card:nth-of-type(1) { animation-delay: 0.3s; }
.project-card:nth-of-type(2) { animation-delay: 0.45s; }
.project-card:nth-of-type(3) { animation-delay: 0.6s; }
.project-card:nth-of-type(4) { animation-delay: 0.75s; }
