:root {
  --bg: #0f0f12;
  --bg-alt: #17171c;
  --text: #f2f2f2;
  --text-dim: #a0a0a8;
  --accent: #6ee7b7;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* Image placeholder: shows while real photos aren't added yet */
img.placeholder {
  min-height: 220px;
  background: linear-gradient(135deg, #2a2a33, #1c1c22);
  position: relative;
}
img.placeholder::after {
  content: "Add image";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

section {
  padding: 6rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

h1, h2, h3 {
  line-height: 1.2;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav-name {
  font-weight: 600;
}

.nav nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 18, 0.55) 0%, rgba(15, 15, 18, 0.6) 50%, rgba(15, 15, 18, 0.95) 100%);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  margin: 0 auto 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 0.5rem;
}

.tagline {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 500px;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #0f0f12;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
}

/* About */
.about-text {
  max-width: 700px;
}

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

.project-card {
  background: var(--bg-alt);
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 1.5rem;
}

.project-card h3 {
  margin: 1rem 1.5rem 0.5rem;
}

.project-card p {
  margin: 0 1.5rem 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.project-link {
  margin: 0 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

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

.hobby-photo {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.hobby-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Skills + Hackathons */
.skills-hackathons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.skills-hackathons h3 {
  margin: 1.5rem 0 0;
  font-size: 1rem;
}

.skills-list,
.hackathon-list {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
  color: var(--text-dim);
}

.skills-list {
  columns: 2;
}

@media (max-width: 700px) {
  .skills-hackathons {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.contact-links {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--text-dim);
  padding-bottom: 2px;
}

.contact-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .about-text {
    text-align: center;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
