/* ==============================================================================
   DESIGN SYSTEM & THEME TOKENS - MAJARUL HOCK GHARAMI PORTFOLIO
   Theme: Premium Dark Technology Aesthetic & Glassmorphism
   Primary BG: #050816 | Secondary BG: #0B1225
   Brand Blue / Cyan Accent: #00D2FF / #38BDF8 / #2563EB
   Brand Vibrant Orange Accent: #FF7A00 / #F97316 / #FB923C
   ============================================================================== */

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

:root {
  /* Color Palette */
  --bg-primary: #050816;
  --bg-secondary: #0B1225;
  --bg-card: rgba(11, 18, 37, 0.75);
  --bg-card-hover: rgba(15, 23, 42, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.6);
  --bg-input: rgba(7, 13, 30, 0.8);

  /* Accents */
  --accent-blue: #00D2FF;
  --accent-blue-deep: #2563EB;
  --accent-cyan: #38BDF8;
  --accent-orange: #FF7A00;
  --accent-orange-light: #FB923C;
  --accent-emerald: #10B981;
  --accent-emerald-light: #34D399;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00D2FF 0%, #3B82F6 50%, #FF7A00 100%);
  --grad-brand-lf: linear-gradient(135deg, #00D2FF 0%, #2563EB 50%, #FF7A00 100%);
  --grad-brand-lsc: linear-gradient(135deg, #10B981 0%, #06B6D4 50%, #3B82F6 100%);
  --grad-text: linear-gradient(135deg, #FFFFFF 20%, #93C5FD 70%, #FFB366 100%);
  --grad-orange: linear-gradient(135deg, #FF7A00 0%, #F97316 100%);
  --grad-blue: linear-gradient(135deg, #00D2FF 0%, #2563EB 100%);

  /* Borders */
  --border-glass: rgba(56, 189, 248, 0.15);
  --border-glass-hover: rgba(56, 189, 248, 0.35);
  --border-orange: rgba(255, 122, 0, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Text Colors */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-bright: #FFFFFF;

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shadows */
  --shadow-glow-blue: 0 0 25px rgba(0, 210, 255, 0.25);
  --shadow-glow-orange: 0 0 25px rgba(255, 122, 0, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

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

/* Background Ambient Lighting Mesh */
.ambient-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  -webkit-filter: blur(70px);
  opacity: 0.15;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: ambientFloat 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00D2FF, #2563EB);
}

.blob-2 {
  top: 40%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #FF7A00, #EA580C);
  animation-duration: 25s;
  animation-direction: alternate-reverse;
}

.blob-3 {
  bottom: 5%;
  left: 20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #10B981, #06B6D4);
  animation-duration: 18s;
}

@keyframes ambientFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

/* Grid Pattern Overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* Layout Utilities */
.site-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

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

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
}

@media (max-width: 640px) {
  .site-container {
    padding: 0 1rem;
  }
  .section-padding {
    padding: 3.25rem 0;
  }
}

/* Fluid Responsive Grid Helpers (Ensures 100% fidelity on desktop/tablet while perfecting mobile) */
.responsive-grid-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .responsive-grid-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .responsive-grid-hero {
    gap: 2.25rem;
  }
}

.responsive-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .responsive-grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

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

@media (max-width: 1024px) {
  .responsive-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .responsive-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

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

@media (max-width: 1024px) {
  .responsive-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 540px) {
  .responsive-grid-4 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .quick-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .quick-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

@media (max-width: 340px) {
  .quick-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

.responsive-grid-contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .responsive-grid-contact {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.responsive-grid-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
}

@media (max-width: 640px) {
  .responsive-grid-footer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Gradient Text */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-orange {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -10px rgba(0, 210, 255, 0.15);
}

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

/* Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #00D2FF 0%, #2563EB 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
  background: linear-gradient(135deg, #38BDF8 0%, #1D4ED8 100%);
}

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

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-orange {
  background: var(--grad-orange);
  color: #050816;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(255, 122, 0, 0.35);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 122, 0, 0.5);
}

.btn-whatsapp {
  background: #25D366;
  color: #050816;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #22C55E;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-blue {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.badge-orange {
  background: rgba(255, 122, 0, 0.1);
  color: var(--accent-orange-light);
  border: 1px solid rgba(255, 122, 0, 0.3);
}

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

/* Custom Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-header .section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.75rem 0 1rem;
}

.section-header .section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Custom Scrollbar (Vertical Only - Sleek, Glowing & Glassmorphic) */
::-webkit-scrollbar {
  width: 6px;
  height: 0px;
}

::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0px !important;
  width: 0px !important;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.35);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* Dedicated Project Overview Modal Card Styling */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 8, 22, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.project-modal-card {
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: #0B1225;
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 1.25rem;
  padding: 2rem 2rem 3rem 2rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 210, 255, 0.18);
  transform: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 210, 255, 0.5) transparent;
  box-sizing: border-box;
}

/* Perfect floating scrollbar for Project Overview Modal (Never cuts into rounded corners) */
.project-modal-card::-webkit-scrollbar {
  width: 6px;
}

.project-modal-card::-webkit-scrollbar-track {
  background: transparent !important;
  margin: 1.5rem 0; /* Ensures scrollbar thumb NEVER touches or cuts into top/bottom rounded corners */
  border-radius: 999px;
}

.project-modal-card::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.65) 0%, rgba(0, 119, 255, 0.65) 100%);
  border-radius: 999px;
  border: 1px solid rgba(0, 210, 255, 0.25);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

.project-modal-card::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00D2FF 0%, #0077FF 100%);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.7);
}

.project-modal-close-wrapper {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: -0.5rem;
  z-index: 30;
  margin-top: -0.5rem;
  margin-bottom: -1rem;
  pointer-events: none;
}

.project-modal-close-btn {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.project-modal-close-btn:hover {
  background: rgba(0, 210, 255, 0.25);
  border-color: var(--accent-cyan);
  transform: scale(1.05);
}

.project-modal-actions-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==============================================================================
   REDESIGNED FULL-SCREEN HAMBURGER NAVIGATION HUB
   ============================================================================== */

/* Minimal Top Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem 0;
}

.site-header.scrolled {
  background: rgba(5, 8, 22, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  padding: 0.7rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Header Hamburger Trigger Button */
.hamburger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 0.5rem 1.15rem 0.5rem 0.85rem;
  color: #FFFFFF;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  user-select: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hamburger-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.35);
  transform: translateY(-2px) scale(1.02);
}

.hamburger-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.hamburger-btn.is-active {
  background: rgba(255, 122, 0, 0.15);
  border-color: var(--accent-orange);
  box-shadow: 0 0 25px rgba(255, 122, 0, 0.35);
}

.hamburger-icon-bars {
  width: 22px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger-btn.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--accent-orange-light);
}

.hamburger-btn.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--accent-cyan);
}

