:root {
  --bg: #020617;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: rgba(15, 23, 42, 0.92);
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #80c63a;
  --accent-2: #4d7d2a;
  --accent-3: #dce9b5;
  --accent-soft: rgba(128, 198, 58, 0.16);
  --accent-soft-2: rgba(77, 125, 42, 0.16);
  --brand-blue: #7fb2ff;
  --brand-green: #80c63a;
}

*::selection {
  background: rgba(128, 198, 58, 0.35);
  color: var(--text);
}

*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, 0.9);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--brand-blue), var(--accent));
  border-radius: 999px;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 7rem;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(128, 198, 58, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(127, 178, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #020617 0%, #07140d 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

body::before {
  width: 24rem;
  height: 24rem;
  top: -5rem;
  left: -8rem;
  background: rgba(128, 198, 58, 0.16);
}

body::after {
  width: 18rem;
  height: 18rem;
  right: -5rem;
  bottom: 8rem;
  background: rgba(127, 178, 255, 0.14);
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 180px;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
  border-radius: 999px;
}

.footer-logo {
  width: 160px;
  max-height: 42px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-3);
  transform: translateY(-1px);
}

.resume-link {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(127, 191, 63, 0.24);
  color: var(--text) !important;
  background: linear-gradient(135deg, rgba(127, 191, 63, 0.14), rgba(75, 125, 47, 0.12));
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--text);
  margin: 0.3rem 0;
  border-radius: 999px;
}

.hero {
  min-height: calc(100vh - 6rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  padding: 4.5rem 0 3.5rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--brand-blue);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.hero h1 span {
  color: var(--brand-blue);
}

.hero h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.hero-copy {
  max-width: 640px;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  min-height: 2.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(127, 191, 63, 0.24);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(127, 191, 63, 0.22);
  background: linear-gradient(135deg, rgba(127, 191, 63, 0.08), rgba(75, 125, 47, 0.08));
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(127, 191, 63, 0.16);
  border-color: rgba(127, 191, 63, 0.28);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.8;
  animation: float 8s ease-in-out infinite;
}

.orb-one {
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(127, 191, 63, 0.32), transparent 70%);
  top: 2rem;
  left: 2rem;
}

.orb-two {
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(75, 125, 47, 0.24), transparent 72%);
  bottom: 2rem;
  right: 2rem;
  animation-delay: 1.2s;
}

.profile-card {
  position: relative;
  z-index: 1;
  width: min(360px, 85vw);
  aspect-ratio: 1 / 1;
  padding: 0.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(128, 198, 58, 0.24), rgba(127, 178, 255, 0.16));
  border: 1px solid rgba(128, 198, 58, 0.28);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.28), 0 0 0 1px rgba(255,255,255,0.04) inset;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
  background: rgba(2, 6, 23, 0.95);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.about-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  padding: 2rem 0 5rem;
  align-items: start;
}

.about-copy {
  padding: 1.4rem 0;
}

.about-copy h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 191, 63, 0.32);
}

.icon-wrap {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(127, 191, 63, 0.18), rgba(75, 125, 47, 0.2));
  color: var(--accent-3);
  flex-shrink: 0;
}

.info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.info-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.journey-box {
  padding: 1.2rem 1.3rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(127, 191, 63, 0.12), rgba(75, 125, 47, 0.14));
  border: 1px solid rgba(127, 191, 63, 0.24);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.18);
}

.journey-box h4 {
  margin-bottom: 0.5rem;
}

.journey-box p {
  color: #dbeafe;
  line-height: 1.7;
}

.featured-projects {
  padding: 2rem 0 5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin-bottom: 0.2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(2, 6, 23, 0.34);
  border-color: rgba(127, 191, 63, 0.24);
}

.project-image {
  width: 100%;
  height: 240px;
  min-height: 240px;
  overflow: hidden;
  padding: 0.85rem;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.9));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 24px rgba(2, 6, 23, 0.24);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  pointer-events: none;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.28);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.45s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem 1.2rem 1.3rem;
}

.project-body h4 {
  font-size: 1.1rem;
}

.project-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.project-badges span {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #dbeafe;
  background: rgba(127, 191, 63, 0.14);
  border: 1px solid rgba(127, 191, 63, 0.24);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.skills-section {
  padding: 2rem 0 5rem;
}

.section-intro {
  max-width: 760px;
  margin: 0.7rem auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.skill-card {
  position: relative;
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(127, 191, 63, 0.16), rgba(75, 125, 47, 0.16));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.3);
  border-color: rgba(127, 191, 63, 0.24);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover .skill-icon {
  transform: rotate(6deg) scale(1.06);
  box-shadow: 0 0 25px rgba(127, 191, 63, 0.24);
}

.skill-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(127, 191, 63, 0.22), rgba(75, 125, 47, 0.22));
  color: var(--accent-3);
  font-size: 1.15rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card h4 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.skill-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.tools-wrap {
  margin-top: 1.6rem;
  padding: 1.2rem 1.3rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.16);
}

.tools-wrap h4 {
  margin-bottom: 0.8rem;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tools-list span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(127, 191, 63, 0.12);
  border: 1px solid rgba(127, 191, 63, 0.24);
  color: #dbeafe;
  font-size: 0.88rem;
}

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

.contact-section {
  padding: 2rem 0 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.25rem;
  margin-top: 1.6rem;
}

.contact-cards {
  display: grid;
  gap: 0.9rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(16px);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 191, 63, 0.24);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.28);
}

.contact-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(127, 191, 63, 0.2), rgba(75, 125, 47, 0.2));
  color: var(--accent-3);
  font-size: 1.1rem;
}

.contact-card h4 {
  margin-bottom: 0.22rem;
  font-size: 0.98rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form {
  padding: 1.2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(18px);
}

.input-group {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}

.input-group label {
  font-size: 0.9rem;
  color: #dbeafe;
}

.input-group input,
.input-group textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(2, 6, 23, 0.32);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: rgba(127, 191, 63, 0.4);
  box-shadow: 0 0 0 3px rgba(127, 191, 63, 0.15);
  transform: translateY(-1px);
}

.input-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-btn {
  width: 100%;
  margin-top: 0.3rem;
  position: relative;
  overflow: hidden;
}

.contact-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}

.contact-btn:hover::after {
  transform: translateX(100%);
}

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

.site-footer {
  margin-top: 1rem;
  padding: 3rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.46);
  backdrop-filter: blur(16px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  margin-top: 0.8rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 360px;
}

.footer-brand-link {
  margin-bottom: 0.3rem;
}

.footer-links-group h4 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer-links-group ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-links-group a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-links-group a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 16px 35px rgba(127, 191, 63, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}
