:root{
  --bg:#0b0b0b;
  --card:#0f1724;
  --muted:rgba(255,255,255,0.65);
  --primary-green: #2D5F4F;
  --secondary-green: #6BA895;
  --light-green: #9FD3C4;
  --accent-teal: #7DD3FC;
  --accent1: linear-gradient(135deg, #9FD3C4 0%, #6BA895 40%, #7DD3FC 100%);
  --glass: rgba(255,255,255,0.04);
  --prism: conic-gradient(from 120deg at 50% 50%, rgba(45,95,79,0.15), rgba(107,168,149,0.12), rgba(125,211,252,0.12));
}

/* Base visual language */
html,body{height:100%;}
body{
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(107,168,149,0.08), transparent),
              radial-gradient(1000px 400px at 90% 90%, rgba(159,211,196,0.06), transparent),
              #fbfbfd;
  color:#0b1220;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  font-size: 16px;
  padding-top: 80px;
}

/* Larger font size for laptop/desktop */
@media (min-width: 1024px){
  body{
    font-size: 18px;
  }
}

/* Hero prism stage */
.prism-stage{
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.prism-layer{
  position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;opacity:0.9;
  background:var(--prism);
  filter:blur(46px) saturate(120%);
  transform: translateZ(0);
}
.prism-lattice{
  position:absolute; inset: -10%; background-image: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.02), transparent 10%),
    radial-gradient(circle at 90% 90%, rgba(0,0,0,0.02), transparent 12%);
  mix-blend-mode:soft-light; pointer-events:none;
}

h1.display{
  font-family: 'Playfair Display', serif;
  font-weight:700; letter-spacing:-0.02em; line-height:0.9;
}

/* Rainbow refraction animation for hover */
@keyframes rainbow-refraction {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Optical card styles - Enhanced glassmorphism */
.optic-card{
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 8px 32px rgba(31,38,135,0.12),
              inset 0 1px 0 rgba(255,255,255,0.3);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
}

/* Rainbow refraction overlay - flowing with Gaussian falloff mask */
.optic-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 10%,
    rgba(255, 70, 130, 0.3) 20%,
    rgba(255, 180, 90, 0.3) 30%,
    rgba(255, 240, 100, 0.3) 40%,
    rgba(120, 255, 140, 0.3) 50%,
    rgba(90, 200, 255, 0.3) 60%,
    rgba(160, 100, 255, 0.3) 70%,
    rgba(255, 120, 200, 0.3) 80%,
    transparent 90%
  );
  background-size: 300% 100%;
  animation: rainbow-refraction 2s ease-in-out infinite;
  
  /* Gaussian falloff mask based on cursor distance */
  -webkit-mask-image: radial-gradient(
    circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.3) 55%,
    rgba(0, 0, 0, 0.15) 70%,
    transparent 85%
  );
  mask-image: radial-gradient(
    circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 20%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.3) 55%,
    rgba(0, 0, 0, 0.15) 70%,
    transparent 85%
  );
  
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.optic-card:hover::before{
  opacity: 1;
}

.optic-card > *{
  position: relative;
  z-index: 2;
}

/* Service icon container - translucent green rounded square (glassy) */
.service-icon-box{
  background: linear-gradient(135deg, rgba(4, 198, 75, 0.224), rgb(38, 168, 90)) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
  border: 1px solid rgba(22, 163, 74, 0.3) !important;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border-radius: 1rem !important;
}

/* Refraction line */
.refraction-line{height:2px;background:linear-gradient(90deg,#2D5F4F,#6BA895,#9FD3C4,#7DD3FC);border-radius:999px}

/* Subtle reveal */
.reveal{opacity:0;transform:translateY(8px);transition:opacity .7s ease,transform .7s ease}
.reveal.visible{opacity:1;transform:none}

/* Asymmetric grid */
.asym-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:2rem}
@media (max-width:900px){.asym-grid{grid-template-columns:1fr;}}

/* Fancy hover */
.hover-tilt{
  transition: transform .4s cubic-bezier(.2,.8,.2,1), 
              box-shadow .4s, 
              opacity .3s ease;
  opacity: 0.95;
}
.hover-tilt:hover{
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(12,15,20,0.16);
  opacity: 1;
}

/* Button animations */
button, .btn{
  transition: all 0.3s ease;
}

button:hover, .btn:hover{
  transform: translateY(-2px);
}

button:active, .btn:active{
  transform: translateY(0);
}

/* Hospital schedule cards */
#schedule .optic-card{
  display: flex;
  flex-direction: column;
}

/* Equipment page - significant hover effect */
#equipment .optic-card{
  transition: transform .4s cubic-bezier(.2,.8,.2,1), 
              box-shadow .4s;
}

