/* ═══════════════════════════════════════════════════════════
   NIVESH KUMAR MEENA — Portfolio
   Design: Apple-scroll cinematic × aiXis dark-minimal
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #000000;
  --bg-2:        #0a0a0f;
  --bg-3:        #0d1117;
  --bg-card:     #111827;
  --border:      rgba(255,255,255,0.08);
  --border-hover:rgba(88,166,255,0.35);
  --text:        #f0f6fc;
  --text-muted:  #8b949e;
  --text-dim:    #3d444d;
  --blue:        #58a6ff;
  --blue-dark:   #1f6feb;
  --purple:      #a371f7;
  --green:       #3fb950;
  --grad:        linear-gradient(135deg, #58a6ff 0%, #a371f7 50%, #3fb950 100%);
  --grad-blue:   linear-gradient(135deg, #1f6feb, #58a6ff);
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(88,166,255,0.3); }

a { color: inherit; text-decoration: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #21262d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-dark); }

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

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

/* ─── Section Label ─── */
.section-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}

/* ─── Section Title ─── */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

/* ─── Section Sub ─── */
.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
}

/* ─── Section Header ─── */
.section-header { margin-bottom: 4rem; }

/* ═══════════════════════════════ NAV ═══════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
}

.nav-logo .dot { color: var(--blue); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--blue);
  color: #000;
  font-size: .85rem;
  font-weight: 700;
  padding: .5rem 1.25rem;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-cta:hover {
  background: #79c0ff;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu ul { list-style: none; text-align: center; }

.mobile-menu li { margin: 1.5rem 0; }

.mm-link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition);
}

.mm-link:hover { color: var(--blue); }

/* ═══════════════════════════════ HERO ═══════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

/* Grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(88,166,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88,166,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%);
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

.orb-1 { width: 600px; height: 600px; background: rgba(88,166,255,0.08); top: -200px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: rgba(163,113,247,0.07); bottom: -100px; left: -50px; animation-delay: 3s; }
.orb-3 { width: 300px; height: 300px; background: rgba(63,185,80,0.05); top: 40%; left: 30%; animation-delay: 5s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(88,166,255,0.1);
  border: 1px solid rgba(88,166,255,0.2);
  border-radius: 100px;
  padding: .4rem 1rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--blue);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.04em;
  margin-bottom: 1.5rem;
}

.hero-title .line { display: block; }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-college {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--blue);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-dim);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--blue);
  animation: slide 2s ease-in-out infinite;
}

@keyframes slide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Hero Code Block */
.hero-code {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,17,23,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  backdrop-filter: blur(20px);
  z-index: 2;
  max-width: 400px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(88,166,255,0.05);
}

.hero-code pre { overflow: visible; }

.hero-code code {
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.8;
  white-space: pre;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--blue);
  color: #000;
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #79c0ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(88,166,255,0.3);
}

.btn-primary.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: var(--transition);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(88,166,255,0.05);
  transform: translateY(-2px);
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--blue);
  font-weight: 600;
  font-size: .85rem;
  padding: .5rem 1.1rem;
  border-radius: 6px;
  border: 1px solid rgba(88,166,255,0.3);
  transition: var(--transition);
  background: rgba(88,166,255,0.05);
}

.btn-ghost-sm:hover {
  background: rgba(88,166,255,0.15);
  border-color: var(--blue);
}

