/* =============================================
   KEYUR BHATT PORTFOLIO — Professional Edition
   Theme: Dark Professional, Techy but Clean
   ============================================= */

:root {
  --bg:          #06090f;
  --bg2:         #0a0f1c;
  --bg-card:     rgba(12, 17, 30, 0.8);
  --bg-card-2:   rgba(15, 22, 38, 0.6);
  --border:      rgba(0, 180, 220, 0.1);
  --border-hover:rgba(0, 180, 220, 0.3);
  --cyan:        #00c8e8;
  --cyan-soft:   #00a8c8;
  --teal:        #00b890;
  --text:        #c8d4e4;
  --muted:       #7a8a9e;
  --white:       #f0f4fa;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:        'Fira Code', monospace;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --speed:       0.3s;
  --radius:      12px;
  --radius-sm:   7px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
strong { color: var(--white); font-weight: 600; }
em { color: var(--cyan); font-style: normal; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,180,220,0.25); border-radius: 3px; }

/* 3D Canvas */
#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.6;
}

/* Custom Cursor */
.cursor-dot {
  position: fixed; width: 7px; height: 7px;
  background: var(--cyan); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
}
.cursor-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1.5px solid rgba(0,200,232,0.5);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.2s;
  opacity: 0.6;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.88rem; font-weight: 600;
  border-radius: 6px; border: 1px solid transparent;
  cursor: none; transition: all var(--speed) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--cyan); color: #05121a; font-weight: 700;
  border-color: var(--cyan);
}
.btn-primary:hover { background: #00e0ff; box-shadow: 0 4px 20px rgba(0,200,232,0.25); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }
.btn-nav-cta {
  padding: 0.45rem 1.1rem; font-size: 0.82rem;
  border: 1px solid var(--border); color: var(--cyan);
  border-radius: 6px; background: rgba(0,200,232,0.06);
}
.btn-nav-cta:hover { background: var(--cyan); color: #05121a; }
.btn-full { width: 100%; justify-content: center; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: all 0.35s var(--ease);
}
.header.scrolled {
  background: rgba(6,9,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; cursor: none; }
.logo-svg { transition: transform 0.3s var(--ease); }
.logo:hover .logo-svg { transform: rotate(8deg) scale(1.05); }
.logo-text { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--white); }
.logo-accent { color: var(--cyan); }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; gap: 0.25rem; }
.nav-link {
  color: var(--muted); font-size: 0.875rem; font-weight: 500;
  padding: 0.3rem 0.7rem; border-radius: 5px;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--cyan); background: rgba(0,200,232,0.07); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: none; background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; position: relative; z-index: 1;
  padding-top: 68px;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 4rem; align-items: center;
  padding-top: 3rem; padding-bottom: 3rem;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: rgba(0,184,144,0.07); border: 1px solid rgba(0,184,144,0.2);
  padding: 0.3rem 0.9rem; border-radius: 50px;
  font-size: 0.78rem; font-weight: 500; color: var(--teal);
  margin-bottom: 1.5rem; width: fit-content;
}
.label-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); animation: pulse-dot 2.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,184,144,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(0,184,144,0); }
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -0.05em; color: var(--white); margin-bottom: 1.25rem;
}
.hero-title .title-line { display: block; }
.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-roles {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.role-prefix { color: var(--muted); font-size: 1rem; }
.role-carousel { position: relative; height: 1.6rem; min-width: 260px; overflow: hidden; }
.role-item {
  position: absolute; top: 0; left: 0;
  font-size: 1rem; font-weight: 700;
  color: var(--cyan); opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.45s, transform 0.45s;
  white-space: nowrap;
}
.role-item.active { opacity: 1; transform: translateY(0); }
.hero-desc { color: var(--muted); font-size: 1rem; max-width: 520px; margin-bottom: 1.75rem; line-height: 1.75; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-stack { display: flex; align-items: center; gap: 1rem; }
.stack-label { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.stack-icons { display: flex; gap: 0.75rem; }
.stack-icons span { font-size: 1.3rem; color: var(--muted); transition: color 0.2s, transform 0.2s; cursor: default; }
.stack-icons span:hover { color: var(--cyan); transform: translateY(-3px); }

/* Globe */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.globe-container {
  position: relative; width: 280px; height: 280px;
  animation: globe-float 6s ease-in-out infinite;
}
@keyframes globe-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.orbit-ring {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%; border: 1px solid rgba(0,180,220,0.12);
  transform: translate(-50%, -50%);
}
.ring-1 { width: 140px; height: 140px; animation: spin 20s linear infinite; }
.ring-2 { width: 270px; height: 270px; animation: spin 34s linear infinite reverse; border-style: dashed; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.globe-core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 86px; height: 86px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #122440, #06090f);
  border: 2px solid rgba(0,180,220,0.25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(0,180,220,0.12);
}
.globe-server-icon { font-size: 2.2rem; color: var(--cyan); opacity: 0.9; }
.orbit-node {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%)
    rotate(calc(var(--idx) * 72deg))
    translateX(100px)
    rotate(calc(var(--idx) * -72deg));
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,15,30,0.9);
  border: 1px solid rgba(0,180,220,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--cyan);
  box-shadow: 0 0 8px rgba(0,180,220,0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.orbit-node:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(0,200,232,0.3); }
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 1rem;
  animation: bounce-hint 2.5s ease-in-out infinite; z-index: 2; cursor: none;
}
.hero-scroll-hint:hover { color: var(--cyan); }
@keyframes bounce-hint { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }

/* Sections */
.section { padding: 6rem 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  display: inline-block; font-family: var(--mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--white); margin-bottom: 0.6rem;
}
.section-subtitle { color: var(--muted); max-width: 580px; margin: 0 auto; font-size: 0.95rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: start; }
.lead { font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; line-height: 1.65; }
.about-text p { color: var(--muted); margin-bottom: 0.9rem; font-size: 0.95rem; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1.75rem; }
.value-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.83rem; color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.value-item:hover { border-color: var(--cyan); color: var(--text); }
.value-item i { color: var(--cyan); font-size: 0.95rem; min-width: 18px; }
.stats-panel { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.85rem; }
.stat-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1rem; text-align: center;
  transition: border-color 0.2s, transform 0.25s;
}
.stat-item:hover { border-color: rgba(0,180,220,0.3); transform: translateY(-3px); }
.stat-num {
  font-size: 2.1rem; font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: flex; align-items: flex-start; justify-content: center; line-height: 1.1;
}
.stat-plus { font-size: 1.2rem; color: var(--teal); font-weight: 800; }
.stat-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 0.35rem; }