/* Fullscreen Menu Overlay Container */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.97);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Menu Top Navbar Inside Overlay */
.menu-overlay-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.25rem 0;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Key badge */
.key-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Close Circular Button */
.menu-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
}

.menu-close-btn:hover {
  background: rgba(255, 122, 0, 0.15);
  border-color: var(--accent-orange);
  color: #FFFFFF;
  transform: scale(1.04);
}

/* Navigation Links Grid / Matrix */
.menu-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .menu-nav-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Individual Redesigned Menu Link Card */
.menu-nav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.menu-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.menu-nav-card:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px) translateX(4px);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.15);
}

.menu-nav-card:hover::before {
  opacity: 1;
}

.menu-nav-card.is-active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.12) 0%, rgba(255, 122, 0, 0.08) 100%);
  border-color: rgba(0, 210, 255, 0.4);
  color: #FFFFFF;
}

.menu-nav-card.is-active::before {
  opacity: 1;
}

.menu-nav-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.menu-nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.menu-nav-card:hover .menu-nav-icon {
  background: var(--grad-primary);
  color: #050816;
  border-color: transparent;
  transform: scale(1.08);
}

.menu-nav-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.menu-nav-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Ambient Blobs inside Menu Overlay */
.menu-ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  pointer-events: none;
}

/* ==========================================================================
   HERO CIRCULAR DESIGN PATTERN & ORBITAL SYSTEM
   ========================================================================== */

