/* --------------------
   RESET
-------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(
    circle at top,
    #0a1022 0%,
    #050505 45%,
    #020308 100%
  );
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  padding: 30px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 2px),
    radial-gradient(circle, rgba(135, 206, 250, 0.8) 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 1px, transparent 2px);
  background-size:
    220px 220px,
    300px 300px,
    180px 180px;
  background-position:
    0 0,
    40px 60px,
    100px 120px;
  pointer-events: none;
  opacity: 0.55;
  z-index: -1;
}

/* Global reset so spacing behaves consistently across browsers */
/* --------------------
   GLOBAL
-------------------- */
.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: #a1a1aa;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.section-header h2 {
  font-family: "Space Mono", monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.section-description {
  max-width: 650px;
  color: #b3b3b3;
  font-size: 1rem;
}

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

/* --------------------
   NAVBAR
-------------------- */
.site-header,
main,
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.navbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: #d4d4d8;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-btn {
  padding: 0.8rem 1.15rem;
  border-radius: 0.6rem;
  background: #2a2a2a;
  color: #ffffff;
  font-size: 0.95rem;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.nav-btn:hover {
  background: #3a3a3a;
  transform: translateY(-2px);
}

/* --------------------
   HERO
-------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-signature {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.hero-text h1 {
  font-family: "Space Mono", monospace;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.06;
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.hero-subtext {
  max-width: 650px;
  color: #b5b5b5;
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.95rem 1.4rem;
  border-radius: 0.65rem;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, #4a4a4a, #2a2a2a);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #5a5a5a, #333333);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e5e5;
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  width: 100%;
  max-width: 480px;
  height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #080808;
  position: relative;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  width: 220px;
  height: 220px;
  left: 30px;
  bottom: 80px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

.shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
}

.shape-one {
  width: 70px;
  height: 70px;
  top: 60px;
  right: 50px;
}

.shape-two {
  width: 36px;
  height: 36px;
  top: 170px;
  right: 85px;
}

.shape-three {
  width: 85px;
  height: 85px;
  left: 28px;
  bottom: 40px;
}

.profile-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-placeholder {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top, #1a1a1a, #080808 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.04);
}

.profile-placeholder span {
  font-family: "Space Mono", monospace;
  font-size: 4rem;
  color: #f5f5f5;
  letter-spacing: 0.1em;
}

/* --------------------
   ABOUT
-------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.about-text p {
  color: #bdbdbd;
  font-size: 1.04rem;
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.about-highlights {
  display: grid;
  gap: 1rem;
}

.info-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0b0b0b;
  padding: 1.5rem;
}

.info-card h3 {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.info-card p {
  color: #b3b3b3;
  font-size: 0.96rem;
}

/* --------------------
   PROJECTS
-------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.project-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #090909;
  padding: 1.7rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
  background: #0d0d0d;
}

.project-number {
  font-family: "Space Mono", monospace;
  color: #9a9a9a;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-family: "Space Mono", monospace;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.project-card p {
  color: #b7b7b7;
  margin-bottom: 1.2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.project-tags span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dcdcdc;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 999px;
}

.project-link {
  color: #efefef;
  font-weight: 600;
}

/* --------------------
   SKILLS
-------------------- */
.skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.skills-wrap span {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  color: #e5e5e5;
  border-radius: 999px;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.skills-wrap span:hover {
  background: #141414;
  transform: translateY(-2px);
}

/* --------------------
   CONTACT
-------------------- */
.contact-card {
  max-width: 760px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0b0b0b;
  padding: 2rem;
}

.contact-card p {
  color: #d3d3d3;
  margin-bottom: 1rem;
}

.contact-card a {
  color: #ffffff;
  word-break: break-word;
}

/* --------------------
   FOOTER
-------------------- */
.site-footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: #8f8f8f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

/* --------------------
   SCROLL REVEAL
-------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

/* --------------------
   RESPONSIVE
-------------------- */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .hero-visual {
    order: -1;
  }

  .visual-card {
    max-width: 100%;
    height: 440px;
  }
}

@media (max-width: 780px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .nav-btn {
    display: none;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .signature {
    font-size: 1.7rem;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 520px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .visual-card {
    height: 360px;
  }

  .profile-placeholder {
    width: 190px;
    height: 190px;
  }

  .profile-placeholder span {
    font-size: 2.8rem;
  }
}