/* Skills tabs */
.skills-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2rem; }
.tab-btn {
  padding: 0.45rem 1.1rem; font-size: 0.83rem; font-weight: 600;
  border: 1px solid var(--border); border-radius: 50px; cursor: none;
  background: transparent; color: var(--muted); transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,200,232,0.06); }
.skills-panel { display: none; }
.skills-panel.active { display: block; }
.skill-hero-card {
  display: flex; gap: 1.75rem; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; margin-bottom: 1.75rem;
  transition: border-color 0.2s;
}
.skill-hero-card:hover { border-color: rgba(0,180,220,0.25); }
.skill-hero-icon { font-size: 2.2rem; color: var(--cyan); min-width: 50px; text-align: center; padding-top: 2px; }
.skill-hero-body h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 0.6rem; }
.skill-hero-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.skill-tags-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; }
.skill-tag-group h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  padding: 0.25rem 0.7rem; border-radius: 50px; font-size: 0.78rem; font-weight: 500;
  background: rgba(0,180,220,0.05); border: 1px solid rgba(0,180,220,0.15); color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--cyan); color: var(--cyan); }
.tag.tag-cert { border-color: rgba(0,184,144,0.25); color: var(--teal); background: rgba(0,184,144,0.06); }

/* Timeline */
.timeline { max-width: 820px; margin: 0 auto; }
.tl-item { display: grid; grid-template-columns: 28px 1fr; gap: 0; margin-bottom: 2rem; }
.tl-marker { display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.tl-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid var(--cyan); background: var(--bg); flex-shrink: 0; z-index: 1;
  transition: background 0.2s; box-shadow: 0 0 8px rgba(0,180,220,0.2);
}
.tl-item:hover .tl-dot { background: var(--cyan); }
.tl-line { flex: 1; width: 1px; background: linear-gradient(to bottom, rgba(0,180,220,0.2), transparent); margin-top: 5px; }
.tl-body {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1.75rem;
  margin-left: 1rem; transition: border-color 0.2s;
}
.tl-item:hover .tl-body { border-color: rgba(0,180,220,0.2); }
.tl-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.4rem; }
.tl-role { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.tl-company { font-size: 0.88rem; color: var(--cyan); font-weight: 500; margin-top: 0.1rem; }
.tl-date {
  font-family: var(--mono); font-size: 0.75rem; color: var(--teal);
  background: rgba(0,184,144,0.07); padding: 0.15rem 0.65rem;
  border-radius: 50px; border: 1px solid rgba(0,184,144,0.18); white-space: nowrap; height: fit-content;
}
.tl-location { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.85rem; }
.tl-location i { margin-right: 0.3rem; font-size: 0.7rem; }
.tl-points { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.tl-points li { position: relative; padding-left: 1.1rem; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.tl-points li::before { content: '›'; position: absolute; left: 0; color: var(--cyan); font-size: 1.1rem; line-height: 1.4; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tl-tags span {
  font-size: 0.72rem; padding: 0.15rem 0.55rem; border-radius: 50px;
  background: rgba(0,180,220,0.05); border: 1px solid rgba(0,180,220,0.12); color: var(--muted);
}

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.cert-card {
  display: flex; gap: 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; cursor: none;
  transition: border-color 0.25s, transform 0.25s;
}
.cert-card:hover { border-color: rgba(0,180,220,0.25); transform: translateY(-4px); }
.cert-badge { font-size: 1.8rem; color: var(--cyan); min-width: 42px; display: flex; align-items: flex-start; padding-top: 2px; }
.cert-badge.db-badge { color: var(--teal); }
.cert-badge.ai-badge { color: #9b85d4; }
.cert-body { flex: 1; }
.cert-body h3 { font-size: 0.98rem; color: var(--white); font-weight: 700; margin-bottom: 0.2rem; }
.cert-sub { font-size: 0.75rem; color: var(--cyan); margin-bottom: 0.6rem; }
.cert-skills { font-size: 0.8rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }
.cert-footer { display: flex; justify-content: space-between; align-items: center; }
.cert-date { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; }
.cert-btn {
  padding: 0.28rem 0.85rem; font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--border); border-radius: 5px;
  background: transparent; color: var(--cyan); cursor: none; transition: all 0.2s;
}
.cert-btn:hover { background: var(--cyan); color: #05121a; border-color: var(--cyan); }

/* AI Tools Section */
.ai-tools-section { background: var(--bg2); }
.ai-tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.ai-tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}
.ai-tool-card:hover { border-color: rgba(155,133,212,0.3); transform: translateY(-3px); }
.ai-tool-icon { font-size: 1.6rem; color: #9b85d4; margin-bottom: 1rem; }
.ai-tool-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; }
.ai-tool-card p { color: var(--muted); font-size: 0.86rem; line-height: 1.65; margin-bottom: 1rem; }
.ai-tool-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ai-tool-tags span {
  font-size: 0.72rem; padding: 0.18rem 0.55rem; border-radius: 50px;
  background: rgba(155,133,212,0.08); border: 1px solid rgba(155,133,212,0.2); color: #b8a8e0;
}
.ai-honest-note {
  display: flex; align-items: flex-start; gap: 1rem;
  background: rgba(0,180,220,0.04); border: 1px solid rgba(0,180,220,0.12);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm); padding: 1.25rem 1.5rem;
}
.ai-honest-note i { color: var(--cyan); font-size: 1.1rem; flex-shrink: 0; margin-top: 0.15rem; }
.ai-honest-note p { color: var(--muted); font-size: 0.875rem; line-height: 1.65; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 340px 1fr; gap: 3.5rem; }
.contact-left { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-card {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.1rem 1.25rem;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: rgba(0,180,220,0.25); }
.contact-card i { font-size: 1.1rem; color: var(--cyan); min-width: 20px; }
.cc-label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.15rem; }
.contact-card a { color: var(--text); font-size: 0.88rem; }
.contact-card a:hover { color: var(--cyan); }
.contact-card span { color: var(--text); font-size: 0.88rem; }
.contact-social { display: flex; gap: 0.65rem; margin-top: 0.4rem; }
.social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.95rem;
  transition: all 0.2s;
}
.social-btn:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
.contact-methods {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.25rem;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-methods h3 {
  font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text);
}
.methods-intro {
  color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.8rem;
}
.methods-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem;
}
.methods-ctas .btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.quick-response-badge {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; color: var(--muted);
  background: rgba(0, 212, 255, 0.05);
  border: 1px dashed rgba(0, 212, 255, 0.2);
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  width: fit-content;
}
.quick-response-badge i { color: var(--cyan); }

/* Footer */
.footer {
  border-top: 1px solid var(--border); padding: 2rem 0;
  background: rgba(6,9,15,0.9); position: relative; z-index: 1;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; }
.footer-brand p { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 0.8rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { font-size: 0.76rem; color: var(--muted); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.modal.open { display: flex; }
.modal.visible { opacity: 1; }
.modal-overlay { position: absolute; inset: 0; background: rgba(3,6,12,0.88); backdrop-filter: blur(8px); }
.modal-box {
  position: relative; z-index: 1; background: #0a0f1c;
  border: 1px solid rgba(0,180,220,0.2); border-radius: var(--radius);
  width: 90%; max-width: 800px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.modal-head { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 1rem; color: var(--white); }
.modal-close { background: none; border: none; color: var(--muted); font-size: 1.6rem; cursor: none; transition: color 0.2s; }
.modal-close:hover { color: var(--white); }
.modal-content { padding: 1.25rem; overflow-y: auto; display: flex; justify-content: center; }
.modal-content img { max-width: 100%; border-radius: var(--radius-sm); }
.modal-content iframe { width: 100%; height: 480px; border: none; border-radius: var(--radius-sm); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-label { margin: 0 auto 1.5rem; }
  .hero-desc { margin: 0 auto 1.75rem; }
  .hero-cta { justify-content: center; }
  .hero-stack { justify-content: center; }
  .hero-roles { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-panel { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: rgba(6,9,15,0.98); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1.25rem; gap: 0.75rem; }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; width: 100%; }
  .nav-link { display: block; padding: 0.65rem 0.9rem; }
  .nav-toggle { display: flex; }
  .stats-panel { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .section { padding: 4rem 0; }
  .about-values { grid-template-columns: 1fr; }
  .skill-hero-card { flex-direction: column; gap: 0.9rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.75rem; }
  .hero-cta { flex-direction: column; }
  .cert-card { flex-direction: column; gap: 0.75rem; }
  .tl-body { margin-left: 0.65rem; padding: 1.1rem; }
}
