/* ========================================
   ARYAN VISHWAKARMA - AI PORTFOLIO
   Main Stylesheet
======================================== */

:root {
  --cyan:    #00f5ff;
  --purple:  #b400ff;
  --pink:    #ff006e;
  --green:   #00ff88;
  --dark:    #050a13;
  --dark2:   #0a1628;
  --dark3:   #0f2044;
  --card:    rgba(10, 22, 40, 0.85);
  --border:  rgba(0, 245, 255, 0.15);
  --text:    #c8d8f0;
  --text2:   #7a9bbf;
  --font-head: 'Orbitron', monospace;
  --font-body: 'Rajdhani', sans-serif;
  --glow-cyan: 0 0 20px rgba(0,245,255,0.4), 0 0 40px rgba(0,245,255,0.15);
  --glow-purple: 0 0 20px rgba(180,0,255,0.4), 0 0 40px rgba(180,0,255,0.15);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--cyan); color: var(--dark); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

/* Canvas Particles */
#particleCanvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* Scanline effect */
.scanline {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  z-index: 1; pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(5, 10, 19, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  padding: 0.7rem 3rem;
  box-shadow: 0 4px 30px rgba(0,245,255,0.1);
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--cyan);
  letter-spacing: 2px;
}
.logo-bracket { color: var(--purple); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-link {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--cyan); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-status {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--green);
}
.status-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,136,0.7); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0,255,136,0); }
}
.hamburger { display: none; }

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 3rem 4rem;
}
.hero-content {
  max-width: 1300px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem;
}
.hero-text { flex: 1; }

.hero-greeting {
  margin-bottom: 1rem;
}
.glitch-text {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 6px;
  color: var(--cyan);
  position: relative;
  display: inline-block;
}
.glitch-text::before, .glitch-text::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch-text::before {
  color: var(--pink);
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch-text::after {
  color: var(--purple);
  animation: glitch2 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-3px, 1px); }
  94% { transform: translate(3px, -1px); }
  96% { transform: translate(-2px); }
}
@keyframes glitch2 {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(3px, -1px); }
  94% { transform: translate(-3px, 1px); }
  96% { transform: translate(2px); }
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: #fff;
}
.highlight-name {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  color: var(--cyan);
  font-weight: 400;
  min-height: 2rem;
}
.hero-desc {
  color: var(--text2);
  font-size: 1.05rem;
  margin: 1.2rem 0 2rem;
  max-width: 520px;
}

.hero-stats {
  display: flex; gap: 1.2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  text-align: center;
  transition: all 0.3s;
}
.stat-box:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-4px);
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--cyan);
  font-weight: 700;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--dark);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,245,255,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}
.btn-secondary:hover {
  background: var(--cyan);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text2); font-size: 0.8rem;
  animation: bounce 2s infinite;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--cyan);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 5px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===== SECTIONS ===== */
.section {
  position: relative; z-index: 2;
  padding: 6rem 3rem;
  max-width: 1300px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 3px;
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}
.highlight { color: var(--cyan); }
.section-line {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: flex; gap: 4rem; align-items: flex-start;
}
.about-image-side { flex: 0 0 300px; }
.about-img-wrapper { position: relative; }
.about-img-placeholder {
  width: 280px; height: 320px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 20px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  font-size: 0.9rem; color: var(--text2);
  position: relative; overflow: hidden;
}
.about-img-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 18px;
  position: absolute; top: 0; left: 0;
}
.placeholder-robot { font-size: 4rem; }
.img-border-glow {
  position: absolute; inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
  z-index: -1;
  animation: borderRotate 3s linear infinite;
}
@keyframes borderRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
.about-badges {
  margin-top: 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.badge {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--cyan);
  transition: all 0.3s;
}
.badge:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

.about-text-side { flex: 1; }

/* Terminal Box */
.terminal-box {
  background: #020b18;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.terminal-header {
  background: rgb(20, 30, 50);
  padding: 0.6rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }
.t-title { margin-left: 0.5rem; font-size: 0.8rem; color: var(--text2); }
.terminal-body { padding: 1.5rem; }
.terminal-body pre { font-size: 0.88rem; line-height: 1.8; }
.c-keyword { color: #cc7832; }
.c-class { color: #ffd14a; }
.c-str { color: #6aab73; }
.c-op { color: var(--cyan); }
.c-func { color: #56b9f0; }

.about-para { color: var(--text2); margin-bottom: 1rem; font-size: 1.05rem; }
.about-para strong { color: var(--cyan); }

.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s;
}
.social-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

/* ===== SKILLS SECTION ===== */
.skills-section { background: transparent; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.skill-category {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.3s;
}
.skill-category:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-4px);
}
.skill-cat-header {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.skill-item {
  display: flex; align-items: center;
  gap: 0.8rem; margin-bottom: 1rem;
}
.skill-name { flex: 0 0 130px; font-size: 0.9rem; color: var(--text); }
.skill-bar {
  flex: 1;
  height: 6px;
  background: rgba(0,245,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.skill-pct {
  font-size: 0.8rem;
  color: var(--cyan);
  font-family: var(--font-head);
  flex: 0 0 38px;
  text-align: right;
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tech-tag {
  background: rgba(0, 245, 255, 0.07);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.3s;
  cursor: default;
}
.tech-tag:hover {
  background: rgba(0, 245, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative; overflow: hidden;
  transition: all 0.4s ease;
  cursor: default;
}
.project-card.featured {
  border-color: rgba(255, 215, 0, 0.3);
}
.project-card.featured:hover {
  border-color: gold;
  box-shadow: 0 0 20px rgba(255,215,0,0.2), 0 0 40px rgba(255,215,0,0.1);
}
.project-card:not(.featured):hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-6px);
}
.project-glow {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-glow { opacity: 1; }
.project-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.4);
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.72rem;
  color: gold;
  font-weight: 600;
}
.project-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.project-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.8rem;
}
.project-desc { font-size: 0.92rem; color: var(--text2); margin-bottom: 1.2rem; }
.project-desc strong { color: var(--cyan); }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.project-tags span {
  background: rgba(180, 0, 255, 0.12);
  border: 1px solid rgba(180, 0, 255, 0.3);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: #d580ff;
}
.project-metrics {
  display: flex; gap: 1rem;
  font-size: 0.8rem;
  color: var(--cyan);
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}
.project-metrics i { margin-right: 0.3rem; }

/* ===== EXPERIENCE / TIMELINE ===== */
.timeline { position: relative; max-width: 800px; margin: 0 auto 4rem; }
.timeline::before {
  content: '';
  position: absolute; left: 30px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple));
}
.timeline-item {
  display: flex; gap: 2rem;
  margin-bottom: 3rem;
  padding-left: 1rem;
}
.timeline-dot {
  flex: 0 0 60px; height: 60px;
  background: var(--dark2);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  font-size: 1.1rem;
  z-index: 1;
  box-shadow: var(--glow-cyan);
}
.timeline-dot.edu {
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: var(--glow-purple);
}
.timeline-dot.oss {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 20px rgba(0,255,136,0.4), 0 0 40px rgba(0,255,136,0.15);
}
.oss-badge {
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.35);
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  color: var(--green);
  margin-left: 0.5rem;
}
.timeline-content {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.3s;
}
.timeline-content:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.timeline-date {
  font-size: 0.8rem;
  color: var(--cyan);
  font-family: var(--font-head);
  margin-bottom: 0.5rem;
}
.timeline-content h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.3rem;
}
.timeline-content h4 {
  color: var(--text2);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.remote-badge {
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: 4px;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  color: var(--green);
  margin-left: 0.5rem;
}
.timeline-content ul {
  list-style: none;
  color: var(--text2);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.timeline-content ul li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.3rem;
}
.timeline-content ul li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--cyan);
}
.timeline-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.timeline-tags span {
  background: rgba(0,245,255,0.07);
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  color: var(--cyan);
}

/* Certifications */
.cert-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  text-align: center;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex; align-items: center; gap: 1rem;
  transition: all 0.3s;
}
.cert-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}
.cert-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--dark);
  flex-shrink: 0;
}
.cert-info { font-size: 0.82rem; }
.cert-info strong { color: var(--text); display: block; }
.cert-info p { color: var(--text2); }