#equipment .optic-card:hover{
  transform: scale(1.08);
  box-shadow: 0 24px 48px rgba(12,15,20,0.2);
  z-index: 10;
}

/* Section backgrounds with visual interest */
section{
  position: relative;
  isolation: isolate;
}

section#about{
  background: radial-gradient(1200px 600px at 20% 30%, rgba(107,168,149,0.35), transparent),
              radial-gradient(800px 400px at 80% 70%, rgba(159,211,196,0.28), transparent),
              linear-gradient(180deg, rgba(255,255,255,0.2), rgba(251,251,253,0.4));
}

section#about::before{
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(107,168,149,0.05) 0px, transparent 2px, transparent 40px),
    repeating-linear-gradient(0deg, rgba(159,211,196,0.05) 0px, transparent 2px, transparent 40px);
  pointer-events: none;
  z-index: 0;
}

section#services{
  background: radial-gradient(1200px 600px at 50% 0%, rgba(159,211,196,0.40), transparent),
              radial-gradient(800px 500px at 90% 50%, rgba(107,168,149,0.30), transparent),
              linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
}

section#credentials{
  background: radial-gradient(1000px 500px at 80% 30%, rgba(125,211,252,0.38), transparent),
              radial-gradient(900px 400px at 20% 80%, rgba(107,168,149,0.26), transparent),
              linear-gradient(135deg, rgba(255,255,255,0.2), rgba(251,251,253,0.3));
}

section#insights{
  background: radial-gradient(1100px 550px at 70% 50%, rgba(107,168,149,0.42), transparent),
              radial-gradient(800px 400px at 20% 20%, rgba(159,211,196,0.28), transparent),
              linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
}

section#schedule{
  background: radial-gradient(1000px 500px at 50% 30%, rgba(159,211,196,0.38), transparent),
              radial-gradient(800px 400px at 20% 80%, rgba(107,168,149,0.30), transparent),
              linear-gradient(180deg, rgba(255,255,255,0.25), rgba(251,251,253,0.4));
}

section#equipment{
  background: radial-gradient(1100px 550px at 30% 20%, rgba(125,211,252,0.36), transparent),
              radial-gradient(900px 450px at 80% 70%, rgba(107,168,149,0.32), transparent),
              linear-gradient(180deg, rgba(255,255,255,0.28), rgba(251,251,253,0.35));
}

section#contact{
  background: radial-gradient(1200px 600px at 50% 50%, rgba(159,211,196,0.36), transparent),
              radial-gradient(900px 450px at 10% 80%, rgba(107,168,149,0.32), transparent),
              radial-gradient(700px 350px at 90% 20%, rgba(125,211,252,0.24), transparent),
              linear-gradient(180deg, rgba(255,255,255,0.2), rgba(251,251,253,0.3));
}

/* Footer - Glass effect */
footer{
  border-top:1px solid rgba(255,255,255,0.2);
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)),
              radial-gradient(1200px 400px at 50% 100%, rgba(107,168,149,0.12), transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 -4px 24px rgba(45,95,79,0.08);
}

/* Modal */
.modal-backdrop{position:fixed;inset:0;background:rgba(6,8,13,0.5);display:flex;align-items:center;justify-content:center}

/* Accessible focus */
a:focus,button:focus,input:focus,textarea:focus{outline:3px solid rgba(120,90,255,0.14);outline-offset:3px}

/* Dark-mode support */
.dark-mode body{background:#06070a;color:#e6eef8}

/* Fixed header with enhanced glassmorphism */
header{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100 !important;
  background: rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* Header navigation link effects - rounded button style */
header nav a{
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: transparent;
  opacity: 0.8;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

header nav a:hover{
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  filter: drop-shadow(0 2px 4px rgba(45, 95, 79, 0.2)) 
          drop-shadow(0 0 8px rgba(107, 168, 149, 0.15));
  transform: translateY(-1px);
}

/* Header button specific styling */
header button{
  opacity: 0.9;
  transition: all 0.3s ease;
}

header button:hover{
  opacity: 1;
  filter: drop-shadow(0 4px 8px rgba(45, 95, 79, 0.25)) 
          drop-shadow(0 0 12px rgba(107, 168, 149, 0.2));
  transform: translateY(-2px);
}

/* Reduce wasted space - make content wider */
.max-w-7xl{
  max-width: 100% !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

.max-w-6xl{
  max-width: 100% !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

@media (min-width: 1280px){
  .max-w-7xl, .max-w-6xl{
    padding-left: 4rem !important;
    padding-right: 4rem !important;
  }
}

@media (min-width: 1536px){
  .max-w-7xl, .max-w-6xl{
    padding-left: 6rem !important;
    padding-right: 6rem !important;
  }
}
