/* ==========================================================================
   olszewskidev.com — Stylesheet
   Theme: High-Tech Glassmorphism / Cyberpunk Dark
   Layout: Two-Panel Split (Sidebar + Main Workspace + Tech Footer)
   Language: Polski
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #07090e;
  --bg-sidebar: rgba(10, 15, 29, 0.78);
  --card-bg: rgba(13, 19, 33, 0.72);
  --card-border: rgba(56, 189, 248, 0.22);
  --card-border-hover: rgba(56, 189, 248, 0.55);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  
  --glow-cyan: rgba(0, 242, 254, 0.35);
  --glow-blue: rgba(56, 189, 248, 0.25);
  --glow-purple: rgba(139, 92, 246, 0.3);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Sizing */
  --sidebar-width: 320px;
}

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

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

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

/* Background IT Layer */
.bg-layer {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(0, 242, 254, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(7, 9, 14, 0.72) 0%, rgba(7, 9, 14, 0.92) 100%),
    url('../images/bg-it.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: scale(1.01);
}

/* Subtle Grid Pattern Overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(0, 242, 254, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
}

/* ==========================================================================
   Two-Panel Split Layout
   ========================================================================== */
.layout-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
  display: none;
}

/* ==========================================================================
   Left Sidebar Panel
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--card-border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.2);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.4);
}

.sidebar-inner {
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  justify-content: flex-start;
  gap: 2.25rem;
}

/* Sidebar Header: Stanisław Olszewski & Full Stack Developer */
.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.profile-avatar svg {
  width: 28px;
  height: 28px;
}

.author-name {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.author-role {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.author-role::before {
  content: '>';
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #34d399;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s infinite;
}

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

/* ==========================================================================
   Top Right Floating Actions (Desktop Language Switcher)
   ========================================================================== */
.top-actions {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 120;
  display: flex;
  align-items: center;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 19, 33, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 4px;
  gap: 3px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px -3px rgba(0, 242, 254, 0.15);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lang-switcher:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 20px -3px rgba(0, 242, 254, 0.25);
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
}

.lang-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.22), rgba(56, 189, 248, 0.16));
  border-color: rgba(0, 242, 254, 0.5);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
  font-weight: 700;
}

/* Navigation Menu */
.sidebar-nav {
  flex: 1;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-item {
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  position: relative;
}

.nav-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
}

.nav-arrow {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
  color: var(--text-primary);
  transform: translateX(4px);
}

.nav-link:hover .nav-icon {
  color: var(--accent-cyan);
}

.nav-link:hover .nav-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-cyan);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.14) 0%, rgba(56, 189, 248, 0.04) 100%);
  border-color: rgba(0, 242, 254, 0.3);
  color: #ffffff;
  font-weight: 600;
}

.nav-link.active .nav-icon {
  color: var(--accent-cyan);
}

/* Socials & Contact Icon Buttons */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

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

.social-icon-btn svg {
  width: 19px;
  height: 19px;
}

.social-icon-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.25);
}

/* ==========================================================================
   Main Wrapper & Content Area
   ========================================================================== */
.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ==========================================================================
   Hero Section: Central Slogan & Experience
   ========================================================================== */
.hero-section {
  display: flex;
  align-items: flex-start;
  min-height: auto;
  padding: 1rem 0 0;
}

.hero-content {
  position: relative;
  width: 100%;
}

