:root {
  --bg: #050816;
  --bg-2: #090d22;
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.16);
  --text: #f7fbff;
  --muted: #aab6d3;
  --cyan: #00e5ff;
  --pink: #ff3df2;
  --purple: #8b5cf6;
  --gold: #facc15;
  --green: #38ef7d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

i[class*="fa-"] {
  display: inline-block;
  min-width: 1em;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.fa-download::before,
.fa-file-arrow-down::before { content: "↓"; }
.fa-code::before { content: "</>"; font-size: 0.7em; }
.fa-fire::before { content: "CI"; font-size: 0.68em; }
.fa-laravel::before { content: "Lv"; font-size: 0.72em; }
.fa-java::before { content: "Jv"; font-size: 0.72em; }
.fa-leaf::before { content: "SB"; font-size: 0.68em; }
.fa-python::before { content: "Py"; font-size: 0.72em; }
.fa-layer-group::before { content: "UI"; font-size: 0.68em; }
.fa-html5::before { content: "H5"; font-size: 0.72em; }
.fa-css3-alt::before { content: "CSS"; font-size: 0.62em; }
.fa-js::before { content: "JS"; font-size: 0.72em; }
.fa-react::before { content: "Re"; font-size: 0.72em; }
.fa-mobile-screen-button::before { content: "↕"; }
.fa-database::before { content: "DB"; font-size: 0.68em; }
.fa-table::before { content: "SQL"; font-size: 0.58em; }
.fa-diagram-project::before { content: "ER"; font-size: 0.68em; }
.fa-magnifying-glass-chart::before { content: "⌕"; }
.fa-chart-line::before { content: "↗"; }
.fa-cloud-arrow-up::before,
.fa-cloud::before { content: "☁"; }
.fa-aws::before { content: "AWS"; font-size: 0.5em; }
.fa-git-alt::before { content: "Git"; font-size: 0.58em; }
.fa-github::before { content: "GH"; font-size: 0.68em; }
.fa-server::before { content: "Srv"; font-size: 0.54em; }
.fa-rocket::before { content: "↑"; }
.fa-envelope::before { content: "@"; }
.fa-phone::before { content: "☎"; }
.fa-whatsapp::before { content: "WA"; font-size: 0.62em; }
.fa-linkedin-in::before { content: "in"; }
.fa-instagram::before { content: "IG"; font-size: 0.66em; }
.fa-facebook-f::before { content: "f"; }
.fa-php::before { content: "PHP"; font-size: 0.54em; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 229, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 61, 242, 0.18), transparent 28%),
    radial-gradient(circle at 50% 85%, rgba(139, 92, 246, 0.22), transparent 30%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, auto, 52px 52px, 52px 52px, auto;
}

.cursor-glow {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.13), transparent 65%);
  z-index: 9999;
  transition: opacity 0.2s ease;
}

.header {
  width: min(1180px, calc(100% - 32px));
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 8, 22, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 15px 55px rgba(0, 0, 0, 0.28);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -0.04em; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #030014;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.35);
}
.brand-text { font-size: 1.2rem; }
.brand-text span { color: var(--cyan); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  transition: 0.25s ease;
}
.nav a:hover { color: var(--text); background: var(--card); }
.menu-btn { display: none; background: transparent; border: 0; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 999px; }

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 100px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
  padding-top: 140px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-cover-slider, .hero-overlay {
  position: absolute;
  inset: 0;
  border-radius: 38px;
}

.hero-cover-slider {
  z-index: -3;
  overflow: hidden;
}

.hero-cover-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s ease, transform 3s ease;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.05);
}

.hero-cover-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  z-index: -2;
  background: linear-gradient(90deg, rgba(5,8,22,0.92) 0%, rgba(5,8,22,0.75) 40%, rgba(5,8,22,0.88) 100%);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-content, .hero-visual {
  position: relative;
  z-index: 2;
}

.photo-note {
  margin-top: 18px;
  color: #d6def7;
  line-height: 1.7;
  max-width: 680px;
  font-size: 0.95rem;
}

.photo-note strong {
  color: var(--cyan);
}

.badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(56, 239, 125, 0.35);
  border-radius: 999px;
  color: #d9ffe8;
  background: rgba(56, 239, 125, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.badge span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 20px var(--green);
  animation: pulse 1.5s infinite;
}
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.78rem; font-weight: 900; margin-bottom: 12px; }
.hero h1 {
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #fff, #c7f8ff, #ffd6fb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h2 {
  font-size: clamp(1.65rem, 3vw, 3rem);
  color: var(--muted);
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.25s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #030014;
  box-shadow: 0 18px 48px rgba(0, 229, 255, 0.22);
}
.btn.secondary {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}
.resume-btn {
  gap: 10px;
}
.resume-btn i {
  font-size: 0.95rem;
}
.btn:hover { transform: translateY(-4px); filter: brightness(1.08); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; max-width: 620px; }
.stats div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  backdrop-filter: blur(15px);
}
.stats strong { display: block; font-size: 1.65rem; color: var(--text); }
.stats span { color: var(--muted); font-size: 0.88rem; }

.hero-visual { position: relative; min-height: 600px; display: grid; place-items: center; }
.code-card {
  width: min(100%, 520px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(6, 10, 28, 0.78);
  backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.card-top { display: flex; gap: 8px; padding: 18px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.04); }
.card-top span { width: 13px; height: 13px; border-radius: 50%; background: var(--pink); }
.card-top span:nth-child(2) { background: var(--gold); }
.card-top span:nth-child(3) { background: var(--green); }
pre { padding: 22px; overflow-x: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #d7faff; line-height: 1.8; font-size: 0.91rem; }
.profile-orb {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
}
.avatar {
  width: 150px;
  height: 150px;
  border-radius: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.16);
  background: linear-gradient(135deg, var(--cyan), var(--pink), var(--gold));
  box-shadow: 0 0 80px rgba(255, 61, 242, 0.32);
  z-index: 2;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.28); animation: rotate 12s linear infinite; }
