/* ============================================
   PREMIUM DARK PORTFOLIO — Ramesh Prajapati
   AI/ML Engineer · GenAI · Cloud Architecture
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary:    #e8f4fd;
  --bg-secondary:  #f0f8ff;
  --bg-card:       rgba(255, 255, 255, 0.85);
  --bg-glass:      rgba(255, 255, 255, 0.6);
  --border-glass:  rgba(0, 50, 100, 0.1);
  --accent-teal:   #0d9488;
  --accent-blue:   #2563eb;
  --accent-cyan:   #0891b2;
  --accent-purple: #7c3aed;
  --aws-orange:    #e67e00;
  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #64748b;
  --gradient-hero: linear-gradient(135deg, #e8f4fd 0%, #dbeafe 50%, #e0f2fe 100%);
  --gradient-accent: linear-gradient(135deg, #0d9488, #2563eb);
  --gradient-card: linear-gradient(135deg, rgba(13,148,136,0.05), rgba(37,99,235,0.03));
  --shadow-glow:   0 0 30px rgba(13, 148, 136, 0.12);
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.08);
  --radius-card:   16px;
  --radius-badge:  8px;
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1100px;
  --font-heading:  'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7; font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-cyan); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--text-primary); font-weight: 700; line-height: 1.25; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-teal); border-radius: 3px; }

/* ===== UTILITY ===== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem;
  transition: var(--transition); cursor: pointer; border: none;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--gradient-accent); color: #fff;
  box-shadow: 0 4px 20px rgba(20,184,166,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(20,184,166,0.5); color:#fff; }
.btn-outline {
  background: var(--bg-glass); color: var(--text-primary);
  border: 2px solid var(--border-glass); backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: var(--accent-teal); color: var(--accent-teal); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(20,184,166,0.2); }
.btn-nav {
  background: var(--gradient-accent); color: #fff; padding: 10px 20px;
  font-size: 0.8rem; border-radius: 8px;
  box-shadow: 0 2px 12px rgba(20,184,166,0.3);
}
.btn-nav:hover { transform: translateY(-1px); color:#fff; }

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  position: fixed; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%); transition: opacity 0.3s;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 14px 0;
  background: rgba(232, 244, 253, 0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}
.navbar.scrolled { padding: 8px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.nav-container {
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--text-muted); white-space: nowrap; }
.nav-logo-name { 
  font-family: 'Caveat', cursive; font-size: 1.5rem; font-weight: 700;
  background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-logo span { color: var(--accent-teal); }
.nav-links { display: flex; gap: 28px; }
.nav-link { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); position: relative; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--accent-teal); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px;
  background: var(--gradient-accent); border-radius: 2px;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 120px 24px 80px;
  overflow: hidden; background: var(--gradient-hero);
}
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(13,148,136,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,148,136,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 25s linear infinite;
}
@keyframes gridMove { 0% { transform: translateY(0); } 100% { transform: translateY(60px); } }
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; pointer-events: none; z-index: 0;
}
.hero-glow-1 { width: 600px; height: 600px; top: -100px; right: -100px; background: rgba(13,148,136,0.1); animation: pulse 6s ease-in-out infinite; }
.hero-glow-2 { width: 500px; height: 500px; bottom: -80px; left: -80px; background: rgba(37,99,235,0.08); animation: pulse 8s ease-in-out infinite 2s; }
.hero-glow-3 { width: 300px; height: 300px; top: 40%; left: 50%; background: rgba(124,58,237,0.06); animation: pulse 7s ease-in-out infinite 4s; }
@keyframes pulse { 0%,100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.15); } }

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-teal);
  letter-spacing: 1px; margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 12px;
}
.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 500;
  color: var(--text-secondary); margin-bottom: 20px; min-height: 2rem;
}
.cursor-blink { animation: blink 1s step-end infinite; color: var(--accent-teal); }
@keyframes blink { 50% { opacity: 0; } }

/* Hero role badges */
.hero-roles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.hero-role-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border: 1px solid rgba(13,148,136,0.25); border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--accent-teal); background: rgba(13,148,136,0.06);
  backdrop-filter: blur(10px); transition: var(--transition);
}
.hero-role-badge:hover { background: rgba(13,148,136,0.12); border-color: var(--accent-teal); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(13,148,136,0.15); }

