/* Blue Chip Biosystems – Minimal dark redesign (drop-in) */
/* Palette: #003262 (dark), #0a5ab3, #2484c3, #54d1e0, #c5f9ff, #ffffff, #000000 */

:root{
  --bg: #35165d;           /* primary page background */
  --purple: #6100ad;         /* supporting blue (accents) */
  --pink: #df5de6;
  --vivid-lavender: #d84dff;
  --lavender: #c566e1;
  --white: #ffffff;
  --black: #000000;

  --max-width: 1100px;

  /* Spacing & radii */
  --gap: 28px;
  --radius: 14px;

  /* Typography */
  --head: 900;
  --lead: 300;

  /* Fonts */
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Gradient backgrounds */
  --gradient-left: radial-gradient(circle at top left, #df5de6, #6100ad);
  --gradient-right: radial-gradient(circle at bottom left, #df5de6, #6100ad);
}

/* Base */
*{box-sizing:border-box}
html {
  overflow-x: hidden;
}


body{
  font-family: var(--font-body);
  background: #001a33;
  color: var(--white);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.35;
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
  overflow-x: hidden;
}

/* Headings: League Spartan */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

h1 {
  font-family: "Cinzel Decorative", serif;
}

h2 {
  font-family: "Arapey", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-bottom: 20px; /* Changed from 28px */
}

/* Fullscreen panels */
main { 
  overflow: hidden; /* Changed from overflow-y:visible, overflow-x:hidden */
  min-height: auto; /* Changed from 100vh */
  height: auto; 
  position: relative;
}

.panel {
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px; /* Changed from 40px */
  scroll-snap-align: none; /* Changed from start */
  box-sizing: border-box;
  position: relative;
  overflow: visible; /* Changed from visible */
}

/* Panel backgrounds using variables */
#home { background: var(--gradient-left); }
#technology { 
  background: var(--gradient-right);
}
#services { 
  background: var(--gradient-left);
}
#team { 
  background: var(--gradient-right);
}
#contact { 
  background: var(--gradient-right);
  min-height: unset;
  padding: 80px 20px;
} 

.panel-inner {
  font-size: 1.2rem; 
  width:100%; 
  max-width:var(--max-width); 
  margin:0 auto; 
  text-align:center; 
  padding: 0;
  line-height: 1.6;
}

/* Header */
.site-header{
  position:fixed; 
  inset:0 0 auto 0; 
  height:90px; /* Increased from 80/85px */
  display:flex; 
  align-items:center;
  backdrop-filter: blur(12px); 
  z-index:60; 
  padding:0 20px;
  background: linear-gradient(to bottom, rgba(75, 0, 98, 0.85), rgba(39, 0, 51, 0.7));
  border-bottom: 1px solid rgba(224, 84, 203, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header-inner{ width:100%; max-width:var(--max-width); margin:0 auto; display:flex; align-items:center; gap:12px; }
.brand{ 
  color:var(--white); 
  text-decoration:none; 
  display:flex; 
  align-items:center; 
  gap:14px; 
  font-weight:700;
  transition: transform 0.2s ease;
}
.brand:hover {
  transform: scale(1.05);
}
.brand img {
  filter: drop-shadow(0 2px 8px rgba(224, 84, 219, 0.4));
  display: block;
  height: 42px; /* Slightly larger with breathing room */
}
.brand-mark{ 
  background:var(--white); 
  color:var(--bg); 
  font-weight:900; 
  width:48px; 
  height:48px; 
  display:grid; 
  place-items:center; 
  border-radius:10px;
  box-shadow: 0 4px 12px rgba(224, 84, 210, 0.3);
}
.brand-text{ font-size:1.15rem; opacity:0.95; }

.nav{ margin-left:auto; display:flex; gap:8px; align-items:center; }
.nav a{ 
  color:var(--lavender); 
  text-decoration:none; 
  font-weight:600; 
  padding:10px 18px; 
  border-radius:999px;
  transition: all 0.3s ease;
  font-size: 1.05rem;
  font-family: var(--font-heading);
}
.nav a:not(.cta-link):hover{ 
  color:var(--white); 
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 4px 12px rgba(195, 36, 187, 0.3);
  transform: translateY(-2px);
}
.nav .cta-link{ 
  color:var(--lavender);
  background: linear-gradient(135deg, var(--vivid-lavender), var(--pink));
  padding:12px 22px; /* Reduced from 18px 36px */
  border-radius:999px; 
  font-weight:800; /* Slightly less than 900 */
  box-shadow: 0 10px 40px rgba(224, 84, 224, 0.4), 0 4px 12px rgba(36, 132, 195, 0.3);
  font-family: var(--font-heading);
  font-size: 1.05rem; /* Match other nav links */
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.nav .cta-link:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--vivid-lavender), var(--pink));
  box-shadow: 0 20px 60px rgba(205, 84, 224, 0.5), 0 8px 20px rgba(182, 36, 195, 0.4);
  transform: translateY(-3px) scale(1.02);
}
.nav .cta-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.nav .cta-link:hover::before {
  left: 100%;
}