.ring-one { width: 220px; height: 220px; }
.ring-two { width: 280px; height: 280px; animation-duration: 18s; animation-direction: reverse; }
.tech-chip {
  position: absolute;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.09);
  backdrop-filter: blur(10px);
  font-weight: 900;
  font-size: 0.8rem;
  z-index: 3;
}
.chip-1 { top: 30px; left: 18px; }
.chip-2 { top: 22px; right: 24px; }
.chip-3 { bottom: 24px; left: 20px; }
.chip-4 { bottom: 28px; right: 8px; }
.floating { animation: float 5s ease-in-out infinite; }

.section-title { max-width: 780px; margin-bottom: 42px; }
.section-title p { color: var(--cyan); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.78rem; font-weight: 900; margin-bottom: 12px; }
.section-title h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -0.07em; }

.about-grid, .project-grid, .faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.capability-grid article {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}
.capability-grid span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 900;
}
.capability-grid h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.035em;
}
.capability-grid p {
  color: var(--muted);
  line-height: 1.7;
}
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.about-card, .skill-box, .service-card, .project-card, .faq-item, .edu-card, .timeline-content, .contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.about-card { padding: 28px; min-height: 260px; }
.service-card, .faq-item { padding: 28px; }
.about-card h3, .skill-box h3, .service-card h3, .project-card h3, .faq-item h3, .edu-card h3 { font-size: 1.35rem; margin-bottom: 14px; letter-spacing: -0.04em; }
.about-card p, .service-card p, .project-card p, .faq-item p, .timeline-content p, .edu-card p, .contact-text { color: var(--muted); line-height: 1.8; }
.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.service-card h3 a {
  color: inherit;
}

.service-page {
  width: 100%;
  overflow-x: hidden;
}

.service-page .service-hero {
  grid-template-columns: 1fr;
  min-height: auto;
  padding-top: 132px;
  padding-bottom: 54px;
}

.service-page .hero-content {
  max-width: 920px;
}

.service-page .service-card h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}

.service-page .footer a {
  color: var(--cyan);
  font-weight: 900;
}

@media (max-width: 720px) {
  .service-page .service-hero {
    padding-top: 104px;
    padding-bottom: 34px;
  }

  .service-page .hero h1,
  .service-page h1 {
    font-size: clamp(2.35rem, 13vw, 4.4rem);
    letter-spacing: -0.05em;
  }
}

.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.skill-box { padding: 28px; }
.tags, .project-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span, .project-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.09);
  border: 1px solid rgba(0, 229, 255, 0.22);
  color: #d7fbff;
  font-size: 0.86rem;
  font-weight: 800;
}
.skill-icons {
  gap: 12px;
}
.skill-icons span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 16px;
  font-size: 1.35rem;
  transition: 0.24s ease;
}
.skill-icons span:hover {
  transform: translateY(-3px);
  border-color: rgba(0,229,255,0.48);
  background: rgba(0,229,255,0.16);
}
.skill-icons i {
  line-height: 1;
}

.timeline { position: relative; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--cyan), var(--pink)); }
.timeline-item { position: relative; padding-left: 52px; margin-bottom: 22px; }
.timeline-dot { position: absolute; left: 5px; top: 28px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--pink)); box-shadow: 0 0 25px rgba(0, 229, 255, 0.4); }
.timeline-content { padding: 26px; }
.timeline-content .time { color: var(--cyan); font-size: 0.88rem; font-weight: 900; }
.timeline-content h3 { font-size: 1.35rem; margin: 8px 0 10px; letter-spacing: -0.04em; }

.project-grid { grid-template-columns: repeat(3, 1fr); }
.project-card { padding: 26px; transition: 0.25s ease; }
.project-card:hover { transform: translateY(-8px); border-color: rgba(0,229,255,0.42); }
.project-icon {
  width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,229,255,0.22), rgba(255,61,242,0.22));
  border: 1px solid var(--border);
  color: var(--cyan);
  font-weight: 950;
  margin-bottom: 18px;
}
.project-tags { margin-top: 18px; }
.project-tags span { font-size: 0.78rem; padding: 7px 10px; }

.education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.edu-card { padding: 28px; }
.edu-card span { color: var(--cyan); font-weight: 900; font-size: 0.9rem; }
.edu-card strong { color: var(--gold); display: inline-block; margin-top: 14px; }

.contact-card { padding: 34px; display: grid; grid-template-columns: 1fr 0.9fr; gap: 34px; align-items: start; }
.contact-card h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.07em; margin-bottom: 18px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.contact-links a,
.social-links a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,0.08);
  color: #d9fbff;
  font-weight: 950;
  transition: 0.24s ease;
}
.contact-links a i,
.social-links a i {
  font-size: 1.08rem;
  line-height: 1;
}
.contact-links a:hover,
.social-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(0,229,255,0.48);
  background: rgba(0,229,255,0.12);
}
.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); outline: 0; border-radius: 18px;
  background: rgba(255,255,255,0.06); color: var(--text); padding: 15px 16px;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(0,229,255,0.58); box-shadow: 0 0 0 4px rgba(0,229,255,0.08); }
