/* ========================================
   RESPONSIVE STYLES FOR 3D.BROXE.FR
   Separate file to avoid corrupting main styles
   ======================================== */

/* Improved mobile menu button visibility with orange styling */
.mobile-menu-toggle {
  display: none; /* Hidden by default on desktop */
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 107, 53, 0.15);
  border: 2px solid #ff6b35;
  cursor: pointer;
  padding: 14px;
  z-index: 1001;
  position: relative;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 107, 53, 0.25);
  border-color: #ff8555;
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
  transform: scale(1.05);
}

.mobile-menu-toggle span {
  display: block;
  width: 32px;
  height: 4px;
  background: #ff6b35;
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.mobile-menu-toggle.active {
  background: rgba(255, 107, 53, 0.3);
  border-color: #ff8555;
}

.mobile-menu-toggle.active span {
  background: #ff8555;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -9px);
}

/* ==================== TABLET (768px - 1024px) ==================== */
@media (max-width: 1024px) {
  /* Container adjustments */
  .container {
    padding: 0 2rem;
  }

  /* Navigation */
  .nav {
    gap: 1.5rem;
  }

  /* Hero section */
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Features grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Specs grid */
  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Portfolio bento grid */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-item.large,
  .bento-item.wide {
    grid-column: span 1;
  }
}

/* ==================== MOBILE (320px - 768px) ==================== */
@media (max-width: 768px) {
  /* Container adjustments */
  .container {
    padding: 0 1.5rem;
  }

  /* Header and Navigation */
  .header {
    padding: 1rem 0;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  /* Hide desktop nav, show mobile toggle */
  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav.active {
    display: flex;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .mobile-menu-toggle {
    display: flex; /* Override global display: none; to show on mobile */
  }

  /* Hero section */
  .hero {
    padding: 4rem 0;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  /* Section titles */
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Features and Services - single column */
  .features-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card,
  .service-card {
    padding: 2rem;
  }

  /* Quote form */
  .quote-form {
    padding: 2rem 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .form-group {
    width: 100%;
  }

  /* Testimonials carousel */
  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .carousel-nav {
    bottom: -3rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-section {
    width: 100%;
  }

  /* Portfolio page */
  .hero-split {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-content,
  .hero-stats {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-filters-new {
    overflow-x: auto;
    padding-bottom: 1rem;
    gap: 0.5rem;
  }

  .filter-chip {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bento-item.large,
  .bento-item.wide,
  .bento-item.medium {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Printer page - Keep navigation buttons on the side, not in middle */
  .features-nav {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: auto !important;
    bottom: auto !important;
    flex-direction: column !important;
    width: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    gap: 0.5rem !important;
    border: none !important;
  }

  /* Reduced feature button size for mobile */
  .feature-btn {
    width: 45px !important;
    height: 45px !important;
    font-size: 1rem !important;
  }

  /* Specs grid */
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==================== SMALL MOBILE (320px - 480px) ==================== */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .feature-card,
  .service-card {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Further reduced button size for very small screens */
  .feature-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.85rem !important;
  }

  /* Ensure features-nav stays on the side */
  .features-nav {
    gap: 0.35rem !important;
  }
}

/* Added desktop styles to ensure buttons maintain proper size and position on PC */
@media (min-width: 769px) {
  .feature-btn {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
  }

  /* Ensure features-nav stays on the side on desktop */
  .features-nav {
    position: absolute !important;
    right: 2rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    flex-direction: column !important;
  }
}

/* Fixed feature description panel to display properly on all devices */
/* Feature description panel positioning */
.feature-description-panel {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 40, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid #ff6b35;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  width: 90%;
  max-width: 600px;
  display: none; /* Hidden by default, shown with JS */
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 107, 53, 0.3);
  z-index: 100;
}

.feature-description-panel.active {
  display: flex !important; /* Show when active */
}

/* Fixed icon display styling to avoid conflicts */
.feature-description-panel .feature-icon-display {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b35, #ff8555);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
}

.feature-description-panel .feature-icon-display i {
  font-size: 1.5rem;
  color: #fff;
}

.feature-description-panel .feature-text-display {
  flex: 1;
}

.feature-description-panel .feature-text-display h4 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem 0;
  color: #fff;
  font-weight: 600;
}

.feature-description-panel .feature-text-display p {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Mobile responsive styles for feature description panel */
@media (max-width: 768px) {
  .feature-description-panel {
    bottom: 1rem !important;
    width: calc(100% - 2rem) !important;
    padding: 0.75rem 1rem !important;
    max-width: none !important;
  }

  .feature-description-panel .feature-icon-display {
    width: 30px !important;
    height: 30px !important;
  }

  .feature-description-panel .feature-icon-display i {
    font-size: 1.2rem !important;
  }

  .feature-description-panel .feature-text-display h4 {
    font-size: 0.95rem !important;
    margin-bottom: 0.15rem !important;
  }

  .feature-description-panel .feature-text-display p {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 480px) {
  .feature-description-panel {
    bottom: 0.5rem !important;
    width: calc(100% - 1rem) !important;
    padding: 0.5rem 0.75rem !important;
  }

  .feature-description-panel .feature-icon-display {
    width: 25px !important;
    height: 25px !important;
  }

  .feature-description-panel .feature-icon-display i {
    font-size: 1rem !important;
  }

  .feature-description-panel .feature-text-display h4 {
    font-size: 0.85rem !important;
  }

  .feature-description-panel .feature-text-display p {
    font-size: 0.75rem !important;
  }
}
