/* ========================================
   RESPONSIVE STYLES
   Jeddah Expert - Luxury Construction
======================================== */

/* Large Screens */
@media (max-width: 1400px) {
  .container {
    padding: 0 40px;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .wireframe-container {
    display: none;
  }

  .hero-content {
    max-width: 700px;
  }

  .section {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-image img {
    height: 400px;
  }

  .experience-badge {
    right: 20px;
    bottom: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 0;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--nav-bg);
    flex-direction: column;
    padding: 40px 30px;
    gap: 25px;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 18px;
    padding: 15px 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 100vh;
    padding-top: 80px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-title {
    font-size: 28px;
  }

  .page-hero {
    min-height: 50vh;
    padding-top: 80px;
  }

  .page-hero-title {
    font-size: 32px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 15px;
  }

  .section-title {
    font-size: 24px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .stat-item {
    padding: 20px;
  }

  .stat-number {
    font-size: 28px;
  }

  .project-card {
    height: 300px;
  }

  .feature-box {
    padding: 30px 20px;
  }

  .experience-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 20px;
    padding: 20px 25px;
  }

  .badge-number {
    font-size: 32px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 60px;
    padding-right: 15px;
  }

  .timeline-year,
  .timeline-item:nth-child(odd) .timeline-year,
  .timeline-item:nth-child(even) .timeline-year {
    left: 0;
    right: auto;
    width: 50px;
    height: 50px;
    font-size: 14px;
  }

  .gallery-filter {
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 15px;
    font-size: 12px;
  }

  .form-card {
    padding: 25px 15px;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .modal-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .modal-content h3 {
    font-size: 22px;
  }
}

/* Animation for mobile menu */
.mobile-toggle span {
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Touch device optimizations */
@media (hover: none) {

  .service-card:hover,
  .project-card:hover,
  .feature-box:hover,
  .team-card:hover {
    transform: none;
  }

  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 31, 68, 0.95) 100%);
  }

  .gallery-info {
    transform: translateY(0);
  }

  .gallery-zoom {
    transform: scale(1);
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  .logo-icon,
  .service-icon,
  .feature-icon {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print styles */
@media print {

  .navbar,
  .footer,
  .cta-section,
  .hero-buttons {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 30px 0;
  }
}