.contact-form textarea { resize: vertical; }
.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}
.form-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.form-status[data-status="success"] { color: var(--green); }
.form-status[data-status="error"] { color: #ff8aad; }
.form-status[data-status="info"] { color: var(--cyan); }

.footer { padding: 28px 16px 44px; text-align: center; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(24px); transition: 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.55; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(1deg); } }
@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 150px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(5,8,22,0.9) 0%, rgba(5,8,22,0.76) 40%, rgba(5,8,22,0.9) 100%); }
  .hero-visual { min-height: 460px; }
  .about-grid, .service-grid, .project-grid, .faq-grid, .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .cursor-glow { display: none; }
  .header { top: 12px; width: calc(100% - 22px); border-radius: 24px; }
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(5, 8, 22, 0.94);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav a { text-align: center; }
  .section { width: min(100% - 22px, 1180px); padding: 74px 0; }
  .hero { padding-top: 132px; }
  .stats, .about-grid, .skill-grid, .service-grid, .project-grid, .faq-grid, .education-grid, .capability-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; }
  .profile-orb { width: 210px; height: 210px; right: 10px; }
  .avatar { width: 118px; height: 118px; font-size: 2.3rem; border-radius: 34px; }
  .ring-one { width: 170px; height: 170px; }
  .ring-two { width: 210px; height: 210px; }
  pre { padding: 18px; }
  code { font-size: 0.78rem; }
}

@media (max-width: 430px) {
  .hero-actions .btn { width: 100%; }
  .brand-text { display: none; }
  .contact-links a { width: 100%; text-align: center; }
}

/* =========================
   Responsive spacing fixes
   ========================= */
body { line-height: 1.5; }
img { max-width: 100%; }

.section {
  width: min(1180px, calc(100% - 40px));
  padding: 96px 0;
}

.hero {
  padding: 140px 34px 72px;
  border-radius: 40px;
  min-height: 100svh;
}

.hero-cover-slider,
.hero-overlay {
  border-radius: inherit;
}

.code-card,
.contact-card,
.about-card,
.skill-box,
.project-card,
.edu-card,
.timeline-content {
  max-width: 100%;
}

.contact-links a,
.tags span,
.project-tags span {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .nav a {
    padding: 9px 10px;
    font-size: 0.86rem;
  }

  .hero {
    grid-template-columns: 1fr 0.85fr;
    gap: 32px;
  }
}

