

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --bg-base:        #0a0a0a;
  --bg-alt:         #121212;
  --bg-card:        rgba(20, 20, 20, 0.65);
  --glass-border:   rgba(255, 255, 255, 0.08);
  --glass-blur:     18px;

  --accent-cyan:    #10b981;
  --accent-blue:    #059669;
  --accent-purple:  #047857;
  --gradient-main:  linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --gradient-glow:  linear-gradient(135deg, rgba(16,185,129,0.15), rgba(5,150,105,0.15));

  --text-primary:   #f0f8ff;
  --text-secondary: #9ca3af;
  --text-muted:     #6b7280;

  --font-display:   'Space Grotesk', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  --radius-card:    16px;
  --radius-pill:    100px;
  --shadow-card:    0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow:    0 0 30px rgba(16, 185, 129, 0.2);

  --transition-fast:  0.2s ease;
  --transition-med:   0.4s ease;
  --transition-slow:  0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-display);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-display); }
input, textarea { font-family: var(--font-display); }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 3px; }

/* ── PARTICLE CANVAS ───────────────────────────────────────── */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s;
}

.cursor-outline {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-outline.hovered {
  width: 52px; height: 52px;
  border-color: var(--accent-cyan);
}

/* ── LOADING SCREEN ────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner {
  position: relative;
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: loaderSpin 1.4s linear infinite;
}

.loader-ring:nth-child(1) { inset: 0; border-top-color: var(--accent-cyan); animation-duration: 1s; }
.loader-ring:nth-child(2) { inset: 12px; border-right-color: var(--accent-blue); animation-duration: 1.4s; animation-direction: reverse; }
.loader-ring:nth-child(3) { inset: 24px; border-bottom-color: var(--accent-purple); animation-duration: 1.8s; }

@keyframes loaderSpin { to { transform: rotate(360deg); } }

.loader-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4rem;
  transition: background var(--transition-med), backdrop-filter var(--transition-med), box-shadow var(--transition-med);
}

.navbar.scrolled {
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--glass-border);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: default;
}

.brand-bracket { font-size: 1rem; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-fast);
  letter-spacing: 0.03em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1.5px;
  width: 0;
  background: var(--gradient-main);
  transition: width var(--transition-med);
  border-radius: 1px;
}

.nav-link:hover,
.nav-link.active { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

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

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── SHARED LAYOUT ─────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(10,25,55,0.4) 50%, transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.accent {
  background: linear-gradient(135deg, #10b981, #00d4ff, #7c3aed, #10b981);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlowName 8s ease infinite;
}

.section-line {
  width: 64px; height: 3px;
  background: var(--gradient-main);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ── GLASS CARD ────────────────────────────────────────────── */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #00d4ff, #7c3aed, #10b981);
  background-size: 300% 300%;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.45);
}

.btn-outline {
  border: 1.5px solid rgba(0, 212, 255, 0.4);
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.05);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.12);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ── HERO SECTION ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 2rem 80px;
  overflow: hidden;
}

/* Radial glow backgrounds */
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.hero-name {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-role {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 1.7em;
}

.role-prefix { color: var(--text-secondary); }

.typed-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.cursor-blink {
  color: var(--accent-cyan);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  transition: var(--transition-med);
}

.social-icon:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  transform: translateY(-3px);
}

/* ── HERO IMAGE ────────────────────────────────────────────── */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-frame {
  position: relative;
  width: 340px; height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-frame img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: linear-gradient(#050a14, #050a14) padding-box,
              linear-gradient(135deg, #00d4ff, #7c3aed, #00d4ff) border-box;
  background-size: 200% 200%;
  animation: gradientFlowName 5s linear infinite;
  position: relative;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.image-frame:hover img {
  transform: scale(1.04);
}

.image-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.25), transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

/* Orbit rings */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 212, 255, 0.2);
  inset: -20px;
  animation: orbitSpin 12s linear infinite;
}

.orbit-2 { inset: -40px; animation-duration: 20s; animation-direction: reverse; }

.orbit-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* ── HERO SCROLL INDICATOR ─────────────────────────────────── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: scrollBob 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
}

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

