:root {
  --bg:      #080810;
  --bg2:     #0f0f1c;
  --card:    #10101e;
  --border:  rgba(255, 255, 255, 0.07);
  --accent:  #0a66c2;
  --cyan:    #3dd6f5;
  --text:    #e6edf3;
  --muted:   #7d8590;
}

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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}
#loader.out { opacity: 0; pointer-events: none; }

#matrix-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.45;
}

.terminal-box {
  position: relative;
  z-index: 1;
  width: min(480px, 90vw);
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(0, 255, 65, 0.35);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.15), 0 0 80px rgba(0, 255, 65, 0.07);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(0, 255, 65, 0.15);
}

.t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.t-dot.red    { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green  { background: #28c840; }

.t-title {
  margin-left: 8px;
  font-family: 'Consolas', monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5px;
}

.terminal-body {
  padding: 24px 28px 28px;
  min-height: 160px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.88rem;
  color: #00ff41;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

.tline {
  margin-bottom: 10px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
}

.tcursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: #00ff41;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: tblink 0.6s step-end infinite;
}

@keyframes tblink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

#access-msg {
  margin-top: 18px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: #00ff41;
  text-align: center;
  opacity: 0;
  text-shadow: 0 0 20px #00ff41, 0 0 40px rgba(0, 255, 65, 0.4);
}

#access-msg.show {
  animation: accessPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes accessPop {
  from { opacity: 0; transform: scale(0.85); letter-spacing: 8px; }
  to   { opacity: 1; transform: scale(1);    letter-spacing: 5px; }
}

/* ── CURTAIN ── */
.curtain {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  transform-origin: top;
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}
.curtain.lifted { transform: scaleY(0); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 16, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
}
body.loaded .nav { animation: fadeDown 0.6s ease 0.2s forwards; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  background: #000;
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 7px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #1a7ad4 !important; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Dot grid */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 0 24px 60px;
}

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(63, 185, 80, 0.1);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.25);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 36px;
  opacity: 0;
}
body.loaded .status-badge { animation: fadeUp 0.7s ease 0.1s forwards; }