@media (max-width: 980px) {
  .section {
    width: min(100% - 32px, 1180px);
    padding: 78px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 132px 24px 56px;
    gap: 30px;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-visual {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .code-card {
    width: 100%;
    max-width: 680px;
    transform: none;
  }

  .floating {
    animation: floatMobile 5s ease-in-out infinite;
  }

  .profile-orb {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 0 auto;
    width: 240px;
    height: 240px;
  }

  .ring-one { width: 190px; height: 190px; }
  .ring-two { width: 240px; height: 240px; }

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

@media (max-width: 720px) {
  :root { --radius: 22px; }

  .cursor-glow { display: none; }

  .header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 10px 12px;
    border-radius: 22px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .brand-text { font-size: 1.05rem; }
  .menu-btn { display: block; padding: 4px; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(5, 8, 22, 0.96);
    backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav.open { display: flex; }
  .nav a { text-align: center; padding: 11px 12px; }

  .section {
    width: calc(100% - 24px);
    padding: 58px 0;
  }

  .hero {
    width: calc(100% - 20px);
    padding: 110px 16px 42px;
    gap: 24px;
    border-radius: 26px;
  }

  .badge {
    padding: 8px 10px;
    font-size: 0.78rem;
    margin-bottom: 16px;
  }

  .eyebrow {
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    margin-bottom: 10px;
  }

  .hero h2 {
    font-size: clamp(1.2rem, 6vw, 1.65rem);
    line-height: 1.25;
    margin-bottom: 16px;
  }

  .hero-text,
  .about-card p,
  .project-card p,
  .timeline-content p,
  .edu-card p,
  .contact-text {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .hero-actions {
    margin-top: 22px;
    gap: 10px;
  }

  .btn {
    min-height: 46px;
    padding: 0 18px;
    font-size: 0.92rem;
  }

  .stats {
    grid-template-columns: 1fr;
    margin-top: 24px;
    gap: 10px;
  }

  .stats div {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .stats strong { font-size: 1.35rem; }
  .stats span { font-size: 0.82rem; }

  .photo-note {
    display: none;
  }

  .hero-visual {
    gap: 20px;
  }

  .code-card {
    border-radius: 20px;
  }

  .card-top {
    padding: 14px;
  }

  .card-top span {
    width: 10px;
    height: 10px;
  }

  pre {
    padding: 16px;
  }

  code {
    font-size: 0.72rem;
    line-height: 1.65;
  }

  .profile-orb {
    width: 190px;
    height: 190px;
  }

  .avatar {
    width: 112px;
    height: 112px;
    border-radius: 30px;
  }

  .ring-one { width: 154px; height: 154px; }
  .ring-two { width: 190px; height: 190px; }

  .tech-chip {
    padding: 7px 9px;
    font-size: 0.7rem;
  }

  .chip-1 { top: 18px; left: 8px; }
  .chip-2 { top: 14px; right: 12px; }
  .chip-3 { bottom: 16px; left: 8px; }
  .chip-4 { bottom: 18px; right: 4px; }

  .section-title {
    margin-bottom: 24px;
  }

  .section-title p {
    letter-spacing: 0.18em;
    font-size: 0.72rem;
  }

  .section-title h2,
  .contact-card h2 {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
  }

  .about-grid,
  .skill-grid,
  .project-grid,
  .education-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-card,
  .skill-box,
  .project-card,
  .edu-card,
  .timeline-content {
    padding: 20px;
  }

  .about-card {
    min-height: auto;
  }

  .about-card h3,
  .skill-box h3,
  .project-card h3,
  .edu-card h3,
  .timeline-content h3 {
    font-size: 1.14rem;
    margin-bottom: 10px;
  }

  .tags,
  .project-tags {
    gap: 8px;
  }

  .tags span,
  .project-tags span {
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 34px;
    margin-bottom: 16px;
  }

  .timeline-dot {
    left: 0;
    top: 24px;
    width: 20px;
    height: 20px;
  }

  .contact-card {
    padding: 22px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-links {
    gap: 10px;
    margin-top: 20px;
  }

  .contact-links a {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
  }

  .contact-form {
    gap: 12px;
  }

  .contact-form input,
  .contact-form textarea {
    border-radius: 15px;
    padding: 13px 14px;
  }

  .footer {
    padding: 22px 14px 34px;
    font-size: 0.88rem;
  }
}

@media (max-width: 430px) {
  .section {
    width: calc(100% - 18px);
    padding: 48px 0;
  }

  .hero {
    width: calc(100% - 18px);
    padding: 104px 14px 36px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .brand-text {
    display: none;
  }

  code {
    font-size: 0.66rem;
  }

  .profile-orb {
    width: 176px;
    height: 176px;
  }

  .avatar {
    width: 104px;
    height: 104px;
    border-radius: 28px;
  }

  .ring-one { width: 144px; height: 144px; }
  .ring-two { width: 176px; height: 176px; }
}

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

/* ===== HERO REWORK: remove background banner, place cover + profile at top ===== */
.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  padding-top: 132px;
  align-items: start;
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.hero::before,
.hero::after,
.hero-cover-slider,
.hero-overlay {
  display: none !important;
}

.hero-top-media {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: center;
  margin-bottom: 8px;
}

.hero-banner-card,
.hero-profile-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.05));
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.24);
}

.hero-banner-card {
  padding: 10px;
  overflow: hidden;
}

.hero-banner-card img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
}

.hero-profile-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
}

.hero-profile-avatar {
  width: 126px;
  height: 126px;
  border-radius: 30px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 48px rgba(0,0,0,0.32);
  background: rgba(255,255,255,0.06);
}

.hero-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-profile-info h3 {
  margin-top: 14px;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
}

.hero-profile-info p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-content {
  padding-top: 4px;
}

.hero-visual {
  min-height: auto;
  align-self: start;
  padding-top: 84px;
}

.code-card {
  transform: none;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-top-media {
    grid-template-columns: 1fr 210px;
  }

  .hero-visual {
    padding-top: 0;
  }
}

@media (max-width: 780px) {
  .hero {
    padding-top: 118px;
    gap: 22px;
  }

  .hero-top-media {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-banner-card img {
    height: auto;
    aspect-ratio: 16 / 5;
  }

  .hero-profile-card {
    min-height: auto;
    padding: 18px 14px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 14px;
  }

  .hero-profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    flex: 0 0 90px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .hero h2 {
    font-size: clamp(1.45rem, 6vw, 2.2rem);
  }
}

@media (max-width: 430px) {
  .hero {
    padding-top: 108px;
  }

  .hero-banner-card {
    padding: 7px;
    border-radius: 22px;
  }

  .hero-banner-card img {
    border-radius: 16px;
    aspect-ratio: 16 / 6;
  }

  .hero-profile-card {
    padding: 14px;
    border-radius: 22px;
  }

  .hero-profile-avatar {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    flex-basis: 78px;
  }

  .hero-profile-info h3 {
    font-size: 1rem;
    margin-top: 0;
  }

  .hero-profile-info p {
    font-size: 0.84rem;
  }
}

/* ===== FULL-WIDTH BANNER + FLOATING PROFILE + ONE-LINE NAME ===== */
.hero-top-media {
  grid-column: 1 / -1;
  display: block;
  margin-bottom: 10px;
}

.hero-banner-full {
  position: relative;
  width: 100%;
  padding: 12px;
  overflow: visible;
}

.hero-banner-full img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
}

.hero-profile-floating {
  position: absolute;
  right: 28px;
  bottom: -56px;
  width: 220px;
  min-height: 230px;
  z-index: 3;
}

.hero-content {
  padding-top: 48px;
}

.hero h1 {
  white-space: nowrap;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  margin-bottom: 10px;
}

.hero h2 {
  max-width: 620px;
}

@media (min-width: 1101px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 38px;
  }

  .hero-visual {
    padding-top: 40px;
  }
}

@media (max-width: 1100px) {
  .hero-banner-full img {
    height: 230px;
  }

  .hero-profile-floating {
    right: 20px;
    bottom: -50px;
    width: 200px;
    min-height: 210px;
  }

  .hero-content {
    padding-top: 62px;
  }

  .hero h1 {
    white-space: normal;
  }
}

@media (max-width: 780px) {
  .hero-banner-full {
    padding: 8px;
  }

  .hero-banner-full img {
    height: auto;
    aspect-ratio: 16 / 6;
    border-radius: 18px;
  }

  .hero-profile-floating {
    position: static;
    width: 100%;
    min-height: auto;
    margin-top: 14px;
  }

  .hero-content {
    padding-top: 8px;
  }

  .hero h1 {
    white-space: nowrap;
    font-size: clamp(2.4rem, 11vw, 4rem);
  }
}

@media (max-width: 520px) {
  .hero-banner-full img {
    aspect-ratio: 16 / 7;
  }

  .hero-profile-card {
    padding: 14px;
    gap: 12px;
  }

  .hero-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    flex: 0 0 76px;
  }

  .hero-profile-info h3 {
    font-size: 0.98rem;
  }

  .hero h1 {
    white-space: nowrap;
    font-size: clamp(2.1rem, 10.5vw, 3.3rem);
    letter-spacing: -0.07em;
  }

  .hero h2 {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }
}

