/*
 * Clean Corporate Scrolling Portfolio Stylesheet
 * Incorporates: Thin top header, collapsible side navigation drawer,
 * scroll-spy active indicators, and alternating structural layouts.
 */

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

:root {
  /* Default Light Theme Custom Variables */
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --primary: #4f46e5;       /* Indigo */
  --secondary: #0d9488;     /* Teal */
  --accent: #6366f1;
  --text-main: #0f172a;     /* Deep Slate */
  --text-muted: #334155;    /* Slate 700 */
  --text-dark: #64748b;     /* Slate 500 */
  --border-color: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(99, 102, 241, 0.3);
  --header-height: 56px;
  --sidebar-width: 240px;
  --sidebar-width-collapsed: 68px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  
  --bg-terminal: #0f172a;
  --bg-diagram: rgba(15, 23, 42, 0.025);
  --grid-color: rgba(15, 23, 42, 0.02);
  --header-bg: rgba(255, 255, 255, 0.85);
  --slide-gradient-bg: rgba(15, 23, 42, 0.9);
  
  --timeline-line: rgba(15, 23, 42, 0.08);
  --card-glow-opacity: 0.02;
  --scrollbar-thumb: rgba(15, 23, 42, 0.12);
  --scrollbar-thumb-hover: rgba(99, 102, 241, 0.4);
}

body.dark-theme {
  /* Dark Theme Custom Variables Override */
  --bg-dark: #07090e;
  --bg-card: rgba(13, 18, 30, 0.45);
  --bg-sidebar: #0b0f19;
  --primary: #6366f1;
  --secondary: #0d9488;
  --accent: #818cf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  --border-color: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(99, 102, 241, 0.2);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  
  --bg-terminal: #05070a;
  --bg-diagram: rgba(0, 0, 0, 0.15);
  --grid-color: rgba(255, 255, 255, 0.012);
  --header-bg: rgba(11, 15, 25, 0.85);
  --slide-gradient-bg: rgba(7, 9, 14, 0.95);
  
  --timeline-line: rgba(255, 255, 255, 0.06);
  --card-glow-opacity: 0.15;
  --scrollbar-thumb: rgba(255, 255, 255, 0.08);
  --scrollbar-thumb-hover: rgba(99, 102, 241, 0.3);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

/* Background grid and spotlight */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

.spotlight-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Glow Elements */
.radial-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: -3;
  filter: blur(120px);
  opacity: 0.12;
}
.glow-left {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
}
.glow-right {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 60%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* Button systems */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-main);
  border-color: var(--border-color);
}
body.dark-theme .btn-secondary {
  background: rgba(255, 255, 255, 0.03);
}
.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: var(--border-hover);
}
body.dark-theme .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* 1. Thin Sticky Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: background var(--transition);
}
.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
}
.logo-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}
.logo-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 2. Collapsible Navigation Sidebar Drawer */
.sidebar-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  height: calc(100vh - var(--header-height));
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  z-index: 990;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 0.8rem;
  transition: transform var(--transition), width var(--transition);
}

/* Class to collapse sidebar */
.sidebar-drawer.collapsed {
  width: var(--sidebar-width-collapsed);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}
.nav-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}
.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}
.nav-link.active {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

/* Collapse text on sidebar collapse */
.sidebar-drawer.collapsed .nav-link-text,
.sidebar-drawer.collapsed .drawer-profile-details {
  display: none;
}
.sidebar-drawer.collapsed .drawer-profile {
  padding: 0.2rem;
  border-top: none;
}
.sidebar-drawer.collapsed .drawer-avatar {
  margin: 0 auto;
}

/* Drawer Profile Card bottom info */
.drawer-profile {
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.drawer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.drawer-profile-details {
  display: flex;
  flex-direction: column;
}
.profile-sig {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}
.profile-sub {
  font-size: 0.72rem;
  color: var(--text-dark);
}

/* 3. Main Scrolling Content Layout */
.main-wrapper {
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
}

.body-collapsed .main-wrapper {
  margin-left: var(--sidebar-width-collapsed);
}

.content-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  flex-grow: 1;
}

/* Base Panel Styles */
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Section Headings */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

/* Section 1: Overview / About */
.overview-panel {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}
.overview-bio {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.overview-heading {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.25;
}
.overview-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.overview-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.metrics-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: border-color var(--transition);
}
.metrics-card:hover {
  border-color: var(--border-hover);
}
.metrics-number {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}
.metrics-label {
  color: var(--text-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

/* Live server log subcard */
.server-logs-container {
  margin-top: 1.5rem;
}
.logs-console-box {
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #38bdf8;
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Section 2: Alternating Projects Layout (Corporate SaaS Style) */
.projects-list-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}
.project-showcase-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
/* Alternating reverse class */
.project-showcase-row.row-reverse {
  grid-template-columns: 1fr 1.2fr;
}
.project-showcase-row.row-reverse .proj-copy-side {
  grid-column: 2;
}
.project-showcase-row.row-reverse .proj-diagram-side {
  grid-column: 1;
  grid-row: 1;
}

.proj-copy-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.proj-tagline-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.proj-name {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.proj-status-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.status-prod {
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.15);
  color: var(--secondary);
}
.status-tool {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.status-cli {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--accent);
}
.proj-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.proj-bullets li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.proj-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}
.proj-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tech-badge {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}
.proj-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.proj-diagram-side {
  display: flex;
  justify-content: center;
}
.diagram-frame {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
}
.diagram-heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.diagram-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}
.diagram-node {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  width: 90%;
  text-align: center;
  font-family: var(--font-title);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  transition: border-color var(--transition);
}
.diagram-node:hover {
  border-color: var(--border-hover);
}
.diagram-node.active-node {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
}
.diagram-connector {
  color: var(--text-dark);
  font-size: 0.75rem;
}

/* Section 3: Capabilities */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.skills-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.skill-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.skill-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
}
.skill-title {
  color: var(--text-main);
}
.skill-percent {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.skill-outer-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.01);
}
.skill-inner-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 99px;
  width: 0; /* Animated dynamically when scrolled into view */
  transition: width 1.2s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.capabilities-creds {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.cred-card-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
}
.cred-card-icon {
  font-size: 1.4rem;
  color: var(--secondary);
}
.cred-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cred-card-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
}
.cred-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Section 4: Resource Space */
.resource-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.document-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}
.document-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-hover);
}
.document-meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.document-icon {
  font-size: 1.2rem;
  color: var(--accent);
}
.document-info {
  display: flex;
  flex-direction: column;
}
.document-title {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 600;
}
.document-desc {
  font-size: 0.75rem;
  color: var(--text-dark);
}
.document-link {
  font-size: 0.85rem;
  color: var(--text-dark);
  transition: color var(--transition);
}
.document-card:hover .document-link {
  color: var(--accent);
}