/* ── ABOUT SECTION ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.about-card {
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: transform var(--transition-med);
}

.about-card:hover::before { transform: scaleX(1); }

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.about-card-icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-cyan);
}

.about-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.about-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

.about-bio {
  padding: 48px;
}

.bio-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.bio-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 0.95rem;
}

.bio-content strong { color: var(--text-primary); font-weight: 600; }

.bio-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.bio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.bio-item i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── SKILLS SECTION ────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-item {
  padding: 20px 24px;
  transition: var(--transition-med);
}

.skill-item:hover { transform: translateY(-3px); }

.skill-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.skill-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.skill-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.skill-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-main);
  border-radius: 3px;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 10px; height: 100%;
  background: rgba(255,255,255,0.5);
  filter: blur(3px);
}

/* ── EDUCATION / TIMELINE ──────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: -28px; top: 28px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 1;
}

.timeline-content {
  padding: 32px;
  position: relative;
}

.timeline-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.timeline-badge.current {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--accent-cyan);
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 8px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--text-secondary);
}

/* ── PROJECTS ──────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  width: auto;
  margin: 0;
  overflow: hidden;
  transition: var(--transition-med);
  position: relative;
  flex-shrink: 1;
}

.project-card {
  overflow: hidden;
  transition: var(--transition-med);
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.project-card.featured {
  border-color: rgba(0, 212, 255, 0.25);
}

.project-badge {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--gradient-main);
  color: #fff;
  font-weight: 600;
}

.project-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.project-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(10,25,55,0.9) 0%, color-mix(in srgb, var(--proj-color, #0ea5e9) 15%, transparent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--proj-color, var(--accent-cyan));
  border-bottom: 1px solid var(--glass-border);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: var(--transition-med);
}

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

.overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.08);
  transition: var(--transition-fast);
}

.overlay-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--accent-cyan);
}

.project-info { padding: 24px; }

.project-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-cyan);
}

/* ── ACHIEVEMENTS ──────────────────────────────────────────── */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.achievement-card {
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-med);
}

.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 30px color-mix(in srgb, var(--ach-color, #00d4ff) 20%, transparent);
}

.achievement-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  margin: 0 auto 20px;
  background: color-mix(in srgb, var(--ach-color, #00d4ff) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ach-color, #00d4ff) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--ach-color, #00d4ff);
}

.achievement-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.achievement-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ── CERTIFICATIONS ────────────────────────────────────────── */
/* ── SUCCESS STORIES GRID ────────────────────────────────── */
.certs-slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.certs-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  padding: 10px 4px 20px 4px;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.certs-grid::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.cert-card {
  flex: 0 0 350px; /* Fixed width of 350px for each card */
  padding: 28px 24px;
  border-radius: var(--radius-med);
  transition: var(--transition-med);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 25, 47, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-med);
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.slider-btn:hover {
  background: var(--accent-cyan);
  color: #0a192f;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-card), 0 0 30px color-mix(in srgb, var(--accent-cyan) 20%, transparent);
}

.cert-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--accent-cyan) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
}

.cert-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.cert-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.cert-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin-top: auto;
}

.cert-link i {
  font-size: 0.9rem;
  transition: transform 0.2s;
}

.cert-card:hover .cert-link i {
  transform: translateX(4px);
}



/* ── STATS SECTION ─────────────────────────────────────────── */
.stats-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(10,25,55,0.6), rgba(37,99,235,0.08));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

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

.stat-item { position: relative; }

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  vertical-align: super;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