/* ===== CONTACT SECTION ===== */
.contact-content {
  display: flex; gap: 4rem; align-items: center;
}
.contact-left { flex: 1; }
.contact-intro {
  font-size: 1.1rem; color: var(--text2);
  margin-bottom: 2rem;
}
.contact-intro strong { color: var(--cyan); }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: all 0.3s;
}
.contact-item:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateX(6px);
}
.contact-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item strong { color: var(--text); font-size: 0.9rem; display: block; }
.contact-item p { color: var(--text2); font-size: 0.85rem; }
.contact-right { flex: 0 0 300px; display: flex; justify-content: center; }
.contact-robot-wrapper { text-align: center; }
.mini-robot {
  font-size: 5rem;
  animation: float 3s ease-in-out infinite;
  display: block;
  margin-bottom: 1rem;
}
.contact-speech {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}
.contact-speech p {
  color: var(--text2);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

/* ===== FOOTER ===== */
.footer {
  position: relative; z-index: 2;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text2);
  font-size: 0.9rem;
}
.footer-sub { font-size: 0.8rem; margin-top: 0.3rem; color: rgba(122,155,191,0.6); }

/* ===== FLOATING CHAT BTN ===== */
.floating-chat-btn {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 999;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--dark);
  box-shadow: 0 4px 20px rgba(0,245,255,0.4);
  transition: all 0.3s;
  animation: floatBtn 3s ease-in-out infinite;
}
.floating-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0,245,255,0.6);
}
.chat-tooltip {
  position: absolute; bottom: 70px; right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  white-space: nowrap;
  color: var(--cyan);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.floating-chat-btn:hover .chat-tooltip { opacity: 1; }
@keyframes floatBtn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== CHAT OVERLAY ===== */
.chat-overlay {
  position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(5, 10, 19, 0.85);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.chat-overlay.active { opacity: 1; pointer-events: all; }
.chat-modal {
  width: 90%; max-width: 600px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,245,255,0.2);
  display: flex; flex-direction: column;
  max-height: 85vh;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.chat-overlay.active .chat-modal { transform: scale(1); }

.chat-header {
  padding: 1.2rem 1.5rem;
  background: var(--dark3);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 1rem; }
.chat-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  animation: robotPulse 2s infinite;
}
@keyframes robotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,245,255,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0,245,255,0); }
}
.chat-header h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--cyan);
}
.version-tag {
  background: rgba(0,245,255,0.1);
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
  color: var(--cyan);
}
.chat-header p { font-size: 0.8rem; color: var(--text2); }
.online-badge { color: var(--green); }
.chat-close {
  background: none; border: none; cursor: pointer;
  color: var(--text2); font-size: 1.1rem;
  transition: color 0.3s;
  padding: 0.3rem;
}
.chat-close:hover { color: var(--pink); }

