/* =============================================
   RESPONSIVE CSS - Zodiac Medicals
   ============================================= */

/* =============================================
   HERO SECTION - DIAMOND CARDS RESPONSIVE
   Ensures all 4 cards are ALWAYS visible
   ============================================= */

/* Large Desktop (1200px - 1399px) */
@media (max-width: 1399.98px) {
  .diamond-cards-wrapper {
    width: 460px;
    height: 650px;
    margin-left: 20px;
  }

  .diamond-card {
    width: 130px;
    height: 130px;
  }

  .diamond-card.card-1 {
    top: 0;
    left: 40px;
  }

  .diamond-card.card-2 {
    top: 145px;
    left: 230px;
  }

  .diamond-card.card-3 {
    top: 310px;
    left: 20px;
  }

  .diamond-card.card-4 {
    top: 455px;
    left: 210px;
  }

  .diamond-inner .card-content {
    width: 110px;
  }

  .diamond-inner .card-content h3 {
    font-size: 0.82rem;
  }

  .diamond-inner .icon-box {
    width: 40px;
    height: 40px;
  }

  .diamond-inner .icon-box i {
    font-size: 1.1rem;
  }
}

/* Medium Desktop (992px - 1199px) */
@media (max-width: 1199.98px) {
  body {
    font-size: 0.98rem;
  }

  .hero-tilted-section .row.min-vh-100 {
    min-height: auto !important;
  }

  .hero-bg-image {
    width: 65% !important;
  }

  .diamond-cards-wrapper {
    width: 400px;
    height: 580px;
    margin-left: 10px;
  }

  .diamond-card {
    width: 120px;
    height: 120px;
  }

  .diamond-card.card-1 {
    top: 0;
    left: 30px;
  }

  .diamond-card.card-2 {
    top: 130px;
    left: 200px;
  }

  .diamond-card.card-3 {
    top: 275px;
    left: 15px;
  }

  .diamond-card.card-4 {
    top: 405px;
    left: 185px;
  }

  .diamond-inner .card-content {
    width: 100px;
  }

  .diamond-inner .card-content h3 {
    font-size: 0.78rem;
  }

  .diamond-inner .icon-box {
    width: 36px;
    height: 36px;
  }

  .diamond-inner .icon-box i {
    font-size: 1rem;
  }
}