.media-console-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.media-display-screen {
  background: #05070a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.media-display-screen iframe, .media-display-screen video {
  width: 100%;
  height: 100%;
  border: none;
}
.media-screen-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-dark);
  font-size: 0.8rem;
  gap: 0.5rem;
}
.media-screen-placeholder i {
  font-size: 1.8rem;
  color: var(--text-dark);
}
.media-playlist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 140px;
  overflow-y: auto;
}
.media-playlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.008);
  border: 1px solid rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.media-playlist-item:hover, .media-playlist-item.active {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-hover);
}
.media-item-title-text {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 500;
}
.media-item-duration-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dark);
}

/* Section 5: Contact Connection Console */
.contact-section-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
}
.form-side form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-field-label {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-field-input, .form-field-textarea {
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition);
}
.form-field-input:focus, .form-field-textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.05);
}
.form-field-textarea {
  resize: vertical;
  min-height: 100px;
}
.form-submit-btn {
  align-self: flex-start;
  padding: 0.65rem 1.5rem;
}

.logger-side {
  display: flex;
  flex-direction: column;
}
.api-log-stream {
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #38bdf8;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
}
.api-log-row {
  display: flex;
  gap: 0.5rem;
}
.api-log-tag {
  color: var(--text-dark);
}
.api-log-success {
  color: var(--secondary);
}
.api-log-error {
  color: #ef4444;
}

/* 4. Detailed Corporate Footer */
.site-footer {
  background: #0b0f19;
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
  margin-top: auto;
}
.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-brand-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 400px;
}
.footer-badge {
  margin-top: 0.75rem;
  display: flex;
}
.footer-badge a {
  display: inline-block;
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.footer-badge a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.footer-badge img {
  display: block;
  max-width: 100%;
  height: auto;
}
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-end;
}
.footer-contacts-list {
  list-style: none;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}
.footer-contacts-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}
.footer-contacts-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-contacts-list a:hover {
  color: var(--accent);
}
.footer-bottom {
  max-width: 1000px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dark);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .sidebar-drawer {
    transform: translateX(-100%);
  }
  .sidebar-drawer.drawer-open {
    transform: translateX(0);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
  }
  .main-wrapper {
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  .overview-panel {
    grid-template-columns: 1fr;
  }
  .project-showcase-row {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .project-showcase-row.row-reverse .proj-copy-side {
    grid-column: 1;
  }
  .project-showcase-row.row-reverse .proj-diagram-side {
    grid-column: 1;
    grid-row: auto;
  }
  .diagram-frame {
    max-width: 1000px;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .capabilities-creds {
    grid-template-columns: 1fr;
  }
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .contact-section-row {
    grid-template-columns: 1fr;
  }
  .form-input-row {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-right {
    align-items: flex-start;
  }
  .footer-contacts-list {
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
}

/* Executive Project Slideshow Showcase */
.showcase-slider {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  background: #000;
}

.showcase-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04) translateX(25px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.8s;
  pointer-events: none;
  z-index: 1;
}

.showcase-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateX(0);
  pointer-events: auto;
  z-index: 2;
}

/* Previous active state to slide out to the left */
.showcase-slide.exit-left {
  opacity: 0;
  transform: scale(0.98) translateX(-25px);
  z-index: 1;
}

.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, var(--slide-gradient-bg) 0%, rgba(15, 23, 42, 0.4) 65%, transparent 100%);
  padding: 3rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 3;
}

.slide-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slide-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.5px;
}

.slide-desc {
  font-size: 0.86rem;
  color: #cbd5e1;
  max-width: 600px;
}

/* Navigation Dots */
.slide-dots {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition);
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slide-dot.active {
  background: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
}

.theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

body.dark-theme .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}



