/* ==========================================================================
   Shibaprasad Jena Portfolio - Main Stylesheet
   Modern Cyber-DevOps & Glassmorphism Theme
   ========================================================================== */

:root {
  /* Color Palette - Cyber Dark (Default) */
  --bg-primary: #070b14;
  --bg-secondary: #0d1424;
  --bg-tertiary: #131e36;
  --bg-card: rgba(19, 30, 54, 0.7);
  --bg-card-hover: rgba(28, 44, 78, 0.85);
  --bg-glass: rgba(13, 20, 36, 0.8);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.3);
  --border-hover: rgba(0, 240, 255, 0.5);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #00f0ff;

  --accent-cyan: #00f0ff;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-youtube: #ff0033;

  --gradient-cyber: linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #8b5cf6 100%);
  --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  --gradient-youtube: linear-gradient(135deg, #ff0033 0%, #cc0000 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 35px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-glow-red: 0 0 25px rgba(255, 0, 51, 0.3);

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  --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);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --container-max: 1240px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(0, 150, 255, 0.25);
  --border-hover: rgba(0, 150, 255, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: #0284c7;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 85px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

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

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

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

code, pre {
  font-family: var(--font-mono);
}

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

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
  backdrop-filter: blur(4px);
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.3);
}

.badge-red {
  background: rgba(255, 0, 51, 0.1);
  color: var(--accent-youtube);
  border-color: rgba(255, 0, 51, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--gradient-cyber);
  color: #070b14;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.45);
  color: #000;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: blur(8px);
}

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

.btn-youtube {
  background: var(--gradient-youtube);
  color: #ffffff;
  box-shadow: var(--shadow-glow-red);
}

.btn-youtube:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 0, 51, 0.5);
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.95);
  box-shadow: var(--shadow-md);
  height: 64px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-cyber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070b14;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-glow);
}

.brand-text {
  letter-spacing: -0.02em;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: 130px;
  padding-bottom: 70px;
  position: relative;
  overflow: hidden;
}

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

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

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

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

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.8rem;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2rem;
  background-color: var(--accent-cyan);
  animation: blink 1s step-end infinite;
}

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

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.chip svg {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Interactive Hero Terminal
   ========================================================================== */
.terminal-window {
  background: #080d19;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 240, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  background: #0f172a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 0.45rem;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.terminal-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  height: 320px;
  overflow-y: auto;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.term-line {
  line-height: 1.5;
  word-break: break-all;
}

.term-prompt {
  color: var(--accent-cyan);
  font-weight: 600;
}

.term-cmd {
  color: #ffffff;
}

.term-output {
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

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

.term-warn {
  color: var(--accent-amber);
}

.term-info {
  color: var(--accent-blue);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

.terminal-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: #0b1120;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
}

.term-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.term-action-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Metrics Bar
   ========================================================================== */
.metrics-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(13, 20, 36, 0.4);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  position: relative;
}

.metric-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-color);
}

.metric-value {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

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

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.section-title {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   YouTube Video Hub (@chiku_codes)
   ========================================================================== */
.youtube-section {
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.4) 0%, rgba(7, 11, 20, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

.youtube-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 0, 51, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 0, 51, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-md), 0 0 25px rgba(255, 0, 51, 0.08);
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
}

.channel-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.channel-avatar-wrapper {
  position: relative;
}

.channel-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--accent-youtube);
  object-fit: cover;
  box-shadow: 0 0 15px rgba(255, 0, 51, 0.35);
}

.channel-live-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-primary);
}

.channel-info h3 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.channel-handle {
  font-family: var(--font-mono);
  color: var(--accent-youtube);
  font-size: 0.9rem;
  font-weight: 600;
}

.channel-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.channel-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sync-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

/* Video Filters & Search */
.video-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.video-tab-btn {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.video-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.video-tab-btn.active {
  background: var(--accent-youtube);
  border-color: var(--accent-youtube);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 0, 51, 0.35);
}

.video-search-box {
  position: relative;
  min-width: 260px;
}

.video-search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}

.video-search-input:focus {
  border-color: var(--accent-youtube);
  box-shadow: 0 0 12px rgba(255, 0, 51, 0.25);
}

