@config "../tailwind.config.js";
@import "tailwindcss";

/* plugins must be imported in v4 */
@plugin "@tailwindcss/forms";

@layer base {
  @import "tailwindcss/preflight";
}

@layer components {
  button {
    cursor: pointer;
  }
  /* Navbar */
  .dg-nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e0e3e5;
    height: 80px;
  }

  .dg-nav-container {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
  }

  @media (min-width: 768px) {
    .dg-nav-container {
      padding: 0 80px;
    }
  }

  .dg-nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
  }

  .dg-nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00355f;
    transition: width 0.3s ease;
  }

  .dg-nav-link:hover::after {
    width: 100%;
  }

  /* Mega Menu Styles */
  .dg-nav-mega-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: radial-gradient(circle at 20% 30%, #00355f 0%, #001c37 100%);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .dg-nav-mega-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dg-navbar-service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
  }

  .dg-navbar-service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
  }

  /* Mobile Drawer Styles */
  .dg-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 110;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
  }

  .dg-nav-drawer.is-active {
    transform: translateX(0);
  }

  .dg-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .dg-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
  }

  .dg-nav-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .dg-nav-accordion.is-open {
    max-height: 1000px;
  }

  /* Clinical Prism Utility */
  .clinical-prism-bg {
    background: radial-gradient(circle at 20% 30%, #00355f 0%, #001c37 100%);
  }
  .clinical-light-beam {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(
      circle,
      rgba(161, 239, 255, 0.1) 0%,
      transparent 70%
    );
    filter: blur(40px);
    pointer-events: none;
  }
  .clinical-glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }

  /* General Prism Utility */
  .clinical-prism-bg {
    background: radial-gradient(circle at 20% 30%, #0f4c81 0%, #001c37 100%);
  }
  .clinical-light-beam {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(
      circle,
      rgba(161, 239, 255, 0.1) 0%,
      transparent 70%
    );
    filter: blur(40px);
    pointer-events: none;
  }
  .clinical-glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }

  /* Hero css */
  .hero-slider-ken-burns {
    animation: kenburns 20s infinite alternate;
  }
  @keyframes kenburns {
    0% {
      transform: scale(1) translate(0, 0);
    }
    100% {
      transform: scale(1.1) translate(-1%, -1%);
    }
  }
  .hero-slider-glass-sapphire {
    background: rgba(15, 117, 188, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .hero-slider-item {
    transition:
      transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.8s ease;
  }
  .hero-slider-progress-bar {
    transition:
      height 0.4s ease,
      opacity 0.4s ease;
  }
  /* about */
  .glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .magnetic-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(0, 53, 95, 0.3);
  }
  .material-symbols-outlined {
    font-variation-settings:
      "FILL" 0,
      "wght" 300,
      "GRAD" 0,
      "opsz" 24;
  }
  .hero-card-gradient {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  }
  .glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  /* services css */

  .slider-container {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: flex;
    gap: 16px;
  }
  .slider-container::-webkit-scrollbar {
    display: none;
  }

  /* Exact 4 cards in first row calculation: (100% - (3 * gap)) / 4 */
  .prism-card {
    flex: 0 0 calc((100% - (3 * 16px)) / 4);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    min-width: 280px;
    height: 448px; /* Maintain the reduced height style from previous version */
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
  }

  .prism-image {
    filter: brightness(0.9) contrast(1.05);
    transition: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .prism-card:hover .prism-image {
    filter: brightness(1) contrast(1);
    transform: scale(1.05);
  }

  .prism-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
  }
  .prism-card:hover .prism-content {
    opacity: 1;
    transform: translateY(0);
  }

  .prism-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.7;
  }
  .prism-card:hover .prism-label {
    opacity: 0;
    transform: rotate(180deg) translateY(-20px);
  }

  .magnetic-btn {
    position: relative;
    transition: transform 0.3s ease-out;
  }
  .magnetic-btn:hover {
    transform: scale(1.05);
  }

  /* WHY CHOOSE US */
  .blueprint-grid {
    background-size: 40px 40px;
    background-image:
      linear-gradient(to right, rgba(160, 201, 255, 0.08) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(160, 201, 255, 0.08) 1px, transparent 1px);
  }
  .cinematic-blue-bg {
    background: radial-gradient(
      circle at 0% 0%,
      #0f4c81 0%,
      #001c37 50%,
      #000c1a 100%
    );
    position: relative;
  }
  .liquid-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(
      circle,
      rgba(142, 189, 249, 0.15) 0%,
      transparent 70%
    );
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
  }
  .architectural-line {
    background: linear-gradient(
      90deg,
      transparent,
      rgba(160, 201, 255, 0.3) 20%,
      rgba(160, 201, 255, 0.3) 80%,
      transparent
    );
  }

  /* Why Choose Us Card Styles */
  .why-choose-us-card {
    position: relative;
    overflow: hidden;
    background: #0f4c81;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .why-choose-us-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* opacity: 0.8; */
    transition:
      opacity 0.6s ease,
      transform 0.6s ease,
      filter 0.6s ease;
    z-index: 1;
  }

  .why-choose-us-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(
    to top,
    rgba(15, 76, 129, 0.9) 0%,
    rgba(15, 76, 129, 0.2) 60%,
    transparent 100%
  ); */
    z-index: 2;
    transition: background 0.6s ease;
  }

  .why-choose-us-content-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
  }

  .why-choose-us-reveal {
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .why-choose-us-card:hover .why-choose-us-reveal {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 2rem;
  }

  .why-choose-us-card:hover .why-choose-us-image {
    opacity: 0.4;
    transform: scale(1.05);
    filter: blur(4px);
  }

  .why-choose-us-card:hover .why-choose-us-overlay {
    background: linear-gradient(
      to top,
      rgba(15, 76, 129, 1) 0%,
      rgba(15, 76, 129, 0.8) 100%
    );
  }

  .why-choose-us-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
  /* stat cards */
  .glass-shard {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  .holographic-gradient {
    background: linear-gradient(135deg, #00355f 0%, #006877 50%, #2fd9f4 100%);
  }
  .clinical-glow {
    box-shadow: 0 30px 50px rgba(0, 53, 95, 0.06);
  }

  /* clinic section */
  .vanguard-clinic .mathematical-grid {
    background-image:
      linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
  }
  .vanguard-clinic .glass-card {
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  .vanguard-clinic .action-energy-gradient {
    background: linear-gradient(102deg, #00e3fd 0%, #a0c9ff 100%);
  }
  .vanguard-clinic .diagonal-split {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  }
  @media (max-width: 768px) {
    .vanguard-clinic .diagonal-split {
      clip-path: none;
    }
  }

  /* FAQ SECTION */
  .dg-faq-panel-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
  }
  .dg-faq-panel-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuDD0avNe8QIfPPhottL5MYEo9DAk6GbuUdZ_Zo3sI9Nsj6JcPHxhmIFB0cJ2v6951vmUprtEJ4SEDVNOFMoxepQmhwKUoLBYE_rnW6oEjZ9ZXS6BC_svlzYx-kF9TXXmKswUHYFa07wL6ZokliLEy7moal2SbFdYS8v9Wqxg54QOvf5LYM-3Tx4Or9Qrp-FBF6FCMhtINFuK2YyPWCpAd_Ub-y6pOqPLTNKjrRd_Jh075oKw2NhtM3fXuPBXzprpT7SLUyNQfvfXh4);
    opacity: 0.02;
    pointer-events: none;
  }
  .dg-faq-accordion-body {
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }
  .dg-faq-item-active .dg-faq-accordion-body {
    max-height: 500px;
    opacity: 1;
    padding-top: 1rem;
  }
  .dg-faq-focus-glow:focus-within {
    border-bottom: 2px solid #2fcbe3;
    box-shadow: 0 4px 20px -10px rgba(47, 203, 227, 0.3);
  }
  .dg-faq-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -15px rgba(15, 76, 129, 0.1);
  }
  @keyframes dg-faq-shimmer {
    0% {
      transform: translateX(-100%) skewX(-12deg);
    }
    100% {
      transform: translateX(100%) skewX(-12deg);
    }
  }
  .dg-faq-shimmer-effect {
    animation: dg-faq-shimmer 5s infinite;
  }

  /* TESTIMONIAL CSS */
  /* Scoped Testimonial Styles */
  .testimonial-section .testimonial-slider-container {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .testimonial-section .testimonial-slider-container::-webkit-scrollbar {
    display: none;
  }

  .testimonial-section .testimonial-card {
    transition: all 0.5s cubic-bezier(0.8, 0, 0.2, 1);
    min-height: 420px;
    background: linear-gradient(135deg, #00355f 0%, #002a4d 100%);
    position: relative;
    overflow: hidden;
  }

  .testimonial-section .testimonial-card::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuDpl5TTHdELgyKtqRQFU0lSBW5vlxnSpI-Ow--Xh3JJ6fesbmx0xa7zJ3nwumlVO9esaT38N4BWiZD-6gahlnMULP1LHQVaTFPdLsxVXRYQDYq6OsmFRLpnV2S5p6GAtPCKOJikG07KACM6yxXaczhoC-uPoGUg3IYv3gqcuUPaFHalRsly8UnrGQvRtnkmHZ-yeg_uw6vXqph9CscEPu-mTfdssQR9JPbyZwsCJR2o3WrO81-eC4J_RdyYTu4j1CJHDklQXbSVZrw);
    background-size: cover;
    background-position: center;
    pointer-events: none;
    mix-blend-mode: overlay;
    transition: opacity 0.5s ease;
  }

  .testimonial-section .testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  .testimonial-section .testimonial-card:hover::after {
    opacity: 0.2;
  }

  .testimonial-section .glass-panel {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  }

  /* contact css */
  /* Scoped styles for the contact section to ensure perfect layout scaling */
  .vanguard-contact-main-wrapper {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .glass-panel-service {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
  }

  /* content */
  .dg-glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  }
  .dg-grain {
    position: relative;
  }
  .dg-grain::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.02;
    pointer-events: none;
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuC3zmh3PV6HPiSHJFSeXm_cuDtcJRRU_UUJiXj59rVc17eQALGbASPemcXNgjtrXaI1CiNLtflThTVIpyqu6CBrzdh2m2HsgNoDktZHqjmCzPAIYMlbsq65jMz9jOUovGnXlcC2vZTlGFXGPJqnsO5AUBy6HuWKa92oUl59hLCVZAeGytq4uTS07xziCvykQTHAOcvCpEugvCoQDr5RMaGSOQgGEBlR99mXcelKzSV4KDYdKfVASCoD4FLGlkNYXw5AdKjpYsCd-k4);
  }

  /* Our team */

  /* Custom Glassmorphism Effect */
  .glass-card-team {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Portrait Background Gradient for Clinical Blue/Purple feel */
  .portrait-container {
    background: linear-gradient(135deg, #6063ee 0%, #0f4c81 100%);
    position: relative;
    overflow: hidden;
  }

  /* Smooth hover scaling */
  .team-card-hover {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }
  .team-card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(11, 28, 48, 0.15);
  }

  /* CONTACT US PAGE */
  .contact-page-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    shadow: 0 40px 60px -20px rgba(0, 53, 95, 0.05);
  }
  .contact-page-obsidian {
    background: linear-gradient(135deg, #02305d 0%, #0f4c81 100%);
    position: relative;
    overflow: hidden;
  }
  .contact-page-obsidian::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
      circle at top right,
      rgba(47, 203, 227, 0.15),
      transparent 60%
    );
    pointer-events: none;
  }
  .contact-page-glass-inset {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .contact-page-hour-row {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .contact-page-hour-row::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2fcbe3, transparent);
    transition: width 0.6s ease;
  }
  .contact-page-hour-row::before {
    width: 100%;
  }
  .contact-page-progress-beam {
    background: linear-gradient(90deg, #0f4c81 0%, #2fcbe3 50%, #0f4c81 100%);
    background-size: 200% 100%;
    animation: beam 3s infinite linear;
  }
  @keyframes beam {
    0% {
      background-position: 100% 0;
    }
    100% {
      background-position: -100% 0;
    }
  }
}
