/* CSS Design System for Rahul Ramesh M V's Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #050811;
  --bg-secondary: #0b111e;
  --bg-tertiary: #111a2e;
  --card-bg: rgba(15, 23, 42, 0.5);
  --card-bg-hover: rgba(30, 41, 59, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.16);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand/Accents */
  --color-cyan: #06b6d4;
  --color-indigo: #6366f1;
  --color-violet: #8b5cf6;
  --color-amber: #f59e0b;
  
  --gradient-brand: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #8b5cf6 100%);
  --gradient-cyan-blue: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-violet-pink: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-amber-rose: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --gradient-card: linear-gradient(180deg, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0.3) 100%);

  /* Header & UI element backgrounds */
  --header-bg: rgba(5, 8, 17, 0.85);
  --nav-mobile-bg: rgba(5, 8, 17, 0.95);
  --btn-secondary-bg: rgba(255, 255, 255, 0.05);
  --btn-secondary-hover-bg: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(255, 255, 255, 0.03);
  --input-focus-bg: rgba(255, 255, 255, 0.08);
  --timeline-badge-bg: rgba(255, 255, 255, 0.04);
  --tag-bg: rgba(255, 255, 255, 0.05);
  --tag-hover-bg: rgba(255, 255, 255, 0.08);

  /* Spacing & Layout */
  --container-max-width: 1100px;
  --header-height: 80px;
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-bg-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(15, 23, 42, 0.16);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  /* Brand/Accents adjusted for readability on light BG */
  --color-cyan: #0891b2;
  --color-indigo: #4f46e5;
  --color-violet: #7c3aed;
  --color-amber: #d97706;
  
  --gradient-brand: linear-gradient(135deg, #0891b2 0%, #4f46e5 50%, #7c3aed 100%);
  --gradient-cyan-blue: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
  --gradient-violet-pink: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --gradient-amber-rose: linear-gradient(135deg, #d97706 0%, #e11d48 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);

  --header-bg: rgba(248, 250, 252, 0.85);
  --nav-mobile-bg: rgba(248, 250, 252, 0.95);
  --btn-secondary-bg: rgba(15, 23, 42, 0.05);
  --btn-secondary-hover-bg: rgba(15, 23, 42, 0.1);
  --input-bg: rgba(15, 23, 42, 0.03);
  --input-focus-bg: rgba(15, 23, 42, 0.08);
  --timeline-badge-bg: rgba(15, 23, 42, 0.04);
  --tag-bg: rgba(15, 23, 42, 0.05);
  --tag-hover-bg: rgba(15, 23, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-indigo);
}

/* Scroll Progress Bar */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }

    #scroll-progress {
      position: fixed;
      left: 0;
      top: 0;
      width: 100%;
      height: 4px;
      background: var(--gradient-brand);
      transform-origin: 0 50%;
      animation: grow-progress auto linear;
      animation-timeline: scroll();
      z-index: 1000;
    }
  }
}

/* Non-scroll-driven fallback styling for progress bar */
#scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-brand);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1000;
}

/* Scroll Entry animations (View Timeline) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes fade-slide-up {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-on-scroll {
      animation: fade-slide-up auto linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

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

/* Layout Utilities */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section-padding {
  padding: 8rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3.5rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: border-color var(--transition-normal), background var(--transition-normal), transform var(--transition-normal);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover-bg);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: var(--transition-normal);
  background: transparent;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

nav a:hover, nav a.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-greeting {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cyan);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 800;
}

.hero-title span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Visual Systems Widget (Hero Art) */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.systems-canvas {
  width: 380px;
  height: 380px;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 75%);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.2px dotted var(--border-color-hover);
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 120px;
  height: 120px;
  animation: spin 16s linear infinite;
  z-index: 5;
}
.orbit-1 .orbit-node {
  animation: counter-spin 16s linear infinite;
  top: 0;
  left: 50%;
}

.orbit-2 {
  width: 180px;
  height: 180px;
  animation: spin-reverse 22s linear infinite;
  z-index: 4;
}
.orbit-2 .orbit-node {
  animation: spin 22s linear infinite;
  top: 50%;
  left: 100%;
}