.chat-messages {
  flex: 1; padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 1rem;
}
.chat-msg {
  display: flex; gap: 0.8rem; align-items: flex-start;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.user-msg { flex-direction: row-reverse; }
.user-msg .msg-avatar { background: linear-gradient(135deg, var(--purple), var(--pink)); }
.msg-bubble {
  max-width: 80%;
  background: rgba(0,245,255,0.07);
  border: 1px solid rgba(0,245,255,0.15);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}
.user-msg .msg-bubble {
  background: rgba(180,0,255,0.1);
  border-color: rgba(180,0,255,0.2);
}
.msg-bubble p { margin: 0; }
.msg-bubble p + p { margin-top: 0.5rem; }
.msg-bubble strong { color: var(--cyan); }

.quick-replies {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding-left: 2.5rem;
}
.quick-btn {
  background: rgba(0,245,255,0.07);
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.quick-btn:hover { background: rgba(0,245,255,0.15); border-color: var(--cyan); }

.typing-indicator {
  display: flex; gap: 0.4rem; padding: 0.5rem 0;
}
.typing-indicator span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: typingBounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-area {
  display: flex; gap: 0.8rem; align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--dark3);
}
.voice-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,245,255,0.1);
  border: 1px solid rgba(0,245,255,0.2);
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.voice-btn:hover, .voice-btn.active {
  background: rgba(0,245,255,0.2);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.voice-btn.listening { animation: voicePulse 1s infinite; }
@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,245,255,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(0,245,255,0); }
}
.chat-input {
  flex: 1;
  background: rgba(0,245,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s;
}
.chat-input:focus { border-color: var(--cyan); }
.send-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none;
  color: var(--dark);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.send-btn:hover { transform: scale(1.1); box-shadow: var(--glow-cyan); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-content { flex-direction: column; align-items: center; }
  .about-image-side { flex: none; width: 100%; display: flex; justify-content: center; }
  .about-img-placeholder { width: 100%; max-width: 300px; height: 280px; }
  .contact-content { flex-direction: column; }
  .contact-right { flex: none; width: 100%; }
  .hero-content { gap: 2rem; }
}
@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-status { display: none; }
  .hamburger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    z-index: 1001;
  }
  .hamburger span {
    width: 24px; height: 2px;
    background: var(--cyan); display: block;
    transition: all 0.3s;
  }
  .hero-section { padding: 7rem 1.5rem 3rem; }
  .hero-content { flex-direction: column; text-align: center; align-items: center; }
  .hero-buttons { justify-content: center; }
  .scroll-indicator { display: none; }
  .hero-stats { justify-content: center; }
  .hero-desc { margin: 1rem auto 1.5rem; }
  .section { padding: 4rem 1.5rem; }
  .skills-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .timeline { margin-bottom: 2rem; }
  .timeline::before { left: 22px; }
  .timeline-item { gap: 1rem; padding-left: 0; }
  .timeline-dot { flex: 0 0 44px; height: 44px; font-size: 0.9rem; }
  .cert-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .skill-name { flex: 0 0 100px; font-size: 0.85rem; }
  /* Chat modal full screen on mobile */
  .chat-modal {
    width: 100%; max-width: 100%;
    height: 100vh; max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  .chat-overlay { align-items: flex-end; }
  .chat-modal { border-radius: 20px 20px 0 0; height: 92vh; max-height: 92vh; }
}
@media (max-width: 480px) {
  .navbar { padding: 0.8rem 1rem; }
  .nav-logo { font-size: 1.1rem; }
  .hero-section { padding: 6rem 1rem 2.5rem; }
  .hero-name { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero-title { font-size: clamp(0.9rem, 4vw, 1.2rem); }
  .hero-desc { font-size: 0.92rem; }
  .hero-stats { gap: 0.7rem; }
  .stat-box { padding: 0.6rem 0.9rem; }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: 0.68rem; }
  .btn { padding: 0.75rem 1.4rem; font-size: 0.78rem; }
  .section { padding: 3rem 1rem; }
  .section-title { font-size: 1.5rem; }
  .section-header { margin-bottom: 2.5rem; }
  /* Terminal overflow fix */
  .terminal-box { overflow-x: hidden; }
  .terminal-body { padding: 1rem 0.8rem; overflow-x: auto; }
  .terminal-body pre { font-size: 0.74rem; line-height: 1.7; white-space: pre; }
  /* About section */
  .about-img-placeholder { height: 220px; }
  .about-badges { flex-direction: row; flex-wrap: wrap; }
  .badge { font-size: 0.78rem; padding: 0.4rem 0.7rem; }
  .about-para { font-size: 0.95rem; }
  /* Skills */
  .skill-category { padding: 1.3rem; }
  .skill-name { flex: 0 0 90px; font-size: 0.82rem; }
  /* Projects */
  .project-card { padding: 1.3rem; }
  .project-icon { font-size: 2rem; }
  .project-title { font-size: 0.95rem; }
  .project-desc { font-size: 0.85rem; }
  /* Timeline */
  .timeline-content { padding: 1rem; }
  .timeline-content h3 { font-size: 0.95rem; }
  .timeline-content h4 { font-size: 0.82rem; }
  .timeline-content ul li { font-size: 0.82rem; }
  /* Certifications */
  .cert-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .cert-card { padding: 0.8rem; }
  .cert-logo { width: 34px; height: 34px; font-size: 0.75rem; }
  /* Contact */
  .contact-item { padding: 0.8rem 1rem; }
  .contact-item strong { font-size: 0.82rem; }
  .contact-item p { font-size: 0.78rem; }
  .contact-icon { width: 38px; height: 38px; font-size: 0.95rem; }
  /* Chat */
  .chat-input { font-size: 0.85rem; padding: 0.6rem 0.8rem; }
  .msg-bubble { font-size: 0.84rem; padding: 0.7rem 0.9rem; }
  .quick-btn { font-size: 0.75rem; padding: 0.28rem 0.7rem; }
  .quick-replies { padding-left: 0; gap: 0.4rem; }
  /* Footer */
  .footer { font-size: 0.8rem; padding: 1.5rem 1rem; }
  /* Floating btn */
  .floating-chat-btn { bottom: 1.2rem; right: 1.2rem; width: 52px; height: 52px; font-size: 1.3rem; }
}
/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 10, 19, 0.97);
  z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--text2);
  text-decoration: none;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--cyan); }