.menu-toggle{ display:none; background:none; border:0; width:44px; height:44px; align-items:center; justify-content:center; }

/* HERO */
.hero{ 
  display:flex; 
  align-items:center; 
  justify-content:center;
  overflow: visible; /* Make sure this is set */
  padding: 80px 20px; /* Add more vertical padding */
}
.hero h1{
  font-weight:var(--head); 
  font-size:clamp(3.5rem, 8vw, 6.8rem); 
  letter-spacing:-0.03em; 
  margin:0;
  line-height:1.1; /* Changed from 0.95 to give more space */
  color:var(--white); 
  text-wrap:balance;
  text-shadow: 0 4px 20px rgba(219, 84, 224, 0.4), 0 8px 40px rgba(195, 36, 195, 0.3);
  /* background: linear-gradient(180deg, #ffffff 0%, #c5f9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; */
  padding-bottom: 8px; /* Add padding to prevent cutoff */
}
.kicker{
  font-weight:600; font-size:1.4rem; margin-top:24px;
  color: rgba(255, 197, 245, 0.95); text-wrap:balance;
  text-shadow: 0 2px 12px rgba(219, 84, 224, 0.3);
}
.hero h2{ 
  margin-top:24px; 
  color:var(--white); 
  font-weight:400; 
  font-size:1.9rem; 
  max-width:54ch; 
  margin-left:auto; 
  margin-right:auto;
  font-family: var(--font-body);
  /* font-style: italic; */
  /* text-shadow: 0 2px 10px rgba(36, 132, 195, 0.2); */
}
.hero-cta{ margin-top:36px; }

/* Button */
.btn{
  display:inline-block; border-radius:999px; padding:18px 36px; font-weight:900; text-decoration:none;
  background: linear-gradient(135deg, var(--purple), var(--lavender));
  color:var(--white); 
  box-shadow: 0 10px 40px rgba(224, 84, 208, 0.4), 0 4px 12px rgba(195, 36, 190, 0.3);
  transition: transform .2s ease, box-shadow .3s ease;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
  font-family: var(--font-heading);
  cursor: pointer;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.btn:hover::before {
  left: 100%;
}
.btn:hover{ 
  transform: translateY(-3px) scale(1.02); 
  box-shadow: 0 20px 60px rgba(224, 84, 224, 0.5), 0 8px 20px rgba(195, 36, 190, 0.4);
}
.btn:focus {
  outline: none;
  box-shadow: 0 20px 60px rgba(205, 84, 224, 0.5), 0 8px 20px rgba(195, 36, 190, 0.4), 0 0 0 3px rgba(198, 84, 224, 0.3);
}

/* Narrow content for copy sections */
.narrow{ max-width:900px; }

.section-desc {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ---- Services grid ---- */
.services-panel .section-desc { 
  color: rgba(255,255,255,0.9); 
  margin-bottom:32px; 
  font-family:var(--font-body);
  font-size: 1.25rem;
  line-height: 1.7;
}

.services-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:32px;
  margin-top:32px;
  align-items:start;
}

/* card */
.service-card{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  background: linear-gradient(135deg, rgba(67, 0, 98, 0.9), rgba(148, 10, 179, 0.7));
  backdrop-filter: blur(12px);
  border-radius:18px;
  overflow:hidden;
  width: 100%;
  height: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(224, 84, 224, 0.2);
  transition: transform .2s ease, box-shadow .3s ease;
  border: 1px solid rgba(224, 84, 224, 0.15);
}

/* image area (top) */
.service-image{
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow:hidden;
  background: linear-gradient(135deg, rgba(224, 84, 215, 0.08), rgba(195, 36, 187, 0.06));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:15%;
  background-position: center center;
  flex-shrink: 0;
  margin: 0;
  position: relative;
}

.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(82, 0, 98, 0.3) 100%);
  pointer-events: none;
}

