/* ==========================================================================
   Mobile Responsive Overhaul, Off-Canvas Drawer & Viewport Media Queries
   ========================================================================== */
/* Mobile Responsive Optimizations */
    .nav-right-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .mobile-menu-btn {
      display: none;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border-subtle);
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
      border-radius: 50%;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      transition: all 0.2s ease;
      color: #fff;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: var(--border-accent);
    }

    .hamburger-line {
      display: block;
      width: 16px;
      height: 2px;
      background-color: #f8fafc;
      border-radius: 2px;
      transition: all 0.25s ease;
    }

    .mobile-drawer-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(3, 5, 10, 0.75);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 998;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-drawer-backdrop.active {
      opacity: 1;
      visibility: visible;
    }

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      width: min(85vw, 320px);
      height: 100vh;
      background: rgba(13, 17, 26, 0.98);
      backdrop-filter: blur(25px);
      -webkit-backdrop-filter: blur(25px);
      border-left: 1px solid var(--border-subtle);
      z-index: 999;
      display: flex;
      flex-direction: column;
      padding: 24px;
      box-shadow: -15px 0 35px rgba(0, 0, 0, 0.6);
      transform: translateX(100%);
      visibility: hidden;
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    }

    .mobile-drawer.active {
      transform: translateX(0);
      visibility: visible;
    }

    .mobile-drawer-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .mobile-drawer-close {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border-subtle);
      color: #cbd5e1;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      transition: all 0.2s ease;
    }

    .mobile-drawer-close:hover {
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
    }

    .mobile-drawer-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex: 1;
      overflow-y: auto;
    }

    .mobile-drawer-links li a {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 12px;
      color: var(--text-main);
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid transparent;
      transition: all 0.2s ease;
    }

    .mobile-drawer-links li a:hover,
    .mobile-drawer-links li a:active {
      background: rgba(99, 102, 241, 0.12);
      border-color: var(--border-accent);
      color: #fff;
    }

    .mobile-drawer-footer {
      display: flex;
      flex-direction: column;
      gap: 14px;
      padding-top: 16px;
      border-top: 1px solid var(--border-subtle);
    }

    .mobile-drawer-socials {
      display: flex;
      justify-content: space-around;
      padding: 4px 0;
    }

    .mobile-drawer-socials a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 12px;
      font-family: var(--font-mono);
      transition: color 0.2s;
    }

    .mobile-drawer-socials a:hover {
      color: var(--accent-cyan);
    }

    @media (max-width: 768px) {
      .container {
        padding: 0 16px;
      }

      nav {
        top: 10px;
        margin-bottom: 30px;
      }

      .nav-inner {
        padding: 10px 16px;
        border-radius: 50px;
      }

      .nav-links {
        display: none;
      }

      .nav-cta-desktop {
        display: none !important;
      }

      .mobile-menu-btn {
        display: inline-flex;
      }

      .nav-brand span {
        font-size: 16px;
      }

      .brand-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
      }

      .hero-badge {
        max-width: 100% !important;
        white-space: normal !important;
        text-align: center !important;
        font-size: 11px !important;
        padding: 6px 12px !important;
        line-height: 1.4 !important;
      }

      h1.hero-title {
        font-size: clamp(24px, 6.5vw, 36px) !important;
        line-height: 1.18 !important;
        word-break: break-word !important;
        max-width: 100% !important;
      }

      .hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 24px !important;
        line-height: 1.55 !important;
        max-width: 100% !important;
      }

      .hero-proof-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        padding: 14px 14px !important;
        width: 100% !important;
        max-width: 100% !important;
      }

      .proof-col {
        min-width: 0 !important;
        width: 100% !important;
      }

      .hero-proof-banner .cta-btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
      }

      .cta-btn {
        padding: 8px 16px;
        font-size: 12px;
      }

      .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-bottom: 32px;
      }

      .hero-actions .cta-btn,
      .hero-actions .secondary-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
      }

      .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
      }

      .metric-card {
        padding: 14px !important;
        border-radius: 14px !important;
      }

      .metric-value {
        font-size: 22px !important;
      }

      .metric-label {
        font-size: 11px !important;
      }

      section {
        padding: 40px 0;
      }

      .section-title {
        font-size: 24px;
      }

      .project-card {
        padding: 18px 15px;
        border-radius: 16px;
      }

      .project-badge-row {
        gap: 6px;
        margin-bottom: 12px;
      }

      .tech-pill,
      .impact-pill,
      .lifecycle-tag {
        font-size: 10.5px;
        padding: 3px 8px;
      }

      .project-title {
        font-size: 18px;
        margin-bottom: 8px;
      }

      .project-desc {
        font-size: 13.5px;
        line-height: 1.55;
      }

      .project-bullets li {
        font-size: 13px;
        margin-bottom: 6px;
        gap: 8px;
      }

      .award-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
      }

      .contact-card {
        padding: 30px 18px;
        border-radius: 18px;
      }

      .contact-card h2 {
        font-size: 24px;
      }

      .social-links {
        flex-direction: column;
        width: 100%;
      }

      .social-pill {
        width: 100%;
        justify-content: center;
      }

      .terminal-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 14px;
      }

      .terminal-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        flex-wrap: nowrap !important;
      }

      .terminal-tabs::-webkit-scrollbar {
        display: none;
      }

      .terminal-tab {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 11px;
        padding: 6px 10px;
      }

      .terminal-body {
        padding: 14px;
      }

      .tool-grid {
        grid-template-columns: 1fr !important;
      }

      .sim-stats-grid {
        grid-template-columns: 1fr !important;
      }
    }

    @media (max-width: 480px) {
      .container {
        padding: 0 12px !important;
      }

      .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
      }

      .metric-card {
        padding: 10px 12px !important;
      }

      .metric-value {
        font-size: 20px !important;
      }

      .metric-label {
        font-size: 10px !important;
      }

      .project-card {
        padding: 15px 12px !important;
        border-radius: 14px !important;
      }

      .project-badge-row {
        gap: 5px !important;
        margin-bottom: 10px !important;
      }

      .tech-pill,
      .impact-pill,
      .lifecycle-tag {
        font-size: 9.5px !important;
        padding: 2.5px 6.5px !important;
      }

      .project-title {
        font-size: 17px !important;
      }

      .project-desc {
        font-size: 12.5px !important;
      }

      .project-bullets li {
        font-size: 12px !important;
      }
    }
