/* ==========================================================
   Sumit Kumar - Modern Dynamic Portfolio Stylesheet
   Theme: Tokyo Night / Dark Glassmorphic Dynamic App
   ========================================================== */

:root {
  --bg-dark: #07090e;
  --bg-surface: #0d121f;
  --bg-card: rgba(16, 23, 38, 0.78);
  --bg-card-hover: rgba(24, 34, 56, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.45);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-violet: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-orange: #ffa116;

  --grad-primary: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
  --grad-accent: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.3);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Ambient Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
  top: -100px;
  left: -150px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  top: 35%;
  right: -200px;
}

.glow-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
  bottom: 0;
  left: 20%;
}

/* Typography & Utilities */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-accent {
  color: var(--accent-cyan);
}

.text-success {
  color: var(--accent-emerald);
}

.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-orange { color: var(--accent-orange); }
.text-violet { color: var(--accent-violet); }

.text-xs {
  font-size: 0.75rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.4);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-color: var(--border-color);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================
   Single Floating Pill Navigation Bar
   (The exact sleek floating pill dock style requested)
   ========================================================== */
.navbar-wrapper {
  position: sticky;
  top: 1.1rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding-inline: 1.25rem;
  pointer-events: none;
}

.floating-pill-navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1160px;
  width: 100%;
  padding: 0.5rem 0.85rem;
  background: rgba(13, 18, 31, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.15);
  transition: var(--transition-smooth);
}

/* Brand Pill */
.brand-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 0.35rem;
  cursor: pointer;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: -0.05em;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-badge.sm {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Pill Navigation Buttons */
.nav-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.nav-pill i {
  font-size: 0.82rem;
}

.nav-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.nav-pill.active {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4);
}

.badge-count {
  font-size: 0.68rem;
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.35rem;
}

/* ==========================================================
   Dynamic Tab Panels
   ========================================================== */
.main-content {
  min-height: calc(100vh - 160px);
  position: relative;
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  padding-block: 2rem 4rem;
}

.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   Hero Section (Tab 1)
   ========================================================== */
.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3.5rem;
  padding-block: 2.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 1.5rem;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  min-height: 2rem;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.highlight-item i {
  color: var(--accent-cyan);
  width: 18px;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
}

.hero-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.hero-socials a:hover {
  color: var(--text-main);
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

/* Profile Photo Card */
.profile-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: var(--grad-primary);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
  z-index: 1;
}

.profile-image-box {
  position: relative;
  width: 300px;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  background: var(--bg-surface);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

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

.profile-overlay-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 14, 0.95) 80%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
}

.profile-overlay-badge i {
  font-size: 1.35rem;
  color: var(--accent-cyan);
}

.profile-overlay-badge div strong {
  display: block;
  font-size: 0.95rem;
}

