@media (max-width: 1399px) {
  .social-links a {
    width: 26px;
    height: 26px;
    font-size: .8rem;
  }
}

@media (max-width: 1299px) {
  .floating-header .navbar {
    max-width: 96%;
  }

  .nav-link {
    font-size: .88rem;
    padding: .56rem .48rem !important;
    gap: .34rem;
  }
}

@media (max-width: 1199px) {
  .floating-header .navbar {
    border-radius: 24px;
    max-width: 94%;
    min-height: auto;
    padding: .55rem .85rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .floating-header .navbar-collapse {
    flex-grow: 1;
    width: 100%;
  }

  .floating-header .navbar-collapse:not(.show) {
    display: none !important;
  }

  .floating-header .navbar-collapse.show {
    display: block !important;
  }

  .navbar-collapse {
    margin-top: .6rem;
    background: rgba(6, 20, 47, .97);
    border-radius: 16px;
    padding: 1rem;
  }

  html[data-theme="dark"] .navbar-collapse {
    background: rgba(244, 247, 251, .98);
  }

  .navbar-nav {
    margin-bottom: .85rem !important;
  }

  .nav-link {
    font-size: .96rem;
    font-weight: 700;
    padding: .75rem .9rem !important;
  }

  .premium-dropdown.dropdown-menu {
    min-width: 100%;
    width: 100%;
    max-width: none;
    left: 0 !important;
    transform: none !important;
    margin-top: .35rem;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: none;
    flex-direction: column;
    gap: .45rem;
  }

  .premium-dropdown.dropdown-menu.show {
    display: flex !important;
  }

  .premium-dropdown > li {
    min-width: 0;
    width: 100%;
  }

  .premium-dropdown .dropdown-item {
    flex-direction: row;
    align-items: center;
  }

  .premium-dropdown .dd-thumb {
    width: 72px;
    height: 54px;
  }

  .premium-dropdown.projects-dropdown {
    min-width: 100%;
  }

  .premium-dropdown.projects-dropdown .dd-thumb {
    height: 54px;
  }

  .premium-dropdown .dropdown-item:hover {
    transform: none;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .floating-header {
    top: 12px;
  }

  .floating-header .navbar {
    max-width: 95%;
  }

  .brand-logo,
  .brand-logo img {
    height: 30px;
    max-width: 132px;
  }

  .hero-section {
    padding-top: 110px;
  }

  .hero-card {
    min-height: 300px;
    height: 300px;
  }

  .image-frame {
    min-height: 320px;
  }

  .home-about-copy h2 {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
  }

  .home-about-copy p {
    font-size: .96rem;
    line-height: 1.78;
  }

  .section-space {
    padding: 70px 0;
  }

  .contact-info-card,
  .contact-form-card,
  .contact-map-card {
    border-radius: 18px;
  }

  .contact-block-title {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: .65rem .85rem;
  }
}

@media (max-width: 575px) {
  .timeline {
    grid-template-columns: 1fr;
  }

  .header-actions {
    gap: .7rem !important;
  }

  .lang-switch {
    gap: .35rem;
  }

  .social-links {
    gap: .4rem;
  }

  .lang-btn {
    font-size: .8rem;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    justify-content: center;
    padding: 0;
  }
}
