:root {
  --navy: #111827;
  --navy-soft: #1f2937;
  --text: #253047;
  --muted: #667085;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --white: #ffffff;
  --soft: #f5f7fb;
  --line: #e1e7f0;
  --radius: 12px;
  --shadow: 0 10px 28px rgba(17, 24, 39, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; overflow-x: hidden; background: var(--white); color: var(--text); font-family: Inter, "Noto Sans Myanmar", "Myanmar Text", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.7; }
body.menu-open, body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; font: inherit; }
.container { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-soft { background: var(--soft); }
.kicker { margin: 0 0 10px; color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.section-heading { max-width: 650px; margin-bottom: 42px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; letter-spacing: -.035em; }
.section-heading > p:last-child:not(.kicker) { margin: 12px 0 0; color: var(--muted); }

.hero { min-height: 100svh; background: var(--navy); color: var(--white); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.logo { font-size: 1.08rem; font-weight: 750; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #cbd2dd; font-size: .9rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.menu-btn { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; }
.menu-btn span { display: block; height: 2px; margin: 5px 0; background: var(--white); transition: transform .2s, opacity .2s; }
.hero-inner { min-height: calc(100svh - 78px); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(48px, 8vw, 100px); padding: 64px 0 80px; }
.hero-copy h1 { margin: 0; font-size: clamp(3.25rem, 7vw, 5.75rem); line-height: 1; letter-spacing: -.055em; }
.life-loop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; color: #aebbd0; font-size: .76rem; font-weight: 650; letter-spacing: .035em; }
.life-loop span { display: inline-flex; align-items: center; gap: 7px; transition: color .2s ease, transform .2s ease; }
.life-loop span:not(:last-child)::after { content: "·"; margin-left: 11px; color: #596987; }
.life-loop svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: #818cf8; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease, filter .2s ease; }
.life-loop span:hover { color: #f1f5ff; transform: translateY(-1px); }
.life-loop span:hover svg { stroke: #67e8f9; filter: drop-shadow(0 0 5px rgba(34, 211, 238, .32)); }
.hero-copy h2 { margin: 15px 0 0; color: #cbd5e1; font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-weight: 500; }
.identity { margin: 24px 0 0; color: #d8deea; font-size: .95rem; font-weight: 600; letter-spacing: .035em; }
.identity span { padding: 0 6px; color: #818cf8; }
.hero-description { max-width: 570px; margin: 18px 0 0; color: #aeb8c8; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; font-weight: 700; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: var(--white); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.secondary { border-color: #4b5563; color: var(--white); }
.btn.secondary:hover { border-color: #7b8492; background: rgba(255,255,255,.04); }
.hero-portrait { justify-self: center; width: min(340px, 100%); aspect-ratio: 1; overflow: hidden; border: 6px solid rgba(255,255,255,.1); border-radius: 50%; background: var(--navy-soft); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

.about-layout { display: grid; grid-template-columns: minmax(260px, .75fr) 1.25fr; align-items: start; gap: clamp(48px, 8vw, 96px); }
.about-image { overflow: hidden; border-radius: var(--radius); }
.about-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy { max-width: 690px; font-size: 1.02rem; line-height: 2; }
.about-copy p { margin: 0 0 22px; }
.motto { margin-top: 32px; padding-left: 20px; display: grid; gap: 2px; border-left: 3px solid var(--accent); color: var(--navy); font-size: 1.15rem; font-weight: 700; }

.skills-section { position: relative; overflow: hidden; background: linear-gradient(135deg, #0b1224 0%, #121735 55%, #171635 100%); color: #dbe4f3; }
.skills-section::before, .skills-section::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .14; }
.skills-section::before { top: -230px; right: 5%; background: #3b82f6; }
.skills-section::after { bottom: -270px; left: 7%; background: #7c3aed; }
.skills-section .container { position: relative; z-index: 1; }
.skills-section .section-heading { max-width: 760px; }
.skills-section .section-heading .kicker { color: #9ea8ff; }
.skills-section .section-heading h2 { color: #f8faff; }
.skills-section .section-heading > p:last-child:not(.kicker) { color: #aebbd0; }
.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.skill-group { --group-accent: #60a5fa; --group-rgb: 96, 165, 250; min-width: 0; padding: 26px; border: 1px solid rgba(var(--group-rgb), .2); border-radius: 14px; background: rgba(20, 29, 55, .72); box-shadow: 0 14px 34px rgba(1, 6, 20, .16); backdrop-filter: blur(8px); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.skill-group:hover { border-color: rgba(var(--group-rgb), .45); box-shadow: 0 16px 38px rgba(1, 6, 20, .25), 0 0 22px rgba(var(--group-rgb), .07); transform: translateY(-3px); }
.skill-development { --group-accent: #60a5fa; --group-rgb: 96, 165, 250; }
.skill-backend { --group-accent: #22d3ee; --group-rgb: 34, 211, 238; }
.skill-devops { --group-accent: #a78bfa; --group-rgb: 167, 139, 250; }
.skill-system { --group-accent: #818cf8; --group-rgb: 129, 140, 248; }
.skill-tools { --group-accent: #8b9cfb; --group-rgb: 139, 156, 251; }
.skill-group-wide { grid-column: 1 / -1; }
.skill-group h3 { margin: 0 0 19px; display: flex; align-items: center; gap: 11px; color: #f4f7ff; font-size: 1rem; }
.skill-icon { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border: 1px solid rgba(var(--group-rgb), .3); border-radius: 8px; background: rgba(var(--group-rgb), .11); color: var(--group-accent); font-size: .72rem; font-weight: 800; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span { padding: 6px 11px; border: 1px solid rgba(var(--group-rgb), .14); border-radius: 999px; background: rgba(var(--group-rgb), .07); color: #c9d4e7; font-size: .78rem; line-height: 1.35; transition: border-color .18s, color .18s, background .18s; }
.skill-group:hover .skill-tags span { background: rgba(var(--group-rgb), .11); }
.skill-tags span:hover { border-color: rgba(var(--group-rgb), .42); background: rgba(var(--group-rgb), .16) !important; color: #f5f8ff; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 3px 12px rgba(17,24,39,.035); transition: transform .2s, box-shadow .2s; }
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.project-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project-body { padding: 25px; }
.project-body h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.25rem; }
.project-body > p { margin: 0; color: var(--muted); font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.tags span { padding: 4px 9px; border-radius: 5px; background: #f0f1f4; color: #596273; font-size: .7rem; }
.project-link { color: var(--accent); font-size: .86rem; font-weight: 700; }
.project-link span { display: inline-block; transition: transform .2s; }
.project-link:hover span { transform: translateX(3px); }

#journey, #photography { position: relative; overflow: hidden; }
#journey::before, #photography::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(79, 70, 229, .07); filter: blur(95px); pointer-events: none; }
#journey::before { top: -230px; right: -100px; }
#photography::before { top: -250px; left: -120px; background: rgba(6, 182, 212, .065); }
#journey .container, #photography .container { position: relative; z-index: 1; }
.story-heading .kicker { display: flex; align-items: center; gap: 10px; color: var(--blue); }
.story-heading .kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--cyan)); }

.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.journey-grid article { position: relative; min-height: 420px; overflow: hidden; border: 1px solid rgba(99, 102, 241, .18); border-radius: 18px; background: #111b38; box-shadow: 0 16px 38px rgba(15, 23, 42, .13); isolation: isolate; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.journey-grid article::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15, 23, 42, .08) 14%, rgba(30, 27, 75, .38) 52%, rgba(8, 15, 34, .96) 100%); }
.journey-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.journey-story { position: absolute; inset: auto 0 0; z-index: 2; padding: 28px; color: var(--white); }
.journey-grid span { display: flex; align-items: center; gap: 9px; color: #a5f3fc; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.journey-grid span::before { content: ""; width: 24px; height: 2px; background: var(--cyan); }
.journey-grid h3 { margin: 9px 0 7px; color: var(--white); font-size: 1.32rem; letter-spacing: -.02em; }
.journey-grid p { margin: 0; color: #d6e0ef; font-size: .87rem; line-height: 1.65; }
.journey-grid article:hover { border-color: rgba(34, 211, 238, .55); box-shadow: 0 22px 46px rgba(15, 23, 42, .2), 0 0 0 1px rgba(79, 70, 229, .08); transform: translateY(-5px); }
.journey-grid article:hover img { transform: scale(1.055); filter: saturate(1.08); }

#photography { background: linear-gradient(180deg, #fff 0%, #f5f7fb 100%); }
.photo-grid { display: grid; grid-template-columns: 1.14fr .93fr .93fr; grid-auto-rows: 430px; gap: 16px; }
.gallery-item { position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid rgba(99, 102, 241, .16); border-radius: 18px; background: #0f172a; box-shadow: 0 15px 34px rgba(15, 23, 42, .12); isolation: isolate; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15, 23, 42, .04) 35%, rgba(15, 23, 42, .88) 100%); opacity: .72; transition: opacity .3s ease; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.photo-caption { position: absolute; right: 24px; bottom: 22px; left: 24px; z-index: 2; display: grid; gap: 3px; color: var(--white); text-align: left; opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease; }
.photo-caption::before { content: ""; width: 30px; height: 2px; margin-bottom: 7px; background: linear-gradient(90deg, var(--cyan), #818cf8); }
.photo-caption small { color: #a5f3fc; font-size: .68rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.photo-caption strong { font-size: 1.12rem; letter-spacing: -.015em; }
.gallery-item:hover, .gallery-item:focus-visible { border-color: rgba(34, 211, 238, .62); box-shadow: 0 24px 48px rgba(15, 23, 42, .2), 0 0 0 3px rgba(37, 99, 235, .08); transform: translateY(-5px); outline: none; }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.055); filter: saturate(1.06); }
.gallery-item:hover .photo-caption, .gallery-item:focus-visible .photo-caption { opacity: 1; transform: none; }

.contact-section { background: var(--soft); }
.contact-links { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.contact-links a { padding: 20px 8px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.contact-links a:nth-child(odd) { padding-right: 24px; }
.contact-links a:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.contact-links a span { color: var(--navy); font-weight: 700; }
.contact-links a:hover { color: var(--accent); }

footer { padding: 30px 0; background: var(--navy); color: #aeb8c8; font-size: .82rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 40px 76px; background: rgba(8, 13, 23, .94); }
.lightbox.open { display: flex; }
.lightbox img { width: auto; max-width: 100%; max-height: 86vh; }
.lightbox-close, .lightbox-nav { position: absolute; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; color: var(--white); font-size: 1.6rem; }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-btn { display: block; z-index: 2; }
  .nav-links { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 20px; background: var(--navy); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { font-size: 1.25rem; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-inner { grid-template-columns: 1fr .75fr; }
  .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-grid article { min-height: 380px; }
  .journey-grid article:last-child { grid-column: 1 / -1; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 340px; }
  .gallery-item-featured { grid-row: span 2; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 32px, 1100px); }
  .section { padding: 68px 0; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding: 56px 0 72px; text-align: center; }
  .hero-portrait { grid-row: 1; width: min(230px, 68vw); }
  .hero-copy h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .life-loop { justify-content: center; max-width: 360px; margin-inline: auto; }
  .hero-description { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .about-layout { grid-template-columns: 1fr; gap: 38px; }
  .about-image { width: min(390px, 100%); }
  .about-copy { font-size: 1rem; line-height: 1.95; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-group-wide { grid-column: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-grid article, .journey-grid article:last-child { min-height: 360px; grid-column: auto; }
  .photo-grid { grid-template-columns: 1fr; grid-auto-rows: 390px; }
  .gallery-item-featured { grid-row: auto; }
  .photo-caption { opacity: 1; transform: none; }
  .contact-links { grid-template-columns: 1fr; }
  .contact-links a, .contact-links a:nth-child(odd), .contact-links a:nth-child(even) { padding: 17px 4px; border-left: 0; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 5px; }
}

@media (max-width: 430px) {
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .skill-group { padding: 22px 18px; }
  .contact-links a { flex-direction: column; gap: 2px; }
  .lightbox { padding: 64px 16px 80px; }
  .lightbox-nav { top: auto; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
