/* ============================================================
   WASIF ALI PORTFOLIO — styles.css
   Theme: Dark Cyber-Luxury | Developers Tech
   ============================================================ */

/* ─── FONTS ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS VARIABLES ──────────────────────────────────────── */
:root {
  --bg:        #04040e;
  --bg2:       #090916;
  --surface:   #0e0e22;
  --surface2:  #13132b;
  --card:      rgba(255,255,255,0.042);
  --border:    rgba(255,255,255,0.08);
  --cyan:      #00d4ff;
  --cyan2:     #00aacc;
  --indigo:    #6366f1;
  --purple:    #818cf8;
  --amber:     #fbbf24;
  --text:      #e8eaf6;
  --text-muted:#8892b0;
  --text-dim:  #4a5568;
  --grad:      linear-gradient(135deg, #00d4ff 0%, #6366f1 60%, #818cf8 100%);
  --grad2:     linear-gradient(135deg, #6366f1 0%, #00d4ff 100%);
  --glow:      0 0 30px rgba(0,212,255,0.25), 0 0 60px rgba(99,102,241,0.15);
  --glow-sm:   0 0 12px rgba(0,212,255,0.3);
  --radius:    14px;
  --radius-lg: 22px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h:     72px;
  --trans:     all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── CUSTOM SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 99px; }

/* ─── CUSTOM CURSOR ──────────────────────────────────────── */
#cursor-dot, #cursor-ring { display: none; }
@media (pointer: fine) {
  body { cursor: none; }
  #cursor-dot {
    display: block; pointer-events: none; position: fixed; z-index: 9999;
    width: 8px; height: 8px; background: var(--cyan);
    border-radius: 50%; transform: translate(-50%,-50%);
    transition: width .15s, height .15s, background .15s;
  }
  #cursor-ring {
    display: block; pointer-events: none; position: fixed; z-index: 9998;
    width: 36px; height: 36px; border: 1.5px solid rgba(0,212,255,0.5);
    border-radius: 50%; transform: translate(-50%,-50%);
    transition: width .35s, height .35s, border-color .35s;
  }
  #cursor-dot.cursor-hover  { width: 16px; height: 16px; background: var(--indigo); }
  #cursor-ring.cursor-hover { width: 54px; height: 54px; border-color: var(--indigo); }
}

/* ─── PAGE LOADER ────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  transition: opacity .5s, visibility .5s;
}
#page-loader.loader-done { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 52px; height: 52px;
  border: 3px solid rgba(0,212,255,0.15);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── GRADIENT MESH BACKGROUND ──────────────────────────── */
.mesh-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 10% 20%, rgba(99,102,241,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 70% 50% at 90% 80%, rgba(0,212,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 50% 50%, rgba(129,140,248,0.04) 0%, transparent 70%),
              var(--bg);
}

/* ─── NAV ────────────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  padding: 0 5%;
  background: rgba(4,4,14,0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: var(--trans);
}
#main-nav.nav-scrolled {
  background: rgba(4,4,14,0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 38px; width: auto; object-fit: contain; }
.nav-logo-text {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-family: var(--font-head); font-weight: 500; font-size: 0.88rem;
  padding: 7px 16px; border-radius: 99px;
  color: var(--text-muted); letter-spacing: 0.02em;
  transition: var(--trans); position: relative; white-space: nowrap;
}
.nav-link:hover, .nav-link.active-link {
  color: var(--cyan); background: rgba(0,212,255,0.08);
}
.nav-link.active-link::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; background: var(--cyan); border-radius: 50%;
}
.nav-cta {
  padding: 8px 22px; background: var(--grad); color: #fff !important;
  border-radius: 99px; font-weight: 600; font-size: 0.85rem;
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
  -webkit-text-fill-color: #fff !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 30px rgba(0,212,255,0.35); }

/* Hamburger */
#nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px;
}
#nav-toggle span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--text); transition: var(--trans);
}
#nav-toggle.toggle-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.toggle-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-toggle.toggle-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 998; backdrop-filter: blur(4px);
}
#nav-overlay.overlay-visible { display: block; }