/* ===== HERO VISUAL LIKE REFERENCE: REAL PHOTO ORB NEXT TO CODE CARD ===== */
.hero-top-media {
  display: block;
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.hero-banner-full {
  position: relative;
  width: 100%;
  padding: 12px;
  overflow: hidden;
}

.hero-banner-full img {
  width: 100%;
  height: 250px;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 24px;
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.6s ease;
  background: rgba(5, 8, 22, 0.82);
}

.hero-banner-full img.is-changing {
  opacity: 0;
  transform: scale(1.015);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 22px;
}

.code-card {
  width: min(100%, 620px);
  transform: none;
  margin-right: 120px;
}

.profile-orb-real {
  position: absolute;
  right: 6px;
  bottom: 10px;
  width: 360px;
  height: 360px;
  display: grid;
  place-items: center;
}

.avatar-real {
  width: 188px;
  height: 188px;
  border-radius: 40px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.12);
  background: #020617;
}

.avatar-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.profile-orb-real .ring-one { width: 220px; height: 220px; }
.profile-orb-real .ring-two { width: 300px; height: 300px; }
.profile-orb-real .chip-1 { top: 54px; left: 20px; }
.profile-orb-real .chip-2 { top: 38px; right: 6px; }
.profile-orb-real .chip-3 { bottom: 42px; left: 18px; }
.profile-orb-real .chip-4 { bottom: 34px; right: 0; }

.hero h1 {
  white-space: nowrap;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.98;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 18px;
  }

  .hero-visual {
    min-height: 580px;
  }

  .code-card {
    margin-right: 80px;
  }
}

@media (max-width: 900px) {
  .hero-banner-full img {
    height: auto;
    aspect-ratio: 16 / 5;
  }

  .hero-visual {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding-top: 8px;
  }

  .code-card {
    width: 100%;
    margin-right: 0;
  }

  .profile-orb-real {
    position: relative;
    right: auto;
    bottom: auto;
    width: 300px;
    height: 300px;
  }

  .profile-orb-real .ring-one { width: 200px; height: 200px; }
  .profile-orb-real .ring-two { width: 270px; height: 270px; }

  .hero h1 {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .hero-banner-full {
    padding: 8px;
  }

  .hero-banner-full img {
    border-radius: 16px;
    aspect-ratio: 16 / 6.5;
  }

  .profile-orb-real {
    width: 260px;
    height: 260px;
  }

  .avatar-real {
    width: 152px;
    height: 152px;
    border-radius: 34px;
  }

  .profile-orb-real .ring-one { width: 184px; height: 184px; }
  .profile-orb-real .ring-two { width: 240px; height: 240px; }

  .profile-orb-real .chip-1 { top: 28px; left: 6px; }
  .profile-orb-real .chip-2 { top: 26px; right: 2px; }
  .profile-orb-real .chip-3 { bottom: 20px; left: 6px; }
  .profile-orb-real .chip-4 { bottom: 18px; right: 0; }

  .hero h1 {
    white-space: nowrap;
    font-size: clamp(2.05rem, 10vw, 3.2rem);
    letter-spacing: -0.07em;
  }
}

/* ===== EXTRA SPACE FIX + WIDER CODE CARD ===== */
.hero {
  gap: 24px;
  padding-top: 118px;
  align-items: start;
}

.hero-top-media {
  margin-bottom: 0;
}

.hero-banner-full {
  padding: 8px;
}

.hero-banner-full img {
  height: 220px;
}

.hero-content {
  padding-top: 0 !important;
}

.hero-visual {
  min-height: 480px;
  padding-top: 0;
  align-self: start;
  justify-content: flex-start;
}

.code-card {
  width: 100%;
  max-width: 760px;
  margin-right: 0;
  margin-left: auto;
}

.code-card pre {
  white-space: pre-wrap;
  overflow-x: visible;
}

.code-card code {
  display: block;
  font-size: 0.86rem;
  line-height: 1.7;
  word-break: break-word;
}

.profile-orb-real {
  right: 10px;
  bottom: -4px;
  width: 330px;
  height: 330px;
}

.profile-orb-real .ring-one { width: 205px; height: 205px; }
.profile-orb-real .ring-two { width: 280px; height: 280px; }

@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .hero-banner-full img {
    height: 200px;
  }

  .hero-visual {
    min-height: 450px;
  }

  .code-card {
    max-width: 700px;
  }

  .profile-orb-real {
    width: 300px;
    height: 300px;
    right: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    gap: 18px;
  }

  .hero-banner-full img {
    height: auto;
    aspect-ratio: 16 / 5;
  }

  .hero-visual {
    min-height: auto;
    gap: 18px;
  }

  .code-card {
    max-width: 100%;
  }

  .code-card code {
    font-size: 0.82rem;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 102px;
    gap: 16px;
  }

  .hero-banner-full img {
    aspect-ratio: 16 / 6.2;
  }

  .code-card code {
    font-size: 0.76rem;
    line-height: 1.6;
  }
}

/* Keep every cover slide in one consistent full-width frame without cropping. */
.hero-banner-full {
  aspect-ratio: 4 / 1;
  background: rgba(5, 8, 22, 0.82);
}

.hero-banner-full img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

@media (max-width: 900px) {
  .hero-banner-full {
    aspect-ratio: 4 / 1;
  }
}

@media (max-width: 520px) {
  .hero-banner-full {
    aspect-ratio: 4 / 1;
  }
}

/* Remove extra empty space between hero stats and the About section. */
.hero {
  min-height: auto;
  padding-bottom: 36px;
}

.about {
  padding-top: 36px;
}

@media (max-width: 900px) {
  .hero {
    padding-bottom: 28px;
  }

  .about {
    padding-top: 28px;
  }
}

/* Compact global spacing so sections do not leave large blank bands. */
.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero {
  row-gap: 22px;
  padding-top: 112px;
  padding-bottom: 24px;
}

.hero-content {
  align-self: start;
}

.hero-visual {
  min-height: 380px;
}

.stats {
  margin-top: 24px;
}