.hero-circle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  min-height: 480px;
  margin: 0 auto;
}

/* Ambient Radial Glow Halo */
.hero-circle-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.3) 0%, rgba(255, 122, 0, 0.2) 45%, transparent 70%);
  filter: blur(45px);
  animation: pulseCircleHalo 5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes pulseCircleHalo {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.95;
  }
}

/* Orbital Rings */
.hero-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-orbit-ring-outer {
  width: 470px;
  height: 470px;
  border: 1.5px dashed rgba(56, 189, 248, 0.25);
  transform: translate(-50%, -50%);
  animation: spinOrbitClockwise 36s linear infinite;
}

.hero-orbit-ring-outer::before {
  content: '';
  position: absolute;
  top: 15px;
  right: 65px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan), 0 0 25px rgba(0, 210, 255, 0.8);
}

.hero-orbit-ring-middle {
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 122, 0, 0.22);
  transform: translate(-50%, -50%);
  animation: spinOrbitCounter 48s linear infinite;
}

.hero-orbit-ring-middle::after {
  content: '';
  position: absolute;
  bottom: 25px;
  left: 55px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 12px var(--accent-orange), 0 0 20px rgba(255, 122, 0, 0.8);
}

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

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

/* Core Circular Portal Frame */
.hero-circle-portal {
  position: relative;
  z-index: 2;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.85) 0%, rgba(255, 122, 0, 0.75) 50%, rgba(0, 210, 255, 0.85) 100%);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.85),
              0 0 40px rgba(0, 210, 255, 0.35),
              inset 0 0 25px rgba(255, 122, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.hero-circle-portal:hover {
  transform: scale(1.025);
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.9),
              0 0 55px rgba(0, 210, 255, 0.5),
              inset 0 0 30px rgba(255, 122, 0, 0.4);
}

.hero-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background-color: #070d1d;
}

.hero-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-circle-portal:hover .hero-circle-img {
  transform: scale(1.06);
}

/* Bottom Vignette Overlay inside Circle */
.hero-circle-vignette {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, transparent 45%, rgba(5, 8, 22, 0.8) 100%),
              linear-gradient(to top, rgba(5, 8, 22, 0.92) 0%, rgba(5, 8, 22, 0.4) 30%, transparent 60%);
  pointer-events: none;
}

/* In-Circle Name Caption */
.hero-circle-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 85%;
  z-index: 3;
  pointer-events: none;
}

.hero-circle-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.12rem;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-circle-title {
  font-size: 0.76rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  margin-top: 0.15rem;
}

/* Satellite Floating Badges */
.hero-satellite-badge {
  position: absolute;
  z-index: 4;
  background: rgba(11, 18, 37, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 9999px;
  padding: 0.65rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6),
              0 0 20px rgba(0, 210, 255, 0.15);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-satellite-badge:hover {
  transform: scale(1.05);
}

.hero-satellite-top-right {
  top: -10px;
  right: -25px;
  border: 1px solid rgba(0, 210, 255, 0.4);
  animation: floatSatellite1 6s ease-in-out infinite;
}

.hero-satellite-bottom-left {
  bottom: 0px;
  left: -30px;
  border: 1px solid rgba(255, 122, 0, 0.4);
  animation: floatSatellite2 7s ease-in-out infinite;
}

.hero-satellite-bottom-right {
  bottom: -15px;
  right: 10px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  animation: floatSatellite3 8s ease-in-out infinite;
}

@keyframes floatSatellite1 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(1deg);
  }
}