.video-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 15px;
  height: 15px;
}

/* Video Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 0, 51, 0.4);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(255, 0, 51, 0.15);
}

.video-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.video-card:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.video-card:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.play-button-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gradient-youtube);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.5);
  transition: transform var(--transition-fast);
}

.video-card:hover .play-button-icon {
  transform: scale(1.15);
}

.video-tag-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-tag-channel {
  background: rgba(255, 0, 51, 0.85);
  border-color: rgba(255, 0, 51, 0.4);
}

.video-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.video-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.video-meta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-play-link {
  color: var(--accent-youtube);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Video Player Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
}

.modal-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-video-title {
  font-size: 1.35rem;
  line-height: 1.3;
}

.modal-video-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-video-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  white-space: pre-line;
  line-height: 1.6;
  max-height: 160px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   CI/CD Pipeline Architecture Visualizer
   ========================================================================== */
.pipeline-visualizer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.pipeline-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
}

.pipeline-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.pipeline-step:hover {
  background: rgba(0, 240, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.3);
}

.pipeline-step.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.pipeline-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.pipeline-step.active .pipeline-step-num {
  background: var(--accent-cyan);
  color: #000;
}

.pipeline-step-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pipeline-step-tools {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.pipeline-detail-box {
  background: #080d1a;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  max-width: 100%;
  overflow: hidden;
}

.pipeline-info,
.pipeline-code-box {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.pipeline-info h4 {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.pipeline-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  word-break: break-word;
}

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

.pipeline-code-preview {
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #e2e8f0;
  max-width: 100%;
  box-sizing: border-box;
  white-space: pre;
}

/* ==========================================================================
   Skills Matrix
   ========================================================================== */
.skills-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.skill-tab-btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skill-tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.skill-tab-btn.active {
  background: var(--gradient-cyber);
  color: #070b14;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--transition-normal);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), 0 0 20px rgba(0, 240, 255, 0.1);
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.skill-level-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.skill-card-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.skill-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.skill-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.25rem;
}

.skill-progress-fill {
  height: 100%;
  background: var(--gradient-cyber);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Professional Experience Timeline
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, var(--border-color) 100%);
}

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

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 240, 255, 0.1);
}

.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: 1.05rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

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

.timeline-bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.timeline-subhead {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 1rem 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   Featured Projects
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-cyber);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 240, 255, 0.12);
}

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

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

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

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.project-metrics {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

/* ==========================================================================
   Live SRE & Telemetry Dashboard
   ========================================================================== */
.sre-dashboard {
  background: #080d1a;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.08);
}

.sre-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.sre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.sre-metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sre-box-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.sre-box-val {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
}

.sre-box-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sre-log-ticker {
  background: #04060c;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 100px;
  overflow-y: hidden;
}

/* ==========================================================================
   Education & Research
   ========================================================================== */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-normal);
}

.edu-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.edu-badge-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.edu-school {
  font-size: 1.25rem;
  font-weight: 700;
}