/* ── CONTACT SECTION ───────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.contact-info > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: var(--transition-med);
}

.contact-link i { font-size: 1.25rem; color: var(--accent-cyan); }

.contact-link:hover {
  color: var(--text-primary);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateX(4px);
}

.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-status {
  text-align: center;
  margin-top: 12px;
  font-size: 0.875rem;
  min-height: 1.5em;
}

.form-status.success { color: #10b981; }
.form-status.error   { color: #ef4444; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: rgba(5, 10, 20, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.footer-brand .nav-brand {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-nav a:hover { color: var(--accent-cyan); }

.footer-socials {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.footer-socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition-med);
}

.footer-socials a:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom i { color: #ef4444; vertical-align: middle; }

/* ── BACK TO TOP ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition-med);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.35);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-4px); }

/* ── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.about-grid .about-card:nth-child(2) { transition-delay: 0.1s; }
.about-grid .about-card:nth-child(3) { transition-delay: 0.2s; }
.skills-grid .skill-item:nth-child(even) { transition-delay: 0.08s; }
.projects-grid .project-card:nth-child(2) { transition-delay: 0.1s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.2s; }
.achievements-grid .achievement-card:nth-child(2) { transition-delay: 0.08s; }
.achievements-grid .achievement-card:nth-child(3) { transition-delay: 0.16s; }
.achievements-grid .achievement-card:nth-child(4) { transition-delay: 0.24s; }
.achievements-grid .achievement-card:nth-child(5) { transition-delay: 0.32s; }
.certs-grid .cert-card:nth-child(2) { transition-delay: 0.1s; }
.certs-grid .cert-card:nth-child(3) { transition-delay: 0.2s; }
.certs-grid .cert-card:nth-child(4) { transition-delay: 0.05s; }
.certs-grid .cert-card:nth-child(5) { transition-delay: 0.15s; }
.certs-grid .cert-card:nth-child(6) { transition-delay: 0.25s; }
.stats-grid .stat-item:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .stat-item:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .stat-item:nth-child(4) { transition-delay: 0.3s; }

/* ── CUSTOM EDUCATION TIMELINE (HORIZONTAL) ────────────────── */
@media (min-width: 769px) {
  #education .timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-left: 0;
    padding-top: 50px;
    max-width: 1200px;
  }
  #education .timeline::before {
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    bottom: auto;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  }
  #education .timeline-item {
    margin-bottom: 0;
  }
  #education .timeline-dot {
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ── CUSTOM CONTACT SECTION (SMALL) ────────────────────────── */
#contact .contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .navbar { padding: 1rem 2rem; }
  .hero-content { gap: 48px; }
  .about-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-socials { justify-content: flex-start; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 280px;
    background: rgba(5, 10, 20, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform var(--transition-med);
    border-left: 1px solid var(--glass-border);
    padding: 2rem;
  }

  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: 100px 1.5rem 80px; }
  .hero-content { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-image { order: -1; }
  .image-frame { width: 240px; height: 240px; }
  .hero-cta { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-intro { margin: 0 auto 36px; }

  /* Sections */
  .section { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-bio { padding: 28px; }
  .bio-details { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
  .certs-slider-wrapper { display: block; }
  .certs-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .cert-card { width: 100%; flex: none; }
  .slider-btn { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .contact-form { padding: 24px; }

  /* Timeline */
  .timeline { padding-left: 24px; }
  .timeline-dot { left: -21px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 24px; }

  /* cursor off on touch */
  .cursor-dot, .cursor-outline { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-name { font-size: 2.5rem; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.85rem; }
}


/* ─── KK ASSISTANT WIDGET ─── */
.assistant-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.assistant-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.assistant-trigger:hover {
  transform: scale(1.06) rotate(5deg);
}

.notification-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border: 2px solid #050a14;
  border-radius: 50%;
  animation: pulse-glow-widget 2s infinite;
}

@keyframes pulse-glow-widget {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.8); }
}

.assistant-chat {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 320px;
  height: 460px;
  background: rgba(8, 15, 30, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 200, 255, 0.12);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.assistant-chat.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 200, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}

.chat-header-info h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.chat-status {
  font-size: 0.7rem;
  color: #8ba3c7;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #10b981;
}

.chat-close {
  background: none;
  border: none;
  color: #8ba3c7;
  cursor: pointer;
  font-size: 0.875rem;
}

.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.chat-message.bot {
  background-color: rgba(10, 25, 55, 0.55);
  color: #f0f8ff;
  border-bottom-left-radius: 2px;
  align-self: flex-start;
  border: 1px solid rgba(0, 200, 255, 0.12);
}

.chat-message.user {
  background: linear-gradient(135deg, #00d4ff, #2563eb);
  color: #fff;
  border-bottom-right-radius: 2px;
  align-self: flex-end;
}

.chat-suggestions {
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-top: 1px solid rgba(0, 200, 255, 0.12);
}

.suggestion-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  background-color: rgba(10, 25, 55, 0.55);
  border: 1px solid rgba(0, 200, 255, 0.12);
  color: #8ba3c7;
  cursor: pointer;
}

.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 200, 255, 0.12);
  display: flex;
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 200, 255, 0.12);
  background-color: #080f1e;
  color: #f0f8ff;
  font-size: 0.875rem;
  outline: none;
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 10px;
}