.hero-desc { font-size: 1rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto 24px; line-height: 1.8; }
.hero-desc strong { color: var(--text-primary); }

/* Hero stats */
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; margin-bottom: 28px; }
.hero-stat { text-align: center; }
.stat-number { display: block; font-size: 2rem; font-weight: 800; background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }

/* Social icons */
.hero-socials { display: flex; gap: 12px; justify-content: center; }
.icon-btn {
  width: 48px; height: 48px; border: 2px solid var(--border-glass); border-radius: 12px;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); color: var(--text-secondary);
  cursor: pointer; font-size: 18px; display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.icon-btn:hover { color: #fff; transform: translateY(-4px); }
.icon-btn.github:hover { background: #24292e; border-color: #24292e; box-shadow: 0 8px 20px rgba(36,41,46,0.4); }
.icon-btn.linkedin:hover { background: #0077b5; border-color: #0077b5; box-shadow: 0 8px 20px rgba(0,119,181,0.4); }
.icon-btn.email:hover { background: var(--accent-teal); border-color: var(--accent-teal); box-shadow: 0 8px 20px rgba(20,184,166,0.4); }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-indicator span { display: block; width: 24px; height: 40px; border: 2px solid var(--text-muted); border-radius: 12px; position: relative; }
.scroll-indicator span::after { content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--accent-teal); border-radius: 4px; transform: translateX(-50%); animation: scrollBounce 1.5s infinite; }
@keyframes scrollBounce { 0%,100% { top: 8px; opacity: 1; } 50% { top: 20px; opacity: 0.3; } }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-secondary); }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 48px;
  display: flex; align-items: center; gap: 16px;
}
.section-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gradient-accent); color: #fff;
  font-size: 0.85rem; font-weight: 800; font-family: var(--font-mono);
}
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 40px; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.photo-frame {
  border-radius: var(--radius-card); overflow: hidden;
  border: 3px solid var(--accent-teal);
  box-shadow: 0 0 20px rgba(13,148,136,0.15), var(--shadow-card);
  transition: var(--transition);
}
.photo-frame:hover { box-shadow: 0 0 40px rgba(13,148,136,0.25); transform: scale(1.02); }
.photo-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-text p { color: var(--text-secondary); margin-bottom: 14px; font-size: 0.95rem; line-height: 1.8; }
.about-text strong { color: var(--accent-teal); }

/* Tech chips */
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.tech-chip {
  padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  color: var(--accent-blue); transition: var(--transition);
}
.tech-chip:hover { background: rgba(59,130,246,0.2); transform: translateY(-1px); }
.tech-chip.aws { color: var(--aws-orange); border-color: rgba(255,153,0,0.3); background: rgba(255,153,0,0.08); }
.tech-chip.azure { color: var(--accent-cyan); border-color: rgba(6,182,212,0.3); background: rgba(6,182,212,0.08); }

