/*
=====================================================================
*   Futuristic Portfolio v3 — Attractive Edition
=====================================================================  */

/* ------------------------------------------------------------------ */
/* Loading Screen                                                      */
/* ------------------------------------------------------------------ */

.loader-screen {
  position: fixed; inset: 0;
  z-index: 99999;
  background: #030014;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader-screen.loader-exit {
  opacity: 0;
  visibility: hidden;
}
.loader-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.loader-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 32px;
  z-index: 1;
}
.loader-logo {
  font-family: 'Orbitron', monospace;
  font-size: 48px; font-weight: 900;
  animation: loader-pulse 1.5s ease-in-out infinite;
}
@keyframes loader-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.loader-bracket { color: #00f0ff; }
.loader-text {
  background: linear-gradient(135deg, #f0eeff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 4px;
}
.loader-bar-track {
  width: 240px; height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff, #a855f7, #ec4899);
  border-radius: 10px;
  transition: width 0.1s linear;
}
.loader-info {
  display: flex; align-items: center; gap: 16px;
}
.loader-percent {
  font-family: 'Orbitron', monospace;
  font-size: 14px; font-weight: 600;
  color: #00f0ff;
  letter-spacing: 2px;
}
.loader-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  color: #3d3b55;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ------------------------------------------------------------------ */
/* Cursor Trail                                                        */
/* ------------------------------------------------------------------ */

.custom-cursor-active, .custom-cursor-active * {
  cursor: none !important;
}
.custom-cursor-active input,
.custom-cursor-active textarea,
.custom-cursor-active select {
  cursor: text !important;
}

.cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff, 0 0 20px rgba(0, 240, 255, 0.3);
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s;
}

.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(168, 85, 247, 0.4);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              background 0.3s ease;
}
.cursor-ring.cursor-hover {
  width: 52px; height: 52px;
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.04);
}
.cursor-ring.cursor-click {
  width: 28px; height: 28px;
  border-color: #ec4899;
}

.cursor-trail-dot {
  position: fixed;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.6);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring, .cursor-trail-dot { display: none !important; }
  .custom-cursor-active, .custom-cursor-active * { cursor: auto !important; }
}

/* ------------------------------------------------------------------ */
/* Scroll Reveal                                                       */
/* ------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.reveal-left { transform: translateX(-80px); }
.reveal.reveal-right { transform: translateX(80px); }
.reveal.reveal-visible { opacity: 1; transform: translate(0, 0); }

/* ------------------------------------------------------------------ */
/* General                                                             */
/* ------------------------------------------------------------------ */

body { background: #030014; }

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.futuristic-section {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

/* Floating Orbs — decorative bg elements */
.futuristic-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
#about::before { background: rgba(0, 240, 255, 0.06); top: -200px; left: -200px; }
.resume-section::before { background: rgba(168, 85, 247, 0.06); bottom: -200px; right: -200px; }
.portfolio-section::before { background: rgba(236, 72, 153, 0.05); top: -100px; right: -300px; }
.testimonials-section::before { background: rgba(59, 130, 246, 0.06); top: -200px; left: -100px; }
.contact-section::before { background: rgba(0, 240, 255, 0.05); bottom: -200px; left: 50%; transform: translateX(-50%); }

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}
.section-number {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  background: linear-gradient(135deg, #00f0ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #f0eeff;
  text-transform: uppercase;
  letter-spacing: 3px;
  white-space: nowrap;
}
.title-accent { color: #00f0ff; margin-right: 6px; }
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,240,255,0.3), rgba(168,85,247,0.1), transparent);
}

/* Glass Card — premium */
.glass-card {
  background: rgba(15, 10, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,240,255,0.1), transparent, rgba(168,85,247,0.1));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.glass-card:hover::before { opacity: 1; }
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 240, 255, 0.04);
  transform: translateY(-6px);
}