@keyframes floatSatellite2 {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-1deg);
  }
}

@keyframes floatSatellite3 {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Responsive adjustments for Circular Hero Pattern */
@media (max-width: 640px) {
  .hero-circle-wrapper {
    max-width: 290px;
    min-height: 290px;
    margin: 1rem auto 0;
  }
  .hero-circle-halo {
    width: 250px;
    height: 250px;
  }
  .hero-orbit-ring-outer {
    width: 280px;
    height: 280px;
  }
  .hero-orbit-ring-middle {
    width: 240px;
    height: 240px;
  }
  .hero-circle-portal {
    width: 205px;
    height: 205px;
  }
  .hero-circle-caption {
    bottom: 0.85rem;
  }
  .hero-circle-name {
    font-size: 0.95rem;
  }
  .hero-circle-title {
    font-size: 0.68rem;
  }
  .hero-satellite-badge {
    padding: 0.35rem 0.75rem;
    gap: 0.45rem;
    font-size: 0.78rem;
  }
  .hero-satellite-top-right {
    top: -6px;
    right: 0px;
  }
  .hero-satellite-bottom-left {
    bottom: -6px;
    left: 0px;
  }
  .hero-satellite-bottom-right {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero-circle-wrapper {
    max-width: 250px;
    min-height: 250px;
  }
  .hero-orbit-ring-outer {
    width: 240px;
    height: 240px;
  }
  .hero-orbit-ring-middle {
    width: 205px;
    height: 205px;
  }
  .hero-circle-portal {
    width: 175px;
    height: 175px;
  }
  .hero-satellite-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
  }
  .hero-satellite-top-right {
    top: -4px;
    right: -4px;
  }
  .hero-satellite-bottom-left {
    bottom: -4px;
    left: -4px;
  }
}

/* ==========================================================================
   HERO QUICK STATS - RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 4.5rem;
  width: 100%;
}

.quick-stat-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.35rem;
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.quick-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.quick-stat-card.theme-cyan::before {
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.quick-stat-card.theme-orange::before {
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
}

.quick-stat-card:hover {
  transform: translateY(-4px);
}

.quick-stat-card:hover::before {
  opacity: 1;
}

.quick-stat-card.theme-cyan:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 30px -10px rgba(0, 210, 255, 0.2);
}

.quick-stat-card.theme-orange:hover {
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow: 0 12px 30px -10px rgba(255, 122, 0, 0.2);
}

/* Header Row: Icon and Indicator Dot */
.quick-stat-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.quick-stat-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.quick-stat-card:hover .quick-stat-icon-box {
  transform: scale(1.08);
}

.quick-stat-card.theme-cyan .quick-stat-icon-box {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.22);
}

.quick-stat-card.theme-orange .quick-stat-icon-box {
  background: rgba(255, 122, 0, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 122, 0, 0.22);
}

.quick-stat-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}