.dot {
  width: 7px; height: 7px;
  background: #3fb950;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── AVATAR ZONE ── */
.avatar-zone {
  opacity: 0;
  margin-bottom: 36px;
}
body.loaded .avatar-zone { animation: avatarIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; }

@keyframes avatarIn {
  from { opacity: 0; transform: scale(0.88) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.avatar-wrapper {
  position: relative;
  width: 480px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 340px;
  height: auto;
  position: relative;
  z-index: 1;
  object-fit: contain;
  filter:
    drop-shadow(0 0 30px rgba(61, 214, 245, 0.18))
    drop-shadow(0 24px 64px rgba(10, 102, 194, 0.3));
  animation: avatarFloat 5s ease-in-out 2.2s infinite;
}

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

/* ── SKILL NODES ── */
.node {
  position: absolute;
  background: rgba(10, 10, 22, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2;
  cursor: default;
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.node:hover {
  border-color: rgba(10, 102, 194, 0.7);
  box-shadow: 0 0 18px rgba(10, 102, 194, 0.35);
  color: #79c0ff;
}

.node.ai {
  border-color: rgba(61, 214, 245, 0.22);
  color: var(--cyan);
}
.node.ai:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(61, 214, 245, 0.3);
}

.n1 { top: 30px;    left: 20px;   animation: nA 3.4s ease-in-out infinite; }
.n2 { top: 30px;    right: 20px;  animation: nB 3.9s ease-in-out infinite; }
.n3 { top: 140px;   left: 4px;    animation: nA 4.2s ease-in-out infinite; }
.n4 { top: 140px;   right: 4px;   animation: nB 3.6s ease-in-out infinite; }
.n5 { top: 250px;   left: 20px;   animation: nA 4.0s ease-in-out infinite; }
.n6 { top: 250px;   right: 20px;  animation: nB 3.5s ease-in-out infinite; }
.n7 { bottom: 96px; left: 24px;   animation: nA 3.8s ease-in-out infinite; }
.n8 { bottom: 96px; right: 24px;  animation: nB 4.1s ease-in-out infinite; }
.n9 {
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  animation: nC 3.6s ease-in-out infinite;
}

@keyframes nA { 0%,100%{transform:translateY(0)}   50%{transform:translateY(-9px)} }
@keyframes nB { 0%,100%{transform:translateY(0)}   50%{transform:translateY(9px)} }
@keyframes nC {
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%    {transform:translateX(-50%) translateY(-9px)}
}

/* ── HERO NAME ── */
.hero-name {
  opacity: 0;
  margin-bottom: 20px;
}
body.loaded .hero-name { animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards; }

.hero-name h1 {
  font-size: clamp(3.8rem, 11vw, 7.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -3px;
  text-transform: uppercase;
}

/* Second line: outlined/ghost text */
.hero-name h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
}

/* ── HERO SUBTITLE ── */
.hero-tag {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 1.5px;
  opacity: 0;
}
body.loaded .hero-tag { animation: fadeUp 0.7s ease 0.8s forwards; }

/* ── MAIN ── */
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 120px 36px 80px;
}

section { margin-bottom: 110px; }

/* ── SECTION LABELS & HEADINGS ── */
.s-label {
  font-family: 'Consolas', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

section.in-view .s-label,
section.in-view h2 {
  opacity: 1;
  transform: translateX(0);
}

/* ── SCROLL REVEAL ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: 0.14s; }
[data-reveal][data-delay="2"] { transition-delay: 0.28s; }

/* ── PROJECT CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s,
              opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              translate 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover {
  border-color: rgba(10, 102, 194, 0.55);
  box-shadow: 0 0 0 1px rgba(10, 102, 194, 0.18),
              0 20px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px) !important;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.card-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}
.card-link:hover { color: var(--cyan); transform: translate(2px, -2px); }

.project-card .meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: 'Consolas', monospace;
  letter-spacing: 0.3px;
}

.project-card p:not(.meta) {
  font-size: 0.9rem;
  color: #9aa5b1;
  line-height: 1.78;
  margin-bottom: 18px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  background: rgba(10, 102, 194, 0.12);
  border: 1px solid rgba(10, 102, 194, 0.28);
  color: #79c0ff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ── CERTIFICATIONS ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
}

.cert-card:hover {
  border-color: rgba(66, 133, 244, 0.45);
  box-shadow: 0 0 0 1px rgba(66, 133, 244, 0.15), 0 16px 40px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

.cert-issuer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cert-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  flex-shrink: 0;
}

.cert-logo.google {
  background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #EA4335 100%);
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

.cert-org {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.cert-date {
  font-size: 0.74rem;
  color: var(--muted);
  font-family: 'Consolas', monospace;
}

.cert-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.cert-skills span {
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.25);
  color: #79b3ff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.cert-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-family: 'Consolas', monospace;
  transition: color 0.2s;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  width: 100%;
}

.cert-verify:hover { color: #79b3ff; }

/* ── SKILLS GRID ── */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 20px;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: default;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease,
              border-color 0.25s, box-shadow 0.25s;
}

.skill-tag.in-view { opacity: 1; transform: translateY(0); }

.skill-tag:hover {
  border-color: rgba(10, 102, 194, 0.55);
  box-shadow: 0 0 14px rgba(10, 102, 194, 0.22);
}

.skill-tag.ai {
  background: rgba(61, 214, 245, 0.06);
  border-color: rgba(61, 214, 245, 0.22);
  color: var(--cyan);
}
.skill-tag.ai:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(61, 214, 245, 0.25);
}

/* ── CARD ROLE & BULLETS ── */
.card-role {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'Consolas', monospace;
  letter-spacing: 0.3px;
  display: block;
  margin-top: 4px;
}

.card-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.card-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.87rem;
  color: #9aa5b1;
  line-height: 1.75;
  margin-bottom: 8px;
}

.card-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── EXPERIENCE ── */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s,
              opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              translate 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-card:hover {
  border-color: rgba(10, 102, 194, 0.55);
  border-left-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(10, 102, 194, 0.12), 0 16px 40px rgba(0,0,0,0.45);
  transform: translateY(-4px) !important;
}

.exp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.exp-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.exp-company {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Consolas', monospace;
}

.exp-date {
  font-size: 0.72rem;
  font-family: 'Consolas', monospace;
  color: var(--cyan);
  white-space: nowrap;
  padding: 4px 10px;
  background: rgba(61, 214, 245, 0.08);
  border: 1px solid rgba(61, 214, 245, 0.18);
  border-radius: 20px;
  flex-shrink: 0;
}

/* ── CERT DESCRIPTION & AWS LOGO ── */
.cert-desc {
  font-size: 0.86rem;
  color: #9aa5b1;
  line-height: 1.75;
  margin-bottom: 16px;
}

.cert-logo.aws {
  background: linear-gradient(135deg, #232f3e 0%, #ff9900 100%);
  color: white;
  font-size: 0.72rem;
  font-family: 'Consolas', monospace;
  letter-spacing: 0.5px;
}

/* ── SKILL CATEGORIES ── */
.skill-categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skill-group-label {
  font-family: 'Consolas', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── EDUCATION ── */
.edu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 14px;
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s,
              opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              translate 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.edu-card:hover {
  border-left-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(61, 214, 245, 0.1), 0 16px 40px rgba(0,0,0,0.4);
  transform: translateY(-4px) !important;
}

.edu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.edu-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.edu-school {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: 'Consolas', monospace;
}

.edu-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.edu-date {
  font-size: 0.72rem;
  font-family: 'Consolas', monospace;
  color: var(--cyan);
  padding: 4px 10px;
  background: rgba(61, 214, 245, 0.08);
  border: 1px solid rgba(61, 214, 245, 0.18);
  border-radius: 20px;
}

.edu-gpa {
  font-size: 0.72rem;
  font-family: 'Consolas', monospace;
  color: #3fb950;
  padding: 4px 10px;
  background: rgba(63, 185, 80, 0.08);
  border: 1px solid rgba(63, 185, 80, 0.2);
  border-radius: 20px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
}

footer p { font-size: 0.84rem; color: var(--muted); }

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .nav { padding: 16px 20px; }

  .avatar-wrapper { width: 340px; height: 400px; }
  .avatar-svg { width: 220px; }

  .node { font-size: 0.64rem; padding: 5px 11px; }
  .n3  { left: -8px; }
  .n4  { right: -8px; }

  .hero-name h1 { font-size: 3.4rem; letter-spacing: -2px; }
  .hero-name h1 em { -webkit-text-stroke-width: 1.5px; }

  main { padding: 80px 20px 60px; }

  .cards-grid { grid-template-columns: 1fr; }

  footer { flex-direction: column; gap: 14px; text-align: center; padding: 28px 20px; }
}