.service-image img {
  width:100%;
  height:100%;
  object-fit:contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(219, 84, 224, 0.3));
  border-radius: 12px; /* Add rounded corners to the actual image */
}

/* content area */
.service-content{
  padding:28px;
  display:flex;
  flex-direction:column;
  gap:10px;
  justify-content:flex-start;
  background: linear-gradient(180deg, transparent, rgba(60, 0, 50, 0.4));
  flex: 1;
}
.service-title{ 
  font-size:1.5rem; 
  color:var(--white); 
  margin:0;
  text-shadow: 0 2px 8px rgba(208, 84, 224, 0.3);
}
.service-tagline{ 
  margin:0; 
  color: rgba(197, 249, 255, 0.9); 
  font-family:var(--font-body);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* hover subtle lift */
.service-card:hover{ 
  transform: translateY(-6px) scale(1.02); 
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(84, 209, 224, 0.4), 0 0 40px rgba(84, 209, 224, 0.2); 
}

/* responsive: stack cards on small screens */
@media (max-width: 920px) {
  .services-grid{ grid-template-columns:1fr; }
}


/* ---- Technology layout ---- */
.tech-panel .section-desc{ 
  color: rgba(255,255,255,0.9); 
  margin-bottom:36px;
  font-size: 1.25rem;
  line-height: 1.7;
}

.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  width: 100%; /* Changed from max-width */
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box; /* Add this */
}

.tech-panel .panel-inner {
  max-width: var(--max-width);
  overflow: visible;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%; /* Add this */
}

/* big MPS image */
.tech-mps {
  width: 100%;
  max-width: 550px;
  max-height: 420px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  border: 2px solid rgba(84, 209, 224, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(84, 209, 224, 0.15);
  position: relative;
  overflow: hidden;
}

.tech-mps::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(84, 209, 224, 0.1), transparent 50%, rgba(36, 132, 195, 0.1));
  pointer-events: none;
}

/* aspect list on the right */
.tech-aspects {
  display: grid;
  gap: 24px;
  overflow: visible;
  max-width: 100%;
  width: 100%; /* Add this */
  box-sizing: border-box; /* Add this */
}
.tech-aspect {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 50, 98, 0.85), rgba(10, 90, 179, 0.7));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(84, 209, 224, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  overflow: visible;
  max-width: 100%;
  box-sizing: border-box;
  position: relative; /* Add this */
  z-index: 1; /* Add this */
}
.tech-aspect:hover {
  transform: translateX(6px); /* Reduced from 8px */
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(84, 209, 224, 0.15);
  z-index: 10;
}
.aspect-image {
  width: 100px;
  height: 100px;
  border-radius: 12px;
}
.tech-aspect h4 {
  font-size: 1.35rem;
  margin: 0 0 6px;
  color: var(--lavender);
}
.aspect-tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}

.aspect-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* border: 1px solid rgba(84, 209, 224, 0.25); */
  box-shadow: 0 4px 16px rgba(84, 209, 224, 0.2);
  background-color: rgba(36, 132, 195, 0.1);
}

@media (max-width: 980px){
  .tech-layout{ 
    grid-template-columns: 1fr; 
    overflow: visible; /* Keep visible */
    max-width: 100%;
    width: 100%;
  }
  
  .tech-panel .panel-inner {
    max-width: 100%;
    overflow: visible; /* Keep visible */
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
  }
  
  .tech-aspects {
    overflow: visible; /* Keep visible */
    width: 100%;
    max-width: 100%;
  }
  
  .tech-aspect:hover {
    transform: scale(1.02); /* Change from translateY(-4px) to scale */
    z-index: 10;
  }
}

/* ---- Team ---- */
.team-panel .section-desc{ 
  color: rgba(255,255,255,0.9); 
  margin-bottom:32px;
  font-size: 1.25rem;
  line-height: 1.7;
}

.team-panel .panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  justify-items: center;
}

