/* 🍌 NANO BANANA PRO: COSMIC LIQUID GLASS EDITION */

:root {
  /* Aligned with Awalim Group Brand Identity (UI/UX Consistency) */
  --nano-fluid-1: #005f52;
  --nano-fluid-2: #a3cf2b;
  --nano-fluid-3: #022a2e;
  --nano-glass-bg: rgba(2, 26, 30, 0.35);
  --nano-glass-border: rgba(255, 255, 255, 0.08);
  --nano-glow: 0 0 30px rgba(163, 207, 43, 0.4);
}

/* 1. Fluid Ambient Background */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200vw;
  height: 200vh;
  z-index: -3;
  background: 
    radial-gradient(circle at 50% 50%, var(--nano-fluid-1) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, var(--nano-fluid-2) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, var(--nano-fluid-3) 0%, transparent 40%);
  filter: blur(120px) contrast(150%);
  animation: nano-fluid-orbit 20s infinite linear;
  opacity: 0.4;
  pointer-events: none;
}

@keyframes nano-fluid-orbit {
  0% { transform: rotate(0deg) scale(1); }
  33% { transform: rotate(120deg) scale(1.1); }
  66% { transform: rotate(240deg) scale(0.9); }
  100% { transform: rotate(360deg) scale(1); }
}

/* 2. Mega Glass Overrides for Existing Elements */
.section, .vsh, .container {
  position: relative;
  z-index: 1;
}

/* Force Cards Extreme Glass - Excluded .vsh-bottom to prevent hiding hero photo */
.glass-card, .bento-card, .service-card, .portfolio-item, .vibe-what-card, .milestone-card, .persona-side {
  background: var(--nano-glass-bg) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  border: 1px solid var(--nano-glass-border) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-radius: 24px !important;
  overflow: hidden;
}

/* Image styling in persona to preserve identity and contrast (UX Rule: Faces build trust) */
.persona-portrait {
  mix-blend-mode: normal;
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 20px rgba(163, 207, 43, 0.15));
}
.persona-side:hover .persona-portrait {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(163, 207, 43, 0.4));
}

/* Card Hover Liquid Glow */
.glass-card:hover, .bento-card:hover, .service-card:hover, .portfolio-item:hover, .vibe-what-card:hover, .milestone-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(163, 207, 43, 0.4) !important;
  box-shadow: 0 40px 80px rgba(163, 207, 43, 0.15), inset 0 0 20px rgba(163, 207, 43, 0.1) !important;
  background: rgba(163, 207, 43, 0.05) !important;
}

/* 3. Text Injection - UX Readability Enhancement */
/* ONLY apply text-fill to massive headers, NOT descriptions */
h1, h2, h3, .vsh-line, .section-title {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.75) 100%);
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6)) !important;
  letter-spacing: -0.02em;
}

/* Ensure paragraph text remains highly legible */
.vsh-desc {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
  font-weight: 500;
}

/* Highlight specifically */
h1 .title-accent, .vsh-rotating-word, .vibe-highlight, .vibe-opt-af9ad6, .vibe-opt-1e7190, .section-tag {
  background: linear-gradient(135deg, var(--nano-fluid-1), var(--nano-fluid-2)) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 0 30px rgba(163, 207, 43, 0.3) !important;
  filter: drop-shadow(0 0 10px rgba(163,207,43,0.2)) !important;
}

/* 4. Magic Navbar */
.vibe-nav, .scrolled .vibe-nav {
  background: rgba(2, 26, 30, 0.15) !important;
  -webkit-backdrop-filter: blur(50px) saturate(250%) !important;
  backdrop-filter: blur(50px) saturate(250%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 5. Liquid Buttons */
.btn-primary, .vsh-btn-primary, .magnetic-btn, .vn-cta, .filter-btn {
  background: rgba(255,255,255,0.03) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
  -webkit-text-fill-color: initial !important; /* Fix for button text */
}

/* Override button glowing gradient */
.btn-primary::before, .vsh-btn-primary::before, .magnetic-btn::before, .vn-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 150%; height: 150%;
  background: radial-gradient(circle, var(--nano-fluid-2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.6s ease;
  transform: translate(-50%, -50%) scale(0.5);
  z-index: -1;
}

.btn-primary:hover::before, .vsh-btn-primary:hover::before, .magnetic-btn:hover::before, .vn-cta:hover::before {
  opacity: 0.3;
  transform: translate(-50%, -50%) scale(1);
}

.btn-primary:hover, .vsh-btn-primary:hover, .magnetic-btn:hover, .vn-cta:hover, .filter-btn:hover, .filter-btn.active {
  border-color: rgba(163, 207, 43, 0.6) !important;
  box-shadow: 0 15px 30px rgba(163, 207, 43, 0.2), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  color: #fff !important;
  text-shadow: 0 0 15px rgba(163, 207, 43, 0.8) !important;
}

/* 6. Liquid Cursor Trackers */
.nano-liquid-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--nano-fluid-1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: color-dodge;
  opacity: 0.15;
  z-index: -1; /* Behind content but above background */
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  filter: blur(40px);
}
.nano-liquid-cursor.active {
  width: 500px;
  height: 500px;
  opacity: 0.25;
  background: radial-gradient(circle, var(--nano-fluid-2) 0%, transparent 70%);
}

/* HIDE old supreme v5 trail dots to make way for liquid */
.sv5-trail { display: none !important; }

/* 7. Image Glow FX - Ensured Visibility */
img {
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}
.vsh-photo, .profile-img {
  position: relative;
  z-index: 10;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 0 30px rgba(163, 207, 43, 0.3));
}

/* Scrollbar Mega Polish */
::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}
::-webkit-scrollbar-track {
  background: rgba(2, 26, 30, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(163, 207, 43, 0.3);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(163, 207, 43, 0.6);
}
