/* ============================================================
   NIKHIL BORADE — Portfolio CSS
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --bg-1:        #0a0e17;
  --bg-2:        #0f1623;
  --bg-3:        #141c2e;
  --text-1:      #e8edf5;
  --text-2:      #8b96a8;
  --text-3:      #5a6478;
  --accent-1:    #00e5ff;
  --accent-2:    #00b8d4;
  --accent-3:    #00e5b0;
  --border:      rgba(0,229,255,0.12);
  --card-bg:     rgba(255,255,255,0.03);
  --nav-bg:      rgba(10,14,23,0.88);
  --pill-bg:     rgba(0,229,255,0.08);
  --pill-border: rgba(0,229,255,0.2);
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
}

body.light {
  --bg-1:        #eef2f7;
  --bg-2:        #e2e8f2;
  --bg-3:        #d3dced;
  --text-1:      #0b1120;
  --text-2:      #1e2d45;
  --text-3:      #3a4f6a;
  --accent-1:    #0066cc;
  --accent-2:    #0055aa;
  --accent-3:    #006644;
  --border:      rgba(0,80,180,0.2);
  --card-bg:     rgba(255,255,255,0.85);
  --nav-bg:      rgba(238,242,247,0.95);
  --pill-bg:     rgba(0,80,180,0.08);
  --pill-border: rgba(0,80,180,0.22);
  --shadow:      0 8px 32px rgba(0,0,0,0.14);
}

/* ===== LIGHT MODE TARGETED FIXES ===== */

/* Nav links & logo visible on light bg */
body.light .nav-links a          { color: var(--text-2); }
body.light .nav-links a:hover    { color: var(--accent-1); }
body.light .nav-logo             { color: var(--text-1); }
body.light .nav.scrolled         { background: rgba(238,242,247,0.96); box-shadow: 0 1px 0 var(--border); }