/* Tablet / Small Desktop (below 992px) */
@media (max-width: 991.98px) {
  body {
    font-size: 0.96rem;
  }

  .navbar-brand {
    font-size: 1.6rem;
  }

  .navbar-nav .nav-link {
    padding: 0.35rem 0.9rem;
    text-align: center;
  }

  .navbar .btn.btn-primary {
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
  }

  .page-header {
    text-align: center;
  }

  .page-header .page-header-icon {
    margin-top: 1.5rem;
  }

  .our-strengths .row.align-items-center {
    row-gap: 2rem;
  }

  /* Hero Section - Full width with centered cards */
  .hero-tilted-section .row.min-vh-100 {
    min-height: auto !important;
    flex-direction: column;
  }

  .hero-tilted-section .col-lg-6.hero-content-left {
    width: 100%;
    padding: 100px 20px 60px;
  }

  .hero-bg-image {
    width: 100% !important;
    opacity: 0.4;
  }

  .hero-image-shade {
    width: 100% !important;
    background: linear-gradient(to bottom, rgba(240, 247, 255, 0.9) 0%, rgba(240, 247, 255, 0.6) 50%, transparent 100%) !important;
  }

  /* =========================================
     PREMIUM CARD LAYOUT - Beautiful 2x2 Grid
     Modern, elegant healthcare cards
     ========================================= */
  .diamond-cards-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 580px;
    height: auto !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 24px;
  }

  /* =========================================
     ENTRANCE ANIMATIONS - Fade up each card
     ========================================= */
  @keyframes cardFadeUp {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }

    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Apply entrance animation to each card with staggered delays */
  .diamond-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    opacity: 0;
    animation: cardFadeUp 0.6s ease-out forwards !important;
    -webkit-animation: cardFadeUp 0.6s ease-out forwards !important;
  }

  .diamond-card.card-1 {
    animation-delay: 0.1s !important;
    -webkit-animation-delay: 0.1s !important;
  }

  .diamond-card.card-2 {
    animation-delay: 0.2s !important;
    -webkit-animation-delay: 0.2s !important;
  }

  .diamond-card.card-3 {
    animation-delay: 0.3s !important;
    -webkit-animation-delay: 0.3s !important;
  }

  .diamond-card.card-4 {
    animation-delay: 0.4s !important;
    -webkit-animation-delay: 0.4s !important;
  }

  .diamond-inner {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    border-radius: 18px;
    padding: 24px 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    /* Premium glassmorphism background */
    background: linear-gradient(165deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 252, 255, 0.95) 40%,
        rgba(240, 248, 255, 0.92) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Refined shadow for depth */
    box-shadow:
      0 12px 32px -8px rgba(0, 60, 120, 0.12),
      0 6px 16px -4px rgba(0, 80, 150, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);

    /* Subtle border */
    border: 1px solid rgba(180, 210, 240, 0.35);

    /* Smooth hover transition */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Top accent gradient line */
  .diamond-inner::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg,
        #0077CC 0%,
        #00A8E8 50%,
        #0077CC 100%);
    border-radius: 0 0 3px 3px;
    opacity: 0.9;
    transition: all 0.4s ease;
  }

  /* =========================================
     PREMIUM HOVER ANIMATIONS
     Modern, professional interactive effects
     ========================================= */

  /* Card hover - lift and glow */
  .diamond-card:hover .diamond-inner {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
      0 20px 45px -12px rgba(0, 80, 150, 0.22),
      0 12px 28px -8px rgba(0, 100, 180, 0.15),
      0 0 0 1px rgba(0, 136, 221, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }

  /* Accent bar glow on hover */
  .diamond-card:hover .diamond-inner::before {
    left: 15px;
    right: 15px;
    height: 4px;
    opacity: 1;
    box-shadow: 0 2px 12px rgba(0, 168, 232, 0.5);
  }

  /* Content styling */
  .diamond-inner .card-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    text-align: center;
    padding: 0;
  }

  .diamond-inner .card-content h3 {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #1a3a52;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
  }

  /* Text color change on hover */
  .diamond-card:hover .card-content h3 {
    color: #0066BB;
  }

  /* Premium icon box with gradient */
  .diamond-inner .icon-box {
    width: 54px;
    height: 54px;
    margin: 8px auto 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, #0088DD 0%, #0066BB 100%);
    box-shadow:
      0 8px 20px -4px rgba(0, 100, 180, 0.4),
      0 4px 10px -2px rgba(0, 60, 120, 0.25);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .diamond-inner .icon-box i {
    font-size: 1.35rem;
    color: white;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Icon rotation on hover - 360 degree spin */
  .diamond-card:hover .icon-box {
    transform: scale(1.1);
    box-shadow:
      0 12px 28px -6px rgba(0, 100, 180, 0.5),
      0 6px 14px -3px rgba(0, 60, 120, 0.3),
      0 0 20px rgba(0, 168, 232, 0.3);
    background: linear-gradient(145deg, #00A8E8 0%, #0077CC 100%);
  }

  .diamond-card:hover .icon-box i {
    transform: rotate(360deg);
  }

  /* Subtle pulse animation on hover */
  @keyframes subtle-pulse {

    0%,
    100% {
      box-shadow: 0 0 0 0 rgba(0, 136, 221, 0.2);
    }

    50% {
      box-shadow: 0 0 0 8px rgba(0, 136, 221, 0);
    }
  }

  .diamond-card:hover .icon-box {
    animation: subtle-pulse 1.5s ease-in-out infinite;
  }
}

/* Tablet Portrait & Mobile Landscape (below 768px) */
@media (max-width: 767.98px) {
  body {
    font-size: 0.94rem;
    padding-top: 70px;
    background-attachment: scroll;
    overflow-x: hidden;
  }

  h1,
  .display-4 {
    font-size: 2rem !important;
  }

  .display-5 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .lead {
    font-size: 1rem;
  }

  section.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .our-strengths .row.align-items-center {
    flex-direction: column-reverse;
  }

  .our-strengths .strengths-image {
    margin-bottom: 1.5rem;
  }

  .strategic-partners .display-4 {
    font-size: 2rem;
  }

  .products-section .product-card-item {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .product-card-image {
    height: 220px;
  }

  .contact-form {
    padding: 1.75rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .quick-contact {
    margin-top: 2rem;
  }

  .timeline {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Hero Section - Mobile Layout */
  .hero-tilted-section .col-lg-6.hero-content-left {
    padding: 90px 15px 40px;
  }

  .hero-bg-image {
    opacity: 0.35;
  }

  /* Premium cards for mobile landscape */
  .diamond-cards-wrapper {
    gap: 14px;
    padding: 16px;
  }

  .diamond-inner {
    padding: 20px 14px 18px;
    border-radius: 16px;
  }

  .diamond-inner::before {
    left: 16px;
    right: 16px;
  }

  .diamond-inner .card-content h3 {
    font-size: 0.88rem;
  }

  .diamond-inner .icon-box {
    width: 50px;
    height: 50px;
    margin: 6px auto 14px;
    border-radius: 13px;
  }

  .diamond-inner .icon-box i {
    font-size: 1.25rem;
  }
}

/* Mobile Portrait (below 576px) */
@media (max-width: 575.98px) {
  section.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .navbar-logo {
    height: 40px;
  }

  .navbar-nav .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .navbar .btn.btn-primary {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
  }

  .page-header h1,
  .page-header .display-4 {
    font-size: 1.75rem !important;
  }

  .contact-form {
    padding: 1.5rem 1.25rem;
  }

  .products-section .product-card-image {
    height: 210px;
  }

  .partners-logo-belt-inner {
    gap: 1.5rem;
  }

  /* Hero Section - Smallest Mobile */
  .hero-tilted-section .col-lg-6.hero-content-left {
    padding: 80px 10px 30px;
  }

  /* Premium cards for smallest phones */
  .diamond-cards-wrapper {
    gap: 12px;
    padding: 12px;
  }

  .diamond-inner {
    padding: 18px 12px 16px;
    border-radius: 14px;
  }

  .diamond-inner::before {
    left: 14px;
    right: 14px;
    height: 2px;
  }

  .diamond-inner .card-content h3 {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .diamond-inner .icon-box {
    width: 46px;
    height: 46px;
    margin: 5px auto 12px;
    border-radius: 12px;
  }

  .diamond-inner .icon-box i {
    font-size: 1.15rem;
  }
}

/* =============================================
   FOOTER RESPONSIVE TWEAKS
   ============================================= */

/* Tablet & small desktop footer adjustments */
@media (max-width: 991.98px) {
  footer.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  footer.py-5 p,
  footer.py-5 li,
  footer.py-5 a {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  footer.py-5 ul li {
    margin-bottom: 0.3rem;
  }

  footer.py-5 .mb-4 {
    margin-bottom: 1.25rem !important;
  }

  footer.py-5 hr {
    margin: 1.25rem 0;
  }
}

/* Mobile footer - more compact & centered */
@media (max-width: 767.98px) {
  footer.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Top footer columns: 2 columns layout to reduce height */
  footer.py-5 .row:not(.align-items-center) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 1.25rem;
  }

  footer.py-5 .row:not(.align-items-center)>[class*="col-"] {
    margin-bottom: 0 !important;
  }

  footer.py-5 .row.align-items-center {
    text-align: center;
    row-gap: 0.5rem;
  }

  footer.py-5 .row.align-items-center .col-md-6 {
    margin-bottom: 0.25rem;
  }

  footer.py-5 p,
  footer.py-5 li,
  footer.py-5 a {
    font-size: 0.85rem;
  }

  footer.py-5 ul {
    padding-left: 0;
  }

  footer.py-5 hr {
    margin: 1rem 0;
  }
}

/* Extra small phones */
@media (max-width: 575.98px) {
  footer.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  footer.py-5 p,
  footer.py-5 li,
  footer.py-5 a {
    font-size: 0.8rem;
  }
}