/* ====== responsive.css - Comprehensive Multi-Screen Optimization ====== */

/* ============================================================
   Large Screens / Laptops (max-width: 1199px)
   ============================================================ */
@media (max-width: 1199px) {
  .hero-title { font-size: 42px; }
  .section-title { font-size: 34px; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header.scrolled {
    width: 96%;
    max-width: 1100px;
  }
}

/* ============================================================
   Tablets & Mobile Landscape (max-width: 991px)
   ============================================================ */
@media (max-width: 991px) {
  .site-header {
    padding: 0;
  }
  
  .site-header.scrolled {
    top: 8px;
    width: 96%;
    border-radius: 30px;
    margin: 0 auto;
  }

  .site-header.scrolled .navbar {
    padding: 6px 14px;
  }

  .navbar {
    padding: 10px 14px;
  }

  .navbar-brand img, .nav-logo {
    height: 42px;
  }

  #banner {
    padding-top: 130px;
    height: auto;
    min-height: auto;
  }

  #banner .content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  #banner header {
    text-align: center;
    order: 1;
  }

  #banner .image.hero-image-wrapper {
    order: 2;
    margin: 25px auto 0;
    max-width: 320px;
    height: 380px;
  }

  .hero-title { font-size: 34px; }
  .hero-desc { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; }
  .about-section::before { display: none; }
  .about-img-wrap { margin-bottom: 35px; }
  .section-title { font-size: 30px; }

  /* Mobile Navbar Collapse Menu (Glassmorphism Card) */
  .navbar-collapse {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    padding: 20px;
    border-radius: 20px;
    margin-top: 10px;
    border: 1px solid rgba(32, 96, 136, 0.18);
    box-shadow: 0 20px 50px rgba(32, 96, 136, 0.16);
    max-height: 80vh;
    overflow-y: auto;
  }

  [data-theme="dark"] .navbar-collapse {
    background: linear-gradient(135deg, rgba(10, 36, 58, 0.98), rgba(5, 18, 30, 0.98));
    border: 1px solid rgba(77, 184, 217, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  }

  .navbar-nav {
    text-align: center;
    gap: 6px;
    margin-bottom: 12px;
  }

  .nav-link {
    display: inline-block;
    width: 100%;
    padding: 11px 20px !important;
    font-size: 15px;
    border-radius: 12px;
  }

  .navbar-actions {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(32, 96, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  [data-theme="dark"] .navbar-actions {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .navbar-actions .theme-toggle,
  .navbar-actions .lang-switch-btn,
  .navbar-actions .navbar-cart-btn {
    flex: 0 0 auto;
    height: 44px;
  }

  .navbar-actions .header-cta {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    padding: 10px 18px;
    font-size: 13.5px;
  }

  .timeline-grid { grid-template-columns: 1fr; }
  .timeline-card.full-width { max-width: 100%; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header h1 { font-size: 36px; }
  .contact-info-card { margin-bottom: 25px; }
  .footer-bottom-links { justify-content: center; margin-top: 10px; }
  .about-features-grid { grid-template-columns: repeat(2, 1fr); }

  .about-section { padding: 70px 0; }
  .services-section { padding: 70px 0; }
  .portfolio-section { padding: 70px 0; }
  .contact-section { padding: 70px 0; }
  .experience-section { padding: 70px 0; }
}

/* ============================================================
   Medium & Small Tablets (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .mouse-follower { display: none !important; }
  .hero-scroll { display: none; }
  .section-sub { margin-bottom: 25px; }
}

/* ============================================================
   Mobile Phones (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {
  .hero-title { font-size: 28px; line-height: 1.3; }
  #banner { min-height: auto; padding: 110px 0 50px; }
  .section-title { font-size: 26px; }
  .counter-item .num { font-size: 34px; }
  .cta-section h2 { font-size: 26px; }
  .cta-phone { font-size: 20px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 28px; }
  .page-header { padding: 130px 0 50px; }
  .contact-info-card,
  .contact-form-card { padding: 24px 18px; }
  .scrolling-text-section { padding: 40px 0; }
  .scroll-text-item { font-size: 20px; }
  .about-section,
  .services-section,
  .portfolio-section,
  .contact-section { padding: 50px 0; }
  .experience-section { padding: 50px 0; }
  .faq-section { padding: 50px 0; }
  .newsletter-section { padding: 35px 0; }
  .testimonial-card { padding: 22px 18px; }
  .timeline-card { padding: 22px 18px; }
  .service-card { padding: 28px 18px; }
  
  .about-features-grid { grid-template-columns: 1fr; }

  .spotlight.style2.right .content, 
  .spotlight.style3.left .content,
  .spotlight.style1.bottom .content {
    padding: 35px 20px;
    width: 96%;
  }
  .spotlight h2 {
    font-size: 26px;
  }

  /* Cart Sidebar on Mobile */
  .cart-sidebar {
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* Quick View Modal on Mobile */
  .qv-modal, .cmp-modal {
    width: 94% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 20px !important;
  }

  /* Playing Cards Deck Mobile Stack */
  .cards-deck-container {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .playing-card-item {
    position: relative !important;
    height: auto !important;
    transform: none !important;
    opacity: 1 !important;
    width: 100% !important;
  }

  .timeline-flip-indicator {
    display: none !important;
  }

  /* Horizontal Portfolio Track on Mobile (Smooth Touch Swipe) */
  .horizontal-scroll-container {
    height: auto !important;
  }

  .horizontal-scroll-track {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 10px 15px 20px !important;
    gap: 16px !important;
    width: auto !important;
    transform: none !important;
  }

  .horizontal-project-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    height: 380px !important;
    scroll-snap-align: center !important;
  }
}

/* ============================================================
   Extra Small Devices / Compact Phones (max-width: 575px)
   ============================================================ */
@media (max-width: 575px) {
  .hero-title { font-size: 24px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .section-title { font-size: 22px; }
  .section-badge { font-size: 11px; padding: 5px 12px; }
  .page-header h1 { font-size: 24px; }
  .about-features-grid { gap: 8px; }
  .about-feat-item { font-size: 12.5px; padding: 9px 12px; }
  .footer-top { padding: 45px 0 20px; }
  .footer-title { font-size: 15px; }
  .footer-links a { font-size: 13px; }
  .footer-contact li { font-size: 13px; }
  .counter-item i { font-size: 26px; }
  .counter-item .num { font-size: 28px; }
  .counter-item .lbl { font-size: 13px; }
  .whatsapp-float { width: 44px; height: 44px; font-size: 20px; bottom: 75px; right: 14px; }
  .scroll-top-btn { width: 40px; height: 40px; font-size: 15px; bottom: 20px; right: 14px; }
  
  .floating-ui-badge {
    padding: 6px 12px;
    gap: 6px;
  }
  .floating-ui-badge .badge-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .floating-ui-badge .badge-value {
    font-size: 11px;
  }
  .floating-ui-badge .badge-title {
    font-size: 10px;
  }
  .badge-top-right {
    top: 5px;
    right: -5px;
  }
  .badge-bottom-left {
    bottom: 10px;
    left: -5px;
  }
  
  .service-card {
    padding: 24px 16px;
  }

  /* Mobile Navbar Fine-Tuning */
  .site-header.scrolled {
    top: 6px;
    width: 96%;
    border-radius: 20px;
  }
  .navbar {
    padding: 6px 10px;
  }
  .navbar-brand img, .nav-logo {
    height: 36px;
  }
  .navbar-mobile-quick {
    gap: 5px !important;
  }
  .navbar-mobile-quick .lang-switch-mobile {
    height: 34px;
    padding: 0 8px;
    font-size: 11px;
  }
  .navbar-mobile-quick .theme-toggle-mobile,
  .navbar-mobile-quick .cart-mobile,
  .navbar-toggler {
    width: 34px;
    height: 34px;
    font-size: 13px;
    border-radius: 10px;
  }
  .navbar-toggler .toggler-bar {
    width: 16px;
  }
  .navbar-toggler:not(.collapsed) .toggler-bar:nth-child(1),
  .navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .navbar-toggler:not(.collapsed) .toggler-bar:nth-child(3),
  .navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .navbar-collapse {
    padding: 16px;
    border-radius: 16px;
  }
  .navbar-collapse .nav-link {
    padding: 9px 15px !important;
    font-size: 14px;
  }
}
