/* All Responsive CSS Goes Here */

/* FULLSCREEN MOBILE MENU */
@media (max-width: 992px) {

  /*=============================================
     NAVBAR
  =============================================*/
  .nx-navbar {
    overflow: visible;
  }
  .nx-nav-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-slow);
    z-index: var(--z-overlay);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nx-nav-menu.active {
    right: 0;
  }

  .nx-nav-menu ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .nx-nav-menu a {
    font-size: 22px;
  }

  /* Sub Menu */
  .nx-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    padding: 15px 0 0;
    display: none;
  }

  .nx-has-submenu.active .nx-submenu {
    display: block;
  }

  .nx-submenu a {
    font-size: 18px;
  }

  .nx-has-submenu ul {
    gap: 10px;
  }

  .nx-has-submenu:hover .nx-menu-parent svg {
    transform: none;
  }

  .nx-has-submenu.active .nx-menu-parent svg {
    transform: rotate(180deg);
  }

  /* Show Hamburger */
  .nx-menu-toggle {
    display: flex;
    z-index: var(--z-menu);
  }

  /* Smooth animation */
  .nx-menu-toggle span {
    transition: all var(--transition);
  }

  /* Top line */
  .nx-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  /* Middle line */
  .nx-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  /* Bottom line */
  .nx-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* CTA mobile version */
  .nx-nav-menu .nx-btn-primary {
    display: block;
    margin-top: 30px;
    padding: 14px 24px;
    font-size: 16px;
  }

  /* Hide desktop CTA */
  .nx-nav-right .nx-btn-primary {
    display: none;
  }

  /*=============================================
     HERO SECTION
  =============================================*/
   .nx-hero {
    text-align: center;
  }

  .nx-hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nx-hero-visual {
    margin-top: 40px;
    height: 420px;
  }

  /*=============================================
     HOME: ABOUT SECTION
  =============================================*/
  .nx-about {
    text-align: center;
  }

  .nx-about-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .nx-about-stats {
    margin-top: 40px;
  }

  /*=============================================
     HOME: PORTFOLIO SECTION
  =============================================*/
  .nx-portfolio-overlay {
    opacity: 1;
  }

  /*=============================================
     CTA SECTION
  =============================================*/
  .nx-cta-box {
    padding: 30px;
  }

  .nx-cta-glow {
    width: 240px;
    height: 240px;
  }

  /*=============================================
     SERVICES PAGE: SERVICE PROCESS
  =============================================*/
  .nx-process-wrapper {
    grid-template-columns: 1fr;
  }

  .nx-process-line {
    display: none;
  }

  .nx-process-step {
    padding-top: 40px;
    padding-left: 40px;
  }

  .nx-process-dot {
    top: 48px;
    left: 0;
  }

  /*=============================================
     SERVICES PAGE: TECH STACK
  =============================================*/
  .nx-tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /*=============================================
     SINGLE SERVICE: HERO
  =============================================*/
  .nx-service-hero {
    text-align: center;
  }

  .nx-service-hero-content h1 {
    max-width: 100%;
  }

  .nx-service-hero-buttons,
  .nx-service-trust {
    justify-content: center;
  }

  .nx-service-hero-visual {
    margin-top: 20px;
  }

  /*=============================================
     SINGLE SERVICE: WHAT'S INCLUDED
  =============================================*/
  .nx-included-grid {
    grid-template-columns: 1fr;
  }

  /*=============================================
     SINGLE SERVICE: FEATURED PROJECT
  =============================================*/
  .nx-featured-project {
    text-align: center;
  }

  .nx-project-stats {
    justify-content: center;
  }

  /*=============================================
     PORTFOLIO PAGE: HERO
  =============================================*/
  .nx-portfolio-collage {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nx-collage-card {
    position: relative;
    width: 100%;
    height: 240px;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  /*=============================================
     PORTFOLIO PAGE: PORTFOLIO GRID
  =============================================*/
  .nx-project-flip-inner {
    min-height: auto;
  }

  .nx-project-flip:hover .nx-project-flip-inner {
    transform: none;
  }

  /*=============================================
     SINGLE BLOG
  =============================================*/
  .nx-toc {
    display: none;
  }
  
}

@media (max-width: 768px) {

  /*=============================================
     HERO SECTION
  =============================================*/
  .nx-hero-visual {
    height: 300px;
  }

  /*=============================================
     CTA SECTION
  =============================================*/
  .nx-cta-box {
    padding: 25px;
  }

  .nx-cta-glow {
    width: 200px;
    height: 200px;
    opacity: 0.25;
  }

  /*=============================================
     FOOTER RESPONSIVE
  =============================================*/
  .nx-footer {
    text-align: center;
  }

  /* Brand */
  .nx-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Lists */
  .nx-footer ul {
    padding-left: 0;
  }

  /* Contact Items */
  .nx-footer-contact li a {
    justify-content: center;
  }

  /* Social Icons */
  .nx-footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* CTA */
  .nx-footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* WhatsApp Button */
  .nx-footer-whatsapp {
    justify-content: center;
  }

  /* Footer Bottom */
  .nx-footer-bottom {
    text-align: center;
  }

  /*=============================================
     SCROLL TO TOP
  =============================================*/
  .nx-scroll-top {
    width: 56px;
    height: 56px;

    right: 15px;
    bottom: 18px;
  }

  .nx-scroll-icon {
    width: 42px;
    height: 42px;
  }

  /*=============================================
     FOUNDER
  =============================================*/
  #nx-founder .nx-divider {
    margin: 20px auto;
  }

  /*=============================================
     SERVICES PAGE: WHY NEXORA
  =============================================*/
  .nx-why-item {
    gap: 20px;
  }

  .nx-why-item-icon {
    width: 60px;
    height: 60px;
  }

  .nx-why-item-icon svg {
    width: 26px;
    height: 26px;
  }

  /*=============================================
     SINGLE SERVICE: BENEFITS
  =============================================*/
  .nx-benefits-grid {
    grid-template-columns: 1fr;
  }

  .nx-offset {
    margin-top: 0;
  }

  /*=============================================
     PORTFOLIO PAGE: FEATURED CASE STUDY
  =============================================*/
  .nx-project-meta {
    grid-template-columns: 1fr;
  }

  .nx-case-results {
    justify-content: center;
    text-align: center;
  }

  /*=============================================
     BLOG: NEWSLETTER
  =============================================*/
  .nx-newsletter-box {
    padding: 40px 24px;
  }

  .nx-newsletter-form {
    flex-direction: column;
  }

  .nx-newsletter-form button {
    width: 100%;
  }

  /*=============================================
     SINGLE BLOG PAGE
  =============================================*/
  .nx-author-box {
    flex-direction: column;
    text-align: center;
  }

  /*=============================================
     CONTACT PAGE: MAP
  =============================================*/
  .nx-map-wrapper iframe {
    height: 350px;
  }

}

@media (max-width: 576px) {

  /*=============================================
     SERVICES PAGE: TECH STACK
  =============================================*/
  .nx-tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .nx-tech-item {
    padding: 24px 16px;
  }

  .nx-tech-item img {
    width: 48px;
    height: 48px;
  }

}