/* ─── LAYOUT UTILS ───────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 5%; }
.section    { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* ─── SECTION LABELS ─────────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2);
  padding: 5px 14px; border-radius: 99px; margin-bottom: 20px;
}
.section-label::before { content: '//'; opacity: 0.6; }

.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1;
  color: var(--text); margin-bottom: 16px;
}
.section-title .grad-text {
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; }

/* ─── GRADIENT TEXT ──────────────────────────────────────── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(38px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s !important; }
.reveal-delay-2 { transition-delay: 0.2s !important; }
.reveal-delay-3 { transition-delay: 0.3s !important; }
.reveal-delay-4 { transition-delay: 0.4s !important; }
.reveal-delay-5 { transition-delay: 0.5s !important; }

/* ─── GLASS CARD ─────────────────────────────────────────── */
.glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass:hover { border-color: rgba(0,212,255,0.2); }

/* ─── TILT CARD ──────────────────────────────────────────── */
.tilt-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d; position: relative; overflow: hidden;
}
.tilt-shine {
  position: absolute; inset: 0; pointer-events: none;
  z-index: 2; border-radius: inherit;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  padding: 13px 30px; border-radius: 99px;
  transition: var(--trans); letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 0 25px rgba(0,212,255,0.22);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 40px rgba(0,212,255,0.38);
}
.btn-outline {
  border: 1.5px solid var(--border); color: var(--text-muted);
  background: var(--card); backdrop-filter: blur(12px);
}
.btn-outline:hover {
  border-color: var(--cyan); color: var(--cyan);
  background: rgba(0,212,255,0.06);
  transform: translateY(-3px);
}
.btn-icon { font-size: 1.1em; }

/* ─── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  padding: 150px 0 80px; text-align: center; position: relative;
}
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan);
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.25);
  padding: 6px 18px; border-radius: 99px; margin-bottom: 24px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.page-hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 20px;
}
.page-hero-desc {
  color: var(--text-muted); font-size: 1.1rem;
  max-width: 600px; margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────── */
/* INDEX / HOME                                                 */
/* ─────────────────────────────────────────────────────────── */

/* Hero */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: var(--nav-h);
}
#particle-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto;
  padding: 0 5%; display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(0,212,255,0.07); border: 1px solid rgba(0,212,255,0.2);
  padding: 6px 16px; border-radius: 99px; margin-bottom: 24px;
}
.hero-tag-dot { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; animation: pulse-dot 1.5s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(1.5);opacity:0.6;} }
.hero-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 4rem); line-height: 1.1;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1.35rem; font-weight: 300; color: var(--text-muted);
  margin-bottom: 10px; min-height: 2em;
}
.hero-typed { color: var(--cyan); font-weight: 600; }
.hero-cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--cyan); margin-left: 2px; vertical-align: middle;
  animation: blink .7s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }
.hero-desc { color: var(--text-muted); font-size: 1rem; max-width: 460px; margin-bottom: 36px; line-height: 1.75; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
/* .stat-item removed */
.stat-num {
  font-family: var(--font-head); font-weight: 800; font-size: 2rem;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* Hero Visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-avatar-wrap {
  position: relative; width: 340px; height: 340px;
}
.hero-avatar-ring {
  position: absolute; inset: -16px; border-radius: 50%;
  border: 1.5px solid rgba(0,212,255,0.25);
  animation: rotate-ring 12s linear infinite;
}
.hero-avatar-ring::before {
  content:''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; background: var(--cyan); border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
}
@keyframes rotate-ring { to { transform: rotate(360deg); } }
.hero-avatar-ring2 {
  position: absolute; inset: -40px; border-radius: 50%;
  border: 1px solid rgba(99,102,241,0.15);
  animation: rotate-ring 22s linear infinite reverse;
}
.hero-avatar-img {
  width: 340px; height: 340px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 3px solid rgba(0,212,255,0.25);
  box-shadow: 0 0 60px rgba(0,212,255,0.15), 0 0 120px rgba(99,102,241,0.08);
  position: relative; z-index: 2;
}

/* Floating 3D shapes */
.shape-3d {
  position: absolute; pointer-events: none; z-index: 1;
  animation: float3d 6s ease-in-out infinite;
}
.shape-cube {
  width: 50px; height: 50px; top: 10%; left: 0%;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(99,102,241,0.2));
  border: 1px solid rgba(0,212,255,0.25); border-radius: 8px;
  transform: rotate(20deg);
}
.shape-tri {
  width: 0; height: 0; right: 0%; top: 60%;
  border-left: 25px solid transparent; border-right: 25px solid transparent;
  border-bottom: 44px solid rgba(99,102,241,0.2); filter: drop-shadow(0 0 8px rgba(99,102,241,0.4));
  background: none; border-top: none;
  animation-delay: 1.5s;
}
.shape-circle {
  width: 70px; height: 70px; bottom: 5%; left: 5%;
  border: 2px solid rgba(0,212,255,0.2); border-radius: 50%;
  animation-delay: 3s;
}
.shape-dot-grid {
  bottom: 15%; right: 3%; display: grid; grid-template-columns: repeat(4,8px); gap: 6px;
}
.shape-dot-grid span {
  display: block; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(0,212,255,0.3);
}
@keyframes float3d {
  0%,100%{ transform: translateY(0px) rotate(0deg); }
  33%     { transform: translateY(-18px) rotate(8deg); }
  66%     { transform: translateY(-8px) rotate(-5deg); }
}

/* Services Section */
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 60px;
}
.service-card {
  padding: 40px 32px; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.15); border-radius: 14px; margin-bottom: 22px;
  transition: var(--trans);
}
.service-icon svg {
  width: 28px; height: 28px; stroke: var(--cyan); stroke-width: 1.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: var(--trans);
}
.service-card:hover .service-icon {
  background: rgba(0,212,255,0.15); box-shadow: var(--glow-sm);
  transform: translateY(-4px) rotate(5deg);
}
.service-card:hover .service-icon svg {
  stroke: #fff; transform: scale(1.1);
}
.service-title {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: var(--text); margin-bottom: 12px;
}
.service-desc { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

/* ─────────────────────────────────────────────────────────── */
/* ABOUT                                                        */
/* ─────────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: center;
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(0,212,255,0.1), 0 30px 80px rgba(0,0,0,0.4);
}
.about-img-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--grad); color: #fff; padding: 16px 22px;
  border-radius: var(--radius); font-family: var(--font-head); font-weight: 700;
  text-align: center; box-shadow: 0 8px 30px rgba(0,212,255,0.25);
}
.about-img-badge .badge-num { font-size: 2rem; line-height: 1; }
.about-img-badge .badge-label { font-size: 0.72rem; opacity: 0.85; }
/* .about-text removed */
.about-intro { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.about-intro strong { color: var(--cyan); font-weight: 600; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.about-tag {
  font-family: var(--font-mono); font-size: 0.78rem;
  padding: 6px 14px; border-radius: 99px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-muted); transition: var(--trans);
  display: inline-flex; align-items: center; gap: 8px;
}
.about-tag svg {
  width: 14px; height: 14px; stroke: var(--cyan); stroke-width: 2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: var(--trans);
}
.about-tag:hover { border-color: var(--cyan); color: var(--cyan); }
.about-tag:hover svg { stroke: #fff; transform: scale(1.1); }
.about-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.social-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--surface2); border: 1px solid var(--border);
  font-size: 1.1rem; color: var(--text-muted); transition: var(--trans);
  overflow: hidden;
}
.social-btn img {
  width: 22px; height: 22px; object-fit: contain; filter: grayscale(1) brightness(0.8);
  transition: var(--trans);
}
.social-btn:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,212,255,0.06); transform: translateY(-3px); }
.social-btn:hover img { filter: none; transform: scale(1.1); }

/* ─────────────────────────────────────────────────────────── */
/* SKILLS                                                       */
/* ─────────────────────────────────────────────────────────── */
.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.skill-bar-group { margin-bottom: 28px; }
.skill-bar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.skill-bar-name { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
.skill-bar-pct { font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan); }
.skill-bar-track {
  height: 6px; background: var(--surface2); border-radius: 99px; overflow: hidden;
}
.skill-bar-fill {
  height: 100%; background: var(--grad); border-radius: 99px;
  width: 0%; transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; }
