@media (max-width: 400px) {
  .cyber-hero {
    min-height: 100svh !important; /* Use small viewport height for mobile browsers */
    min-height: 100vh !important; /* Fallback for browsers without svh */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 65px !important; /* Offset for mobile navbar */
    margin-top: 0 !important;
  }
  .cyber-hero .row.min-vh-100 {
    min-height: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
  }
}

/* Unify all @media (max-width: 576px) rules */
@media (max-width: 576px) {
  .cyber-toggler-icon,
  .navbar-toggler-icon,
  .navbar-toggler span {
    border: none !important;
    background: var(--neon-blue) !important;
    box-shadow: none !important;
    outline: none !important;
  }
  .navbar-toggler,
  .cyber-toggler {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
  }
  .brand-responsive {
    text-align: center;
    width: 100%;
    display: block;
    font-size: 0.85rem;
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .brand-logo-responsive {
    height: 48px;
    max-width: 180px;
  }
  .cyber-hero { padding-top: 0 !important; }
  .cyber-title {
    font-size: 2rem !important;
    line-height: 1.15 !important;
    word-break: break-word !important;
    white-space: normal !important;
  }
  .glitch {
    position: static !important;
  }
  .neon-text {
    display: inline-block !important;
    width: auto !important;
    vertical-align: middle !important;
  }
  .glitch::before,
  .glitch::after {
    display: none !important;
    animation: none !important;
  }
}

@media (max-width: 400px) {
  .brand-responsive {
    font-size: 0.7rem;
    max-width: 100%;
  }
  .brand-logo-responsive {
    height: 32px;
    max-width: 120px;
  }
}

@media (min-width: 992px) {
  .navbar-nav .nav-link.cyber-nav-link {
    font-size: 1rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    margin: 0 0.1rem;
  }
  .navbar-nav {
    gap: 0 !important;
  }
}

@media (max-width:1200px){
  #hero3d-container{height:440px}
}
@media (max-width:992px){
  .cyber-title{font-size:2.4rem}
  .floating-elements{display:none}
  #hero3d-container{height:420px}
}
@media (max-width:768px){
  body{cursor:auto}
  #cursor-follower{display:none}
  .feature-card-3d{height:260px}
  .feature-icon-3d{width:64px;height:64px}
  .icon-glow{font-size:1.6rem}
  #hero3d-container{height:360px}
  /* Center hero text on mobile */
  .cyber-hero .row .col-lg-6:first-child{ text-align:center }
  .cyber-hero .cyber-title{ margin-left:auto; margin-right:auto }
  .cyber-hero .lead{ margin-left:auto; margin-right:auto }
}