.gradient-text {
  background: linear-gradient(135deg, #00f0ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resume-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,240,255,0.12), rgba(168,85,247,0.08));
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.resume-download-btn:hover {
  background: linear-gradient(135deg, rgba(0,240,255,0.2), rgba(168,85,247,0.15));
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------ */
/* Header / Hero                                                       */
/* ------------------------------------------------------------------ */

.futuristic-header {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030014;
  overflow: hidden;
}
.futuristic-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, #030014, transparent);
  z-index: 2;
  pointer-events: none;
}

.particle-canvas { position: absolute; inset: 0; z-index: 1; }

.header-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(168,85,247,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0,240,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, transparent 0%, #030014 70%);
  z-index: 2;
}

.header-grid-bg {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
}

/* Nav */
.futuristic-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition: all 0.4s ease;
}
.nav-scrolled {
  background: rgba(3, 0, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 12px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-logo {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 800;
  z-index: 1001;
  text-decoration: none;
  display: flex; align-items: center;
}
.logo-bracket { color: #00f0ff; }
.logo-text {
  background: linear-gradient(135deg, #f0eeff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 2px;
}

.nav-links { display: flex; list-style: none; gap: 4px; margin: 0; padding: 0; }
.nav-links li a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #5c5a75;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
}
.nav-links li a:hover,
.nav-links li a.nav-active { color: #f0eeff; background: rgba(255, 255, 255, 0.04); }
.nav-links li a.nav-active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: linear-gradient(90deg, #00f0ff, #a855f7);
  border-radius: 2px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  z-index: 1001;
}
.mobile-menu-btn span {
  display: block;
  width: 26px; height: 2px;
  background: linear-gradient(90deg, #00f0ff, #a855f7);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* Hero */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 850px;
}

.hero-greeting {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #a855f7;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 16px;
  animation: hero-fade 1s ease-out 0.2s both;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 68px;
  font-weight: 900;
  background: linear-gradient(135deg, #f0eeff 0%, #a5b4fc 50%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  line-height: 1.1;
  animation: hero-fade 1s ease-out 0.4s both;
}
.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  -webkit-text-fill-color: transparent;
}
.hero-title::before {
  background: linear-gradient(135deg, #00f0ff, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  z-index: -1;
  animation: glitch-1 5s infinite linear alternate-reverse;
}
.hero-title::after {
  background: linear-gradient(135deg, transparent, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  z-index: -2;
  animation: glitch-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
  0%, 97% { clip-path: inset(0); transform: translate(0); }
  98% { clip-path: inset(30% 0 50% 0); transform: translate(-3px, 0); }
  99% { clip-path: inset(70% 0 10% 0); transform: translate(2px, 0); }
  100% { clip-path: inset(0); transform: translate(0); }
}
@keyframes glitch-2 {
  0%, 97% { clip-path: inset(0); transform: translate(0); }
  98% { clip-path: inset(50% 0 20% 0); transform: translate(3px, 0); }
  99% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 0); }
  100% { clip-path: inset(0); transform: translate(0); }
}
@keyframes hero-fade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-role {
  display: flex; align-items: center; justify-content: center;
  gap: 20px;
  margin: 24px 0 28px;
  animation: hero-fade 1s ease-out 0.6s both;
}
.role-line {
  width: 50px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.5));
}
.role-line:last-child { background: linear-gradient(90deg, rgba(168,85,247,0.5), transparent); }
.role-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 6px;
}
.type-cursor { color: #00f0ff; font-weight: 300; }
.cursor-hidden { opacity: 0; }

.hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #6b6990;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.9;
  animation: hero-fade 1s ease-out 0.8s both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  animation: hero-fade 1s ease-out 1s both;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.primary-btn {
  background: linear-gradient(135deg, #00f0ff, #3b82f6, #a855f7);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  color: #030014;
  box-shadow: 0 4px 30px rgba(0, 240, 255, 0.2), 0 0 60px rgba(168, 85, 247, 0.1);
}
.primary-btn:hover {
  box-shadow: 0 8px 40px rgba(0, 240, 255, 0.35), 0 0 80px rgba(168, 85, 247, 0.15);
  transform: translateY(-4px) scale(1.02);
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.secondary-btn {
  background: rgba(255, 255, 255, 0.03);
  color: #f0eeff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.hero-social {
  display: flex; justify-content: center;
  gap: 14px;
  list-style: none;
  margin: 0 0 52px; padding: 0;
  animation: hero-fade 1s ease-out 1.1s both;
}
.social-link-btn {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: #9390b0;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-link-btn:hover {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.15);
  transform: translateY(-4px);
}

.scroll-indicator {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-decoration: none;
  animation: hero-fade 1s ease-out 1.3s both;
}
.scroll-mouse {
  width: 24px; height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  position: relative;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: linear-gradient(180deg, #00f0ff, #a855f7);
  border-radius: 3px;
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { opacity: 1; top: 7px; }
  100% { opacity: 0; top: 24px; }
}
.scroll-text {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #3d3b55;
}

/* ------------------------------------------------------------------ */
/* About                                                               */
/* ------------------------------------------------------------------ */

#about { background: #030014; }

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  align-items: start;
  position: relative; z-index: 1;
}

.about-left { display: flex; flex-direction: column; align-items: center; gap: 36px; }

.about-image-wrapper { position: relative; display: flex; justify-content: center; }
.hex-frame {
  width: 240px; height: 240px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  border: 2px solid rgba(168, 85, 247, 0.3);
  animation: morph 8s ease-in-out infinite;
  position: relative; z-index: 2;
}
@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}
.about-profile-pic { width: 100%; height: 100%; object-fit: cover; }

.about-image-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, rgba(0,240,255,0.05) 40%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.about-image-ring {
  position: absolute;
  width: 310px; height: 310px;
  border-radius: 50%;
  border: 1px dashed rgba(168, 85, 247, 0.12);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: spin-slow 40s linear infinite;
}
@keyframes spin-slow { to { transform: translate(-50%, -50%) rotate(360deg); } }

.about-stats {
  display: flex; align-items: center;
  padding: 22px 28px;
  background: rgba(15, 10, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  width: 100%;
}
.stat-item { flex: 1; display: flex; flex-direction: column; align-items: center; }
.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 30px; font-weight: 800;
  background: linear-gradient(135deg, #00f0ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 500;
  color: #3d3b55;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 6px;
}
.stat-divider { width: 1px; height: 40px; background: rgba(255, 255, 255, 0.05); }

.about-content { padding-top: 4px; position: relative; z-index: 1; }
.about-headline {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px; font-weight: 700;
  color: #f0eeff;
  margin-bottom: 24px;
  line-height: 1.5;
  letter-spacing: 1px;
}
.about-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 400;
  line-height: 2;
  color: #6b6990;
  margin-bottom: 36px;
}

.about-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(15, 10, 40, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}
.info-card:hover {
  border-color: rgba(168, 85, 247, 0.15);
  background: rgba(15, 10, 40, 0.6);
  transform: translateY(-2px);
}
.info-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(168,85,247,0.08));
  color: #a855f7;
  flex-shrink: 0;
}
.info-card-content { display: flex; flex-direction: column; min-width: 0; }
.info-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 2px;
  color: #3d3b55;
}
.info-value {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  color: #b0aed0;
  margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Resume                                                              */
/* ------------------------------------------------------------------ */

.resume-section { background: #030014; }

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  position: relative; z-index: 1;
}

.category-header { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.category-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
}
.cat-icon-work {
  background: linear-gradient(135deg, rgba(0,240,255,0.1), rgba(59,130,246,0.08));
  color: #00f0ff;
}
.cat-icon-edu {
  background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(236,72,153,0.08));
  color: #a855f7;
}
.cat-icon-skills {
  background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(0,240,255,0.08));
  color: #22c55e;
}
.category-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px; font-weight: 700;
  color: #f0eeff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(168,85,247,0.3), rgba(0,240,255,0.1), transparent);
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -27px; top: 24px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #030014;
  border: 2px solid #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
  z-index: 2;
}
.timeline-dot-ping {
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.4);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.5); opacity: 0; } }