.profile-overlay-badge div span {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  background: rgba(13, 18, 31, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  animation: float-anim 4s ease-in-out infinite alternate;
}

.badge-num {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.badge-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.badge-1 {
  top: 12%;
  left: -25px;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 12%;
  right: -25px;
  animation-delay: 2s;
}

@keyframes float-anim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================
   Section Headers
   ========================================================== */
.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.75rem;
  background: rgba(56, 189, 248, 0.1);
  border-radius: var(--radius-sm);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin-inline: auto;
}

/* ==========================================================
   About Grid & Skills (Tab 2)
   ========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.about-card {
  padding: 2.25rem;
}

.about-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.skills-main-title {
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  padding: 1.75rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
}

.category-header h4 {
  font-size: 1.1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.skill-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--border-hover);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.skill-pill i {
  color: var(--accent-cyan);
}

/* ==========================================================
   Experience & Education Timeline (Tab 3)
   ========================================================== */
.timeline-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.column-heading {
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.timeline-card {
  padding: 1.85rem;
  position: relative;
}

.highlight-card {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(16, 23, 38, 0.85);
}

.timeline-badge-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.active-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.timeline-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  padding-right: 5rem;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.timeline-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-meta .company {
  color: var(--accent-cyan);
  font-weight: 600;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-bullets {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.timeline-bullets li {
  margin-bottom: 0.35rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-tags span {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
}

/* ==========================================================
   Projects Section (Tab 4) & Filters
   ========================================================== */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 2rem;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.project-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.live-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.ai-badge {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.project-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.project-tech span {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================
   Certifications Grid (Tab 5)
   ========================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.cert-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.cert-badge-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.ibm-icon {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.edunet-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.web-icon {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
}

.py-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.cert-issuer {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.cert-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.cert-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.cert-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-status {
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.cert-status.verified {
  color: #34d399;
}

.cert-view-link {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cert-view-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* ==========================================================
   Dedicated Stats Tab (Tab 6)
   ========================================================== */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.quick-stat-card {
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.quick-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.quick-stat-info {
  display: flex;
  flex-direction: column;
}

.quick-stat-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.quick-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stats-wrapper {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.stats-cards-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stats-cards-row img {
  height: 175px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth);
}

.stats-cards-row img:hover {
  transform: translateY(-4px);
}

.leetcode-card-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.leetcode-heading {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leetcode-card-row img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth);
}

.leetcode-card-row img:hover {
  transform: translateY(-4px);
}

.stats-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================
   Contact Section (Tab 7)
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
}

.contact-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-detail-items {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.detail-icon.leetcode-box-icon {
  background: rgba(255, 161, 22, 0.15);
  color: var(--accent-orange);
}

.detail-text {
  display: flex;
  flex-direction: column;
}

.detail-text .label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.detail-text .value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  word-break: break-all;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 0.4rem;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--accent-cyan);
}

/* Social Cards Grid in Contact Section */
.contact-social-bar {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.social-bar-title {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.social-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.social-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.social-card i {
  font-size: 1.25rem;
}

.social-card.leetcode-card i {
  color: var(--accent-orange);
}

.social-card.linkedin-card i {
  color: #0a66c2;
}

.social-card.github-card i {
  color: #ffffff;
}

.social-card .card-platform {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.social-card .card-handle {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.social-card .card-arrow {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: transform var(--transition-fast);
}

.social-card:hover .card-arrow {
  transform: translate(2px, -2px);
  color: var(--accent-cyan);
}

/* Contact Form */
.contact-form-card {
  padding: 2.5rem;
}

.contact-form-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.contact-form-card .form-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(7, 9, 14, 0.9);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.textarea-wrapper {
  align-items: flex-start;
}

.textarea-wrapper i {
  top: 1rem;
}

.textarea-wrapper textarea {
  resize: vertical;
  min-height: 110px;
}

/* Form Actions Row */
.form-actions-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.form-actions-row .btn-primary {
  flex: 1;
}

.form-actions-row .btn-secondary {
  white-space: nowrap;
}

/* Form Status Box */
.form-status-box {
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  transition: var(--transition-smooth);
}

.form-status-box .status-icon {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.form-status-box .status-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-status-box .status-action {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.form-status-box.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.form-status-box.warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.form-status-box.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* ==========================================================
   Ultra Interactive Footer
   ========================================================== */
.footer {
  padding-block: 4rem 2rem;
  border-top: 1px solid var(--border-color);
  background: rgba(7, 9, 14, 0.96);
  position: relative;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Footer CTA Banner */
.footer-cta-banner {
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(16, 23, 38, 0.9) 0%, rgba(30, 27, 75, 0.4) 100%);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-cta-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.footer-cta-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-cta-action {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Footer Main Grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-name {
  display: block;
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.2;
}

.footer-role {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
}

.footer-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

.footer-col-title {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a,
.footer-tab-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  text-align: left;
}

.footer-links a:hover,
.footer-tab-link:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

.footer-links a i,
.footer-tab-link i {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Footer Social Pills */
.footer-social-pills {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.footer-social-pill:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.footer-social-pill.leetcode i { color: var(--accent-orange); }
.footer-social-pill.linkedin i { color: #0a66c2; }
.footer-social-pill.github i { color: #ffffff; }
.footer-social-pill.email i { color: #ea4335; }

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

.footer-bottom-bar p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-tech-badges span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 99;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--grad-primary);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

/* ==========================================================
   Responsive Breakpoints
   ========================================================== */
@media (max-width: 1080px) {
  .floating-pill-navbar {
    gap: 0.75rem;
  }
  
  .nav-pill {
    padding: 0.4rem 0.65rem;
    font-size: 0.82rem;
  }

  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 868px) {
  .navbar-wrapper {
    top: 0.75rem;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-pills {
    position: fixed;
    top: 65px;
    left: 1.25rem;
    right: 1.25rem;
    background: rgba(13, 18, 31, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    flex-direction: column;
    gap: 0.65rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  }

  .nav-pills.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-pill {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .hire-btn {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-highlights {
    align-items: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .profile-card-wrapper {
    order: -1;
  }

  .timeline-container {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}