/* ===== SKILLS ===== */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.skill-category {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-card); padding: 28px;
  backdrop-filter: blur(20px); transition: var(--transition);
}
.skill-category:hover { border-color: rgba(20,184,166,0.25); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.skill-category h3 {
  font-size: 14px; font-weight: 700; color: var(--accent-teal); text-transform: uppercase;
  letter-spacing: 2px; border-bottom: 1px solid var(--border-glass); padding-bottom: 14px; margin-bottom: 20px;
}
.skill-icons { display: flex; flex-wrap: wrap; gap: 16px; }
.skill-icon-item { text-align: center; width: 70px; transition: var(--transition); }
.skill-icon-item:hover { transform: translateY(-3px); }
.skill-icon-item img {
  width: 50px; height: 50px; object-fit: contain; margin: 0 auto 6px; border-radius: 8px;
  filter: grayscale(20%) brightness(0.9); transition: var(--transition);
}
.skill-icon-item:hover img { filter: grayscale(0%) brightness(1); }
.skill-icon-item span { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.skill-icon-item:hover span { color: var(--accent-teal); }

/* ===== EXPERIENCE / TIMELINE ===== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--accent-teal), var(--accent-blue)); opacity: 0.3; }
.timeline-item { position: relative; display: flex; gap: 20px; margin-bottom: 40px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-card); padding: 28px; backdrop-filter: blur(20px); transition: var(--transition); }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 32px; width: 12px; height: 12px; border-radius: 50%; background: var(--gradient-accent); border: 3px solid var(--bg-primary); box-shadow: 0 0 12px rgba(20,184,166,0.4); }
.timeline-item::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gradient-accent); border-radius: 3px 0 0 3px; }
.timeline-item:hover { border-color: rgba(20,184,166,0.25); box-shadow: var(--shadow-glow), var(--shadow-card); transform: translateY(-4px); }
.timeline-logo { flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-glass); background: #fff; }
.timeline-logo img { width: 100%; height: 100%; object-fit: cover; }
.timeline-content { flex: 1; }
.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.timeline-header h3 { font-size: 1.1rem; font-weight: 700; }
.timeline-header h3 a { color: var(--accent-teal); }
.timeline-header h3 a:hover { color: var(--accent-cyan); }
.timeline-badge { font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 100px; background: rgba(20,184,166,0.12); color: var(--accent-teal); border: 1px solid rgba(20,184,166,0.2); }
.timeline-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; display: block; }
.timeline-content ul { margin-bottom: 12px; }
.timeline-content li { position: relative; padding-left: 16px; margin-bottom: 6px; font-size: 0.88rem; color: var(--text-secondary); }
.timeline-content li::before { content: '▸'; position: absolute; left: 0; color: var(--accent-teal); font-size: 10px; top: 3px; }
.timeline-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-tools span { padding: 3px 10px; border-radius: 4px; font-size: 0.72rem; background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.15); color: var(--accent-cyan); font-family: var(--font-mono); }

/* Current job highlight */
.timeline-item.timeline-current { border-color: rgba(13,148,136,0.25); background: linear-gradient(135deg, rgba(13,148,136,0.05), rgba(37,99,235,0.03)); box-shadow: var(--shadow-glow); }
.timeline-item.timeline-current::after { background: linear-gradient(to bottom, var(--accent-teal), var(--accent-blue)); width: 4px; }
.timeline-badge-current { background: rgba(13,148,136,0.12) !important; color: var(--accent-teal) !important; border-color: var(--accent-teal) !important; animation: pulseGlow 2s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(13,148,136,0.2); } 50% { box-shadow: 0 0 12px 4px rgba(13,148,136,0.1); } }

/* ===== PROJECTS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-card); overflow: hidden; backdrop-filter: blur(20px);
  transition: var(--transition);
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(20,184,166,0.3); box-shadow: var(--shadow-glow), var(--shadow-card); }
.project-img { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-secondary); }
.project-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(6,13,26,0.7) 100%); pointer-events: none; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.project-card:hover .project-img img { transform: scale(1.06); }
.project-body { padding: 22px; }
.project-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.project-body p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.project-tags span { padding: 3px 10px; border-radius: 4px; font-size: 0.72rem; background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.15); color: var(--accent-cyan); font-family: var(--font-mono); }
.project-links { display: flex; gap: 12px; }
.project-links a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 8px; font-size: 0.78rem; font-weight: 600;
  background: var(--gradient-accent); color: #fff;
  box-shadow: 0 4px 15px rgba(20,184,166,0.25); transition: var(--transition);
}
.project-links a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20,184,166,0.4); color: #fff; }

/* ===== CERTIFICATIONS ===== */
.aws-banner {
  background: linear-gradient(135deg, rgba(255,153,0,0.1), rgba(255,153,0,0.04));
  border: 1px solid rgba(255,153,0,0.25); border-radius: 12px;
  padding: 18px 24px; display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.banner-icon { font-size: 36px; }
.banner-text h4 { font-size: 18px; font-weight: 800; color: var(--aws-orange); margin: 0 0 4px; }
.banner-text p { font-size: 13px; color: var(--text-muted); margin: 0; }

.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cert-card {
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-card); padding: 28px 24px; text-align: center;
  backdrop-filter: blur(20px); transition: var(--transition); position: relative; overflow: hidden;
}
.cert-top-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-accent); }
.cert-card:hover { border-color: rgba(255,153,0,0.3); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(255,153,0,0.12), var(--shadow-card); }
.cert-badge-img {
  width: 100px; height: 100px; object-fit: contain; margin: 0 auto 16px;
  filter: drop-shadow(0 4px 12px rgba(255,153,0,0.2));
  transition: var(--transition);
}
.cert-card:hover .cert-badge-img { transform: scale(1.08); filter: drop-shadow(0 8px 20px rgba(255,153,0,0.35)); }
.cert-card h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.cert-issuer { font-size: 13px; color: var(--aws-orange); font-weight: 600; margin-bottom: 8px; }
.cert-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.cert-badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.cert-badge-pro { background: rgba(255,153,0,0.15); color: var(--aws-orange); border: 1px solid rgba(255,153,0,0.3); }
.cert-badge-assoc { background: rgba(20,184,166,0.1); color: var(--accent-teal); border: 1px solid rgba(20,184,166,0.3); }
.cert-badge-found { background: rgba(59,130,246,0.1); color: var(--accent-blue); border: 1px solid rgba(59,130,246,0.3); }
.cert-date { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); margin-top: 10px; }
.cert-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; justify-content: center; }
.cert-skills span {
  padding: 3px 9px; border-radius: 4px; font-size: 0.68rem;
  background: rgba(20,184,166,0.06); border: 1px solid rgba(20,184,166,0.12);
  color: var(--text-muted); font-family: var(--font-mono);
}
.cert-verify {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 0.78rem; font-weight: 600; color: var(--accent-teal);
  padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(20,184,166,0.25);
  background: rgba(20,184,166,0.06); transition: var(--transition);
}
.cert-verify:hover { background: rgba(20,184,166,0.15); border-color: var(--accent-teal); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(20,184,166,0.2); color: var(--accent-teal); }