/* Syntax colors */
.c-kw  { color: #ff7b72; }
.c-cls { color: #79c0ff; }
.c-fn  { color: #d2a8ff; }
.c-str { color: #a5d6ff; }
.c-op  { color: #ff7b72; }
.c-comment { color: #3d444d; font-style: italic; }

/* ═══════════════════════════════ STATS ═══════════════════════════════ */
#stats {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  animation-delay: var(--delay, 0s);
}

.stat-num {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: .4rem;
}

/* ═══════════════════════════════ ABOUT ═══════════════════════════════ */
#about {
  padding: 7rem 0;
  background: var(--bg-3);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-desc strong { color: var(--text); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0;
}

a.tag,
.tag {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: rgba(88,166,255,0.08);
  border: 1px solid rgba(88,166,255,0.15);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: .78rem;
  padding: .3rem .75rem;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

a.tag:hover {
  background: rgba(88,166,255,0.18);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88,166,255,0.25);
}

.about-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-link {
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.about-link:hover { color: var(--blue); }

/* About code card */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

.card-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.card-dot.red    { background: #ff5f57; }
.card-dot.yellow { background: #ffbd2e; }
.card-dot.green  { background: #28c840; }

.card-filename {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-muted);
  margin-left: .5rem;
}

.about-code {
  padding: 1.5rem;
  overflow: auto;
}

.about-code code {
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.9;
  white-space: pre;
}

/* ═══════════════════════════════ PROJECTS ═══════════════════════════════ */
#projects {
  padding: 7rem 0;
  background: var(--bg);
}

/* Featured project */
.project-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(31,111,235,0.08), rgba(163,113,247,0.05));
  border: 1px solid rgba(88,166,255,0.15);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.project-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(88,166,255,0.04), transparent);
  opacity: 0;
  transition: var(--transition);
}

.project-featured:hover::before { opacity: 1; }
.project-featured:hover { border-color: rgba(88,166,255,0.3); transform: translateY(-2px); }

.pf-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.p-tag {
  font-family: var(--font-mono);
  font-size: .73rem;
  color: var(--text-muted);
  letter-spacing: .05em;
}

.p-status {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 100px;
}

.p-status.live {
  background: rgba(63,185,80,0.15);
  color: var(--green);
  border: 1px solid rgba(63,185,80,0.3);
}

.pf-content h3 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.pf-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.pf-content p strong { color: var(--blue); }

.p-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.5rem;
}

.p-stack span {
  background: rgba(88,166,255,0.08);
  border: 1px solid rgba(88,166,255,0.12);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: .73rem;
  padding: .25rem .65rem;
  border-radius: 4px;
}

/* Agent diagram */
.pf-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-diagram {
  position: relative;
  width: 100%;
  height: 240px;
}

.agent-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(13,17,23,0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .4rem .9rem;
  font-size: .78rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  color: var(--text-muted);
  transition: var(--transition);
}

.agent-node.highlight {
  border-color: rgba(88,166,255,0.4);
  color: var(--blue);
  background: rgba(88,166,255,0.08);
  box-shadow: 0 0 20px rgba(88,166,255,0.1);
}

.agent-node.green {
  border-color: rgba(63,185,80,0.4);
  color: var(--green);
  background: rgba(63,185,80,0.08);
}

.agent-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Project grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  animation-delay: var(--delay, 0s);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(88,166,255,0.04), transparent);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(88,166,255,0.1);
}

.project-card:hover::after { opacity: 1; }

.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.pc-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.pc-links a:hover { color: var(--blue); }

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.pc-metrics {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  padding: .75rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.metric { text-align: center; flex: 1; }

.metric-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: .68rem;
  color: var(--text-muted);
  display: block;
  margin-top: .15rem;
}

.p-stack-sm {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: auto;
}

.p-stack-sm span {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .68rem;
  padding: .2rem .5rem;
  border-radius: 4px;
}

.projects-cta { text-align: center; }

/* ═══════════════════════════════ SKILLS ═══════════════════════════════ */
#skills {
  padding: 7rem 0;
  background: var(--bg-2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  animation-delay: var(--delay, 0s);
}

.skill-group:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.skill-group h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.skill-pills a,
.skill-pills span {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .75rem;
  padding: .3rem .7rem;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.skill-pills a:hover,
.skill-pills span:hover {
  background: rgba(88,166,255,0.12);
  border-color: rgba(88,166,255,0.4);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(88,166,255,0.18);
}

/* ═══════════════════════════════ CONTACT ═══════════════════════════════ */
#contact {
  padding: 8rem 0;
  background: var(--bg);
}

.contact-inner {
  position: relative;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  overflow: hidden;
  padding: 4rem;
  background: linear-gradient(135deg, rgba(31,111,235,0.06), rgba(163,113,247,0.04));
  border: 1px solid rgba(88,166,255,0.1);
  border-radius: 24px;
}

.orb-contact-1 {
  width: 350px; height: 350px;
  background: rgba(88,166,255,0.06);
  top: -100px; right: -100px;
  animation-delay: 0s;
}

.orb-contact-2 {
  width: 250px; height: 250px;
  background: rgba(163,113,247,0.06);
  bottom: -80px; left: -80px;
  animation-delay: 4s;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 1.5rem auto 2.5rem;
  max-width: 450px;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: .85rem;
  font-family: var(--font-mono);
}

/* footer old styles removed — see professional footer below */

/* ═══════════════════════════════ SCROLL ANIMATIONS ═══════════════════════════════ */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ═══════════════════════════════ RESPONSIVE ═══════════════════════════════ */
@media (max-width: 1100px) {
  .hero-code { display: none; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  #hero { padding: 7rem 1.5rem 4rem; text-align: center; }
  .hero-actions { justify-content: center; }
  .scroll-indicator { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .project-featured { grid-template-columns: 1fr; gap: 2rem; }
  .pf-visual { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-inner { padding: 2.5rem 1.5rem; }
  .contact-info { flex-direction: column; align-items: center; gap: .5rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .section-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-links { flex-direction: column; gap: .75rem; }
}


/* ═══════════════════════════════════════════════════════════
   PHOTO SECTION — About Me
   ═══════════════════════════════════════════════════════════ */

.about-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.about-photo {
  width: 300px;
  height: 375px;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  border: 2px solid rgba(88,166,255,0.2);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(88,166,255,0.08),
    0 0 60px rgba(88,166,255,0.06);
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-photo:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.7),
    0 0 0 2px rgba(88,166,255,0.3),
    0 0 80px rgba(88,166,255,0.12);
}

/* Rotating ring behind photo */
.photo-ring {
  position: absolute;
  width: 340px;
  height: 415px;
  border-radius: 28px;
  border: 1px solid rgba(88,166,255,0.15);
  animation: ring-rotate 12s linear infinite;
  z-index: 1;
}

.photo-ring-2 {
  width: 370px;
  height: 445px;
  border-color: rgba(163,113,247,0.1);
  animation: ring-rotate 18s linear infinite reverse;
}

@keyframes ring-rotate {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.02); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Badge below photo */
.photo-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(10,10,20,0.92);
  border: 1px solid rgba(88,166,255,0.25);
  border-radius: 100px;
  padding: .45rem 1.1rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--blue);
  white-space: nowrap;
  z-index: 3;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* Floating info cards */
.photo-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(13,17,23,0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .6rem 1rem;
  z-index: 4;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
}

.photo-card-1 {
  top: 40px;
  right: -20px;
  animation-delay: 0s;
}

.photo-card-2 {
  bottom: 80px;
  left: -20px;
  animation-delay: 2s;
}

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

.pc1-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.photo-card div {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.photo-card strong {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.photo-card span {
  font-size: .7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATED TERMINAL (OpsPilot card)
   ═══════════════════════════════════════════════════════════ */

.proj-terminal {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .78rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.term-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #28c840; }

.term-title {
  font-size: .72rem;
  color: var(--text-muted);
  margin-left: .4rem;
}

.term-body {
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.term-line {
  color: var(--text-muted);
  line-height: 1.4;
}

.term-line.t-anim {
  opacity: 0;
  animation: fadeInLine 0.4s ease forwards;
  animation-delay: calc(var(--td, 0s) + 0.5s);
}

@keyframes fadeInLine {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.t-green  { color: var(--green); }
.t-blue   { color: var(--blue); }
.t-yellow { color: #e3b341; }
.t-dim    { color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════
   PROJECT CARD VISUAL — RAGOps CI/CD Gate
   ═══════════════════════════════════════════════════════════ */

.pc-visual {
  margin-bottom: 1.25rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.ragops-visual {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-mono);
  font-size: .75rem;
}

.gate {
  padding: .3rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: .02em;
}

.gate-fail {
  background: rgba(248,81,73,0.12);
  border: 1px solid rgba(248,81,73,0.3);
  color: #f85149;
}

.gate-pass {
  background: rgba(63,185,80,0.12);
  border: 1px solid rgba(63,185,80,0.3);
  color: var(--green);
}

.gate-arrow {
  color: var(--text-dim);
  font-size: 1rem;
}

.gate-label {
  font-size: .68rem;
  color: var(--text-muted);
  margin-top: .2rem;
  letter-spacing: .05em;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE UPDATES FOR PHOTO
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .about-photo { width: 240px; height: 300px; }
  .photo-ring  { width: 275px; height: 335px; }
  .photo-ring-2{ width: 300px; height: 360px; }
  .photo-card-1 { right: -10px; }
  .photo-card-2 { left: -10px; }
  .about-photo-wrap { min-height: 380px; }

  .pf-diagram { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   LOGO — Hexagon SVG with gradient
   ═══════════════════════════════════════════════════════════ */

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.logo-svg {
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(88,166,255,0.2));
}

.nav-logo:hover .logo-svg {
  transform: rotate(15deg) scale(1.08);
  filter: drop-shadow(0 0 12px rgba(88,166,255,0.5));
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
  line-height: 1;
}

.logo-text .dot { color: var(--blue); }

/* Mobile — slightly smaller logo */
@media (max-width: 480px) {
  .logo-svg  { width: 34px; height: 34px; }
  .logo-text { font-size: .95rem; }
}


/* ═══════════════════════════════════════════════════════════
   FOOTER — Professional redesign
   ═══════════════════════════════════════════════════════════ */

footer {
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}

/* Gradient top line */
.footer-top-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(88,166,255,0.4) 30%,
    rgba(163,113,247,0.4) 60%,
    transparent 100%
  );
}

/* Subtle background glow */
footer::before {
  content: '';
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(88,166,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Top section ── */
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  padding: 4rem 0 3rem;
  align-items: flex-start;
}

/* Brand */
.footer-brand .nav-logo {
  margin-bottom: 1.25rem;
  display: inline-flex;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.8;
  max-width: 280px;
}

/* Nav columns */
.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h5 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--transition), gap var(--transition);
}

.footer-col a:hover {
  color: var(--blue);
  gap: .6rem;
}

.footer-col a svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.footer-col a:hover svg { opacity: 1; }

/* ── Bottom bar ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.footer-stack-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: .25rem .65rem;
  border-radius: 100px;
  transition: var(--transition);
}

.footer-stack-badge:hover {
  background: rgba(88,166,255,0.06);
  border-color: rgba(88,166,255,0.2);
  color: var(--text);
}

.footer-divider {
  color: var(--text-dim);
  font-size: .9rem;
}

.footer-copy {
  font-size: .78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Back to top button */
.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  transition: var(--transition);
  flex-shrink: 0;
}

.back-to-top:hover {
  color: var(--blue);
  border-color: rgba(88,166,255,0.4);
  background: rgba(88,166,255,0.08);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(88,166,255,0.15);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0 2rem;
  }
  .footer-nav-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-tagline  { max-width: 100%; }
}

@media (max-width: 600px) {
  .footer-nav-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom   { flex-direction: column; align-items: flex-start; }
  .footer-bottom-right { align-self: flex-end; }
  .footer-copy     { display: none; }
}

@media (max-width: 420px) {
  .footer-nav-cols { grid-template-columns: 1fr; gap: 1.5rem; }
}


/* ═══════════════════════════════════════════════════════════
   EXPERIENCE SECTION (ZeTheta Algorithms)
   ═══════════════════════════════════════════════════════════ */

#experience {
  padding: 6rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--grad);
}

.exp-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 30px rgba(88,166,255,0.08);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.exp-company {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.exp-role {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: .95rem;
  margin-top: .25rem;
}

.exp-meta {
  text-align: right;
}

.exp-date {
  display: inline-block;
  background: rgba(88,166,255,0.08);
  border: 1px solid rgba(88,166,255,0.2);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: .78rem;
  padding: .3rem .8rem;
  border-radius: 100px;
}

.exp-loc {
  display: block;
  font-size: .8rem;
  color: var(--text-dim);
  margin-top: .4rem;
  font-family: var(--font-mono);
}

.exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exp-item {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}

.exp-item::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 1.1rem;
  line-height: 1.5;
}

.exp-item strong {
  color: var(--text);
}

.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, rgba(88,166,255,0.15), rgba(163,113,247,0.15));
  border: 1px solid rgba(88,166,255,0.3);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  padding: .75rem 1.4rem;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-resume:hover {
  background: linear-gradient(135deg, rgba(88,166,255,0.25), rgba(163,113,247,0.25));
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(88,166,255,0.2);
}

@media (max-width: 768px) {
  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .exp-meta {
    text-align: left;
  }
}


/* ── Navbar Resume Pill ── */
.nav-resume-pill {
  background: rgba(88,166,255,0.1);
  border: 1px solid rgba(88,166,255,0.3) !important;
  color: var(--blue) !important;
  font-family: var(--font-mono);
  font-size: .8rem !important;
  font-weight: 600 !important;
  padding: .35rem .85rem;
  border-radius: 100px;
  transition: var(--transition);
}

.nav-resume-pill:hover {
  background: rgba(88,166,255,0.2) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(88,166,255,0.3);
  transform: translateY(-1px);
}