.quick-stat-card.theme-cyan .quick-stat-indicator {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.quick-stat-card.theme-orange .quick-stat-indicator {
  background: var(--accent-orange);
  box-shadow: 0 0 8px var(--accent-orange);
}

/* Primary Metric / Value */
.quick-stat-val {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 2.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  white-space: nowrap;
}

.quick-stat-val.is-text-val {
  font-size: clamp(1.25rem, 1.55vw, 1.55rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.quick-stat-card.theme-cyan .quick-stat-val {
  color: var(--accent-cyan);
  background: linear-gradient(135deg, #FFFFFF 15%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quick-stat-card.theme-orange .quick-stat-val {
  color: var(--accent-orange-light);
  background: linear-gradient(135deg, #FFFFFF 15%, var(--accent-orange-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Label & Subtitle */
.quick-stat-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.quick-stat-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: auto;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1080px) {
  .quick-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    margin-top: 3.5rem;
  }
}

@media (max-width: 640px) {
  .quick-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 2.75rem;
  }
  .quick-stat-card {
    padding: 1.1rem 1rem;
  }
  .quick-stat-top-row {
    margin-bottom: 0.85rem;
  }
  .quick-stat-icon-box {
    width: 34px;
    height: 34px;
  }
  .quick-stat-val {
    font-size: 1.6rem;
  }
  .quick-stat-val.is-text-val {
    font-size: 1.15rem;
  }
  .quick-stat-label {
    font-size: 0.88rem;
  }
  .quick-stat-detail {
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .quick-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   INTERACTIVE CAROUSEL STYLE CARDS SYSTEM
   ========================================================================== */

.carousel-container {
  position: relative;
  width: 100%;
  margin: 1.5rem 0;
}

/* Header Action Bar with View Toggle & Navigation Controls */
.carousel-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
  flex-wrap: wrap;
}

.carousel-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-heading);
}

.carousel-counter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: carouselPulse 2s infinite ease-in-out;
}

@keyframes carouselPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
    box-shadow: 0 0 12px #00D2FF, 0 0 18px rgba(0, 210, 255, 0.6);
  }
}

.carousel-autoplay-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  padding: 0.2rem 0.55rem;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-autoplay-tag {
  display: none !important;
}

.carousel-controls-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Navigation Arrow Buttons & View Switcher (Hidden per user request) */
.carousel-nav-buttons,
.carousel-arrow-btn,
.carousel-view-switcher,
.carousel-view-btn {
  display: none !important;
}

.carousel-arrow-btn:hover:not(:disabled) {
  background: var(--grad-primary);
  color: #050816;
  border-color: transparent;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
}

.carousel-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* Horizontal Scrollable Carousel Track (Slider Bar Hidden) */
.carousel-track {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.75rem 0.35rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

.carousel-track::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, WebKit */
  width: 0 !important;
  height: 0 !important;
}

.carousel-track::-webkit-scrollbar-track {
  display: none !important;
}

.carousel-track::-webkit-scrollbar-thumb {
  display: none !important;
}

/* Carousel Slide Card Item */
.carousel-card-item {
  flex: 0 0 calc(33.333% - 1.2rem);
  min-width: 320px;
  max-width: 420px;
  scroll-snap-align: start;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.brand-carousel-item {
  flex: 0 0 calc(50% - 1rem);
  min-width: 320px;
  max-width: 600px;
}

@media (max-width: 1024px) {
  .carousel-card-item {
    flex: 0 0 calc(50% - 1rem);
    min-width: 290px;
  }
  .brand-carousel-item {
    flex: 0 0 calc(50% - 1rem);
    min-width: 290px;
  }
}

@media (max-width: 640px) {
  .carousel-track {
    gap: 1rem;
    padding: 0.5rem 0.2rem 1.25rem;
    scroll-snap-type: x mandatory;
  }
  .carousel-card-item,
  .brand-carousel-item {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: center;
    margin-right: 0;
  }
  .carousel-header-bar {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }
  .carousel-counter-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
  .carousel-view-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
  }
  .carousel-arrow-btn {
    width: 36px;
    height: 36px;
  }
}

.carousel-card-item:hover {
  transform: translateY(-5px);
}