.cert-card {
  padding: 24px 28px; display: flex; gap: 18px; align-items: flex-start;
}
.cert-icon {
  flex-shrink: 0;
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  background: var(--surface2); border-radius: 14px; border: 1px solid var(--border);
  transition: var(--trans); position: relative; overflow: hidden;
}
.cert-icon svg {
  width: 26px; height: 26px; fill: none; stroke: var(--cyan); stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.3));
  transition: var(--trans);
}
.cert-card:hover .cert-icon {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,212,255,0.15);
}
.cert-card:hover .cert-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px var(--cyan));
}
.cert-title { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.cert-issuer { font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-mono); }
.cert-badge-pill {
  display: inline-block; font-size: 0.68rem; font-family: var(--font-mono);
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25);
  color: var(--purple); padding: 2px 10px; border-radius: 99px; margin-top: 6px;
}

.tools-grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.tool-pill {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-family: var(--font-mono);
  padding: 8px 16px; border-radius: 99px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-muted); transition: var(--trans);
}
.tool-pill:hover { border-color: var(--indigo); color: var(--purple); }

/* ─────────────────────────────────────────────────────────── */
/* EDUCATION                                                    */
/* ─────────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--indigo), transparent);
}
.timeline-item { position: relative; margin-bottom: 56px; }
.timeline-dot {
  position: absolute; left: -39px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0,212,255,0.4);
  transition: var(--trans);
}
.timeline-item:hover .timeline-dot {
  background: var(--cyan); box-shadow: 0 0 20px rgba(0,212,255,0.6);
}
.timeline-card { padding: 32px 36px; }
.timeline-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.timeline-year {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--cyan);
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2);
  padding: 3px 12px; border-radius: 99px;
}
.timeline-school {
  font-size: 0.82rem; color: var(--text-muted); font-style: italic;
}
.timeline-title {
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 10px; color: var(--text);
}
.timeline-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.timeline-tag {
  font-size: 0.75rem; font-family: var(--font-mono);
  padding: 4px 12px; border-radius: 99px;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted);
}

/* Result table */
.result-table {
  width: 100%; border-collapse: collapse; margin-top: 20px;
  font-size: 0.83rem; font-family: var(--font-mono);
}
.result-table th {
  padding: 8px 14px; text-align: left; font-weight: 600;
  color: var(--cyan); border-bottom: 1px solid var(--border);
  background: rgba(0,212,255,0.04);
}
.result-table td {
  padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
}
.result-table tr:hover td { background: rgba(0,212,255,0.02); }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); margin-top: 20px; }

