/* ===================================================================
   SANJAY G. L. — AI OPERATING SYSTEM PORTFOLIO
   Design System: Premium Nature-Inspired (Emerald / Forest / Purple / Gold / Orange / Coral)
   Stack: Vanilla CSS3 + Modern CSS Grid & Flexbox + Glassmorphism + 3D Transforms
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Dark Theme Palette (Nature Cyber Obsidian) */
  --bg-main: #060d17;
  --bg-surface: #0a1726;
  --bg-surface-elevated: #0f2238;
  --bg-glass: rgba(16, 185, 129, 0.04);
  --bg-glass-card: rgba(15, 34, 56, 0.65);
  --border-glass: rgba(16, 185, 129, 0.18);
  --border-glass-hover: rgba(139, 92, 246, 0.45);
  
  /* Primary Nature Colors */
  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --forest-green: #047857;
  --purple-accent: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.35);
  --golden-yellow: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --orange-accent: #f97316;
  --coral-pink: #ec4899;
  
  /* Text & Neutral Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Gradients */
  --grad-emerald-purple: linear-gradient(135deg, #10b981 0%, #8b5cf6 100%);
  --grad-yellow-pink: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --grad-orange-purple: linear-gradient(135deg, #f97316 0%, #8b5cf6 100%);
  --grad-white-emerald: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
  --grad-emerald-gold: linear-gradient(135deg, #10b981 0%, #f59e0b 100%);
  
  /* Typography & Layout */
  --ff-display: 'Poppins', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --ff-code: 'Fira Code', monospace;
  
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 10px 30px -10px rgba(16, 185, 129, 0.4);
  --shadow-purple: 0 10px 30px -10px rgba(139, 92, 246, 0.4);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1280px;
}

/* Light Theme Variables */
body.light-theme {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-glass: rgba(16, 185, 129, 0.05);
  --bg-glass-card: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(16, 185, 129, 0.25);
  --border-glass-hover: rgba(139, 92, 246, 0.5);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --shadow-glow: 0 10px 25px -5px rgba(16, 185, 129, 0.25);
  --shadow-purple: 0 10px 25px -5px rgba(139, 92, 246, 0.25);
}

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

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--ff-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--emerald-primary);
  color: #000;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--grad-emerald-purple);
  border-radius: var(--radius-full);
}

/* ===================================================================
   BACKGROUND 3D CANVAS & PARTICLES
=================================================================== */
#canvas-3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  contain: strict;
}

/* Scroll progress indicator */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-emerald-purple);
  z-index: 10000;
  box-shadow: 0 0 12px var(--emerald-primary);
  transition: width 0.1s ease-out;
}

/* ===================================================================
   STAR PARTICLES (used by Theme Easter Egg)
=================================================================== */
.star-particle {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  font-size: 10px;
  color: var(--golden-yellow);
  user-select: none;
  animation: star-fade 0.8s ease-out forwards;
}

@keyframes star-fade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(0.2) rotate(180deg);
  }
}

@media (max-width: 900px) {
  .star-particle {
    display: none !important;
  }
}

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

/* ===================================================================
   GLASSMORPHISM & BADGES SYSTEM
=================================================================== */
.glass {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}

.glass:hover {
  border-color: var(--border-glass-hover);
}

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

.text-gradient-gold {
  background: var(--grad-yellow-pink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-code);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald-primary);
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--grad-emerald-purple);
  border-radius: 2px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 660px;
  margin-bottom: 48px;
}

/* ===================================================================
   NAVBAR
=================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(6, 13, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}
body.light-theme .navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-logo img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}

.brand-logo:hover img {
  transform: rotate(30deg) scale(1.1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-glass);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.cmd-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--ff-code);
  transition: all 0.3s ease;
}

.cmd-trigger-btn:hover {
  border-color: var(--purple-accent);
  color: var(--text-main);
  transform: translateY(-2px);
}

.cmd-trigger-btn kbd {
  background: var(--bg-main);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--emerald-primary);
  border: 1px solid var(--border-glass);
}

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

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 960px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 320px);
    height: 100vh;
    background: var(--bg-surface);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-smooth);
    border-left: 1px solid var(--border-glass);
    border-radius: 0;
  }
  .nav-menu.active {
    transform: translateX(0);
  }
  .hamburger {
    display: flex;
  }
  .cmd-trigger-btn span {
    display: none;
  }
}

/* ===================================================================
   BUTTONS
=================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--ff-display);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-emerald-purple);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px -8px rgba(16, 185, 129, 0.6);
}

.btn-gold {
  background: var(--grad-yellow-pink);
  color: #ffffff;
  box-shadow: var(--shadow-purple);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px -8px rgba(245, 158, 11, 0.6);
}

.btn-outline {
  background: var(--bg-glass);
  border-color: var(--border-glass);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

/* ===================================================================
   HERO SECTION
=================================================================== */
.hero-section {
  min-height: auto;
  padding-top: 84px;
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.time-greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-code);
  font-size: 0.85rem;
  color: var(--golden-yellow);
  margin-bottom: 8px;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  font-size: 0.85rem;
  color: var(--emerald-primary);
  font-weight: 500;
  margin-bottom: 24px;
}
.availability-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 12px var(--emerald-primary);
  animation: pulse-dot-anim 1.8s infinite;
}