.typing-indicator span {
  width: 5px;
  height: 5px;
  background-color: #6b7280;
  border-radius: 50%;
  animation: typing 1s infinite alternate;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  from { opacity: 0.3; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-4px); }
}

@media (max-width: 480px) {
  .assistant-chat {
    width: calc(100vw - 32px);
    right: -8px;
    height: 420px;
  }
}


/* ─── ACCESS GRANTED LOADER SCREEN ─── */
#loader {
  position: fixed;
  inset: 0;
  background-color: #030712;
  background-image: 
    radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0%, transparent 70%),
    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: 100% 100%, 40px 40px, 40px 40px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

.access-box {
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(12px);
  padding: 2rem 4rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
  animation: glow-pulse-loader 2s infinite alternate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.access-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: #6b7280;
  text-transform: uppercase;
}

.access-indicator {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* Access Granted Active State */
.access-box.granted {
  border-color: #10b981;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.3);
}

.access-box.granted .access-indicator {
  color: #10b981;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
  letter-spacing: 0.12em;
}

@keyframes glow-pulse-loader {
  from { box-shadow: 0 0 30px rgba(16, 185, 129, 0.1); }
  to { box-shadow: 0 0 50px rgba(16, 185, 129, 0.25); }
}


/* ─── MULTICOLOR GRADIENT ANIMATION FOR NAME ─── */
.gradient-text {
  background: linear-gradient(90deg, #ff006e, #fb5607, #ffbe0b, #8338ec, #3a86ff, #ff006e);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlowName 3s ease infinite;
  display: inline-block;
}

@keyframes gradientFlowName {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ─── KISHORE-STYLE SKILLS CARDS ─── */
.skills-container-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skills-category-card {
  padding: 30px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  transition: transform var(--transition-med), border-color var(--transition-med);
}

.skills-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
}

.skills-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.skills-category-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-cyan);
}

.skills-category-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skills-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .skills-container-grid {
    grid-template-columns: 1fr;
  }
}


/* ─── PROJECT CARD IMAGE STYLES ─── */
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-bottom: 1px solid var(--glass-border);
}
.project-card:hover .project-image img {
  transform: scale(1.08);
}

/* ─── TOAST NOTIFICATION ─── */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-med);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
  max-width: 400px;
  box-shadow: var(--shadow-card);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-notification.success {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}
.toast-notification.success .toast-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.toast-notification.error {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}
.toast-notification.error .toast-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.toast-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ─── KK ASSISTANT REAL AI SETTINGS ─── */
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-settings-btn {
  background: none;
  border: none;
  color: #8ba3c7;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}

.chat-settings-btn:hover {
  color: #00d4ff;
  transform: rotate(30deg);
}

.chat-settings-panel {
  display: none;
  padding: 14px;
  background: rgba(8, 15, 30, 0.98);
  border-bottom: 1px solid rgba(0, 200, 255, 0.15);
  font-size: 0.8rem;
  color: #8ba3c7;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.chat-settings-panel.open {
  display: block;
}

.chat-settings-panel label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #fff;
}

.chat-settings-panel .input-group {
  display: flex;
  gap: 8px;
}

.chat-settings-panel input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 200, 255, 0.2);
  background: rgba(5, 10, 20, 0.6);
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-settings-panel input:focus {
  border-color: #00d4ff;
}

.chat-settings-panel button {
  padding: 8px 14px;
  background: linear-gradient(135deg, #00d4ff, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}

.chat-settings-panel button:hover {
  filter: brightness(1.1);
}

.chat-settings-info {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #5b7397;
}

.chat-settings-info a {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 500;
}

.chat-settings-info a:hover {
  text-decoration: underline;
}

.ai-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.6rem;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-badge.offline {
  background: rgba(255, 255, 255, 0.15);
  color: #8ba3c7;
}