.section-title {
  margin-bottom: 30px;
}

.about-grid,
.skill-grid,
.service-grid,
.project-grid,
.faq-grid,
.education-grid {
  gap: 16px;
}

.about {
  padding-top: 24px;
}

@media (max-width: 1180px) {
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero-visual {
    min-height: 340px;
  }
}

@media (max-width: 900px) {
  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero {
    row-gap: 16px;
    padding-top: 96px;
    padding-bottom: 18px;
  }

  .hero-visual {
    min-height: auto;
  }

  .stats,
  .hero-actions {
    margin-top: 20px;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .about {
    padding-top: 18px;
  }
}

@media (max-width: 520px) {
  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero {
    padding-top: 90px;
    padding-bottom: 14px;
  }

  .stats,
  .hero-actions {
    margin-top: 16px;
  }

  .section-title {
    margin-bottom: 20px;
  }

  .about {
    padding-top: 14px;
  }
}

/* Tighten dense content sections so large gaps do not appear between card grids. */
.about,
.skills,
.services,
.experience,
.projects,
.faq,
.education,
.contact {
  padding-top: 44px;
  padding-bottom: 44px;
}

.skills {
  padding-bottom: 24px;
}

.experience {
  padding-top: 24px;
}

.skill-box,
.about-card,
.service-card,
.project-card,
.faq-item,
.edu-card {
  padding: 24px;
}

.about-card {
  min-height: 220px;
}

.skill-box {
  min-height: 150px;
}

@media (max-width: 900px) {
  .about,
  .skills,
  .services,
  .experience,
  .projects,
  .faq,
  .education,
  .contact {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .skills {
    padding-bottom: 20px;
  }

  .experience {
    padding-top: 20px;
  }

  .skill-box,
  .about-card,
  .service-card,
  .project-card,
  .faq-item,
  .edu-card {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .about,
  .skills,
  .services,
  .experience,
  .projects,
  .faq,
  .education,
  .contact {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .skills {
    padding-bottom: 16px;
  }

  .experience {
    padding-top: 16px;
  }
}

.skill-icons span {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 16px;
  font-size: 1.35rem;
}

@media (max-width: 520px) {
  .skill-icons span {
    width: 44px;
    height: 44px;
    font-size: 1.18rem;
  }
}

/* Polished skill icon cards. */
.skill-box {
  position: relative;
  overflow: visible;
  min-height: 190px;
}

.skill-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(0,229,255,0.16), transparent 32%),
    radial-gradient(circle at 82% 80%, rgba(255,61,242,0.12), transparent 34%);
}

.skill-box h3 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.skill-box h3 i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,229,255,0.28);
  border-radius: 13px;
  background: rgba(0,229,255,0.1);
  color: var(--cyan);
  font-size: 1rem;
}

.skill-icons {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 64px));
  gap: 18px;
}

.skill-icons span {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
    rgba(0,229,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 18px 34px rgba(0,0,0,0.22);
  color: #e9fdff;
  font-size: 1.72rem;
  isolation: isolate;
}

.skill-icons span::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0.72;
  background: linear-gradient(135deg, rgba(0,229,255,0.36), rgba(255,61,242,0.18));
}

.skill-icons span::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(5,8,22,0.92);
  color: #e9fdff;
  font-size: 0.74rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0,0,0,0.26);
  transition: 0.24s ease;
}

.skill-icons span:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 22px 44px rgba(0,229,255,0.16);
}