@keyframes pulse-dot-anim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-name {
  font-size: clamp(3rem, 6.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero-role-wrapper {
  font-family: var(--ff-display);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 600;
  color: var(--purple-accent);
  min-height: 2.2em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.typed-cursor {
  color: var(--golden-yellow);
  animation: blink-cursor 0.8s infinite;
}

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

.hero-bio {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 36px;
}

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

.social-links-row {
  display: flex;
  gap: 14px;
}

.social-icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon-btn:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* Profile Photo & Orbiting Tech Rings */
.profile-visual-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-orb-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(139, 92, 246, 0.25) 50%, transparent 70%);
  filter: blur(40px);
  animation: orb-pulse 6s ease-in-out infinite alternate;
}

@keyframes orb-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0.9; }
}

.profile-glass-frame {
  position: relative;
  width: 320px;
  height: 380px;
  border-radius: 28px;
  padding: 12px;
  background: var(--bg-glass-card);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-glass-card), var(--bg-glass-card)), var(--grad-emerald-purple);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-smooth);
}

.profile-glass-frame:hover {
  transform: translateY(-10px) rotateX(4deg) rotateY(-4deg);
}

.profile-image-inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

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

.profile-glass-frame:hover .profile-image-inner img {
  transform: scale(1.06);
}

.profile-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}

/* Orbit Tech Floating Icons */
.orbit-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px stroke rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  pointer-events: none;
  animation: spin-orbit 35s linear infinite;
}

@keyframes spin-orbit {
  100% { transform: rotate(360deg); }
}

.orbit-tech-icon {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.orbit-tech-icon:hover {
  transform: scale(1.25);
  border-color: var(--golden-yellow);
  color: var(--golden-yellow);
}

.orbit-pos-1 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.orbit-pos-2 { top: 25%; right: 0; transform: translate(50%, -50%); }
.orbit-pos-3 { bottom: 25%; right: 0; transform: translate(50%, 50%); }
.orbit-pos-4 { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.orbit-pos-5 { bottom: 25%; left: 0; transform: translate(-50%, 50%); }
.orbit-pos-6 { top: 25%; left: 0; transform: translate(-50%, -50%); }

@media (max-width: 990px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .hero-bio {
    margin: 0 auto 36px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .social-links-row {
    justify-content: center;
  }
  .profile-glass-frame {
    width: 280px;
    height: 330px;
  }
}

/* ===================================================================
   ABOUT SECTION & QUICK FACTS
=================================================================== */
.about-section {
  padding: 56px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.quick-facts-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
}
.fact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-label {
  color: var(--text-muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fact-value {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

/* Timeline Components */
.timeline-vertical {
  position: relative;
  margin-top: 32px;
  padding-left: 28px;
  border-left: 2px dashed var(--border-glass);
}

.timeline-step {
  position: relative;
  margin-bottom: 32px;
}
.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-dot-node {
  position: absolute;
  left: -37px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--emerald-primary);
  box-shadow: 0 0 10px var(--emerald-primary);
}

.timeline-step.active .timeline-dot-node {
  border-color: var(--golden-yellow);
  box-shadow: 0 0 12px var(--golden-yellow);
  background: var(--golden-yellow);
}

.timeline-content-card {
  padding: 24px;
}

.timeline-tag-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  font-size: 0.78rem;
  font-family: var(--ff-code);
  color: var(--emerald-primary);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-org-name {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

@media (max-width: 850px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   SKILLS SECTION & CIRCULAR PROGRESS
=================================================================== */
.skills-section {
  padding: 56px 0;
  background: var(--bg-surface);
}

.skills-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: center;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--grad-emerald-purple);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.skills-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.skill-card-item {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.skill-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--emerald-primary);
  flex-shrink: 0;
}

.skill-info {
  flex: 1;
}

.skill-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skill-title {
  font-weight: 700;
  font-size: 1rem;
}

.skill-level-badge {
  font-size: 0.75rem;
  font-family: var(--ff-code);
  color: var(--golden-yellow);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-main);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--grad-emerald-purple);
  border-radius: 4px;
  width: 0%;
  transition: width 1.2s var(--ease-smooth);
}

/* ===================================================================
   DOCKER LEARNING SPECIAL SECTION
=================================================================== */
.docker-special-card {
  padding: 40px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 2px solid var(--border-glass);
  position: relative;
  overflow: hidden;
  margin-top: 48px;
}

.docker-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.docker-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.docker-logo-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #0db7ed;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(13, 183, 237, 0.4);
}

.docker-learning-badge {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(13, 183, 237, 0.15);
  border: 1px solid rgba(13, 183, 237, 0.4);
  color: #0db7ed;
  font-family: var(--ff-code);
  font-size: 0.85rem;
  font-weight: 600;
}

.docker-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.docker-topic-chip {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
}

.docker-topic-chip i {
  color: var(--emerald-primary);
}

/* ===================================================================
   PROJECTS PAGE & 3D FLIP CARDS
=================================================================== */
.projects-section {
  padding: 130px 0 40px;
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-input-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--emerald-primary);
  box-shadow: var(--shadow-glow);
}

.filter-select {
  padding: 14px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.filter-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

/* 3D Flip Card Component */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.flip-card {
  height: 420px;
  perspective: 1000px;
  background: transparent;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease-smooth);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner,
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flip-card-front {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
}

.flip-card-back {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--emerald-primary);
  transform: rotateY(180deg);
  box-shadow: var(--shadow-glow);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--emerald-primary);
}

