:root {
  --blue: #2563eb;
  --text: #0b0b0b;
  --muted: #444;
  --border: #eee;
  --card: #f7efe8;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --max: 1400px;
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.45s ease;
}
body.loaded {
  opacity: 1;
}

.container {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.navbar.scrolled {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-color: transparent;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  user-select: none;
  white-space: nowrap;
}
.logo .dot {
  width: 10px;
  height: 10px;
  background: var(--blue);
  display: inline-block;
  border-radius: 2px;
}
.logo .role {
  font-weight: 300;
  opacity: 0.8;
}

nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.2px;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
nav a:hover {
  color: var(--blue);
}
nav a.active {
  color: var(--blue);
}
nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--blue);
  border-radius: 999px;
}

/* Mobile */
.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #111;
  margin: 4px 0;
}

.mobile-nav {
  display: none;
  padding: 10px 0 16px;
}
.mobile-nav a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: var(--text);
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.mobile-nav a:hover {
  color: var(--blue);
}
.mobile-nav a.active {
  color: var(--blue);
}

/* ===== HERO ===== */
.hero {
  padding: 56px 0 30px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 70px;
  align-items: center;
}

.profile-card {
  background: var(--card);
  padding: 40px 34px;
  text-align: center;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}
.profile-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.9);
}
.profile-card h2 {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.25;
}
.profile-card h2 span {
  font-weight: 600;
}
.line {
  width: 42px;
  height: 3px;
  background: var(--blue);
  margin: 14px auto;
  border-radius: 10px;
}
.profile-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.socials {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.socials a {
  text-decoration: none;
  font-size: 12px;
  color: #000;
  opacity: 0.85;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}
.socials a:hover {
  color: var(--blue);
  opacity: 1;
  transform: translateY(-2px);
}

.hero-content h1 {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}
.hero-content h3 {
  font-weight: 400;
  margin: 14px 0 22px;
  color: #111;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.btn {
  padding: 10px 22px;
  text-decoration: none;
  font-size: 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.btn:active {
  transform: scale(0.98);
}
.primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}
.primary:hover {
  filter: brightness(0.96);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}
.outline {
  border: 1px solid #111;
  color: #111;
  background: #fff;
}
.outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.description {
  max-width: 620px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ===== PAGES ===== */
.page {
  padding: 48px 0 28px;
}
.page-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
}
.page-subtitle {
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
}

.section {
  margin-top: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
}
.card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tag {
  font-size: 12px;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
}

.project-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.small-btn {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid #111;
  color: #111;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}
.small-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.filter-btn:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}
.filter-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.12);
}

/* Resume */
.resume-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.resume-embed {
  width: 100%;
  height: 75vh;
  border: 0;
}

/* Form */
.form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  font-size: 13px;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
textarea.input {
  min-height: 120px;
  resize: vertical;
}
.notice {
  font-size: 12px;
  color: var(--muted);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding: 22px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-info {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-info div {
  min-width: 160px;
}
.footer-info strong {
  display: block;
  margin-bottom: 4px;
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(10px);
}
.stagger.show > * {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.stagger.show > *:nth-child(1) {
  transition-delay: 0.05s;
}
.stagger.show > *:nth-child(2) {
  transition-delay: 0.12s;
}
.stagger.show > *:nth-child(3) {
  transition-delay: 0.19s;
}
.stagger.show > *:nth-child(4) {
  transition-delay: 0.26s;
}

/* Back to top */
#toTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease;
}
#toTop:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
}
#toTop.show {
  display: block;
}
#toTop span {
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid #111;
  border-top: 2px solid #111;
  transform: rotate(45deg);
  margin: 16px auto 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 300px 1fr;
    gap: 40px;
  }
  .hero-content h1 {
    font-size: 56px;
  }
}
@media (max-width: 820px) {
  nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .profile-card {
    max-width: 380px;
    margin: 0 auto;
  }
  .hero-content h1 {
    font-size: 52px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 44px;
  }
  .page-title {
    font-size: 28px;
  }
  .footer-info div {
    min-width: 140px;
  }
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 100;
}
.modal.show {
  display: flex;
}

.modal-box {
  width: min(720px, 100%);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.modal.show .modal-box {
  transform: translateY(0);
  opacity: 1;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.modal-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}

.modal-close {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.modal-close:hover {
  border-color: rgba(37, 99, 235, 0.35);
}

.modal-body {
  padding: 14px 18px 18px;
}
.modal-body h5 {
  font-size: 13px;
  margin: 12px 0 6px;
}
.modal-list {
  margin-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Make project cards clickable */
.card.clickable {
  cursor: pointer;
}
.card.clickable:active {
  transform: translateY(-2px) scale(0.99);
}

/* ===== ABOUT V2 ===== */
.about-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}

.about-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.about-photo {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
}
.about-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.06);
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.about-badge b {
  color: var(--blue);
}

.about-headline {
  font-size: 34px;
  line-height: 1.15;
  margin: 10px 0 10px;
}
.about-lead {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
  max-width: 820px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.kpi {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.kpi .num {
  font-size: 20px;
  font-weight: 700;
}
.kpi .label {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.about-panels {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.list {
  margin-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.skill-bars {
  display: grid;
  gap: 12px;
}
.skill {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.skill-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.bar {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  background: rgba(37, 99, 235, 0.85);
  border-radius: 999px;
}

.timeline-v2 {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.t-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.t-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.t-item h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.t-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.about-cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
  }
  .about-photo img {
    height: 260px;
  }
  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }
  .about-panels {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .kpi-row {
    grid-template-columns: 1fr;
  }
  .about-headline {
    font-size: 28px;
  }
}

/* ===== INDEX + PROJECTS ENHANCEMENTS ===== */
.hero-accent {
  position: relative;
}
.hero-accent::before {
  content: "";
  position: absolute;
  inset: -30px -30px auto auto;
  width: 240px;
  height: 240px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  filter: blur(2px);
  z-index: -1;
}
.hero-accent::after {
  content: "";
  position: absolute;
  inset: auto auto -30px -30px;
  width: 180px;
  height: 180px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  z-index: -1;
}

.mini-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.pill {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 22px;
}
.section-head a {
  font-size: 13px;
  text-decoration: none;
  color: var(--blue);
}
.section-head a:hover {
  filter: brightness(0.9);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}
.project-thumb {
  height: 150px;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-body {
  padding: 14px;
}
.project-body h4 {
  font-size: 15px;
  margin-bottom: 6px;
}
.project-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  align-items: center;
}
.search {
  flex: 1;
  min-width: 220px;
  display: flex;
  gap: 10px;
}
.search input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  outline: none;
}
.search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.select {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  outline: none;
  background: #fff;
}

.modal-media {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.02);
}
.modal-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
@media (max-width: 520px) {
  .modal-media img {
    height: 200px;
  }
}

/* ===== Social Icons ===== */
.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}
.icon-btn:hover svg {
  opacity: 1;
}

.project-links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ghost-btn {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: #111;
  transition:
    transform 0.15s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.ghost-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--blue);
}


/* Contact profile buttons */
.contact-links{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.contact-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:#fff;
  text-decoration:none;
  color:#111;
  font-size:13px;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.contact-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,0.35);
}

.contact-btn svg{
  width:18px;
  height:18px;
  opacity:.9;
}
.contact-btn:hover svg{opacity:1;}