/* ─────────────────────────────────────────────────────────── */
/* PROJECTS                                                     */
/* ─────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 60px;
}
.project-thumb {
  width: 100%; height: 180px; border-radius: 12px; overflow: hidden; margin-bottom: 22px; position: relative; z-index: 1; border: 1px solid var(--border);
}
.project-thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.project-card:hover .project-thumb img {
  transform: scale(1.1);
}
.project-card {
  padding: 32px 28px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.project-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--grad); opacity: 0; transition: opacity 0.4s;
  pointer-events: none; z-index: 0;
}
.project-card:hover::after { opacity: 0.04; }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; position: relative; z-index: 1; }
.project-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.15);
  border-radius: 14px; transition: var(--trans);
}
.project-icon svg {
  width: 30px; height: 30px; stroke: var(--cyan); stroke-width: 1.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: var(--trans);
}
.project-card:hover .project-icon {
  background: rgba(0,212,255,0.12); border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.2); transform: translateY(-3px) rotate(5deg);
}
.project-card:hover .project-icon svg {
  stroke: #fff; transform: scale(1.1);
}
.project-links { display: flex; gap: 10px; }
.project-link {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-muted); transition: var(--trans);
}
.project-link svg {
  width: 18px; height: 18px; transition: var(--trans);
}
.project-link:hover {
  border-color: var(--cyan); color: var(--cyan); background: rgba(0,212,255,0.06);
  transform: translateY(-2px);
}
.project-link:hover svg {
  transform: scale(1.1);
}
.project-title {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.project-desc {
  color: var(--text-muted); font-size: 0.9rem; line-height: 1.7;
  flex: 1; position: relative; z-index: 1;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; position: relative; z-index: 1; }
.project-tag {
  font-size: 0.72rem; font-family: var(--font-mono);
  padding: 4px 12px; border-radius: 99px;
  background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted);
}
.project-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-family: var(--font-mono);
  padding: 3px 10px; border-radius: 99px; margin-top: 14px;
  position: relative; z-index: 1;
}
.status-live {
  color: #34d399; background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2);
}
.status-wip {
  color: var(--amber); background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2);
}
.status-live::before, .status-wip::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
}
.status-live::before { background: #34d399; box-shadow: 0 0 6px #34d399; }
.status-wip::before  { background: var(--amber); }

/* ─────────────────────────────────────────────────────────── */
/* CONTACT                                                      */
/* ─────────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info-title {
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; margin-bottom: 12px;
}
.contact-info-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.contact-item {
  display: flex; gap: 16px; align-items: center; padding: 18px 22px;
  transition: var(--trans);
}
.contact-item:hover { border-color: var(--cyan); }
.contact-item-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,212,255,0.08); border-radius: 12px;
  border: 1px solid rgba(0,212,255,0.15); transition: var(--trans);
}
.contact-item-icon svg {
  width: 22px; height: 22px; stroke: var(--cyan); stroke-width: 1.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: var(--trans);
}
.contact-item:hover .contact-item-icon {
  background: rgba(0,212,255,0.12); border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,212,255,0.2); transform: scale(1.05) rotate(5deg);
}
.contact-item:hover .contact-item-icon svg {
  stroke: #fff; transform: scale(1.1);
}
.contact-item-label { font-size: 0.75rem; color: var(--text-dim); font-family: var(--font-mono); margin-bottom: 3px; }
.contact-item-value { font-weight: 500; font-size: 0.95rem; }
.social-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact Form */
.contact-form-card { padding: 40px; }
.form-group { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.form-label {
  display: block; font-size: 0.8rem; font-family: var(--font-mono);
  color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.06em;
}
.form-input, .form-textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 18px; color: var(--text); font-size: 0.9rem;
  outline: none; transition: var(--trans); resize: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--cyan); background: rgba(0,212,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-textarea { height: 140px; }
.form-btn {
  width: 100%; padding: 16px; border-radius: 99px;
  background: var(--grad); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.02em; cursor: pointer;
  box-shadow: 0 0 25px rgba(0,212,255,0.22); transition: var(--trans);
}
.form-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(0,212,255,0.38); }
.form-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
#form-success {
  display: none; margin-top: 16px; padding: 14px 20px; border-radius: 10px;
  background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.25);
  color: #34d399; font-size: 0.9rem; text-align: center;
}