.timeline-card { padding: 24px; }
.timeline-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.timeline-title {
  font-family: 'Inter', sans-serif;
  font-size: 17px; font-weight: 700;
  color: #f0eeff;
}
.current-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 3px 12px;
  border-radius: 20px;
}
.timeline-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  color: #a855f7;
  display: block;
  margin-bottom: 8px;
}
.timeline-date {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  color: #3d3b55;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 12px;
}
.timeline-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 400;
  color: #6b6990;
  line-height: 1.8;
}

/* Skills */
.skills-section { padding-top: 52px; border-top: 1px solid rgba(255, 255, 255, 0.04); position: relative; z-index: 1; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.skill-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: rgba(15, 10, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.skill-chip:hover { border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 4px 20px rgba(0,0,0,0.3); transform: translateY(-3px); }
.skill-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.skill-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  color: #b0aed0;
}

.skill-language .skill-pulse { background: #ec4899; box-shadow: 0 0 8px #ec4899; }
.skill-language:hover { border-color: rgba(236,72,153,0.2); }
.skill-backend .skill-pulse { background: #a855f7; box-shadow: 0 0 8px #a855f7; }
.skill-backend:hover { border-color: rgba(168,85,247,0.2); }
.skill-database .skill-pulse { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.skill-database:hover { border-color: rgba(34,197,94,0.2); }
.skill-system .skill-pulse { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.skill-system:hover { border-color: rgba(245,158,11,0.2); }
.skill-cloud .skill-pulse { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.skill-cloud:hover { border-color: rgba(59,130,246,0.2); }

.soft-skills-section { margin-top: 36px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.04); }
.soft-skills-title {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  color: #3d3b55;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 18px;
}
.soft-skills-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.soft-skill-tag {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.08);
  color: #6b6990;
  transition: all 0.3s ease;
}
.soft-skill-tag:hover { border-color: rgba(168, 85, 247, 0.2); color: #b0aed0; }

/* ------------------------------------------------------------------ */
/* Portfolio                                                           */
/* ------------------------------------------------------------------ */

.portfolio-section { background: #030014; }

.portfolio-list { display: flex; flex-direction: column; gap: 56px; position: relative; z-index: 1; }

.portfolio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.portfolio-row.row-reverse { direction: rtl; }
.portfolio-row.row-reverse > * { direction: ltr; }

.portfolio-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0520, #0d0830, #0a0520);
  border: 1px solid rgba(255, 255, 255, 0.04);
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-row:hover .portfolio-image-wrapper {
  border-color: rgba(168, 85, 247, 0.15);
  box-shadow: 0 20px 60px rgba(168, 85, 247, 0.06), 0 0 80px rgba(0, 240, 255, 0.03);
}
.portfolio-image-placeholder { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.placeholder-icon {
  font-family: 'Orbitron', sans-serif;
  font-size: 56px; font-weight: 900;
  background: linear-gradient(135deg, #00f0ff, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
}
.placeholder-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  color: #3d3b55;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.portfolio-image-shine {
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.02) 50%, transparent 60%);
  animation: shine 8s ease-in-out infinite;
}
@keyframes shine { 0%, 100% { transform: translateX(-30%); } 50% { transform: translateX(30%); } }

.portfolio-info-col { padding: 8px 0; }
.portfolio-index {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  background: linear-gradient(135deg, #00f0ff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}
.portfolio-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px; font-weight: 700;
  color: #f0eeff;
  margin: 10px 0 14px;
  letter-spacing: 1px;
}
.portfolio-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 400;
  color: #6b6990;
  line-height: 1.9;
  margin-bottom: 20px;
}
.portfolio-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tech-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  letter-spacing: 0.5px;
}

.portfolio-links { display: flex; gap: 12px; flex-wrap: wrap; }
.portfolio-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.live-link {
  background: linear-gradient(135deg, rgba(0,240,255,0.1), rgba(59,130,246,0.08));
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #00f0ff;
}
.live-link:hover { box-shadow: 0 0 30px rgba(0, 240, 255, 0.15); transform: translateY(-2px); }
.github-link {
  background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(236,72,153,0.06));
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #a855f7;
}
.github-link:hover { box-shadow: 0 0 30px rgba(168, 85, 247, 0.15); transform: translateY(-2px); }
.private-link {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #3d3b55; cursor: default;
}

/* ------------------------------------------------------------------ */
/* Testimonials                                                        */
/* ------------------------------------------------------------------ */

.testimonials-section { background: #030014; position: relative; overflow: hidden; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  position: relative; z-index: 1;
}
.testimonial-card { padding: 40px; position: relative; overflow: hidden; }
.testimonial-top-bar {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #00f0ff, #a855f7, #ec4899, transparent);
}
.quote-icon { color: #a855f7; margin-bottom: 24px; }
.testimonial-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 400;
  line-height: 1.9;
  color: #9390b0;
  margin-bottom: 32px;
  border: none; padding: 0;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00f0ff, #a855f7, #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px; font-weight: 800;
  color: #030014;
}
.author-name {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 700;
  color: #f0eeff;
  font-style: normal;
}

/* ------------------------------------------------------------------ */
/* Contact                                                             */
/* ------------------------------------------------------------------ */

.contact-section { background: #030014; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative; z-index: 1;
}

.contact-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px; font-weight: 800;
  color: #f0eeff;
  line-height: 1.4;
  margin-bottom: 16px;
}
.contact-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 400;
  color: #6b6990;
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-info-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.contact-info-item {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: #9390b0;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  transition: color 0.3s ease;
}
.contact-info-item:hover { color: #f0eeff; }
.contact-info-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #a855f7;
}
.email-icon { color: #00f0ff; }
.phone-icon { color: #a855f7; }

.contact-social-row { display: flex; gap: 12px; }
.contact-social-card {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  text-decoration: none;
  color: #5c5a75;
  font-size: 22px;
  transition: all 0.4s ease;
}
.contact-social-card span {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.contact-social-card:hover { color: #f0eeff; transform: translateY(-3px); }

/* Contact Form */
.contact-form {
  padding: 36px;
}
.form-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px; font-weight: 700;
  color: #f0eeff;
  letter-spacing: 1px;
  margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #5c5a75;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #f0eeff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  resize: none;
}
.form-input::placeholder { color: #2d2b45; }
.form-input:focus {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.06);
}
.form-textarea { min-height: 120px; }

.form-submit {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #00f0ff, #3b82f6, #a855f7);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  color: #030014;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
}
.form-submit:hover {
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}
.form-submit:disabled {
  opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none;
}

.submit-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(3, 0, 20, 0.3);
  border-top-color: #030014;
  border-radius: 50%;
  animation: spin-fast 0.6s linear infinite;
}
@keyframes spin-fast { to { transform: rotate(360deg); } }

.form-status {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px;
  margin-top: 16px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  animation: status-in 0.3s ease;
}
@keyframes status-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-status.success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}
.form-status.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.futuristic-footer { background: #030014; padding: 0 0 48px; position: relative; }
.footer-glow { height: 100px; background: linear-gradient(180deg, transparent, rgba(168,85,247,0.02)); }
.footer-border { height: 1px; background: linear-gradient(90deg, transparent, rgba(168,85,247,0.15), rgba(0,240,255,0.1), transparent); margin-bottom: 48px; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo {
  font-family: 'Orbitron', monospace;
  font-size: 18px; font-weight: 800;
  text-decoration: none; display: flex; align-items: center;
}
.footer-center { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-links { display: flex; gap: 12px; }
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #3d3b55;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-social-link:hover { color: #f0eeff; border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); }
.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 400;
  color: #2d2b45;
}
.back-to-top {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: #a855f7;
  text-decoration: none;
  transition: all 0.4s ease;
}
.back-to-top:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
  transform: translateY(-4px);
}

/* ------------------------------------------------------------------ */
/* AI Chat Widget                                                      */
/* ------------------------------------------------------------------ */

.ai-chat-wrapper {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

/* FAB Button */
.ai-chat-fab {
  width: 60px; height: 60px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #00f0ff, #3b82f6, #a855f7);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  color: #030014;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.25), 0 0 60px rgba(168, 85, 247, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-chat-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.35), 0 0 80px rgba(168, 85, 247, 0.15);
}
.ai-chat-fab.fab-hidden { transform: scale(0); pointer-events: none; opacity: 0; }

.fab-pulse {
  position: absolute; inset: -6px;
  border-radius: 24px;
  border: 2px solid rgba(0, 240, 255, 0.3);
  animation: fab-ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes fab-ping { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.4); opacity: 0; } }

.fab-badge {
  position: absolute;
  top: -6px; right: -6px;
  font-family: 'Orbitron', monospace;
  font-size: 8px; font-weight: 800;
  background: #ec4899;
  color: white;
  padding: 3px 6px;
  border-radius: 6px;
  letter-spacing: 1px;
}

/* Chat Window */
.ai-chat-window {
  width: 380px;
  height: 520px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(168, 85, 247, 0.06);
  animation: chat-open 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.ai-chat-window::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,240,255,0.2), transparent 40%, rgba(168,85,247,0.15));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}
@keyframes chat-open {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.ai-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(10, 5, 30, 0.6);
}
.ai-chat-header-left { display: flex; align-items: center; gap: 12px; }
.ai-avatar-small {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(168,85,247,0.1));
  display: flex; align-items: center; justify-content: center;
  color: #00f0ff;
}
.ai-chat-title {
  font-size: 14px; font-weight: 700;
  color: #f0eeff;
  display: block;
}
.ai-chat-status {
  font-size: 11px; font-weight: 500;
  color: #22c55e;
  display: flex; align-items: center; gap: 5px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}
.ai-chat-header-right { display: flex; align-items: center; gap: 4px; }
.voice-toggle {
  background: none; border: none;
  color: #3d3b55;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.voice-toggle:hover { color: #9390b0; background: rgba(255,255,255,0.04); }
.voice-toggle.voice-on { color: #00f0ff; }

.ai-chat-close {
  background: none; border: none;
  color: #5c5a75;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ai-chat-close:hover { color: #f0eeff; background: rgba(255,255,255,0.05); }

/* Avatar speaking animation */
.avatar-speaking {
  animation: avatar-glow 1s ease-in-out infinite alternate;
}
@keyframes avatar-glow {
  from { box-shadow: 0 0 8px rgba(0, 240, 255, 0.2); }
  to { box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(168, 85, 247, 0.2); }
}

.listening-dot {
  background: #f59e0b !important;
  box-shadow: 0 0 8px #f59e0b !important;
  animation: pulse 0.8s ease-in-out infinite;
}
.speaking-dot {
  background: #00f0ff !important;
  box-shadow: 0 0 8px #00f0ff !important;
  animation: pulse 0.6s ease-in-out infinite;
}

/* Messages */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.2) transparent;
}
.ai-chat-messages::-webkit-scrollbar { width: 4px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.2); border-radius: 4px; }

.ai-msg { display: flex; gap: 8px; align-items: flex-start; }
.user-msg { flex-direction: row-reverse; }
.msg-content { display: flex; flex-direction: column; gap: 4px; max-width: 82%; }
.user-msg .msg-content { align-items: flex-end; }

.msg-speak-btn {
  background: none; border: none;
  color: #3d3b55;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  align-self: flex-start;
  opacity: 0;
}
.ai-msg:hover .msg-speak-btn { opacity: 1; }
.msg-speak-btn:hover { color: #00f0ff; background: rgba(0, 240, 255, 0.06); }

.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,240,255,0.1), rgba(168,85,247,0.08));
  display: flex; align-items: center; justify-content: center;
  color: #00f0ff;
  flex-shrink: 0;
}