/* ===== EDUCATION ===== */
.edu-card {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-card); padding: 36px; max-width: 700px;
  backdrop-filter: blur(20px); position: relative; overflow: hidden;
}
.edu-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gradient-accent); }
.edu-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.edu-school { color: var(--text-secondary); margin-bottom: 4px; font-size: 0.9rem; }
.edu-cgpa { font-family: var(--font-mono); color: var(--accent-teal); font-size: 0.9rem; margin-bottom: 16px; }
.edu-courses { display: flex; flex-wrap: wrap; gap: 8px; }
.edu-courses span { padding: 5px 14px; border-radius: 100px; font-size: 0.78rem; background: rgba(20,184,166,0.08); border: 1px solid rgba(20,184,166,0.15); color: var(--text-secondary); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 800px; margin-bottom: 32px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg-glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-card); padding: 32px; transition: var(--transition);
}
.contact-card:hover { border-color: rgba(20,184,166,0.3); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.contact-card i { font-size: 2rem; margin-bottom: 12px; background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.contact-card h4 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { font-size: 0.82rem; color: var(--text-secondary); word-break: break-all; }
.contact-resume { margin-top: 8px; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border-glass); padding: 28px 0; background: var(--bg-secondary); }
.footer-inner { display: flex; justify-content: center; align-items: center; text-align: center; }
.footer p { font-size: 1rem; color: var(--text-secondary); }
.footer-top { font-size: 0.82rem; color: var(--accent-teal); }
.footer-top:hover { color: var(--text-primary); }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 1001;
  background: var(--gradient-accent); width: 0%;
  transition: width 0.05s linear;
}