/* Center Slogan: "Kod, który naprawdę działa" */
.hero-slogan {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(125deg, #ffffff 15%, #38bdf8 65%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Experience Lead Text */
.experience-lead {
  margin-bottom: 2rem;
}

.lead-text {
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.75;
}

/* CTA Actions */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
  color: #04111d;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.35);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

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

/* ==========================================================================
   Content Sections
   ========================================================================== */
.content-section {
  scroll-margin-top: 2rem;
}

.section-card {
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  padding-top: 2.25rem;
  transition: border-color var(--transition-fast);
}

.section-card:hover {
  border-top-color: rgba(0, 242, 254, 0.4);
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: '#';
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

.section-placeholder {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.section-placeholder em {
  color: var(--text-muted);
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0.25rem;
}

.about-paragraph {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.about-paragraph:last-child {
  color: #e2e8f0;
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid var(--accent-cyan);
  padding: 0.85rem 1.15rem;
  border-radius: 0 8px 8px 0;
  margin-top: 0.35rem;
}

/* Section Intro */
.section-intro {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   Skills Grid & Category Cards
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.skill-category-card {
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.skill-category-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(13, 19, 33, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(0, 242, 254, 0.15);
}

.skill-category-card.domain-card {
  grid-column: 1 / -1;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.category-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.category-icon-wrapper svg {
  width: 17px;
  height: 17px;
}

.skill-category-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.skill-tag.highlight {
  border-color: rgba(0, 242, 254, 0.35);
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent-cyan);
  font-weight: 600;
}

.skill-tag.domain-tag {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
  color: #ddd6fe;
}

.skill-tag.domain-tag:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #ffffff;
}

/* ==========================================================================
   Projects Grid & Cards
   ========================================================================== */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.project-card {
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-indigo));
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.project-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(13, 19, 33, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(0, 242, 254, 0.15);
}

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

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

.project-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.project-subtitle {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.project-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.project-contribution {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid rgba(0, 242, 254, 0.4);
  padding: 0.65rem 0.9rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.contribution-label {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contribution-text {
  flex: 1;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(13, 19, 33, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #94a3b8;
  transition: all var(--transition-fast);
}

.project-card:hover .tech-tag {
  border-color: rgba(56, 189, 248, 0.35);
  color: #e2e8f0;
}

.contact-quick {
  margin-top: 1.25rem;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.contact-email-link svg {
  width: 18px;
  height: 18px;
}

.contact-email-link:hover {
  background: rgba(0, 242, 254, 0.18);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

/* ==========================================================================
   Footer & Socials Section
   ========================================================================== */
.footer {
  margin-top: auto;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  padding: 2.25rem 2.5rem 1.5rem;
}

.footer-social-section {
  max-width: 920px;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bottom-bar {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
}

.footer-bottom-bar a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-bar a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Responsive Adaptations (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 960px) {
  .layout-container {
    flex-direction: column;
  }

  .top-actions {
    display: none;
  }

  /* Mobile Header Bar */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 0.9rem 1.25rem;
    background: rgba(7, 9, 14, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
  }

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

  .brand-tag {
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-weight: 800;
  }

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

  .lang-switcher-mobile .lang-btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
  }

  .nav-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle-btn svg {
    width: 22px;
    height: 22px;
  }

  .nav-toggle-btn .icon-close {
    display: none;
  }

  .nav-toggle-btn.active .icon-menu {
    display: none;
  }

  .nav-toggle-btn.active .icon-close {
    display: block;
  }

  /* Sidebar transforms to mobile drawer */
  .sidebar {
    position: fixed;
    top: 57px;
    left: 0;
    width: 100%;
    height: calc(100vh - 57px);
    border-right: none;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(7, 9, 14, 0.98);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-inner {
    padding: 2rem 1.5rem;
  }

  .main-content {
    padding: 2rem 1.25rem 1.5rem;
    gap: 2.5rem;
  }

  .hero-section {
    min-height: auto;
    padding: 0.5rem 0 0;
  }

  .section-card {
    padding-top: 1.75rem;
  }

  .hero-content {
    padding: 0.5rem 0;
  }

  .hero-slogan {
    font-size: 2.1rem;
  }

  .lead-text {
    font-size: 1.02rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer {
    padding: 2rem 1.25rem 1.5rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .skill-category-card.domain-card {
    grid-column: auto;
  }

  .project-card {
    padding: 1.35rem 1.15rem;
  }

  .project-name {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-slogan {
    font-size: 1.85rem;
  }

  .author-name {
    font-size: 1.35rem;
  }

  .project-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .project-contribution {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bg-layer {
    transform: none;
  }
}