/* Pills — strong border + text so they stand out on light bg */
body.light .pill {
  background: rgba(0,80,180,0.07);
  border: 1px solid rgba(0,80,180,0.28);
  color: #0055bb;
}
body.light .pill:hover { background: #0066cc; color: #fff; border-color: #0066cc; }

/* Feat tags */
body.light .feat-tags span {
  background: rgba(0,80,180,0.07);
  border: 1px solid rgba(0,80,180,0.25);
  color: #0055bb;
}

/* More card tags */
body.light .more-tags span {
  background: rgba(0,80,180,0.07);
  border: 1px solid rgba(0,80,180,0.25);
  color: #0055bb;
}

/* Cert corner tag */
body.light .cert-corner-tag {
  background: rgba(0,80,180,0.07);
  border: 1px solid rgba(0,80,180,0.25);
  color: #0055bb;
}

/* Skill bars */
body.light .sbar-fill { background: linear-gradient(90deg, #0066cc, #006644); }
body.light .skill-ico, body.light .skill-pct { color: #0066cc; }

/* Section dark — give it a real distinguishable bg in light mode */
body.light .section-dark { background: rgba(210,220,238,0.6); }

/* Cards */
body.light .feat-card  { background: rgba(255,255,255,0.92); border-color: rgba(0,80,180,0.15); }
body.light .more-card  { background: rgba(255,255,255,0.92); border-color: rgba(0,80,180,0.15); }
body.light .skill-block{ background: rgba(255,255,255,0.85); border-color: rgba(0,80,180,0.15); }
body.light .about-card { background: rgba(255,255,255,0.92); border-color: rgba(0,80,180,0.15); }
body.light .clink      { background: rgba(255,255,255,0.85); border-color: rgba(0,80,180,0.18); }
body.light .cert-card  { background: rgba(255,255,255,0.92); border-color: rgba(0,80,180,0.15); }
body.light .achievement-card { background: rgba(255,255,255,0.92); border-color: rgba(0,80,180,0.15); }

/* Achievement quote block */
body.light .achievement-quote {
  background: rgba(0,80,180,0.05);
  border-color: rgba(0,80,180,0.15);
}
body.light .quote-bar { background: linear-gradient(to bottom, #0066cc, #006644); }

/* Fresher badge */
body.light .fresher-badge {
  background: rgba(0,80,180,0.09);
  border-color: rgba(0,80,180,0.25);
  color: #006644;
}

/* Cert icon wrap */
body.light .cert-icon-wrap {
  background: rgba(0,80,180,0.07);
  border-color: rgba(0,80,180,0.22);
}
body.light .cert-icon { color: #0066cc; }

/* Cert view btn */
body.light .cert-view-btn { background: #0066cc; color: #fff; }
body.light .cert-dl-btn:hover { border-color: #0066cc; color: #0066cc; }

/* Achievement badge */
body.light .achievement-badge {
  background: rgba(0,80,180,0.08);
  border-color: rgba(0,80,180,0.22);
  color: #0066cc;
}
body.light .badge-dot { background: #006644; }

/* Stat values */
body.light .stat-val { color: #0066cc; }

/* Role box */
body.light .hero-role { background: rgba(0,80,180,0.06); border-color: rgba(0,80,180,0.2); }
body.light .role-text  { color: #0066cc; }
body.light .role-prefix { color: #006644; }
body.light .cursor-blink { color: #0066cc; }

/* Hero status pill */
body.light .hero-status { background: rgba(0,80,180,0.07); border-color: rgba(0,80,180,0.22); }
body.light .status-dot  { background: #006644; }

/* Social chips */
body.light .social-chip { border-color: rgba(0,80,180,0.2); color: var(--text-2); }
body.light .social-chip:hover { border-color: #0066cc; color: #0066cc; background: rgba(0,80,180,0.07); }

/* Stat divider */
body.light .stat-div { background: rgba(0,80,180,0.2); }

/* Photo tag */
body.light .photo-tag { background: var(--bg-2); border-color: var(--border); color: #006644; }
body.light .tag-dot   { background: #006644; }

/* Scroll hint */
body.light .scroll-hint { color: var(--text-3); }
body.light .scroll-line { background: linear-gradient(to bottom, #0066cc, transparent); }

/* Sec num */
body.light .sec-num { color: #0066cc; }

/* About headline em */
body.light .about-headline em { color: #0066cc; }
body.light .contact-headline em { color: #0066cc; }

/* Card key */
body.light .card-key { color: var(--text-3); }

/* Form inputs */
body.light .fg input, body.light .fg textarea {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,80,180,0.2);
  color: var(--text-1);
}
body.light .fg input:focus, body.light .fg textarea:focus { border-color: #0066cc; }
body.light .fg label { color: var(--text-3); }

/* Footer */
body.light .footer { background: var(--bg-2); border-top-color: var(--border); }
body.light .footer-links a:hover { color: #0066cc; }
body.light .footer-resume-btn:hover { color: #0066cc; }

/* More arrow */
body.light .more-arrow { background: #fff; border-color: rgba(0,80,180,0.2); color: #0066cc; }

/* Nav resume btn */
body.light .nav-resume { color: #0066cc; border-color: #0066cc; }
body.light .nav-resume:hover { background: #0066cc; color: #fff; }

/* Btn outline */
body.light .btn-outline { border-color: #0066cc; color: #0066cc; }
body.light .btn-outline:hover { background: #0066cc; color: #fff; }

/* Overlay btns */
body.light .ov-btn.live { background: #0066cc; border-color: #0066cc; color: #fff; }

/* Logo bracket */
body.light .logo-bracket { color: #0066cc; }

/* Link num */
body.light .link-num { color: #0066cc; }

/* Modal headers */
body.light .resume-modal-content,
body.light .cert-modal-content  { background: var(--bg-2); border-color: var(--border); }
body.light .resume-modal-header,
body.light .cert-modal-header   { background: var(--bg-3); border-bottom-color: var(--border); }

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: #0a0e17;
  background: var(--bg-1);
  color: var(--text-1);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
  cursor: none;
}
body.light { background: #f0f4f8; background: var(--bg-1); }

/* ===== CANVAS ===== */
#particleCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: transparent; }

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

/* ===== CURSOR ===== */
.cursor-outer, .cursor-inner {
  position: fixed; border-radius: 50%; pointer-events: none;
  z-index: 9999; transform: translate(-50%,-50%);
}
.cursor-outer {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent-1); opacity: 0.5;
  transition: width 0.2s, height 0.2s, opacity 0.3s;
}
.cursor-inner { width: 6px; height: 6px; background: var(--accent-1); }
.cursor-outer.expand { width: 52px; height: 52px; opacity: 0.85; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(10,14,23,0.75);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem; font-weight: 500;
  color: var(--text-1); text-decoration: none; letter-spacing: 0.05em;
}
.logo-bracket { color: var(--accent-1); }
.nav-links { display: flex; list-style: none; gap: 1.4rem; margin-left: auto; }
.nav-links a {
  color: var(--text-2); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-1); }
.link-num {
  color: var(--accent-1); font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; margin-right: 0.3rem;
}

.nav-resume {
  background: none; color: var(--accent-1);
  border: 1px solid var(--accent-1);
  padding: 0.45rem 1.1rem; border-radius: 4px;
  font-size: 0.85rem; font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  cursor: none; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-resume:hover { background: var(--accent-1); color: var(--bg-1); }

.theme-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-2); width: 36px; height: 36px;
  border-radius: 50%; cursor: none; font-size: 1rem;
  transition: border-color 0.2s, color 0.2s;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.theme-btn:hover { border-color: var(--accent-1); color: var(--accent-1); }

/* ===== HERO ===== */
.hero {
  position: relative; z-index: 2; min-height: 100vh;
  display: flex; align-items: center; padding: 7rem 2rem 4rem;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 4rem; width: 100%;
}
.hero-left { flex: 1; }
.hero-right { flex: 0 0 380px; }

.hero-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--pill-bg); border: 1px solid var(--pill-border);
  padding: 0.45rem 1rem; border-radius: 100px;
  font-size: 0.82rem; font-family: 'JetBrains Mono', monospace;
  color: var(--text-2); margin-bottom: 1.2rem;
}
.status-dot {
  width: 7px; height: 7px; background: var(--accent-3);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-greeting { font-size: 1.1rem; color: var(--text-2); margin-bottom: 0.3rem; font-weight: 400; }
.hero-name { font-family: 'Syne', sans-serif; line-height: 0.95; margin-bottom: 1.5rem; }
.name-line { display: block; font-size: clamp(4rem,9vw,7rem); font-weight: 800; color: var(--text-1); }
.accent-stroke { color: transparent; -webkit-text-stroke: 2px var(--accent-1); }

.hero-role {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--pill-bg); border: 1px solid var(--pill-border);
  padding: 0.6rem 1.2rem; border-radius: 8px; margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
}
.role-prefix { color: var(--accent-3); font-size: 1rem; }
.role-text { color: var(--accent-1); font-size: 1rem; font-weight: 500; min-width: 180px; }
.cursor-blink { color: var(--accent-1); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity:0; } }
.hero-bio { font-size: 1.05rem; color: var(--text-2); line-height: 1.7; max-width: 520px; margin-bottom: 2rem; }
.hero-bio em { color: var(--text-1); font-style: normal; font-weight: 600; }

.hero-cta { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-1); color: var(--bg-1);
  padding: 0.75rem 1.6rem; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.2s; cursor: none;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.hero-socials { display: flex; gap: 0.6rem; }
.social-chip {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-2); text-decoration: none; font-size: 0.85rem; font-weight: 700;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-chip:hover { border-color: var(--accent-1); color: var(--accent-1); background: var(--pill-bg); }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat-item { display: flex; flex-direction: column; }
.stat-val { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--accent-1); line-height: 1; }
.stat-key { font-size: 0.78rem; color: var(--text-3); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* ===== PHOTO ===== */
@keyframes borderPulse {
  0%   { box-shadow: 0 0 0 0 rgba(100,80,255,0.8), 0 0 0 0 rgba(0,229,255,0.6); }
  40%  { box-shadow: 0 0 0 10px rgba(100,80,255,0.25), 0 0 0 20px rgba(0,229,255,0.12); }
  70%  { box-shadow: 0 0 0 18px rgba(100,80,255,0.07), 0 0 0 32px rgba(0,229,255,0.04); }
  100% { box-shadow: 0 0 0 0 rgba(100,80,255,0), 0 0 0 0 rgba(0,229,255,0); }
}

.photo-container {
  position: relative;
  width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.photo-glow {
  position: absolute; inset: -30px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(100,80,255,0.2) 0%, rgba(0,229,255,0.1) 40%, transparent 70%);
  border-radius: 50%;
}
.hero-photo {
  width: 300px; height: 300px;
  object-fit: cover; object-position: center top;
  border-radius: 50%;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 3px #6450ff, 0 0 0 6px rgba(0,229,255,0.5), 0 0 30px rgba(100,80,255,0.4);
  animation: borderPulse 2s ease-out infinite;
}
.photo-tag {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace; color: var(--accent-3);
  white-space: nowrap; z-index: 2; display: flex; align-items: center; gap: 0.4rem;
}
.tag-dot { width: 6px; height: 6px; background: var(--accent-3); border-radius: 50%; animation: pulse 2s infinite; }
.photo-corner { display: none; }

/* ===== SCROLL HINT ===== */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { opacity:1; transform:scaleY(1); transform-origin:top; }
  100% { opacity:0; transform:scaleY(0); transform-origin:top; }
}

/* ===== SECTIONS ===== */
.section { position: relative; z-index: 2; padding: 6rem 2rem; background: transparent; }
.section-dark { background: rgba(15, 22, 35, 0.45); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 3.5rem; }
.sec-num { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--accent-1); opacity: 0.7; }
.sec-title { font-family: 'Syne', sans-serif; font-size: clamp(2rem,4vw,3rem); font-weight: 800; color: var(--text-1); }

/* ===== ABOUT ===== */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-headline { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 700; color: var(--text-1); margin-bottom: 1.2rem; line-height: 1.2; }
.about-headline em { color: var(--accent-1); font-style: normal; }
.about-text p { color: var(--text-2); line-height: 1.8; margin-bottom: 1rem; font-size: 0.97rem; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--accent-1); color: var(--accent-1);
  padding: 0.65rem 1.4rem; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 0.9rem; margin-top: 1rem;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--accent-1); color: var(--bg-1); }
.about-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; backdrop-filter: blur(8px); }
.card-row { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.4rem; border-bottom: 1px solid var(--border); gap: 1rem; }
.card-row:last-child { border-bottom: none; }
.card-key { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0; }
.card-val { color: var(--text-1); font-size: 0.9rem; font-weight: 500; text-align: right; }
.fresher-badge { background: rgba(0,229,255,0.1); border: 1px solid rgba(0,229,255,0.2); color: var(--accent-3); padding: 0.2rem 0.7rem; border-radius: 100px; font-size: 0.8rem; }

/* ===== SKILLS ===== */
.skills-wrap { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; margin-bottom: 2.5rem; }
.skill-block { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem 1.4rem; backdrop-filter: blur(8px); transition: border-color 0.2s; }
.skill-block:hover { border-color: var(--accent-1); }
.skill-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.skill-ico { font-size: 1.3rem; color: var(--accent-1); width: 36px; text-align: center; flex-shrink: 0; }
.skill-head h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-1); margin-bottom: 0.1rem; }
.skill-head p { font-size: 0.78rem; color: var(--text-3); }
.skill-pct { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: var(--accent-1); flex-shrink: 0; }
.sbar { height: 3px; background: var(--border); border-radius: 100px; overflow: hidden; }
.sbar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-1), var(--accent-3)); border-radius: 100px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }
.skill-block.in-view .sbar-fill { width: var(--w); }
.tech-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill { background: var(--pill-bg); border: 1px solid var(--pill-border); color: var(--accent-1); padding: 0.35rem 0.9rem; border-radius: 100px; font-size: 0.82rem; font-family: 'JetBrains Mono', monospace; transition: background 0.2s, border-color 0.2s, color 0.2s; cursor: default; }
.pill:hover { background: var(--accent-1); color: var(--bg-1); border-color: var(--accent-1); }

/* ===== PROJECTS ===== */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.8rem; margin-bottom: 4rem; }
.feat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; backdrop-filter: blur(8px); }
.feat-card:hover { transform: translateY(-6px); border-color: var(--accent-1); box-shadow: var(--shadow); }
.feat-img { position: relative; height: 180px; overflow: hidden; background: var(--bg-3); }
.feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.feat-card:hover .feat-img img { transform: scale(1.05); }
.feat-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; gap: 0.8rem; opacity: 0; transition: opacity 0.3s; }
.feat-card:hover .feat-overlay { opacity: 1; }
.ov-btn { color: #fff; border: 1px solid rgba(255,255,255,0.4); padding: 0.5rem 1.1rem; border-radius: 6px; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: background 0.2s; backdrop-filter: blur(4px); }
.ov-btn:hover { background: rgba(255,255,255,0.15); }
.ov-btn.live { background: var(--accent-1); border-color: var(--accent-1); color: var(--bg-1); }
.feat-body { padding: 1.4rem; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.feat-tags span { background: var(--pill-bg); border: 1px solid var(--pill-border); color: var(--accent-1); padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.72rem; font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.feat-body h3 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.6rem; }
.feat-body p { color: var(--text-2); font-size: 0.875rem; line-height: 1.65; margin-bottom: 1rem; }
.feat-links { display: flex; gap: 1rem; }
.feat-links a { color: var(--text-3); text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: color 0.2s; }
.feat-links a:hover { color: var(--accent-1); }
.feat-links .live-a { color: var(--accent-3); }
.feat-links .live-a:hover { color: var(--accent-1); }
.more-heading { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--text-1); margin-bottom: 1.5rem; }
.more-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }
.more-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform 0.2s, border-color 0.2s; backdrop-filter: blur(8px); display: flex; flex-direction: column; }
.more-card:hover { transform: translateY(-4px); border-color: var(--accent-1); }
.more-top { position: relative; height: 110px; overflow: hidden; background: var(--bg-3); }
.more-top img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.more-card:hover .more-top img { transform: scale(1.06); }
.more-arrow { position: absolute; top: 0.6rem; right: 0.6rem; background: var(--bg-1); border: 1px solid var(--border); color: var(--accent-1); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.more-card h4 { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--text-1); padding: 0.9rem 1rem 0.3rem; line-height: 1.3; }
.more-card p { color: var(--text-2); font-size: 0.8rem; line-height: 1.5; padding: 0 1rem 0.8rem; flex: 1; }
.more-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0 1rem 1rem; }
.more-tags span { background: var(--pill-bg); border: 1px solid var(--pill-border); color: var(--accent-1); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.68rem; font-family: 'JetBrains Mono', monospace; }

/* ===== ACHIEVEMENT ===== */
.achievement-card {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.achievement-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3), transparent);
}
.achievement-card:hover {
  border-color: rgba(0,229,255,0.35);
  box-shadow: 0 0 40px rgba(0,229,255,0.06);
}
.achievement-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.achievement-trophy {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255,200,0,0.4));
}
.achievement-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--accent-1);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.achievement-body { flex: 1; }
.achievement-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}
.ach-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,200,0,0.08);
  border: 1px solid rgba(255,200,0,0.2);
  color: #ffd700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
.ach-tag.muted {
  background: var(--pill-bg);
  border-color: var(--pill-border);
  color: var(--text-3);
}
.achievement-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.achievement-sub {
  color: var(--accent-1);
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
}
.achievement-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.ach-detail {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-2);
}
.ach-ico { font-size: 0.9rem; }
.achievement-desc {
  color: var(--text-2);
  line-height: 1.75;
  font-size: 0.93rem;
  margin-bottom: 1rem;
}
.achievement-quote {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
  padding: 0.8rem 1rem;
  background: rgba(0,229,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(0,229,255,0.08);
}
.quote-bar {
  display: block;
  flex-shrink: 0;
  width: 3px;
  align-self: stretch;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-3));
  border-radius: 2px;
  min-height: 20px;
}

/* ===== CERTIFICATES ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.cert-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(8px);
}
.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-1);
  box-shadow: 0 8px 32px rgba(0,229,255,0.08);
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  opacity: 0;
  transition: opacity 0.3s;
}
.cert-card:hover::before { opacity: 1; }

.cert-icon-wrap {
  width: 44px; height: 44px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.cert-icon {
  font-size: 1.2rem;
  color: var(--accent-1);
}
.cert-body { flex: 1; }
.cert-issuer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.3rem;
}
.cert-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.cert-desc {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.55;
}
.cert-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
}
.cert-view-btn {
  flex: 1;
  background: var(--accent-1);
  color: var(--bg-1);
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: none;
  transition: opacity 0.2s, transform 0.15s;
  text-align: center;
}
.cert-view-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.cert-dl-btn {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cert-dl-btn:hover { border-color: var(--accent-1); color: var(--accent-1); background: var(--pill-bg); }
.cert-corner-tag {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--accent-1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ===== CONTACT ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-headline { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--text-1); margin-bottom: 1rem; line-height: 1.2; }
.contact-headline em { color: var(--accent-1); font-style: normal; }
.contact-left p { color: var(--text-2); line-height: 1.75; margin-bottom: 2rem; font-size: 0.97rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.clink { display: flex; align-items: center; gap: 1rem; text-decoration: none; padding: 0.9rem 1.2rem; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); transition: border-color 0.2s, transform 0.2s; backdrop-filter: blur(6px); }
.clink:hover { border-color: var(--accent-1); transform: translateX(4px); }
.clink-ico { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent-1); font-size: 0.9rem; font-weight: 700; flex-shrink: 0; }
.clink-label { display: block; font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-family: 'JetBrains Mono', monospace; }
.clink-val { display: block; color: var(--text-1); font-size: 0.88rem; font-weight: 500; margin-top: 0.1rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { display: flex; flex-direction: column; gap: 0.4rem; }
.fg label { font-size: 0.78rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-family: 'JetBrains Mono', monospace; }
.fg input, .fg textarea { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; color: var(--text-1); font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; transition: border-color 0.2s; resize: vertical; outline: none; backdrop-filter: blur(6px); }
.fg input::placeholder, .fg textarea::placeholder { color: var(--text-3); }
.fg input:focus, .fg textarea:focus { border-color: var(--accent-1); }
.submit-btn { align-self: flex-start; }
#statusMsg { font-size: 0.85rem; color: var(--text-2); min-height: 1.2rem; }

/* ===== FOOTER ===== */
.footer { position: relative; z-index: 2; background: var(--bg-2); border-top: 1px solid var(--border); padding: 1.8rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--text-1); }
.footer-copy { font-size: 0.82rem; color: var(--text-3); font-family: 'JetBrains Mono', monospace; }
.footer-links { display: flex; gap: 1.5rem; align-items: center; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-1); }
.footer-resume-btn { background: none; border: none; color: var(--text-2); font-size: 0.85rem; font-weight: 500; font-family: 'Space Grotesk', sans-serif; cursor: none; transition: color 0.2s; padding: 0; }
.footer-resume-btn:hover { color: var(--accent-1); }

/* ===== RESUME MODAL ===== */
.resume-modal {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.resume-modal.open { opacity: 1; visibility: visible; }
.resume-modal-content {
  position: relative;
  width: 100%; max-width: 920px;
  height: 88vh;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
}
.resume-modal.open .resume-modal-content { transform: translateY(0) scale(1); }
.resume-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.3rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; gap: 1rem;
}
.resume-modal-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem; color: var(--text-2);
}
.resume-modal-title svg { color: var(--accent-1); flex-shrink: 0; }
.resume-modal-actions { display: flex; align-items: center; gap: 0.8rem; }
.resume-download-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--accent-1); color: var(--bg-1);
  padding: 0.42rem 1rem; border-radius: 6px;
  text-decoration: none; font-size: 0.82rem; font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  transition: opacity 0.2s, transform 0.15s; white-space: nowrap;
}
.resume-download-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.resume-close {
  background: none; border: 1px solid var(--border);
  color: var(--text-3); width: 32px; height: 32px;
  border-radius: 8px; cursor: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.resume-close:hover { border-color: #f87171; color: #f87171; background: rgba(248,113,113,0.08); }
.resume-modal-body { flex: 1; overflow: hidden; background: #525659; }
.resume-modal-body iframe { width: 100%; height: 100%; border: none; display: block; }

/* ===== CERTIFICATE MODAL ===== */
.cert-modal {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cert-modal.open { opacity: 1; visibility: visible; }
.cert-modal-content {
  position: relative;
  width: 100%; max-width: 920px;
  height: 88vh;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
}
.cert-modal.open .cert-modal-content { transform: translateY(0) scale(1); }
.cert-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.3rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; gap: 1rem;
}
.cert-modal-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem; color: var(--text-2);
}
.cert-modal-title svg { color: var(--accent-1); flex-shrink: 0; }
.cert-modal-actions { display: flex; align-items: center; gap: 0.8rem; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .more-grid { grid-template-columns: repeat(3,1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .cert-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-right { display: none; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-bio { max-width: 100%; }
  .nav-links { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: repeat(2,1fr); }
  .skills-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .resume-modal { padding: 0.75rem; }
  .resume-modal-content { height: 92vh; border-radius: 12px; }
  .cert-modal { padding: 0.75rem; }
  .cert-modal-content { height: 92vh; border-radius: 12px; }
  .achievement-card { flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
  .achievement-left { flex-direction: row; }
  .achievement-title { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .more-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .name-line { font-size: 3rem !important; }
  .resume-modal-title { font-size: 0.7rem; }
  .cert-modal-title { font-size: 0.7rem; }
}