.skill-icons span:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.skill-icons span[aria-label="PHP"] { color: #b7c8ff; }
.skill-icons span[aria-label="CodeIgniter"] { color: #ff8f65; }
.skill-icons span[aria-label="Laravel"] { color: #ff7c74; }
.skill-icons span[aria-label="Java"] { color: #8fd8ff; }
.skill-icons span[aria-label="Spring Boot"] { color: #9cffb6; }
.skill-icons span[aria-label="Python"] { color: #ffe17a; }
.skill-icons span[aria-label="HTML5"] { color: #ff9a66; }
.skill-icons span[aria-label="CSS3"] { color: #7ab8ff; }
.skill-icons span[aria-label="JavaScript"] { color: #ffe66d; }
.skill-icons span[aria-label="AJAX"] { color: #9ff4ff; }
.skill-icons span[aria-label="React Basics"] { color: #8eeeff; }
.skill-icons span[aria-label="Responsive UI"] { color: #d8b4fe; }
.skill-icons span[aria-label="MySQL"] { color: #7dd3fc; }
.skill-icons span[aria-label="SQL"] { color: #b6f2ff; }
.skill-icons span[aria-label="Database Design"] { color: #c4b5fd; }
.skill-icons span[aria-label="Queries"] { color: #a7f3d0; }
.skill-icons span[aria-label="Reports"] { color: #fcd34d; }
.skill-icons span[aria-label="AWS EC2"],
.skill-icons span[aria-label="AWS S3"] { color: #ffd27a; }
.skill-icons span[aria-label="Git"] { color: #ff8c6b; }
.skill-icons span[aria-label="GitHub"] { color: #ffffff; }
.skill-icons span[aria-label="cPanel"] { color: #93c5fd; }
.skill-icons span[aria-label="Deployment"] { color: #86efac; }

@media (max-width: 520px) {
  .skill-icons {
    grid-template-columns: repeat(auto-fit, minmax(54px, 54px));
    gap: 12px;
  }

  .skill-icons span {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 1.42rem;
  }
}

/* Premium contact section treatment. */
.contact-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 8% 12%, rgba(0,229,255,0.13), transparent 32%),
    radial-gradient(circle at 78% 20%, rgba(255,61,242,0.14), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  box-shadow: 0 32px 90px rgba(0,0,0,0.32);
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 28%, rgba(0,229,255,0.08));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-card h2 {
  max-width: 640px;
  background: linear-gradient(90deg, #fff, #ddfbff, #ffd6fb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-text {
  max-width: 720px;
  font-size: 1.02rem;
}

.contact-links,
.social-links {
  gap: 14px;
}

.contact-links {
  margin-top: 32px;
}

.contact-links a,
.social-links a {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.045)),
    rgba(9,13,34,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 18px 36px rgba(0,0,0,0.24);
}

.contact-links a i,
.social-links a i {
  font-size: 1.28rem;
}

.contact-links a:hover,
.social-links a:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 24px 48px rgba(0,229,255,0.15);
}

.email-icon { color: #67e8f9; }
.phone-icon { color: #86efac; }
.whatsapp-icon { color: #25d366; }
.resume-icon { color: #facc15; }
.linkedin-icon { color: #0a66c2; }
.github-icon { color: #f8fafc; }
.instagram-icon { color: #f472b6; }
.facebook-icon { color: #60a5fa; }

.email-icon:hover {
  border-color: rgba(103,232,249,0.48);
  background: rgba(103,232,249,0.12);
}
.phone-icon:hover {
  border-color: rgba(134,239,172,0.5);
  background: rgba(134,239,172,0.12);
}
.whatsapp-icon:hover {
  border-color: rgba(37,211,102,0.52);
  background: rgba(37,211,102,0.13);
}
.resume-icon:hover {
  border-color: rgba(250,204,21,0.58);
  background: rgba(250,204,21,0.14);
}
.linkedin-icon:hover {
  border-color: rgba(10,102,194,0.6);
  background: rgba(10,102,194,0.16);
}
.github-icon:hover {
  border-color: rgba(248,250,252,0.48);
  background: rgba(248,250,252,0.1);
}
.instagram-icon:hover {
  border-color: rgba(244,114,182,0.58);
  background: rgba(244,114,182,0.14);
}
.facebook-icon:hover {
  border-color: rgba(96,165,250,0.58);
  background: rgba(96,165,250,0.14);
}

.contact-form {
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  min-height: 58px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)),
    rgba(5,8,22,0.28);
  border-color: rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.contact-form textarea {
  min-height: 170px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(218,226,247,0.58);
  font-weight: 800;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(5,8,22,0.42);
  border-color: rgba(0,229,255,0.5);
  box-shadow: 0 0 0 4px rgba(0,229,255,0.08), 0 20px 42px rgba(0,0,0,0.18);
}

.contact-form .btn.primary {
  min-height: 60px;
  border-radius: 24px;
  color: #030014;
  box-shadow: 0 22px 52px rgba(0,229,255,0.18), 0 18px 44px rgba(255,61,242,0.13);
}

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

@media (max-width: 720px) {
  .contact-links a,
  .social-links a {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .contact-form input,
  .contact-form textarea {
    border-radius: 20px;
  }
}

/* Rotating backend/tool orbit around the profile photo. */
.profile-orb-real {
  overflow: visible;
}

.orbit-tools {
  position: absolute;
  inset: 0;
  z-index: 4;
  animation: orbitSpin 28s linear infinite;
  pointer-events: none;
}

.profile-orb-real .tech-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.055)),
    rgba(7,12,30,0.78);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f7fbff;
  box-shadow: 0 16px 34px rgba(0,0,0,0.28);
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateX(var(--orbit-size))
    rotate(calc(-1 * var(--angle)));
  animation: orbitCounterSpin 28s linear infinite;
}

.profile-orb-real .chip-1 { --angle: 0deg; --orbit-size: 176px; color: #b7c8ff; }
.profile-orb-real .chip-2 { --angle: 45deg; --orbit-size: 176px; color: #ff7c74; }
.profile-orb-real .chip-3 { --angle: 90deg; --orbit-size: 176px; color: #ffb86b; }
.profile-orb-real .chip-4 { --angle: 135deg; --orbit-size: 176px; color: #8fd8ff; }
.profile-orb-real .chip-5 { --angle: 180deg; --orbit-size: 176px; color: #9cffb6; }
.profile-orb-real .chip-6 { --angle: 225deg; --orbit-size: 176px; color: #7dd3fc; }
.profile-orb-real .chip-7 { --angle: 270deg; --orbit-size: 176px; color: #ffd27a; }
.profile-orb-real .chip-8 { --angle: 315deg; --orbit-size: 176px; color: #ff8c6b; }

.profile-orb-real:hover .orbit-tools,
.profile-orb-real:hover .tech-chip {
  animation-play-state: paused;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes orbitCounterSpin {
  to {
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translateX(var(--orbit-size))
      rotate(calc(-1 * var(--angle) - 360deg));
  }
}

@media (max-width: 900px) {
  .profile-orb-real .tech-chip {
    min-width: 58px;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .profile-orb-real .chip-1,
  .profile-orb-real .chip-2,
  .profile-orb-real .chip-3,
  .profile-orb-real .chip-4,
  .profile-orb-real .chip-5,
  .profile-orb-real .chip-6,
  .profile-orb-real .chip-7,
  .profile-orb-real .chip-8 {
    --orbit-size: 145px;
  }
}

@media (max-width: 520px) {
  .profile-orb-real .tech-chip {
    min-width: 48px;
    min-height: 32px;
    padding: 7px 9px;
    font-size: 0.64rem;
  }

  .profile-orb-real .chip-1,
  .profile-orb-real .chip-2,
  .profile-orb-real .chip-3,
  .profile-orb-real .chip-4,
  .profile-orb-real .chip-5,
  .profile-orb-real .chip-6,
  .profile-orb-real .chip-7,
  .profile-orb-real .chip-8 {
    --orbit-size: 124px;
  }
}

/* Fine tune only Laravel, CodeIgniter, and Java hero chips. */
.profile-orb-real .chip-2 {
  --angle: 34deg;
  --orbit-size: 158px;
  width: 118px;
  height: 42px;
}

.profile-orb-real .chip-3 {
  --angle: 92deg;
  --orbit-size: 150px;
  width: 118px;
  height: 42px;
  font-size: 0.74rem;
  padding-inline: 11px;
}

.profile-orb-real .chip-4 {
  --angle: 148deg;
  --orbit-size: 158px;
  width: 118px;
  height: 42px;
}

@media (max-width: 900px) {
  .profile-orb-real .chip-2 {
    --angle: 32deg;
    --orbit-size: 132px;
    width: 104px;
    height: 36px;
  }

  .profile-orb-real .chip-3 {
    --angle: 92deg;
    --orbit-size: 126px;
    width: 104px;
    height: 36px;
    font-size: 0.68rem;
    padding-inline: 9px;
  }

  .profile-orb-real .chip-4 {
    --angle: 150deg;
    --orbit-size: 132px;
    width: 104px;
    height: 36px;
  }
}

@media (max-width: 520px) {
  .profile-orb-real .chip-2 {
    --angle: 32deg;
    --orbit-size: 112px;
    width: 88px;
    height: 32px;
  }

  .profile-orb-real .chip-3 {
    --angle: 92deg;
    --orbit-size: 106px;
    width: 88px;
    height: 32px;
    font-size: 0.56rem;
    padding-inline: 7px;
  }

  .profile-orb-real .chip-4 {
    --angle: 150deg;
    --orbit-size: 112px;
    width: 88px;
    height: 32px;
  }
}

/* Prevent empty mobile space after the footer. */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .contact {
    padding-bottom: 18px;
  }

  .footer {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}

/* Final responsive safety net for every page. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body,
main,
section,
header,
footer,
div,
article,
form,
nav,
pre,
code {
  min-width: 0;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

.section,
.header,
.hero,
.service-page,
.service-page .section,
.service-page .hero {
  max-width: calc(100% - 22px);
}

.about-grid,
.capability-grid,
.skill-grid,
.service-grid,
.project-grid,
.faq-grid,
.education-grid,
.stats,
.contact-card {
  min-width: 0;
}

.about-card,
.capability-grid article,
.skill-box,
.service-card,
.project-card,
.faq-item,
.edu-card,
.timeline-content,
.contact-card,
.code-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero h1,
.hero h2,
.section-title h2,
.contact-card h2,
.service-page h1,
.service-page h2,
.service-card h2,
.service-card h3,
.faq-item h3,
.project-card h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
  white-space: normal;
}

.hero-actions,
.contact-links,
.social-links,
.project-tags,
.tags {
  min-width: 0;
}

.btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.footer {
  overflow-wrap: anywhere;
}

.footer p {
  max-width: min(1180px, calc(100% - 22px));
  margin-inline: auto;
}

.footer a {
  display: inline-block;
  margin: 4px 3px;
}

/* Calm down non-hero headings across the site. */
main > .section:not(.hero) .section-title h2 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.capability-strip {
  padding-top: 34px;
  padding-bottom: 34px;
}

.service-page .service-hero h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.service-page .service-hero .hero-text {
  max-width: 780px;
}

.service-page .section-title h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
}

/* Keep every page H1 readable, not oversized. */
h1,
.hero h1,
.service-page h1,
.service-page .service-hero h1 {
  max-width: 920px;
  font-size: clamp(2.15rem, 4.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  white-space: normal;
}

@media (max-width: 980px) {
  .hero,
  .service-page .hero,
  .service-page .service-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .section,
  .service-page .section {
    width: min(100% - 22px, 1180px);
    max-width: calc(100% - 22px);
  }

  .hero,
  .service-page .hero,
  .service-page .service-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1,
  .service-page h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .service-page .service-hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.9rem);
  }

  .hero h2 {
    font-size: clamp(1.18rem, 6vw, 1.65rem);
  }

  .section-title h2,
  .contact-card h2 {
    font-size: clamp(1.55rem, 7.5vw, 2.15rem);
    letter-spacing: -0.045em;
  }

  .service-page .service-grid,
  .service-page .faq-grid,
  .service-grid,
  .faq-grid,
  .project-grid,
  .about-grid,
  .capability-grid,
  .skill-grid,
  .education-grid,
  .stats,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .capability-grid article,
  .service-card,
  .faq-item,
  .about-card,
  .project-card,
  .skill-box,
  .edu-card,
  .contact-card {
    padding: 20px;
  }

  .capability-strip {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .contact-links a,
  .social-links a {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
  }

  pre {
    max-width: 100%;
    overflow-x: auto;
  }

  .code-card pre {
    overflow-x: auto;
  }

  .skill-icons span::after,
  .profile-orb-real .tech-chip {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .section,
  .service-page .section {
    width: min(100% - 18px, 1180px);
    max-width: calc(100% - 18px);
  }

  .hero,
  .service-page .hero,
  .service-page .service-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .capability-grid article,
  .service-card,
  .faq-item,
  .about-card,
  .project-card,
  .skill-box,
  .edu-card,
  .contact-card {
    padding: 18px;
  }

  .service-page .service-hero h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.45rem);
  }

  .contact-links,
  .social-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-links a,
  .social-links a {
    width: 100%;
    min-width: 0;
    flex: none;
  }
}

/* Full-width banner: keep the whole artwork visible without cropping. */
.hero-top-media {
  width: 100%;
}

.hero-banner-full {
  width: 100%;
  aspect-ratio: 3 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(5, 8, 22, 0.82);
}

.hero-banner-full img,
.hero-banner-card img,
#heroBannerImage {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 720px) {
  .hero-banner-full {
    aspect-ratio: 3 / 1;
  }
}