.project-featured-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--golden-yellow);
  font-size: 0.75rem;
  font-family: var(--ff-code);
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 8px;
}

.project-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tech-pill {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  font-size: 0.75rem;
  font-family: var(--ff-code);
  color: var(--emerald-primary);
}

.project-links-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ===================================================================
   CERTIFICATES PAGE & GALLERY / TIMELINE
=================================================================== */
.certs-section {
  padding: 130px 0 40px;
}

.view-toggle-bar {
  display: flex;
  gap: 8px;
  background: var(--bg-glass-card);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.view-toggle-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-toggle-btn.active {
  background: var(--emerald-primary);
  color: #000000;
  font-weight: 600;
}

.certs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.cert-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.cert-card:hover {
  transform: translateY(-8px);
  border-color: var(--purple-accent);
  box-shadow: var(--shadow-purple);
}

.cert-badge-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.cert-org-name {
  color: var(--emerald-primary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--ff-code);
  margin-bottom: 6px;
}

.cert-title-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cert-date-text {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 16px;
}

/* Lightbox Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 23, 0.88);
  backdrop-filter: blur(20px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 100%;
  max-width: 760px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-smooth);
}
.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ===================================================================
   AI ASSISTANT CHATBOT WIDGET
=================================================================== */
.ai-chatbot-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
}

.ai-trigger-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-emerald-purple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-glow), 0 0 25px var(--purple-accent);
  transition: transform 0.3s var(--ease-smooth);
  position: relative;
}

.ai-trigger-btn:hover {
  transform: scale(1.1) rotate(10deg);
}

.ai-pulse-ring {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--emerald-primary);
  border-radius: 50%;
  animation: pulse-ring-anim 2s infinite;
}

@keyframes pulse-ring-anim {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.chat-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: min(380px, 90vw);
  height: 540px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-hover);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-smooth);
}

.chat-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  padding: 18px 24px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.chat-header-info i {
  color: var(--emerald-primary);
  font-size: 1.3rem;
}

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

.chat-msg {
  max-width: 85%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--grad-emerald-purple);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 20px;
  background: var(--bg-glass);
}

.chip-prompt {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--emerald-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-prompt:hover {
  background: var(--emerald-primary);
  color: #000;
}

.chat-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

/* ===================================================================
   COMMAND PALETTE (CTRL + K)
=================================================================== */
.cmd-palette-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 23, 0.85);
  backdrop-filter: blur(16px);
  z-index: 100001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cmd-palette-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-box {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-hover);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(-20px);
  transition: transform 0.25s var(--ease-smooth);
}
.cmd-palette-modal.active .cmd-palette-box {
  transform: translateY(0);
}