.msg-bubble {
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.7;
  word-wrap: break-word;
}
.bot-msg .msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #b0aed0;
  border-top-left-radius: 4px;
}
.user-msg .msg-bubble {
  background: linear-gradient(135deg, rgba(0,240,255,0.12), rgba(168,85,247,0.1));
  border: 1px solid rgba(0, 240, 255, 0.15);
  color: #f0eeff;
  border-top-right-radius: 4px;
}
.msg-bubble strong { color: #f0eeff; font-weight: 600; }
.msg-bubble em { color: #a855f7; font-style: italic; }

/* Typing indicator */
.typing-indicator {
  display: flex; gap: 5px; padding: 14px 18px;
}
.typing-indicator span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5c5a75;
  animation: typing-dot 1.4s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Input */
.ai-chat-input-area {
  display: flex; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(10, 5, 30, 0.4);
  align-items: center;
}

/* Mic Button */
.mic-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #5c5a75;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
}
.mic-btn:hover { color: #f0eeff; border-color: rgba(255, 255, 255, 0.12); }
.mic-btn.mic-active {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
  animation: mic-glow 1.2s ease-in-out infinite alternate;
}
@keyframes mic-glow {
  from { box-shadow: 0 0 8px rgba(245, 158, 11, 0.15); }
  to { box-shadow: 0 0 24px rgba(245, 158, 11, 0.35); }
}
.mic-pulse-ring {
  position: absolute; inset: -4px;
  border-radius: 16px;
  border: 2px solid rgba(245, 158, 11, 0.4);
  animation: mic-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes mic-ping {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

.input-listening {
  border-color: rgba(245, 158, 11, 0.2) !important;
  background: rgba(245, 158, 11, 0.04) !important;
}
.ai-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 16px;
  color: #f0eeff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}
.ai-chat-input::placeholder { color: #3d3b55; }
.ai-chat-input:focus { border-color: rgba(0, 240, 255, 0.2); background: rgba(255, 255, 255, 0.06); }

.ai-chat-send {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #00f0ff, #a855f7);
  color: #030014;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.ai-chat-send:hover { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); transform: scale(1.05); }
.ai-chat-send:disabled { opacity: 0.3; cursor: default; transform: none; box-shadow: none; }

.ai-chat-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 8px;
  font-size: 10px;
  color: #2d2b45;
  letter-spacing: 0.5px;
}
.ai-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #3d3b55;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media only screen and (max-width: 900px) {
  .hero-title { font-size: 42px; }
  .role-text { font-size: 13px; letter-spacing: 4px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-left { align-items: center; }
  .about-content { text-align: center; }
  .about-info-grid { grid-template-columns: 1fr; }
  .about-headline { font-size: 20px; }
  .resume-grid { grid-template-columns: 1fr; gap: 52px; }
  .portfolio-row, .portfolio-row.row-reverse { grid-template-columns: 1fr; direction: ltr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-heading { font-size: 28px; }
  .section-title { font-size: 22px; }
  .section-container { padding: 0 28px; }
  .futuristic-section { padding: 100px 0; }
}

@media only screen and (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav-links {
    position: fixed; inset: 0;
    background: rgba(3, 0, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .nav-links.nav-open { transform: translateX(0); }
  .nav-links li a { font-size: 16px; padding: 14px 28px; }
  .futuristic-nav { padding: 14px 24px; }
  .nav-scrolled { padding: 10px 24px; }
  .section-container { padding: 0 20px; }
  .futuristic-section { padding: 80px 0; }
  .hero-title { font-size: 32px; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .contact-social-row { flex-direction: column; }
  .contact-form { padding: 24px; }
  .footer-content { flex-direction: column; gap: 28px; }
  .section-header { flex-wrap: wrap; gap: 12px; }
  .portfolio-name { font-size: 20px; }
}

@media only screen and (max-width: 500px) {
  .ai-chat-wrapper { bottom: 16px; right: 16px; left: 16px; }
  .ai-chat-window { width: 100%; height: 70vh; }
  .ai-chat-fab { width: 52px; height: 52px; border-radius: 16px; }
}

@media only screen and (max-width: 480px) {
  .hero-title { font-size: 26px; letter-spacing: 1px; }
  .hero-desc { font-size: 13px; }
  .hero-greeting { font-size: 12px; letter-spacing: 4px; }
  .stat-number { font-size: 24px; }
  .about-stats { padding: 16px 12px; }
  .testimonial-card { padding: 28px; }
  .testimonial-text { font-size: 14px; }
  .contact-heading { font-size: 24px; }
  .section-title { font-size: 18px; letter-spacing: 2px; }
}