@media (min-width: 981px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* person card */
.person-card{
  display:flex;
  gap:22px;
  align-items:flex-start;
  background: linear-gradient(135deg, rgba(98, 0, 95, 0.85), rgba(171, 10, 179, 0.7));
  backdrop-filter: blur(12px);
  padding:24px;
  border-radius:16px;
  border:1px solid rgba(224, 84, 224, 0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(201, 84, 224, 0.15);
}
.headshot.circle{
  width:140px;
  height:140px;
  border-radius:50%;
  object-fit:cover;
  border: 3px solid rgba(224, 84, 194, 0.3);
  flex:0 0 140px;
  box-shadow: 0 8px 24px rgba(191, 84, 224, 0.3);
}

/* meta */
.person-meta h3{ 
  font-size:1.3rem; 
  margin:0 0 6px; 
  color:var(--lavender);
  text-shadow: 0 2px 8px rgba(208, 84, 224, 0.3);
}
.person-meta .title{ 
  margin:4px 0 12px; 
  color: rgba(255, 197, 254, 0.85); 
  font-family:var(--font-body); 
  font-weight:600;
  font-size: 1.05rem;
}
.person-meta .bio {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.6;
}
.person-meta .degrees {
  font-style: italic;
  color: var(--vivid-lavender);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* responsive */
@media (max-width: 720px){
  .person-card{ align-items:center; flex-direction:column; text-align:center; }
  .headshot.circle{ width:110px; height:110px; }
  .person-meta .title, .accomplishments{ text-align:center; }
  .accomplishments{ padding-left:0; }
}

/* ---- Affiliations section within team ---- */
.affiliations-section {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(224, 84, 210, 0.15);
}

.affiliations-title {
  font-size: 1.6rem;
  color: var(--lavender);
  text-align: center;
  margin-bottom: 32px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(224, 84, 224, 0.3);
}

.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
  align-items: center;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.affiliation-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 50, 98, 0.6), rgba(10, 90, 179, 0.5));
  backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(84, 209, 224, 0.15);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 100px;
  position: relative;
  overflow: hidden;
}

.affiliation-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(84, 209, 224, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.affiliation-link:hover::before {
  opacity: 1;
}

.affiliation-link:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(84, 209, 224, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(84, 209, 224, 0.2);
}

.affiliation-link img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%) brightness(1.1);
  transition: filter 0.3s ease;
  position: relative;
  z-index: 1;
  border-radius: 8px; /* Add rounded corners to the actual image */
  padding: 2px;
}

.affiliation-link:hover img {
  filter: grayscale(0%) brightness(1.2);
}

/* Responsive adjustments */
@media (max-width: 720px) {
  .affiliations-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px;
  }
  
  .affiliation-link {
    height: 80px;
    padding: 14px;
  }
  
  .affiliation-link img {
    max-height: 50px;
  }
}

/* Contact form */
.contact-panel{ display:flex; align-items:center; justify-content:center; }
.contact-panel h2 {
  margin-bottom: 32px;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}
.contact-form{ 
  width:100%; 
  max-width:820px; 
  background: linear-gradient(135deg, rgba(83, 0, 98, 0.9), rgba(154, 10, 179, 0.75)); 
  backdrop-filter: blur(16px);
  padding:40px; 
  border-radius:20px; 
  border:1px solid rgba(224, 84, 217, 0.25); 
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(224, 84, 208, 0.1);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(224, 84, 217, 0.1) 50%, transparent 70%);
  animation: shimmer 8s linear infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}
.contact-form .fields{ 
  display:grid; 
  grid-template-columns: 1fr 1fr; 
  gap:20px;
  position: relative;
  z-index: 1;
}
.contact-form input, .contact-form textarea{
  width:100%; 
  padding:14px 18px; 
  margin-top:10px; 
  border-radius:12px; 
  border:1px solid rgba(219, 84, 224, 0.25);
  background: rgba(50, 0, 60, 0.6); 
  color:var(--white); 
  font-size:1.05rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: var(--font-body);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 197, 248, 0.4);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: rgba(194, 84, 224, 0.6);
  box-shadow: 0 0 0 3px rgba(219, 84, 224, 0.15);
  background: rgba(0, 30, 60, 0.8);
}
.contact-form textarea{ 
  min-height:140px; 
  resize:vertical; 
  grid-column:1 / -1;
  line-height: 1.6;
}
.contact-form .full{ grid-column: 1 / -1; }
.form-actions{ 
  display:flex; 
  align-items:center; 
  gap:24px; 
  margin-top:24px; 
  justify-content:space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.alt-contact{ 
  color:var(--lavender); 
  margin:0; 
  font-weight:400;
  font-size: 1.05rem;
}
.alt-contact a {
  color: var(--vivid-lavender);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.alt-contact a:hover {
  color: var(--white);
  text-shadow: 0 0 8px rgba(203, 84, 224, 0.5);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 100%;
  position: relative;
  z-index: 1;
}
.contact-form .label-text {
  white-space: normal;
  word-break: break-word;
  font-weight: 600;
  color: var(--lavender);
  font-size: 1.05rem;
}

#form-success, #form-error {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
}
#form-success {
  background: rgba(224, 84, 205, 0.2);
  border: 1px solid rgba(205, 84, 224, 0.4);
  color: var(--vivid-lavender);
}
#form-error {
  background: rgba(195, 84, 84, 0.2);
  border: 1px solid rgba(195, 84, 84, 0.4);
  color: #ff9999;
}