.cmd-input-row {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-glass);
  gap: 14px;
}

.cmd-input-row i {
  color: var(--emerald-primary);
  font-size: 1.2rem;
}

.cmd-search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  outline: none;
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px 0;
}

.cmd-item {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cmd-item:hover, .cmd-item.selected {
  background: var(--bg-surface-elevated);
  color: var(--emerald-primary);
}

/* ===================================================================
   TOAST NOTIFICATIONS
=================================================================== */
#toast-container {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 100002;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  padding: 14px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: toast-in 0.4s var(--ease-smooth) forwards;
}

@keyframes toast-in {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Floating Audio Toggle */
.audio-toggle-btn {
  position: fixed;
  bottom: 28px;
  right: 100px;
  z-index: 9998;
}

/* Back to top button */
.back-top-btn {
  position: fixed;
  bottom: 28px;
  right: 160px;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.back-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Footer */
footer {
  padding: 60px 0 30px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* ===================================================================
   PREMIUM PORTFOLIO ENHANCEMENTS — 2026 UPDATE
=================================================================== */

/* Certificate Card Direct Links Hover Effects */
.cert-card-anchor {
  transition: transform 0.3s var(--ease-smooth);
}
.cert-card-anchor:hover {
  transform: translateY(-5px);
}
.cert-card-anchor:hover .cert-card {
  border-color: var(--emerald-primary) !important;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15) !important;
}
.cert-card-anchor:active {
  transform: scale(0.98);
}

/* 1. Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth);
}
.page-transition-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* 2. Ripple Click Effect */
.ripple-btn {
  position: relative;
  overflow: hidden;
}
.click-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: click-ripple-animation 0.6s linear;
  pointer-events: none;
}
@keyframes click-ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 3. 3D Tilt Card & Glow */
.featured-project-card {
  position: relative;
  background: var(--bg-glass-card);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background-image: linear-gradient(var(--bg-glass-card), var(--bg-glass-card)), linear-gradient(135deg, var(--emerald-primary) 0%, var(--purple-accent) 50%, var(--golden-yellow) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  padding: 28px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale3d(1, 1, 1);
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.featured-project-card:hover {
  box-shadow: 0 20px 45px rgba(16, 185, 129, 0.25), 0 0 30px rgba(139, 92, 246, 0.15);
  background-image: linear-gradient(var(--bg-glass-card), var(--bg-glass-card)), linear-gradient(135deg, var(--coral-pink) 0%, var(--purple-accent) 30%, var(--golden-yellow) 70%, var(--emerald-primary) 100%);
}

.featured-project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mx, 0px) var(--my, 0px), rgba(255,255,255,0.06), transparent 40%);
  z-index: 3;
  pointer-events: none;
}

.featured-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--emerald-primary), var(--purple-accent), var(--golden-yellow), var(--emerald-primary));
  background-size: 300% 100%;
  z-index: -1;
  animation: borderGlowFlow 8s linear infinite;
  opacity: 0.6;
}

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

/* 4. Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 6. Timeline Styles for Research & AI Projects */
.research-timeline-section {
  padding: 48px 0;
}

.timeline-horizontal {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  padding: 20px 0;
}

.timeline-horizontal::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--emerald-primary), var(--purple-accent), var(--golden-yellow), transparent);
  z-index: 1;
}

.timeline-node-item {
  display: flex;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.timeline-node-bullet {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--emerald-primary);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  transition: all 0.3s ease;
}

.timeline-node-item:hover .timeline-node-bullet {
  color: var(--golden-yellow);
  border-color: var(--golden-yellow);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
  transform: scale(1.1);
}

.timeline-node-card {
  flex: 1;
  padding: 28px;
  background: var(--bg-glass-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.timeline-node-card:hover {
  transform: translateX(8px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-purple);
}

/* 7. Premium Project Dialog Overlay & Box */
.premium-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 23, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth);
}

.premium-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.premium-modal-box {
  width: 100%;
  max-width: 1000px;
  height: auto;
  max-height: 85vh;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease-smooth);
}

.premium-modal-overlay.active .premium-modal-box {
  transform: scale(1) translateY(0);
}

.premium-modal-header {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.premium-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.premium-modal-close:hover {
  transform: rotate(90deg);
  color: var(--coral-pink);
  border-color: var(--coral-pink);
}

.premium-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 36px;
}

@media (max-width: 768px) {
  .premium-modal-body {
    grid-template-columns: 1fr;
  }
}

