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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Stars */
#stars,
#stars2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  z-index: 0;
  pointer-events: none;
}

#stars2 {
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

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

nav ul a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

nav ul a:hover {
  opacity: 1;
}

/* Sections */
section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem 4rem;
}

.content {
  max-width: 900px;
  width: 100%;
}

.content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #222;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-img img {
  aspect-ratio: 4 / 3;
}

#hero .greeting {
  font-size: 1.1rem;
  opacity: 0.6;
  margin-bottom: 0.25rem;
}

#hero .tagline {
  font-size: 1.1rem;
  opacity: 0.6;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.cta:hover {
  background: #e0e0e0;
  color: #0a0a0a;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img img {
  aspect-ratio: 4 / 3;
}

#about p {
  opacity: 0.7;
  font-size: 1.05rem;
}

/* Projects */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: #161616;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.card a {
  font-size: 0.85rem;
  opacity: 0.8;
  border-bottom: 1px solid currentColor;
}

.card a:hover {
  opacity: 1;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact-img img {
  aspect-ratio: 4 / 3;
}

#contact p {
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.links {
  display: flex;
  gap: 1.5rem;
}

.links a {
  padding: 0.6rem 1.2rem;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.links a:hover {
  background: #222;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  opacity: 0.4;
}

/* Responsive */
@media (max-width: 700px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-img,
  .about-img,
  .contact-img {
    display: none;
  }

  h1 {
    font-size: 2.5rem;
  }
}
