:root {
  --bg-main: #f5f7fb;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --text-main: #111827;
  --text-muted: #4b5563;
  --accent: #2563eb;
  --line: #e5e7eb;
  --radius: 16px;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f8f9fc 0%, var(--bg-main) 62%, var(--bg-alt) 100%);
}

h1,
h2,
h3,
h4,
.brand {
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.01em;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 100;
  background: var(--accent);
}

.noise-overlay,
.glow {
  display: none;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5.8rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1160px, 92%);
  transform: translateX(-50%);
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.section:nth-of-type(even) {
  background: #f2f5fb;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f172a;
}

.site-header.scrolled {
  background: #0b1324;
}

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

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
}

.brand span {
  color: #93c5fd;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.05rem;
}

.nav-links a {
  color: #cbd5e1;
  font-weight: 600;
  padding: 0.2rem 0.3rem;
  transition: color 0.25s ease;
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #f8fafc;
  margin: 4px 0;
}

.hero {
  padding-top: 7.4rem;
  background: linear-gradient(180deg, #111827 0%, #1e293b 100%);
  color: #f8fafc;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr auto;
  gap: 1.6rem;
  align-items: center;
}

.hero-content,
.hero-profile {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
}

body.ready .hero-content {
  animation: heroEnter 0.9s ease forwards;
}

body.ready .hero-profile {
  animation: heroEnter 0.95s ease 0.12s forwards;
}

.eyebrow {
  color: #93c5fd;
  font-weight: 600;
  letter-spacing: 0.09em;
  font-size: 0.79rem;
  text-transform: uppercase;
}

h1 {
  margin-top: 0.4rem;
  font-size: clamp(2.2rem, 6vw, 4.3rem);
  line-height: 1.08;
  text-wrap: balance;
}

.typing-line {
  margin-top: 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #dbe6ff;
  min-height: 2rem;
}

.typing-cursor {
  animation: blink 0.8s steps(2, start) infinite;
}

.tagline {
  margin-top: 0.9rem;
  color: #cbd5e1;
  max-width: 58ch;
}

.hero-cta {
  margin-top: 1.55rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-profile {
  display: grid;
  place-items: center;
  position: relative;
}

.hero-profile::before {
  content: "";
  position: absolute;
  width: calc(clamp(180px, 24vw, 280px) + 22px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid rgba(147, 197, 253, 0.45);
  animation: haloPulse 3s ease-in-out infinite;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.profile-frame {
  width: clamp(180px, 24vw, 280px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  border: 1px solid rgba(191, 219, 254, 0.55);
  box-shadow: 0 0 0 7px rgba(96, 165, 250, 0.22), 0 16px 35px rgba(15, 23, 42, 0.24);
  animation: profileFloat 4.5s ease-in-out infinite;
  transition: box-shadow 0.3s ease;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: #0f172a;
  transition: transform 0.45s ease;
}

.hero-profile:hover::before {
  border-color: rgba(191, 219, 254, 0.95);
  animation-duration: 1.9s;
}

.hero-profile:hover .profile-frame {
  box-shadow: 0 0 0 9px rgba(96, 165, 250, 0.26), 0 20px 42px rgba(15, 23, 42, 0.28);
}

.hero-profile:hover .profile-frame img {
  transform: scale(1.06);
}

.profile-frame.no-image {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 28% 25%, #93c5fd 0%, #2563eb 58%, #1e3a8a 100%);
}

.profile-frame.no-image::after {
  content: "CG";
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 5vw, 2.7rem);
  color: #ffffff;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.btn {
  border-radius: 14px;
  padding: 0.8rem 1.2rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: var(--accent);
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  color: #ffffff;
  background: #334155;
  border-color: #334155;
}

.btn-ghost,
.btn-demo,
.btn-link {
  color: #1f2937;
  background: #ffffff;
  border-color: #cbd5e1;
}

.btn-demo:hover,
.btn-link:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-panel,
.skill-card,
.project-card,
.contact-info,
.edu-table-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  color: var(--text-main);
}

.hero-panel {
  padding: 1.35rem;
}

.hero-panel h3 {
  font-size: 1.15rem;
}

.hero-panel ul {
  list-style: none;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.hero-panel li {
  margin: 0.4rem 0;
  padding-left: 1rem;
  position: relative;
}

.hero-panel li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-stats {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-stats article {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 0.7rem;
}

.hero-stats h4 {
  font-size: 1.1rem;
  color: var(--text-main);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.section-text {
  margin-top: 0.65rem;
  color: var(--text-muted);
  max-width: 67ch;
}

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

.skill-card {
  padding: 1.05rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
}

.skill-card h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 28px;
  border-radius: 9px;
  font-size: 0.72rem;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  transition: transform 0.3s ease;
}

.skill-card:hover .icon {
  transform: rotate(-4deg) scale(1.05);
}

.chip-wrap {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-wrap span {
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #f8fafc;
  color: #1e3a8a;
  font-size: 0.82rem;
}

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

.secondary-projects {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.project-card::after {
  content: "View Project";
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  font-size: 0.73rem;
  letter-spacing: 0.03em;
  color: #0f172a;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  background: #eff6ff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
}

.project-card:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), var(--shadow-soft);
}

.project-card:hover::after,
.project-card:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.project-card h3 {
  color: var(--text-main);
}

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

.project-card.featured,
.featured-large {
  border-color: #bfdbfe;
  background: #ffffff;
}

.featured-large {
  min-height: 320px;
  padding: 1.35rem;
}

.project-badge {
  width: fit-content;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid #1e293b;
  font-weight: 700;
}

.stack {
  font-size: 0.86rem;
  color: #1f2937;
}

.media-note {
  font-size: 0.82rem;
  color: #1d4ed8;
  border-left: 2px solid #60a5fa;
  padding-left: 0.45rem;
}

.project-mobile-tag {
  width: fit-content;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.12rem 0.48rem;
  background: #eff6ff;
}

.project-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding-top: 0.35rem;
}

.edu-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.edu-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 670px;
}

.edu-table th,
.edu-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.8rem;
}

.edu-table th {
  color: #1f2937;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.simple-contact {
  max-width: 760px;
}

.contact-info {
  padding: 1rem;
}

.contact-links {
  margin-top: 0.8rem;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.contact-links li {
  color: var(--text-muted);
}

.contact-links a {
  color: #1d4ed8;
  position: relative;
  font-weight: 600;
}

.contact-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #1d4ed8;
  transition: width 0.3s ease;
}

.contact-links a:hover::after {
  width: 100%;
}

.feedback-section {
  padding-top: 4.2rem;
}

.feedback-form {
  margin-top: 1.35rem;
  max-width: 640px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.feedback-form input,
.feedback-form textarea {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text-main);
  padding: 0.68rem 0.8rem;
  font: inherit;
  outline: none;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.9rem;
}

.site-footer {
  padding: 0.5rem 0 1rem;
}

body.modal-open {
  overflow: hidden;
}

.footer-minimal {
  height: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 120;
}

.modal.active {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal-content {
  width: min(980px, 94%);
  max-height: 88vh;
  overflow: auto;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 1rem;
  transform: scale(0.94) translateY(12px);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #111827;
  cursor: pointer;
}

#modalBody {
  margin-top: 0.8rem;
}

.project-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  justify-items: center;
}

.project-gallery-wrap,
.project-video-wrap {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.65rem;
}

.gallery-frame {
  position: relative;
}

.gallery-main {
  min-height: 220px;
  max-height: 52vh;
  object-fit: contain;
  background: #f8fafc;
}

.mobile-gallery-frame .gallery-nav {
  top: 50%;
}

.device-stage {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 0.4rem 2.6rem;
}

.device-frame {
  width: min(320px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  padding: 10px;
  background: #0f172a;
  border: 1px solid #1f2937;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}

.device-notch {
  width: 36%;
  height: 14px;
  border-radius: 0 0 10px 10px;
  background: #111827;
  margin: 0 auto;
}

.device-screen {
  width: 100%;
  height: calc(100% - 20px);
  margin-top: 6px;
  border-radius: 22px;
  overflow: hidden;
  background: #0f172a;
  display: grid;
  place-items: center;
}

.mobile-media {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: #0f172a;
}

.mobile-media.video {
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

.gallery-nav.prev {
  left: 0.6rem;
}

.gallery-nav.next {
  right: 0.6rem;
}

.gallery-thumbs {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.4rem;
}

.gallery-thumb {
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 52px;
  object-fit: cover;
  display: block;
}

.gallery-thumb.active {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.modal-note,
.modal-empty {
  color: var(--text-muted);
  padding: 0.6rem 0.2rem;
}

.modal-media {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transform: translateY(6px);
  opacity: 0;
  animation: mediaZoomIn 0.28s ease forwards;
}

.modal-media.video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.stagger {
  transition-delay: calc(var(--stagger, 0) * 80ms);
}

.reveal-delay {
  transition-delay: 0.16s;
}

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

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.splash-screen.hide {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.splash-screen__card {
  width: min(420px, 88vw);
  padding: 2rem 1.6rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

.splash-screen__eyebrow {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #93c5fd;
}

.splash-screen__card h2 {
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.splash-screen__card p {
  color: #dbeafe;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes mediaZoomIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes profileFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes haloPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.06);
    opacity: 0.25;
  }
}

/* === ACHIEVEMENTS SECTION === */
.achievements-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.achievement-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  padding: 1rem;
  outline: none;
}

.achievement-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
}

.achievement-image-wrap {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  padding: 0.5rem;
}

.achievement-card:hover .achievement-image-wrap img {
  transform: scale(1.08);
}

.achievement-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.achievement-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.achievement-badge {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  background: #eff6ff;
  width: fit-content;
  font-weight: 600;
}

/* Featured Achievement - Google Cloud */
.achievement-featured {
  grid-column: span 1;
  position: relative;
  border: 1.5px solid #fbbf24;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.15), var(--shadow-soft);
}

.achievement-featured::before {
  content: "★";
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-size: 1.4rem;
  color: #fbbf24;
  opacity: 0.8;
  z-index: 1;
}

.achievement-featured:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.25), var(--shadow);
  background: linear-gradient(135deg, #ffffff 0%, #fef9f3 100%);
}

.achievement-featured .achievement-image-wrap {
  background: linear-gradient(135deg, #fff8dc 0%, #fffbeb 100%);
}

@media (max-width: 960px) {
  .hero-grid,
  .contact-grid,
  .featured-projects {
    grid-template-columns: 1fr;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

/* === ABOUT - centered polished layout === */
#about {
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.16), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

#about.about-section {
  padding: 5.8rem 0;
}

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

.about-card {
  padding: 2.15rem;
  border-radius: 22px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.about-title {
  color: #0f172a;
  margin-bottom: 0.75rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.about-content {
  margin: 0 auto 1.8rem;
  max-width: 850px;
  display: grid;
  gap: 1rem;
}

.about-content p {
  font-size: 1.04rem;
  line-height: 1.95;
  color: #334155;
  letter-spacing: 0.2px;
}

.edu-title {
  color: #1d4ed8;
  font-size: 1.18rem;
  margin-bottom: 1rem;
}

.edu-table-wrap {
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

#about .edu-table {
  background: transparent;
  width: 100%;
  min-width: 0;
}

#about .edu-table th {
  background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
  color: #1e3a8a;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1rem 0.9rem;
  border-bottom: 1px solid #bfdbfe;
}

#about .edu-table tbody tr {
  transition: background-color 0.2s ease;
}

#about .edu-table tbody tr:hover {
  background-color: #f8fbff;
}

#about .edu-table td {
  color: #334155;
  font-weight: 500;
  padding: 0.9rem;
  border-bottom: 1px solid #e5eefc;
}

.about-thanks {
  margin-top: 1.6rem;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 1rem;
}

@media (max-width: 960px) {
  .hero-profile {
    margin: 0.25rem 0;
  }

  .hero-profile::before {
    width: calc(clamp(170px, 46vw, 250px) + 18px);
  }

  .profile-frame {
    width: clamp(170px, 46vw, 250px);
  }

  .secondary-projects,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 4.9rem 0;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 4%;
    width: min(260px, 90vw);
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: #0f172a;
    padding: 0.95rem;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links[data-open="true"] {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .projects-grid,
  .skills-grid,
  .secondary-projects,
  .featured-projects,
  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6rem;
  }

  .section::before {
    width: 92%;
  }

  .btn,
  .project-actions {
    width: 100%;
  }

  .project-actions {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    max-height: 42vh;
  }

  .device-stage {
    padding: 0.25rem 0.5rem;
  }

  .device-frame {
    width: min(92vw, 360px);
  }

  .modal-content {
    width: min(980px, 96%);
    padding: 0.85rem;
  }

  .about-card {
    padding: 1.3rem;
  }

  .about-content p {
    font-size: 0.98rem;
    line-height: 1.85;
    text-align: left;
  }

  .edu-table-wrap {
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