.premium-modal-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-project-img {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.modal-project-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-stat-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.modal-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-stat-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--emerald-primary);
  margin-top: 4px;
}

/* Modal Tabs Navigation */
.modal-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.modal-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
}

.modal-tab-btn.active {
  color: var(--text-main);
  background: var(--grad-emerald-purple);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.modal-tab-content {
  display: none;
  animation: modalFadeIn 0.3s ease;
  line-height: 1.7;
}

.modal-tab-content.active {
  display: block;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-bullets-list {
  padding-left: 20px;
  margin-top: 10px;
}

.modal-bullets-list li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.modal-bullets-list li strong {
  color: var(--text-main);
}

/* 8. Certificate Card Enhancements */
.cert-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s var(--ease-smooth);
}

.cert-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-glass);
  background: #02060d;
}

.cert-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.cert-card:hover .cert-image-container img {
  transform: scale(1.08);
}

.cert-card-body {
  padding: 24px;
  flex: 1;
}

.cert-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.cert-skill-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Character animation delays */
.char-fade {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px) rotate(3deg);
  animation: charFadeIn 0.5s var(--ease-smooth) forwards;
}

@keyframes charFadeIn {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ===================================================================
   EXTENSIONS: CENTERED HERO, SOLAR SYSTEM & PREMIUM ADDITIONS
   =================================================================== */

/* Theme override: default clean white background with premium gradients in light theme */
body.light-theme {
  --bg-main: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.02) 0%, transparent 50%) !important;
  background-attachment: fixed;
}

/* Centered Hero Layout */
.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-centered .profile-visual-container {
  margin-bottom: 28px;
  width: 100%;
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Circular Profile glass frame */
.hero-centered .profile-glass-frame {
  position: relative;
  width: 230px;
  height: 230px;
  border-radius: 50% !important;
  padding: 6px;
  background: var(--bg-glass-card);
  border: none;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35), 0 0 35px var(--emerald-glow);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-smooth);
}

.hero-centered .profile-glass-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--emerald-primary), var(--purple-accent), var(--coral-pink), var(--golden-yellow));
  z-index: -1;
  animation: borderRotate 8s linear infinite;
  opacity: 0.9;
}

@keyframes borderRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-centered .profile-glass-frame:hover {
  transform: scale(1.08) rotateY(-8deg) rotateX(8deg);
}

.hero-centered .profile-image-inner {
  width: 100%;
  height: 100%;
  border-radius: 50% !important;
  overflow: hidden;
  position: relative;
}

.hero-centered .profile-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-centered .profile-glass-frame:hover .profile-image-inner img {
  transform: scale(1.08);
}

/* Solar System Orbiting Icons */
#solar-system-container {
  position: absolute;
  width: 0;
  height: 0;
  left: 50%;
  top: 50%;
  z-index: 10;
  pointer-events: none;
}

.solar-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
}

.solar-icon:hover {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 15px var(--glow-color);
  transform: scale(1.3) !important;
}

/* Circular Progress Indicators (Skills) */
.skills-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.skill-card-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-card-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

.circular-progress-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin-right: 18px;
  flex-shrink: 0;
}

.circular-progress {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-progress circle {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}

.circular-progress .bg-circle {
  stroke: rgba(255, 255, 255, 0.06);
}
body.light-theme .circular-progress .bg-circle {
  stroke: rgba(0, 0, 0, 0.05);
}

.circular-progress .fg-circle {
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.8s var(--ease-smooth);
}

.progress-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-code);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.skill-detail-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skill-title-name {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.skill-level-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Learning & Future Goals split cards */
.learning-goals-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.learning-item-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.learning-item-card:hover {
  transform: translateX(5px);
  border-color: var(--border-glass-hover);
}

.goal-card {
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s ease, box-shadow 0.3s ease;
}

.goal-card:hover {
  transform: scale(1.06);
  border-color: var(--golden-yellow);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

/* Modal tab styles override */
.modal-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.modal-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.3s ease;
}

.modal-tab-btn.active {
  color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.1);
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.premium-modal-overlay {
  backdrop-filter: blur(15px) !important;
  background: rgba(4, 9, 17, 0.7) !important;
}

body.light-theme .premium-modal-overlay {
  background: rgba(255, 255, 255, 0.6) !important;
}

/* Ensure subpages have ample top padding so top action buttons never collide with fixed navbar */
.projects-section,
.certs-section {
  padding-top: 130px !important;
}

@media (max-width: 768px) {
  .projects-section,
  .certs-section {
    padding-top: 140px !important;
  }
}

