* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

:root {
  --bg: #f0f2f8;
  --white: #ffffff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --yellow: #f59e0b;
  --yellow-dark: #d97706;
  --yellow-light: #fffbeb;
  --red: #ef4444;
  --red-light: #fef2f2;
  --navy: #0f172a;
  --slate: #475569;
  --muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.95);
  --border: rgba(37, 99, 235, 0.1);
  --shadow: 0 4px 24px rgba(37, 99, 235, 0.07);
  --shadow-md: 0 8px 40px rgba(37, 99, 235, 0.12);
  --shadow-lg: 0 20px 60px rgba(37, 99, 235, 0.14);
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--navy);
  overflow-x: hidden;
  line-height: 1.7;
}

/* grid bg */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 520px;
  height: 520px;
  background: rgba(37, 99, 235, 0.13);
  top: -160px;
  right: -80px;
}
.blob-2 {
  width: 420px;
  height: 420px;
  background: rgba(245, 158, 11, 0.1);
  bottom: 8%;
  left: -120px;
}
.blob-3 {
  width: 260px;
  height: 260px;
  background: rgba(239, 68, 68, 0.08);
  top: 42%;
  right: 4%;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(240, 242, 248, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--blue);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 0.48rem 1.2rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: var(--glass-strong);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 8px;
  padding: 8px;
  transition: all 0.2s;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE MENU DRAWER */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(240, 242, 248, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  padding: 1.25rem 2rem 1.5rem;
  flex-direction: column;
  gap: 0.1rem;
  transform: translateY(-10px);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(37, 99, 235, 0.07);
  transition: color 0.2s;
}
.mobile-menu a:last-child {
  border-bottom: none;
}
.mobile-menu a:hover {
  color: var(--blue);
}
.mobile-menu .mob-cta {
  margin-top: 0.75rem;
  background: var(--blue);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  border-bottom: none;
}

section {
  position: relative;
  z-index: 1;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-pad {
  padding: 6rem 0;
}

.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.28rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 0.9rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--slate);
  font-size: 0.93rem;
  max-width: 480px;
}

/* HERO — centered full-width design */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

/* floating pill orbit */
.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--glass-strong);
  border: 1px solid rgba(37, 99, 235, 0.18);
  backdrop-filter: blur(10px);
  border-radius: 99px;
  padding: 0.38rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  color: var(--navy);
  animation: floatPill 6s ease-in-out infinite;
  opacity: 0;
}
.pill .pi {
  font-size: 0.85rem;
}
.pill-1 {
  top: 18%;
  left: 6%;
  animation-delay: 0s;
}
.pill-2 {
  top: 28%;
  right: 7%;
  animation-delay: 1.2s;
}
.pill-3 {
  top: 58%;
  left: 4%;
  animation-delay: 2.1s;
}
.pill-4 {
  top: 65%;
  right: 6%;
  animation-delay: 0.7s;
}
.pill-5 {
  top: 80%;
  left: 18%;
  animation-delay: 1.8s;
}
.pill-6 {
  bottom: 15%;
  right: 18%;
  animation-delay: 3s;
}
@keyframes floatPill {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* avatar ring */
.hero-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  opacity: 0;
}
.hero-avatar-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--yellow), var(--red));
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinRing 8s linear infinite;
}
@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.hero-avatar-inner {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  animation: spinRing 8s linear infinite reverse;
}

.hero-role {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--glass);
  border: 1px solid rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 99px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--blue);
  padding: 0.32rem 0.95rem;
  margin-bottom: 1.4rem;
  opacity: 0;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink 1.8s infinite;
  flex-shrink: 0;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

h1.hero-h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.2rem;
  opacity: 0;
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.blue-txt {
  color: var(--blue);
}
.yellow-txt {
  color: var(--yellow);
}