.edu-degree {
  font-size: 1rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

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

.contact-card-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.contact-card-item:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.contact-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.contact-details h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.contact-details p, .contact-details a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: var(--bg-secondary);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.social-icon-btn.yt:hover {
  background: rgba(255, 0, 51, 0.15);
  border-color: var(--accent-youtube);
  color: var(--accent-youtube);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pipeline-stepper {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.6rem;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
  }
  .pipeline-step {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }
  .pipeline-detail-box {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Global Container & Spacing */
  .container {
    padding: 0 1.25rem;
  }
  .section {
    padding: 60px 0;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .section-desc {
    font-size: 0.92rem;
  }

  /* Navigation Bar */
  .navbar {
    height: 64px;
  }
  .nav-container {
    padding: 0 1rem;
  }
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: rgba(7, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
  }

  /* Hero Section */
  .hero {
    padding-top: 90px;
    padding-bottom: 40px;
  }
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
    line-height: 1.15;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    min-height: 2.4rem;
    line-height: 1.35;
  }
  .hero-bio {
    font-size: 0.92rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-buttons .btn {
    width: 100%;
  }

  /* Terminal Window */
  .terminal-window {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
  }
  .terminal-body {
    height: 260px;
    font-size: 0.78rem;
    padding: 0.85rem;
  }
  .terminal-quick-actions {
    padding: 0.5rem 0.75rem;
    gap: 0.35rem;
  }

  /* Metrics Grid */
  .metrics-section {
    padding: 1.5rem 0;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .metric-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.85rem 0.5rem;
  }
  .metric-card:not(:last-child)::after {
    display: none;
  }
  .metric-value {
    font-size: 1.75rem;
  }
  .metric-label {
    font-size: 0.75rem;
  }

  /* YouTube Channel Card (Fix for Image 2) */
  .channel-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }
  .channel-profile {
    align-items: center;
    gap: 1rem;
  }
  .channel-avatar {
    width: 58px;
    height: 58px;
  }
  .channel-info h3 {
    font-size: 1.2rem;
  }
  .channel-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }
  .channel-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .sync-status-indicator {
    justify-content: center;
    text-align: center;
    margin-bottom: 0.25rem;
  }

  /* Video Filter Controls (Fix for Image 2) */
  .video-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .video-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
    scrollbar-width: none;
  }
  .video-tabs::-webkit-scrollbar {
    display: none;
  }
  .video-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }
  .video-search-box {
    width: 100%;
    min-width: 100%;
  }

  /* Video Cards Grid */
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* CI/CD Pipeline Visualizer (Fix for Image 1) */
  .pipeline-visualizer {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  .pipeline-stepper {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.6rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    scrollbar-width: thin;
  }
  .pipeline-step {
    flex: 0 0 135px;
    scroll-snap-align: start;
    padding: 0.75rem 0.5rem;
  }
  .pipeline-step-title {
    font-size: 0.78rem;
  }
  .pipeline-step-tools {
    font-size: 0.68rem;
  }
  .pipeline-detail-box {
    grid-template-columns: 1fr;
    padding: 1rem 0.75rem;
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
  }
  .pipeline-info h4 {
    font-size: 1.1rem;
  }
  .pipeline-code-box {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .pipeline-code-preview {
    font-size: 0.74rem;
    padding: 0.75rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    white-space: pre;
  }

  /* Skills Matrix */
  .skills-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
    gap: 0.5rem;
  }
  .skills-tabs::-webkit-scrollbar {
    display: none;
  }
  .skill-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .skill-card {
    padding: 1.15rem 1rem;
  }

  /* Timeline Section */
  .timeline::before {
    left: 12px;
  }
  .timeline-marker {
    left: 4px;
    width: 18px;
    height: 18px;
    top: 2px;
  }
  .timeline-item {
    padding-left: 36px;
    margin-bottom: 2rem;
  }
  .timeline-card {
    padding: 1.25rem 1rem;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .timeline-role {
    font-size: 1.15rem;
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .project-card {
    padding: 1.25rem 1rem;
  }

  /* SRE Dashboard */
  .sre-dashboard {
    padding: 1rem;
  }
  .sre-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .sre-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .sre-log-ticker {
    font-size: 0.72rem;
    padding: 0.6rem 0.75rem;
  }

  /* Education */
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .edu-card {
    padding: 1.25rem 1rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-form {
    padding: 1.5rem 1rem;
  }

  /* Modals */
  .modal-backdrop {
    padding: 0.75rem;
  }
  .modal-content {
    max-height: 94vh;
    border-radius: var(--radius-md);
  }
  .modal-header {
    padding: 0.75rem 1rem;
  }
  .modal-body {
    padding: 1rem 0.75rem;
  }
  .modal-actions {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .modal-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding: 2rem 0;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  /* Ultra-compact header for narrow phones */
  .nav-container {
    padding: 0 0.5rem;
  }
  .brand-text {
    font-size: 1rem;
  }
  .brand-logo {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }
  .btn-open-resume span {
    display: none;
  }
  .btn-open-resume {
    padding: 0.45rem;
    width: 36px;
    height: 36px;
  }
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }
  .mobile-toggle {
    width: 36px;
    height: 36px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .hero-chips {
    gap: 0.4rem;
  }
  .chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
  }
}