/* Honeypot — invisible to users but visible to bots */
.honeypot {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Footer */
.site-footer{ 
  padding:32px 20px; 
  border-top:1px solid rgba(212, 84, 224, 0.15); 
  background: linear-gradient(to bottom, transparent, rgba(47, 0, 51, 0.6));
  backdrop-filter: blur(8px);
  margin-top: 0; /* Add this */
  position: relative; /* Add this */
  z-index: 10; /* Add this */
}
.footer-inner{ 
  max-width:var(--max-width); 
  margin:0 auto; 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  color:rgba(255, 197, 251, 0.8);
  font-size: 0.95rem;
}
.footer-inner a {
  color: var(--lavender);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-inner a:hover {
  color: var(--vivid-lavender);
}

.social-icon {
  width: 22px;
  height: 22px;
  fill: var(--lavender);
  transition: all 0.2s ease;
  vertical-align: middle;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.foot-nav a:hover .social-icon {
  fill: var(--vivid-lavender);
  transform: scale(1.15);
}

/* Responsiveness */
@media (max-width:900px){
  .nav{ display:none; }
  .menu-toggle{ display:flex; margin-left:auto; background:none; border:0; }
  .menu-toggle span{ display:block; width:22px; height:2px; background:var(--white); margin:4px 0; border-radius:2px; }

  .contact-form .fields{ grid-template-columns: 1fr; }
}

/* Reduced motion / accessibility */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

/* Minor helper */
a { color:inherit }

/* ===== ANIMATIONS ===== */

/* Floating animated rings and boxes */
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  25% { transform: translateY(-15px) translateX(10px) rotate(3deg); }
  50% { transform: translateY(-5px) translateX(-8px) rotate(-2deg); }
  75% { transform: translateY(-20px) translateX(5px) rotate(4deg); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
  25% { transform: translateY(18px) translateX(-12px) rotate(-4deg); }
  50% { transform: translateY(8px) translateX(10px) rotate(3deg); }
  75% { transform: translateY(22px) translateX(-6px) rotate(-3deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes flow-down {
  0% { transform: translateY(-120vh) translateX(0) rotate(0deg); }
  100% { transform: translateY(120vh) translateX(30px) rotate(720deg); }
}

@keyframes flow-down-alt {
  0% { transform: translateY(-120vh) translateX(0) rotate(0deg); }
  100% { transform: translateY(120vh) translateX(-40px) rotate(-540deg); }
}

@keyframes wave-path {
  0% { d: path('M0,50 Q25,30 50,50 T100,50'); }
  50% { d: path('M0,50 Q25,70 50,50 T100,50'); }
  100% { d: path('M0,50 Q25,30 50,50 T100,50'); }
}

@keyframes dash-flow {
  0% { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}

/* Decorative background elements for panels */
.panel::before,
.panel::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  max-width: 100%; /* Add this */
  overflow: hidden; /* Add this */
}

/* Background wave flow effect */
main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(ellipse at 20% 30%, rgba(224, 84, 224, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(195, 36, 177, 0.06), transparent 50%);
  /* Removed all repeating-linear-gradient grid lines */
  animation: wave-flow 45s linear infinite;
  z-index: 0;
  opacity: 0.9;
}

/* Additional flowing grid layers */
main::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(ellipse at 60% 50%, rgba(245, 197, 255, 0.04), transparent 60%);
  /* Removed all repeating-linear-gradient grid lines */
  animation: wave-flow 60s linear infinite reverse;
  z-index: 0;
  opacity: 0.6;
}

/* Floating particles around hero */
.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(224, 84, 212, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(255, 197, 242, 0.2) 3px, transparent 3px),
    radial-gradient(circle at 60% 80%, rgba(192, 36, 195, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 15% 70%, rgba(224, 84, 194, 0.12) 2px, transparent 2px),
    radial-gradient(circle at 85% 60%, rgba(242, 197, 255, 0.18) 3px, transparent 3px);
  background-size: 100% 100%;
  animation: float 20s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

/* Hero section - centered radial pop + flowing system */
.hero {
  overflow: visible;
  position: relative;
}

.hero .panel-inner {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.hero h1 {
  font-weight: var(--head); 
  font-size: clamp(3.5rem, 8vw, 6.8rem); 
  letter-spacing: -0.03em; 
  margin: 0 auto; /* Keep centered */
  line-height: 1.1;
  color: var(--white); 
  text-wrap: balance;
  text-shadow: 0 4px 20px rgba(224, 84, 217, 0.4), 0 8px 40px rgba(195, 36, 174, 0.3);
  /* background: linear-gradient(180deg, #ffffff 0%, #c5f9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; */
  padding-bottom: 8px;
  position: relative;
  z-index: 2;
  width: fit-content;
}

.hero h1::before {
  content: '';
  position: absolute;
  width: 100vw; /* Full viewport width */
  height: 100vh; /* Full viewport height */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 600px 400px at center, rgba(224, 84, 208, 0.4) 0%, rgba(195, 36, 195, 0.3) 30%, rgba(179, 10, 179, 0.15) 50%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Services section - flowing connected system */
.services-panel::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  top: 10%;
  right: -100px;
  background: radial-gradient(circle, rgba(84, 209, 224, 0.15), transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 8s ease-in-out infinite;
  z-index: 0;
}

.services-panel::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  bottom: 15%;
  left: -80px;
  background: radial-gradient(circle, rgba(36, 132, 195, 0.12), transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 10s ease-in-out infinite 2s;
  z-index: 0;
}

.services-panel .panel-inner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 200px;
  top: -50px;
  left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path d="M0,100 Q150,50 300,100 T600,100 T900,100 T1200,100" stroke="rgba(84,209,224,0.25)" stroke-width="3" fill="none" stroke-linecap="round"/><path d="M0,120 Q200,80 400,120 T800,120 T1200,120" stroke="rgba(36,132,195,0.2)" stroke-width="2" fill="none" stroke-linecap="round"/></svg>');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: float 15s ease-in-out infinite;
  z-index: 0;
  opacity: 0.7;
}

.services-panel .panel-inner::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 200px;
  bottom: -80px;
  left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path d="M0,80 Q250,120 500,80 T1000,80 T1200,80" stroke="rgba(197,249,255,0.2)" stroke-width="2.5" fill="none" stroke-linecap="round"/></svg>');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: float-reverse 12s ease-in-out infinite;
  z-index: 0;
  opacity: 0.6;
}

/* Technology section - system flow */
.tech-panel::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  top: 20%;
  left: -150px;
  background: radial-gradient(circle, rgba(36, 132, 195, 0.18), transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 9s ease-in-out infinite 1s;
  z-index: 0;
}

.tech-panel::after {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  bottom: 10%;
  right: -120px;
  background: radial-gradient(circle, rgba(84, 209, 224, 0.15), transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 11s ease-in-out infinite 3s;
  z-index: 0;
}

.tech-panel .panel-inner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 250px;
  top: 15%;
  left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 250"><path d="M0,125 Q180,80 360,125 T720,125 T1080,125 L1200,125" stroke="rgba(197,249,255,0.22)" stroke-width="2.5" fill="none" stroke-linecap="round"/><path d="M0,150 Q220,100 440,150 T880,150 T1200,150" stroke="rgba(84,209,224,0.18)" stroke-width="2" fill="none" stroke-linecap="round"/><circle cx="360" cy="125" r="8" fill="rgba(84,209,224,0.4)"/><circle cx="720" cy="125" r="8" fill="rgba(84,209,224,0.4)"/><circle cx="440" cy="150" r="6" fill="rgba(197,249,255,0.35)"/></svg>');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: float 18s ease-in-out infinite 2s;
  z-index: 0;
  opacity: 0.75;
}

.tech-panel .panel-inner::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 180px;
  bottom: 10%;
  left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 180"><path d="M0,90 Q300,50 600,90 T1200,90" stroke="rgba(36,132,195,0.2)" stroke-width="3" fill="none" stroke-linecap="round"/></svg>');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: float-reverse 14s ease-in-out infinite 1s;
  z-index: 0;
  opacity: 0.65;
}

/* Team section - continuing flow */
.team-panel::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  top: 15%;
  right: -110px;
  background: radial-gradient(circle, rgba(84, 209, 224, 0.16), transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 10s ease-in-out infinite 2s;
  z-index: 0;
}

.team-panel::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  bottom: 20%;
  left: -90px;
  background: radial-gradient(circle, rgba(36, 132, 195, 0.14), transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 12s ease-in-out infinite 4s;
  z-index: 0;
}

.team-panel .panel-inner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 220px;
  top: -60px;
  left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 220"><path d="M0,110 Q200,70 400,110 T800,110 T1200,110" stroke="rgba(36,132,195,0.23)" stroke-width="2.5" fill="none" stroke-linecap="round"/><path d="M0,140 Q250,100 500,140 T1000,140 T1200,140" stroke="rgba(84,209,224,0.18)" stroke-width="2" fill="none" stroke-linecap="round"/><circle cx="400" cy="110" r="7" fill="rgba(36,132,195,0.4)"/><circle cx="800" cy="110" r="7" fill="rgba(36,132,195,0.4)"/></svg>');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: float-reverse 16s ease-in-out infinite;
  z-index: 0;
  opacity: 0.7;
}

.team-panel .panel-inner::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 190px;
  bottom: -70px;
  left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 190"><path d="M0,95 Q280,60 560,95 T1120,95 L1200,95" stroke="rgba(197,249,255,0.19)" stroke-width="2.5" fill="none" stroke-linecap="round"/></svg>');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: float 13s ease-in-out infinite 3s;
  z-index: 0;
  opacity: 0.65;
}

/* Contact section decorations */
#contact::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(84, 209, 224, 0.2), transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 10s ease-in-out infinite;
  z-index: 0;
}

#contact::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 180px;
  top: -60px;
  left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 180"><path d="M0,90 Q240,50 480,90 T960,90 T1200,90" stroke="rgba(84,209,224,0.25)" stroke-width="3" fill="none" stroke-linecap="round"/><path d="M0,110 Q300,70 600,110 T1200,110" stroke="rgba(197,249,255,0.2)" stroke-width="2" fill="none" stroke-linecap="round"/></svg>');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: float 14s ease-in-out infinite;
  z-index: 0;
  opacity: 0.7;
}

/* Keep the wavy SVG lines but make sure they don't move content */
.services-panel .panel-inner::before,
.services-panel .panel-inner::after,
.tech-panel .panel-inner::before,
.tech-panel .panel-inner::after,
.team-panel .panel-inner::before,
.team-panel .panel-inner::after,
#contact::after {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Image backlight effects */
.service-image{
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px 18px 0 0; /* Round only top corners, changed from 18px all around */
  overflow:hidden;
  background: linear-gradient(135deg, rgba(84, 209, 224, 0.08), rgba(36, 132, 195, 0.06));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:15%;
  background-position: center center;
  flex-shrink: 0;
  margin: 0;
  position: relative;
}

.service-image::before {
  content: '';
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 209, 224, 0.25), rgba(36, 132, 195, 0.15) 50%, transparent 70%);
  z-index: -1;
  animation: pulse-glow 5s ease-in-out infinite;
}

.tech-mps {
  position: relative;
  z-index: 2;
}

.tech-mps::before {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 18px;
  background: radial-gradient(ellipse, rgba(84, 209, 224, 0.3), rgba(36, 132, 195, 0.2) 50%, transparent 70%);
  z-index: -1;
  animation: pulse-glow 6s ease-in-out infinite;
}

.headshot.circle {
  position: relative;
  z-index: 2;
}

.headshot.circle::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 209, 224, 0.2), rgba(197, 249, 255, 0.12) 50%, transparent 70%);
  z-index: -1;
  animation: pulse-glow 7s ease-in-out infinite;
}

/* Ensure content is above decorative elements */
.panel-inner {
  position: relative;
  z-index: 2;
}

.service-card {
  position: relative;
  z-index: 2;
}

.person-card {
  position: relative;
  z-index: 2;
}

.services-grid,
.team-grid,
.tech-layout {
  position: relative;
  z-index: 2;
}