.orbit-3 {
  width: 240px;
  height: 240px;
  animation: spin 28s linear infinite;
  z-index: 3;
}
.orbit-3 .orbit-node {
  animation: counter-spin 28s linear infinite;
  top: 100%;
  left: 50%;
}

.orbit-4 {
  width: 300px;
  height: 300px;
  animation: spin-reverse 34s linear infinite;
  z-index: 2;
}
.orbit-4 .orbit-node {
  animation: spin 34s linear infinite;
  top: 50%;
  left: 0;
}

.orbit-5 {
  width: 360px;
  height: 360px;
  animation: spin 40s linear infinite;
  z-index: 1;
}
.orbit-5 .orbit-node {
  animation: counter-spin 40s linear infinite;
  top: 14.6%;
  left: 85.4%;
}

.orbit-node {
  position: absolute;
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

/* Orbit Nodes colors and glows */
.orbit-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.orbit-node:hover .orbit-dot {
  transform: scale(1.35);
}

.node-cyan .orbit-dot {
  background: var(--color-cyan);
  box-shadow: 0 0 12px var(--color-cyan);
}
.node-cyan:hover .orbit-dot {
  box-shadow: 0 0 20px var(--color-cyan);
}

.node-indigo .orbit-dot {
  background: var(--color-indigo);
  box-shadow: 0 0 12px var(--color-indigo);
}
.node-indigo:hover .orbit-dot {
  box-shadow: 0 0 20px var(--color-indigo);
}

.node-violet .orbit-dot {
  background: var(--color-violet);
  box-shadow: 0 0 12px var(--color-violet);
}
.node-violet:hover .orbit-dot {
  box-shadow: 0 0 20px var(--color-violet);
}

.node-amber .orbit-dot {
  background: var(--color-amber);
  box-shadow: 0 0 12px var(--color-amber);
}
.node-amber:hover .orbit-dot {
  box-shadow: 0 0 20px var(--color-amber);
}

.node-rose .orbit-dot {
  background: #ec4899;
  box-shadow: 0 0 12px #ec4899;
}
.node-rose:hover .orbit-dot {
  box-shadow: 0 0 20px #ec4899;
}

/* Orbits Pausing via hover or JavaScript */
.orbit:has(.orbit-node:hover),
.orbit:has(.orbit-node:focus-within),
.orbit.paused {
  animation-play-state: paused !important;
}

.orbit:has(.orbit-node:hover) .orbit-node,
.orbit:has(.orbit-node:focus-within) .orbit-node,
.orbit.paused .orbit-node {
  animation-play-state: paused !important;
}

/* Tooltips */
.orbit-tooltip {
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translate(-50%, 10px) scale(0.95);
  width: 240px;
  padding: 1.25rem;
  background: rgba(11, 17, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.02);
  z-index: 100;
  text-align: left;
}

.orbit-tooltip h5 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.orbit-tooltip p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.orbit-node:hover .orbit-tooltip,
.orbit-node:focus-within .orbit-tooltip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

/* Tooltip Border Glows matching sphere themes */
.node-cyan .orbit-tooltip {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(6, 182, 212, 0.1);
}
.node-indigo .orbit-tooltip {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(99, 102, 241, 0.1);
}
.node-violet .orbit-tooltip {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(139, 92, 246, 0.1);
}
.node-amber .orbit-tooltip {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.1);
}
.node-rose .orbit-tooltip {
  border-color: rgba(236, 72, 153, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(236, 72, 153, 0.1);
}

/* Orbit Tooltips Light Theme overrides */
[data-theme="light"] .orbit-tooltip {
  background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .node-cyan .orbit-tooltip {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 15px rgba(6, 182, 212, 0.05);
}
[data-theme="light"] .node-indigo .orbit-tooltip {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 15px rgba(99, 102, 241, 0.05);
}
[data-theme="light"] .node-violet .orbit-tooltip {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 15px rgba(139, 92, 246, 0.05);
}
[data-theme="light"] .node-amber .orbit-tooltip {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 15px rgba(245, 158, 11, 0.05);
}
[data-theme="light"] .node-rose .orbit-tooltip {
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 15px rgba(236, 72, 153, 0.05);
}

/* Core Smiley Node */
.core-node {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid rgba(255, 255, 255, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.2);
  animation: breathe 4s ease-in-out infinite alternate;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.core-node:hover,
.core-node:focus-within {
  border-color: var(--color-cyan);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.5);
  transform: translate(-50%, -50%) scale(1.05);
}

.core-node:hover .core-tooltip,
.core-node:focus-within .core-tooltip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.core-tooltip {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(6, 182, 212, 0.1);
}

/* Instruction Label */
.orbit-instruction {
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  text-align: center;
  animation: pulse-text 2.5s ease-in-out infinite alternate;
}

.instruction-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  display: inline-block;
}

/* Philosophical caption */
.hero-quote-caption {
  margin-top: 1rem;
  max-width: 380px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

/* Keyframe Animations */
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes counter-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes counter-spin-reverse {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes breathe {
  0% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
  }
  100% {
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.45);
  }
}

@keyframes pulse-text {
  0% {
    color: var(--text-muted);
    opacity: 0.7;
  }
  100% {
    color: var(--text-secondary);
    opacity: 1;
  }
}

/* Quick Metrics Section */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: -4rem;
  position: relative;
  z-index: 10;
}