/* ─────────────────────────────────────────────────────────── */
/* FOOTER                                                       */
/* ─────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); background: var(--bg2); padding: 60px 0 30px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 5%;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
}
/* .footer-brand removed */
.footer-logo { height: 42px; margin-bottom: 16px; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-col-title {
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  color: var(--text); margin-bottom: 20px; letter-spacing: 0.04em;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { color: var(--text-muted); font-size: 0.88rem; transition: var(--trans); }
.footer-link:hover { color: var(--cyan); padding-left: 6px; }
.footer-bottom {
  max-width: 1180px; margin: 0 auto; padding: 24px 5% 0;
  border-top: 1px solid var(--border); margin-top: 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.82rem; color: var(--text-dim); }
.footer-copy a { color: var(--cyan); }
.footer-powered { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); }

/* ─────────────────────────────────────────────────────────── */
/* GLOW DIVIDER                                                 */
/* ─────────────────────────────────────────────────────────── */
.glow-divider {
  height: 1px; max-width: 1180px; margin: 0 auto;
  background: linear-gradient(to right, transparent, var(--cyan), var(--indigo), transparent);
  opacity: 0.3;
}

/* ─────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                   */
/* ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .skills-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  #nav-toggle { display: flex; }

  #nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    z-index: 999; padding: 32px 5%;
    background: rgba(4,4,14,0.97); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; gap: 8px;
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  #nav-menu.menu-open { transform: translateX(0); }
  #nav-menu .nav-link { font-size: 1.2rem; padding: 14px 20px; border-radius: 12px; display: block; }

  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-tag { margin: 0 auto 24px; }
  .hero-avatar-wrap, .hero-avatar-img { width: 260px; height: 260px; }
  .hero-visual { order: -1; margin-top: 50px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-wrap { display: none; }
  .about-text .mt-md { display: flex; flex-direction: column; gap: 16px; }
  .about-text .btn { width: 100%; justify-content: center; }
  .about-text .btn-outline { margin-left: 0 !important; }
  .about-img-badge { bottom: 10px; right: 10px; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .timeline { padding-left: 28px; }
  .timeline::before { left: 8px; }
  .timeline-dot { left: -28px; }
  .timeline-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 18px; }
  .page-hero { padding: 130px 0 60px; }
  .section { padding: 72px 0; }
  .contact-form-card { padding: 24px 20px; }
}

/* ─── MISC UTILS ─────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 56px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }

/* Horizontal dividers */
.section-header { margin-bottom: 56px; }
.section-header-center { text-align: center; }
.section-header-center .section-desc { margin: 0 auto; }
/* ─── TECH STACK REDESIGN ────────────────────────────────── */
.tech-stack-section {
  position: relative; padding: 100px 0; overflow: hidden;
  background: radial-gradient(circle at center, rgba(0,212,255,0.05) 0%, transparent 70%);
}

.tech-orb-wrapper {
  display: flex; justify-content: center; align-items: center;
  margin: 60px 0 80px; position: relative; z-index: 2;
}

.tech-orb {
  width: 140px; height: 140px; background: var(--bg2);
  border: 1px solid rgba(0,212,255,0.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(0,212,255,0.2), inset 0 0 20px rgba(0,212,255,0.1);
  animation: orbPulse 4s ease-in-out infinite;
}

.tech-orb svg {
  width: 60px; height: 60px; stroke: var(--cyan); stroke-width: 1.5;
  filter: drop-shadow(0 0 10px var(--cyan));
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(0,212,255,0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(0,212,255,0.4); }
}

.tech-marquee-container {
  display: flex; flex-direction: column; gap: 30px;
  position: relative; z-index: 2;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.tech-marquee-track {
  display: flex; gap: 30px; width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.tech-marquee-reverse {
  animation: marqueeScrollReverse 40s linear infinite;
}

.tech-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 15px)); }
}

@keyframes marqueeScrollReverse {
  from { transform: translateX(calc(-50% - 15px)); }
  to { transform: translateX(0); }
}

.tech-icon-card {
  width: 70px; height: 70px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans); position: relative;
}

.tech-icon-card img, .tech-icon-card svg {
  width: 36px; height: 36px; object-fit: contain;
  transition: var(--trans);
}

.tech-icon-card:hover {
  border-color: var(--cyan); background: rgba(0,212,255,0.06);
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 20px rgba(0,212,255,0.15);
}

.tech-icon-card:hover img, .tech-icon-card:hover svg {
  filter: none; opacity: 1; transform: scale(1.15);
}

/* Background Symbols */
.code-bg-elements {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; overflow: hidden;
}

.code-symbol {
  position: absolute; font-family: var(--font-mono); font-weight: 700;
  color: var(--cyan); opacity: 0.1; font-size: 1.5rem;
  animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(110%) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

@media (max-width: 768px) {
  .tech-orb { width: 110px; height: 110px; }
  .tech-orb svg { width: 44px; height: 44px; }
  .tech-icon-card { width: 60px; height: 60px; }
  .tech-icon-card img, .tech-icon-card svg { width: 28px; height: 28px; }
}