/* typewriter cursor */
.cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--blue);
  margin-left: 4px;
  vertical-align: middle;
  animation: cursor-blink 0.85s step-end infinite;
}
@keyframes cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-p {
  color: var(--slate);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0;
  max-width: 540px;
  position: relative;
  z-index: 1;
}
.hero-btns {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.8rem;
  opacity: 0;
  position: relative;
  z-index: 1;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  padding: 0.72rem 1.6rem;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.32);
  transition: all 0.25s;
}
.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.4);
}

.btn-yellow {
  background: var(--yellow);
  color: #fff;
  padding: 0.72rem 1.6rem;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.32);
  transition: all 0.25s;
}
.btn-yellow:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.4);
}

.btn-outline-blue {
  background: var(--glass-strong);
  color: var(--blue);
  border: 1.5px solid rgba(37, 99, 235, 0.3);
  padding: 0.7rem 1.55rem;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(10px);
  transition: all 0.25s;
}
.btn-outline-blue:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  border-color: var(--blue);
}
.btn-outline-blue svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.btn-outline-blue:hover svg {
  transform: translateX(3px);
}

/* stats bar */
.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.stat {
  padding: 1.1rem 2rem;
  text-align: center;
  flex: 1;
  min-width: 130px;
  border-right: 1px solid rgba(37, 99, 235, 0.1);
}
.stat:last-child {
  border-right: none;
}
.stat-n {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-l {
  font-size: 0.67rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 99, 235, 0.15),
    transparent
  );
  margin: 0 2rem;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}
.skill-card {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 18px;
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.sk-blue::before {
  background: var(--blue);
}
.sk-yellow::before {
  background: var(--yellow);
}
.sk-red::before {
  background: var(--red);
}
.sk-navy::before {
  background: var(--navy);
}
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.2);
}
.skill-card:hover::before {
  opacity: 1;
}
.skill-icon {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}
.skill-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.22rem 0.62rem;
  border-radius: 99px;
}
.t-blue {
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.t-yellow {
  background: var(--yellow-light);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.t-red {
  background: var(--red-light);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.t-gray {
  background: #f1f5f9;
  color: var(--slate);
  border: 1px solid rgba(71, 85, 105, 0.15);
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.proj-card {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s;
  box-shadow: var(--shadow);
}
.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.25);
}
.proj-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: var(--blue-light);
}
.proj-body {
  padding: 1.4rem;
}
.proj-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.proj-desc {
  color: var(--slate);
  font-size: 0.83rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
.about-txt p {
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0.85rem;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.tl {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1.1rem;
  background: var(--glass-strong);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: all 0.25s;
  box-shadow: var(--shadow);
}
.tl:hover {
  transform: translateX(5px);
  border-color: rgba(37, 99, 235, 0.22);
}
.tl-yr {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
  min-width: 34px;
  text-align: center;
  margin-top: 2px;
  flex-shrink: 0;
}
.tl-tx {
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.6;
}
.tl-tx b {
  color: var(--navy);
  font-weight: 600;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.1rem;
  margin-top: 3rem;
}
.svc-card {
  background: var(--glass-strong);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  transition: all 0.3s;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.2);
}
.svc-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.55rem;
}
.svc-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
.svc-desc {
  font-size: 0.8rem;
  color: var(--slate);
  line-height: 1.65;
}
.svc-icon {
  position: absolute;
  bottom: -8px;
  right: -4px;
  font-size: 3.5rem;
  opacity: 0.07;
}

/* CONTACT */
#contact {
  text-align: center;
}
.contact-card {
  max-width: 620px;
  margin: 3rem auto 0;
  background: var(--glass-strong);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--red));
}
.contact-email {
  display: inline-block;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 1.75rem;
  padding: 0.55rem 1.35rem;
  background: var(--blue-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  transition: all 0.2s;
}
.contact-email:hover {
  background: #dbeafe;
  transform: translateY(-2px);
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
  padding: 1.75rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
}
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    border-radius: 14px;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  }
  .stat:last-child {
    border-bottom: none;
  }
  .pill {
    display: none;
  }
}