.metric-card {
  padding: 2rem;
  text-align: center;
}

.metric-card h3 {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-cyan-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.metric-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Skills Section Redesign */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (min-width: 576px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.skills-category {
  position: relative;
  padding: 2.5rem 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 16px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
}

.skills-category:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.02);
}

.skills-category h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
  width: 100%;
  margin-top: -0.5rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

/* Skill Chip */
.skill-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              background 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  width: auto;
}

/* Accent Color Glowing chips on hover */
#skill-cat-strategy .skill-chip:hover {
  transform: translateY(-2px);
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--color-cyan);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

#skill-cat-ai .skill-chip:hover {
  transform: translateY(-2px);
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--color-indigo);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

#skill-cat-leadership .skill-chip:hover {
  transform: translateY(-2px);
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--color-violet);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

#skill-cat-practice .skill-chip:hover {
  transform: translateY(-2px);
  background: rgba(236, 72, 153, 0.08);
  border-color: #ec4899;
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.25);
}

/* Floating Tooltip Card */
.skills-tooltip {
  position: absolute;
  z-index: 1000;
  width: 290px;
  padding: 1.25rem;
  background: rgba(11, 17, 30, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.15);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.skills-tooltip.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

[data-theme="light"] .skills-tooltip {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 0 0 25px rgba(79, 70, 229, 0.05);
}

.skills-tooltip h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tooltip-divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 0.75rem;
}

.tooltip-section {
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tooltip-section:last-child {
  margin-bottom: 0;
}

.skills-tooltip.active #tooltip-sec-practice {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.skills-tooltip.active #tooltip-sec-impact {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s; /* 100ms delay after In Practice appears */
}

.tooltip-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-cyan);
  display: block;
  margin-bottom: 0.2rem;
}

#tooltip-sec-impact .tooltip-label {
  color: var(--color-indigo);
}

.tooltip-section p {
  font-family: var(--font-body);
  font-size: 0.825rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}


/* Timeline Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  height: 100%;
  width: 2px;
  background: linear-gradient(180deg, var(--color-cyan) 0%, var(--color-indigo) 50%, var(--color-violet) 100%);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-left: 5rem;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 2rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--color-indigo);
  transform: translateX(-50%);
  z-index: 5;
  transition: var(--transition-normal);
}

.timeline-item:hover .timeline-marker {
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
  transform: translateX(-50%) scale(1.2);
}

.timeline-card {
  padding: 2rem;
  cursor: pointer;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.timeline-role {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-cyan);
  margin-top: 0.25rem;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--timeline-badge-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

.timeline-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.timeline-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) cubic-bezier(0, 1, 0, 1);
  margin-top: 0;
}

.timeline-card.expanded .timeline-details {
  max-height: 1000px;
  transition: max-height var(--transition-slow) cubic-bezier(1, 0, 1, 0);
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.timeline-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-details li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-details li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-indigo);
  font-weight: bold;
}

/* Show details toggle indicator */
.timeline-toggle-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  gap: 0.5rem;
  transition: var(--transition-normal);
}

.timeline-toggle-indicator svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform var(--transition-normal);
}

.timeline-card.expanded .timeline-toggle-indicator {
  color: var(--color-cyan);
}

