/* ============================================
   REVO ENDÜSTRI – RESPONSIVE CSS
   Mobile-first breakpoints
   ============================================ */

/* --- Mobile: up to 480px --- */
@media (max-width: 480px) {
  :root {
    --section-padding: 60px;
    --container-padding: 16px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + 40px);
    padding-bottom: 40px;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-content p { font-size: 1rem; }

  .hero-actions {
    justify-content: center;
  }

  .hero-3d-container {
    position: relative;
    width: 100%;
    height: 300px;
    right: 0;
    margin-top: 32px;
  }

  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }

  .stat-item { padding: 16px 8px; }
  .stat-number { font-size: 2rem; }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .specs-table td {
    padding: 12px;
    font-size: 0.85rem;
  }

  .timeline { padding-left: 30px; }
  .timeline::before { left: 10px; }
  .timeline-dot { left: -28px; width: 12px; height: 12px; }
}

/* --- Tablet: 481px to 768px --- */
@media (min-width: 481px) and (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + 60px);
    padding-bottom: 60px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-3d-container {
    position: relative;
    width: 100%;
    height: 400px;
    right: 0;
    margin-top: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* --- Mobile Nav (up to 768px) --- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 40px;
    transition: right var(--transition-base);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: var(--z-navbar);
  }

  .navbar-menu.open {
    right: 0;
  }

  .navbar-menu a {
    font-size: 1.1rem;
    text-align: center;
  }

  .navbar-menu a::after {
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar-menu a:hover::after,
  .navbar-menu a.active::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Mobile dropdown */
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
  }

  .nav-dropdown > a {
    display: block;
    text-align: center;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: max-height 0.3s ease;
    text-align: center;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 200px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-dropdown.open > a .dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu a {
    padding: 8px 0;
    font-size: 0.95rem;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: calc(var(--z-navbar) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

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

  .hero .container {
    flex-direction: column;
  }
}

/* --- Small Desktop: 769px to 1024px --- */
@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --section-padding: 100px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-3d-container {
    width: 50%;
    right: -2%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* --- Desktop: 1025px and up --- */
@media (min-width: 1025px) {
  .hero .container {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--navbar-height));
  }
}

/* --- Large Desktop: 1281px and up --- */
@media (min-width: 1281px) {
  :root {
    --container-width: 1360px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Print --- */
@media print {
  .navbar, .footer, #plexus-canvas, .hero-3d-container {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 20px 0;
  }
}