/* Bottom Carousel Dots Pagination */
.carousel-dots-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dot.is-active {
  width: 26px;
  border-radius: 9999px;
  background: var(--grad-primary);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

/* ==========================================================================
   VERIFIED TECHNICAL SKILLS MATRIX - RESPONSIVE CAROUSEL & GRID SYSTEM
   ========================================================================== */
.skills-matrix-card {
  background: linear-gradient(135deg, rgba(11, 18, 37, 0.94) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  width: 100%;
  max-width: 100%;
}

.skills-matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.skills-matrix-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.skills-matrix-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skills-matrix-track {
  width: 100%;
  transition: all 0.3s ease;
}

.skills-matrix-track.is-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.2rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
}
.skills-matrix-track.is-carousel::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.skills-matrix-slide {
  scroll-snap-align: center;
  border-radius: 1rem;
  padding: 1.4rem;
  background: rgba(5, 8, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  position: relative;
  box-sizing: border-box;
}

.skills-matrix-track.is-carousel .skills-matrix-slide {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.skills-matrix-track.is-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .skills-matrix-card {
    padding: 1.4rem;
  }
  .skills-matrix-track.is-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .skills-matrix-card {
    padding: 1rem 0.85rem;
    border-radius: 1rem;
  }
  .skills-matrix-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }
  .skills-matrix-controls {
    justify-content: space-between;
    width: 100%;
  }
  .skills-matrix-slide {
    padding: 1rem;
    border-radius: 0.85rem;
  }
}

.skills-matrix-skills-grid {
  display: grid;
  gap: 0.65rem;
}
.skills-matrix-track.is-carousel .skills-matrix-skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (max-width: 560px) {
  .skills-matrix-track.is-carousel .skills-matrix-skills-grid {
    grid-template-columns: 1fr;
  }
}

.skills-matrix-skill-item {
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  word-break: break-word;
  overflow-wrap: break-word;
}
.skills-matrix-skill-item:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.autoplay-pill {
  display: none !important;
}
.autoplay-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   TIMELINE RESPONSIVE CLASSES
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 24px;
  width: 2px;
  background: linear-gradient(to bottom, #00D2FF 0%, #3B82F6 50%, #FF7A00 100%);
  z-index: 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}

.timeline-node {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0B1225;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .timeline-line {
    left: 17px;
  }
  .timeline-item {
    gap: 0.75rem;
  }
  .timeline-node {
    width: 36px;
    height: 36px;
  }
}

/* Mobile Touch & Layout Ergonomics */
@media (max-width: 640px) {
  .site-header {
    padding: 0.65rem 0;
  }
  .header-brand-subtitle {
    display: none;
  }
  .key-badge {
    display: none;
  }
  .menu-overlay-header {
    padding: 0.85rem 0;
  }
  .menu-nav-card {
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
  }
  .menu-nav-num {
    display: none;
  }
  .menu-nav-icon {
    width: 32px;
    height: 32px;
  }
  .menu-nav-title {
    font-size: 0.95rem;
  }
  .menu-nav-desc {
    font-size: 0.7rem;
  }
  .glass-card {
    padding: 1.25rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .site-container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  .hero-action-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem !important;
  }
  .hero-action-buttons .btn {
    width: 100%;
  }
  .hero-contact-chips {
    flex-direction: column;
    gap: 0.4rem !important;
  }
  .hero-contact-chips .separator-dot {
    display: none;
  }
  .contact-dispatch-buttons {
    flex-direction: column;
    width: 100%;
  }
  .contact-dispatch-buttons .btn {
    width: 100%;
    flex: 1 1 100% !important;
  }
  .quick-stats-grid {
    gap: 0.75rem !important;
    margin-top: 2.5rem !important;
  }
  .section-padding {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/* Super Responsive: Ultra Small Devices (<= 360px) & Foldable Displays */
@media (max-width: 360px) {
  .site-container {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }
  .glass-card,
  .skills-matrix-card {
    padding: 0.85rem !important;
    border-radius: 0.85rem !important;
  }
  .section-header h2 {
    font-size: 1.5rem !important;
  }
  .hero-name {
    font-size: 1.75rem !important;
  }
  .carousel-card-item {
    padding: 1.1rem !important;
  }
  .btn {
    padding: 0.55rem 0.85rem !important;
    font-size: 0.8rem !important;
  }
}

/* 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;
    scroll-behavior: auto !important;
  }
}