.timeline-card.expanded .timeline-toggle-indicator svg {
  transform: rotate(180deg);
}

/* Callout Highlights within Timeline */
.highlight-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-amber);
  background: rgba(245, 158, 11, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.25rem;
}

/* Certifications & Education Section */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.credential-category h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.credential-item {
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.credential-item h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.credential-institution {
  color: var(--color-indigo);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.credential-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Behance / Work Showcase Placeholder */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.work-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.work-img-container {
  height: 200px;
  background: var(--bg-tertiary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-img-placeholder {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
  transition: var(--transition-normal);
}

.work-card:hover .work-img-placeholder {
  color: var(--text-primary);
  transform: scale(1.05);
}

.work-img-bg-shape {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--gradient-brand);
  filter: blur(40px);
  opacity: 0.15;
  transition: var(--transition-normal);
}

.work-card:hover .work-img-bg-shape {
  opacity: 0.3;
  transform: scale(1.2);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: var(--transition-normal);
}

.work-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.work-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.work-title {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.work-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.work-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.work-tag {
  font-size: 0.75rem;
  background: var(--tag-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-cyan);
  font-weight: 600;
}

.contact-info-value {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-info-value a:hover {
  color: var(--color-indigo);
}

/* Modern Contact Form */
.contact-form {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.form-input {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-indigo);
  background: var(--input-focus-bg);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

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

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 6px;
  display: none;
}

.form-status.success {
  background: rgba(20, 184, 166, 0.1);
  color: var(--color-cyan);
  border: 1px solid rgba(20, 184, 166, 0.2);
  display: block;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
  background: var(--bg-secondary);
}

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-link {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.social-link:hover {
  color: var(--text-primary);
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .credentials-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 5rem 0;
  }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: none;
    flex-direction: column;
    padding: 3rem 2rem;
    z-index: 99;
    border-top: 1px solid var(--border-color);
  }
  
  nav.active {
    display: flex;
  }
  
  nav ul {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .timeline::before {
    left: 1rem;
  }
  
  .timeline-item {
    padding-left: 2.5rem;
  }
  
  .timeline-marker {
    left: 1rem;
  }
  
  .timeline-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .timeline-date {
    align-self: flex-start;
  }
}

/* Custom Cursor Glow Spotlight */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle 450px at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(99, 102, 241, 0.08) 0%,
    rgba(6, 182, 212, 0.04) 50%,
    transparent 100%
  );
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Password Gate Overlay */
#password-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #050811;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
  opacity: 1;
}

.gate-card {
  max-width: 400px;
  width: 90%;
  padding: 3rem 2rem !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: gate-fade-in 0.3s ease;
}

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

.gate-card.shake {
  animation: gate-shake-anim 0.5s ease;
}

@keyframes gate-shake-anim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--btn-secondary-hover-bg);
  border-color: var(--text-secondary);
  transform: scale(1.05);
}

/* Default: Dark mode - hide moon, show sun */
.theme-toggle-btn .sun-icon {
  display: block;
}
.theme-toggle-btn .moon-icon {
  display: none;
}

/* Light mode overrides - hide sun, show moon */
[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: none;
}
[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: block;
}

/* Smooth transitions for theme colors */
html {
  transition: background-color 0.3s ease, color 0.3s ease;
}
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}
.glass-panel, .timeline-card, .skill-card, .credential-card, .btn-secondary, .form-input, header.scrolled {
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* About Me Section Styling */
/* About Me Section Styling */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: stretch;
  margin-top: 2rem;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: visible; /* Let the cutout pop out of the top/sides */
  border: none;
  box-shadow: none;
  background: transparent;
  cursor: pointer;
}

.about-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: bottom center; /* Keep bottom edge anchored to prevent floating flat edges */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Image cutout popout effect on hover */
.about-image-wrapper:hover .about-profile-image {
  transform: scale(1.1); /* Scale up and out */
}

.about-text-content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center paragraph text vertically alongside image */
  gap: 1.5rem;
}

.about-highlight-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0;
}

.about-sub-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive adjustment for tablet/mobile */
@media (max-width: 868px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    align-items: center;
  }
  .about-image-wrapper {
    max-width: 260px;
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
  }
}

