/* ========================================
   Responsive Styles
   ======================================== */

/* Tablets and below (1024px) */
@media screen and (max-width: 1024px) {
  .hero-title {
    font-size: 60px;
  }

  .section-title {
    font-size: 40px;
  }

  .about-content,
  .team-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-visual {
    height: 400px;
    margin-top: 30px;
  }

  .visual-box.box-1 {
    width: 250px;
    height: 250px;
  }

  .visual-box.box-2 {
    width: 200px;
    height: 200px;
  }

  .visual-box.box-3 {
    width: 150px;
    height: 150px;
  }
}

/* Mobile devices (768px) */
@media screen and (max-width: 768px) {
  .header-container {
    padding: 15px 20px;
  }

  .logo img {
    height: 40px;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    transform: translateY(-120%);
    transition: transform var(--transition-speed) ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .nav-link {
    padding: 15px 40px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .section {
    padding: 80px 20px;
  }

  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-title-image {
    max-height: 120px;
  }

  .hero-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-header {
    margin-bottom: 50px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-label {
    font-size: 12px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-item {
    padding: 20px;
  }

  .stat-number {
    font-size: 36px;
  }

  .about-visual {
    height: 300px;
  }

  .visual-box.box-1 {
    width: 180px;
    height: 180px;
    left: 10px;
  }

  .visual-box.box-2 {
    width: 140px;
    height: 140px;
    right: 10px;
    top: 40px;
  }

  .visual-box.box-3 {
    width: 100px;
    height: 100px;
    left: 40px;
    bottom: 10px;
  }

  .team-highlights {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .scroll-indicator {
    bottom: 20px;
  }
}

/* Small mobile devices (480px) */
@media screen and (max-width: 480px) {
  .logo h1 {
    font-size: 24px;
  }

  .logo img {
    height: 35px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-title-image {
    max-height: 100px;
  }

  .section-title {
    font-size: 28px;
  }

  .about-text h3,
  .team-intro h3,
  .contact-info h3 {
    font-size: 24px;
  }

  .about-text p,
  .team-intro p,
  .contact-info > p {
    font-size: 16px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon svg {
    width: 30px;
    height: 30px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-card p {
    font-size: 14px;
  }

  .highlight-item {
    padding: 20px;
  }

  .highlight-icon {
    font-size: 36px;
  }

  .info-icon {
    font-size: 24px;
    min-width: 40px;
  }

  .contact-form {
    padding: 20px 15px;
  }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .section {
    min-height: auto;
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 40px;
  }

  .scroll-indicator {
    display: none;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

/* High resolution displays */
@media screen and (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }

  .hero-title {
    font-size: 100px;
  }

  .section-title {
    font-size: 56px;
  }

  .hero-description {
    font-size: 24px;
  }
}

/* Print styles */
@media print {
  .page-loader,
  .main-header,
  .scroll-indicator,
  .back-to-top,
  .menu-toggle {
    display: none !important;
  }

  .section {
    page-break-inside: avoid;
  }

  body {
    background: white;
    color: black;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-indicator {
    animation: none;
  }

  .spinner {
    animation: none;
    border: 4px solid var(--primary-color);
  }
}

/* Dark mode support (if system prefers dark) */
@media (prefers-color-scheme: dark) {
  /* Already using dark theme by default */
}

/* Accessibility improvements */
@media (hover: none) {
  .service-card:hover,
  .stat-item:hover,
  .highlight-item:hover,
  .visual-box:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}