/* ===== HIRE BADGE ===== */
.hire-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 16px;
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25);
  font-size: 12px; font-weight: 600; color: #059669; letter-spacing: 0.3px;
}
.hire-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981;
  animation: dotPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(16,185,129,0.6);
}
@keyframes dotPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Staggered animations */
.fade-up.visible:nth-child(1) { transition-delay: 0s; }
.fade-up.visible:nth-child(2) { transition-delay: 0.1s; }
.fade-up.visible:nth-child(3) { transition-delay: 0.2s; }
.fade-up.visible:nth-child(4) { transition-delay: 0.3s; }
.fade-up.visible:nth-child(5) { transition-delay: 0.4s; }
.fade-up.visible:nth-child(6) { transition-delay: 0.5s; }
.fade-up.visible:nth-child(7) { transition-delay: 0.6s; }
.fade-up.visible:nth-child(8) { transition-delay: 0.7s; }

/* 3D Tilt on project cards */
.project-card { perspective: 1000px; transform-style: preserve-3d; }

/* Floating animation for skill icons */
.skill-icon-item { animation: float 3s ease-in-out infinite; }
.skill-icon-item:nth-child(2) { animation-delay: 0.3s; }
.skill-icon-item:nth-child(3) { animation-delay: 0.6s; }
.skill-icon-item:nth-child(4) { animation-delay: 0.9s; }
.skill-icon-item:nth-child(5) { animation-delay: 1.2s; }
.skill-icon-item:nth-child(6) { animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Animated gradient border on photo */
.photo-frame { position: relative; }
.photo-frame::before {
  content: ''; position: absolute; inset: -3px; border-radius: calc(var(--radius-card) + 3px);
  background: conic-gradient(from 0deg, var(--accent-teal), var(--accent-blue), var(--accent-purple), var(--accent-teal));
  z-index: -1; animation: rotateBorder 4s linear infinite;
}
@keyframes rotateBorder { 100% { filter: hue-rotate(360deg); } }

/* Section wave dividers */
.section::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 40px;
  background: inherit;
  clip-path: ellipse(60% 100% at 50% 100%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 260px; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #e8f4fd;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 0; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); z-index: 999;
    padding: 80px 24px;
  }
  [data-theme="dark"] .nav-links { background: #060d1a; }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { opacity: 0; transform: translateX(40px); transition: opacity 0.3s ease, transform 0.3s ease; width: 100%; text-align: center; padding: 14px 0; border-bottom: 1px solid var(--border-glass); }
  .nav-links.open li { opacity: 1; transform: translateX(0); }
  .nav-links.open li:nth-child(1) { transition-delay: 0.05s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.25s; }
  .nav-links.open li:nth-child(6) { transition-delay: 0.3s; }
  .nav-links.open li:nth-child(7) { transition-delay: 0.35s; }
  .nav-toggle { display: none !important; }
  .nav-links { display: none !important; }
  .nav-right { display: none !important; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: 100px 16px 60px; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-desc { font-size: 0.88rem; padding: 0 8px; }
  .hero-roles { gap: 8px; }
  .hero-role-badge { font-size: 11px; padding: 5px 12px; }
  .hero-stats { gap: 12px; justify-content: center; }
  .hero-stat { min-width: 70px; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 10px; }

  /* Hide distracting elements on mobile */
  .code-bg { display: none; }
  .floating-code-container { display: none; }
  .hero-grid-bg { opacity: 0.3; }

  .section { padding: 60px 0; }
  .section-title { margin-bottom: 32px; font-size: 1.3rem; }

  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .timeline { padding-left: 20px; }
  .timeline::before { left: 6px; }
  .timeline-item { flex-direction: column; gap: 12px; padding: 20px; }
  .timeline-item::before { left: -22px; width: 10px; height: 10px; top: 24px; }
  .timeline-header { flex-direction: column; gap: 6px; }

  .marquee-item { font-size: 0.85rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 200px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; width: 100%; padding: 0 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-eyebrow { font-size: 0.72rem; }
  .hire-badge { font-size: 11px; padding: 5px 12px; }
  .nav-logo { font-size: 1rem; }
  .nav-logo-name { font-size: 1.2rem; }
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, #060d1a 0%, #0d1f3c 50%, #0a2a1e 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}
.page-loader.loaded { opacity: 0; transform: scale(1.05); filter: blur(10px); pointer-events: none; }
#loaderCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.loader-content { position: relative; z-index: 1; text-align: center; }
.loader-initials-wrap { margin-bottom: 16px; }
.loader-initials {
  font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800;
  background: linear-gradient(135deg, #14b8a6, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block; animation: loaderGlow 1.5s ease-in-out infinite;
  text-shadow: none;
}
@keyframes loaderGlow {
  0%,100% { filter: drop-shadow(0 0 8px rgba(20,184,166,0.4)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 20px rgba(20,184,166,0.7)); transform: scale(1.03); }
}
.loader-subtitle {
  display: block; font-family: var(--font-mono); font-size: 0.75rem;
  color: rgba(148,163,184,0.8); letter-spacing: 3px; text-transform: uppercase; margin-top: 4px;
}
.loader-message {
  font-family: var(--font-mono); font-size: 0.8rem; color: #94a3b8;
  margin-bottom: 20px; min-height: 1.2em; letter-spacing: 0.5px;
  animation: messageFade 0.4s ease;
}
@keyframes messageFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.loader-bar { width: 160px; height: 3px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; margin: 0 auto; }
.loader-progress { width: 0%; height: 100%; background: linear-gradient(90deg, #14b8a6, #3b82f6); border-radius: 3px; transition: width 0.3s ease; }

/* ===== DARK/LIGHT THEME TOGGLE ===== */
.nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-glass);
  background: var(--bg-glass); color: var(--text-secondary); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.theme-toggle:hover { color: var(--accent-teal); border-color: var(--accent-teal); transform: rotate(20deg); }

/* Dark theme overrides */
[data-theme="dark"] {
  --bg-primary: #060d1a;
  --bg-secondary: #0a1628;
  --bg-card: rgba(10, 22, 40, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --accent-teal: #14b8a6;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --aws-orange: #ff9900;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-hero: linear-gradient(135deg, #060d1a 0%, #0d1f3c 50%, #0a2a1e 100%);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(20, 184, 166, 0.15);
}
[data-theme="dark"] .navbar { background: rgba(6, 13, 26, 0.88); }
[data-theme="dark"] .icon-btn { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .hire-badge { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); color: #34d399; }
[data-theme="dark"] .service-card { background: rgba(10,22,40,0.85); }
[data-theme="dark"] .marquee-section { background: #0a1628; }
[data-theme="dark"] .footer { background: var(--bg-secondary); }
[data-theme="dark"] .footer p { color: var(--text-muted); }

/* ===== WHAT I DO — SERVICE CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-card); padding: 36px 28px; text-align: center;
  backdrop-filter: blur(20px); transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent); transform: scaleX(0); transition: transform 0.4s ease;
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow), var(--shadow-card); border-color: rgba(13,148,136,0.2); }
.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== TECH STACK MARQUEE ===== */
.marquee-section {
  padding: 20px 0; overflow: hidden;
  background: var(--bg-secondary); border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-content { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.marquee-item {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  color: var(--text-primary); padding: 0 16px; white-space: nowrap;
  transition: var(--transition);
}
.marquee-item:hover { color: var(--accent-teal); }
.marquee-dot { color: var(--accent-teal); font-size: 1.2rem; padding: 0 4px; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== ANIMATED TEXT HIGHLIGHTS ===== */
.text-highlight {
  position: relative; display: inline; padding: 0 2px;
  background: linear-gradient(120deg, rgba(13,148,136,0.15) 0%, rgba(37,99,235,0.1) 100%);
  background-size: 0% 100%; background-repeat: no-repeat; background-position: 0 90%;
  transition: background-size 0.6s ease;
  border-radius: 2px;
}
.text-highlight.active { background-size: 100% 100%; }

[data-theme="dark"] .text-highlight {
  background: linear-gradient(120deg, rgba(20,184,166,0.2) 0%, rgba(59,130,246,0.15) 100%);
  background-size: 0% 100%; background-repeat: no-repeat; background-position: 0 90%;
}
[data-theme="dark"] .text-highlight.active { background-size: 100% 100%; }

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 768px) {
  .nav-right .theme-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .marquee-item { font-size: 0.85rem; }
}

/* ===== CODE TYPING BACKGROUND ===== */
.code-bg {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
  pointer-events: none; opacity: 0.18;
  font-family: var(--font-mono); font-size: 13px; line-height: 2.2;
  color: var(--accent-teal); white-space: pre-wrap; padding: 80px 40px;
}
[data-theme="dark"] .code-bg { opacity: 0.15; color: #14b8a6; }

/* ===== FLOATING CODE SNIPPETS ===== */
.floating-code-container {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.floating-snippet {
  position: absolute; font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-teal); opacity: 0.25; white-space: nowrap;
  animation: floatSnippet linear infinite;
  border: 1px solid rgba(13,148,136,0.15); border-radius: 6px;
  padding: 5px 12px; background: rgba(13,148,136,0.05);
  font-weight: 500;
}
[data-theme="dark"] .floating-snippet { opacity: 0.2; color: #14b8a6; background: rgba(20,184,166,0.06); border-color: rgba(20,184,166,0.15); }
@keyframes floatSnippet {
  0% { transform: translateY(100vh) rotate(0deg); }
  100% { transform: translateY(-100px) rotate(2deg); }
}

/* ===== MOBILE BOTTOM DOCK ===== */
.mobile-dock {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  padding: 8px 12px 12px; 
  justify-content: space-around; align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
[data-theme="dark"] .mobile-dock { background: rgba(10,22,40,0.95); box-shadow: 0 -4px 20px rgba(0,0,0,0.4); }

.dock-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--text-muted); font-size: 10px; font-weight: 600;
  padding: 6px 12px; border-radius: 12px; transition: var(--transition);
  position: relative; z-index: 1;
}
.dock-item i { font-size: 18px; transition: var(--transition); }
.dock-item.active { color: var(--accent-teal); }
.dock-item.active i { transform: translateY(-2px); }

/* Animated glowing pill */
.dock-pill {
  position: absolute; bottom: 6px; height: 38px; width: 50px;
  background: rgba(13,148,136,0.1); border: 1px solid rgba(13,148,136,0.2);
  border-radius: 12px; transition: left 0.35s cubic-bezier(0.4,0,0.2,1), width 0.35s ease;
  z-index: 0; box-shadow: 0 0 12px rgba(13,148,136,0.15);
}
[data-theme="dark"] .dock-pill { background: rgba(20,184,166,0.12); border-color: rgba(20,184,166,0.25); box-shadow: 0 0 15px rgba(20,184,166,0.2); }

@media (max-width: 768px) {
  .mobile-dock { display: flex; }
  body { padding-bottom: 70px; }
  .footer { padding-bottom: 80px; }
  .scroll-indicator { display: none; }
}
@media (min-width: 769px) {
  .mobile-dock { display: none !important; }
}

/* ===== AI VOICE ASSISTANT (native widget embed) ===== */
.chat-embed {
  position: fixed; bottom: 0; right: 0; z-index: 99999;
  width: 100px; height: 100px; max-width: 100vw; max-height: 100vh;
  border: none; background: transparent;
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1), height 0.35s cubic-bezier(0.4,0,0.2,1);
}
/* Expanded state (set via postMessage from chatbot) — slightly larger than
   the panel so its rounded corners are never clipped */
.chat-embed.chat-open {
  width: 390px; height: 640px;
}

/* Mobile: collapsed = small corner; expanded = larger but above dock */
@media (max-width: 768px) {
  .chat-embed { width: 84px; height: 84px; bottom: 76px; right: 8px; }
  .chat-embed.chat-open {
    width: min(94vw, 390px); height: min(76vh, 600px);
    bottom: 76px; right: 6px;
  }
}
