:root {
  --bg: #0b0b0c;
  --bg-alt: #121316;
  --surface: #181b1f;
  --text: #f3f5f7;
  --muted: #a7adb5;
  --brand: #ffffff;
  --brand-deep: #d7dbe0;
  --ring: rgba(255, 255, 255, 0.35);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.08) 0, transparent 35%),
    radial-gradient(circle at 82% 4%, rgba(255, 255, 255, 0.05) 0, transparent 32%),
    var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(8px);
}

.navbar {
  width: min(1100px, 92%);
  margin: 1rem auto;
  background: rgba(15, 17, 20, 0.87);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  margin-top: 0.45rem;
  padding: 0.55rem 1rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--brand);
  color: #0b0b0c;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #0b0b0c;
  border-radius: 2px;
}

.section {
  padding: 5.5rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.06));
}

.hero {
  min-height: 90vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 720px;
}

.hero-photo-frame {
  width: clamp(128px, 22vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  padding: 4px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.1));
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5);
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #0f1114;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

#about .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

#about .about-copy {
  max-width: 700px;
  text-align: center;
}


.eyebrow {
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  margin-bottom: 1.5rem;
}

.hero-shape {
  display: none;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  color: #0b0b0c;
  background: linear-gradient(135deg, var(--brand), #d0d4d9);
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}
.social-link {
  color: var(--muted);
  padding: 0.7rem;
  font-size: 30px;
  transition: 400ms;
}
.social-link:hover{
  color: rgb(201, 240, 255);
  padding: 0rem 1rem;
  transition: 400ms;
  font-size: 40px;
}
.socialmedia{
  display: flex;

  gap: 1rem;
  margin-top: 1rem;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.skills-grid,
.projects-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.skill-card,
.project-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

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

.project-card p,
.section p {
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 900px) {
  .navbar {
    border-radius: 20px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 4%;
    left: 4%;
    background: rgba(15, 17, 20, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    max-height: 340px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    display: block;
    text-align: center;
  }

  .hero {
    min-height: 80vh;
  }
}

@media (min-width: 901px) {
  #about .container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
  }

  #about .hero-photo-frame {
    margin: 0;
    flex: 0 0 clamp(170px, 20vw, 230px);
    width: clamp(170px, 20vw, 230px);
  }

  #about .about-copy {
    text-align: left;
    flex: 1;
    max-width: 640px;
  }
}

@media (max-width: 580px) {
  .section {
    padding: 4.5rem 0;
  }

  .navbar {
    padding: 0.65rem 0.9rem;
  }
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

