/* Premium Interactive Elements */

/* 1. Glassmorphism Navbar */
nav {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(0, 188, 212, 0.15);
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* 2. Premium Button Hover (Shine Effect) */
.btn-p, .nav-cta, .form-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.btn-p::after, .nav-cta::after, .form-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  z-index: -1;
  transition: left 0.6s ease;
}
.btn-p:hover::after, .nav-cta:hover::after, .form-btn:hover::after {
  left: 150%;
  transition: left 0.6s ease;
}
.btn-p:hover, .nav-cta:hover, .form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3) !important;
}

/* 3. Glowing Border Cards (Mouse Tracker) */
.glow-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 188, 212, 0.1);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.glow-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 0);
  left: var(--mouse-x, 0);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,188,212,0.15) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.glow-card:hover::before {
  opacity: 1;
}
.glow-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 188, 212, 0.12);
  border-color: rgba(0, 188, 212, 0.3);
}
.glow-card > * {
  position: relative;
  z-index: 1;
}

/* 4. Animated Background Gradient Mesh */
.hero, .sub-hero {
  position: relative;
  overflow: hidden;
  background: transparent !important;
}
.hero-bg-mesh {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  background: #f8fafc;
  overflow: hidden;
}
.mesh-blob {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  animation: meshFloat 15s infinite alternate ease-in-out;
  opacity: 0.4;
}
.mesh-blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: rgba(0, 188, 212, 0.3); animation-delay: 0s; }
.mesh-blob-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: rgba(16, 185, 129, 0.2); animation-delay: -5s; }
.mesh-blob-3 { top: 40%; left: 60%; width: 40vw; height: 40vw; background: rgba(99, 102, 241, 0.15); animation-delay: -10s; }

@keyframes meshFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* 5. Enhanced Reveal Animations */
.reveal-premium {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-premium.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Float animation for decorative elements */
.float-element {
  animation: floatingItem 4s ease-in-out infinite alternate;
}
@keyframes floatingItem {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

/* Make image shadows softer and premium */
.hero-visual-img, .sub-hero-visual {
  box-shadow: 0 30px 60px rgba(0, 30, 43, 0.15), 0 10px 20px rgba(0, 188, 212, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
}


/* 6. Hero Trust Badges */
.hero-trust {
  display: flex; align-items: center; gap: 12px;
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  animation: fadeIn 1s ease 0.5s both;
}
.trust-avatars { display: flex; }
.trust-avatars img {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-left: -10px;
}
.trust-avatars img:first-child { margin-left: 0; }
.trust-text { font-size: 0.85rem; color: #64748b; font-weight: 500; }
.trust-text strong { color: var(--dark); font-weight: 700; }

/* 7. Scroll Down Mouse Indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.6; transition: opacity 0.3s; z-index: 10;
}
.scroll-indicator:hover { opacity: 1; }
.mouse-body {
  width: 24px; height: 36px; border: 2px solid var(--text2);
  border-radius: 12px; position: relative;
}
.mouse-wheel {
  width: 4px; height: 8px; background: var(--cyan);
  border-radius: 2px; position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%); animation: scrollWheel 2s infinite ease;
}

/* 6. Hero Trust Badges */
.hero-trust {
  display: flex; align-items: center; gap: 12px;
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  animation: fadeIn 1s ease 0.5s both;
}
.trust-avatars { display: flex; }
.trust-avatars img {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-left: -10px;
}
.trust-avatars img:first-child { margin-left: 0; }
.trust-text { font-size: 0.85rem; color: #64748b; font-weight: 500; }
.trust-text strong { color: var(--dark); font-weight: 700; }

/* 7. Scroll Down Mouse Indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.6; transition: opacity 0.3s; z-index: 10;
}
.scroll-indicator:hover { opacity: 1; }
.mouse-body {
  width: 24px; height: 36px; border: 2px solid var(--text2);
  border-radius: 12px; position: relative;
}
.mouse-wheel {
  width: 4px; height: 8px; background: var(--cyan);
  border-radius: 2px; position: absolute; top: 6px; left: 50%;
  transform: translateX(-50%); animation: scrollWheel 2s infinite ease;
}
.scroll-text { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text2); font-weight: 600; }
@keyframes scrollWheel { 0% { top: 6px; opacity: 1; } 100% { top: 18px; opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* 8. Hero Bento Grid */
.hero-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  z-index: 2;
  animation: fadeIn 1s ease 0.2s both;
}
.bento-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 0 30px rgba(0, 188, 212, 0.4), inset 0 0 0 2px rgba(255,255,255,1);
  z-index: 10;
}
.hub-logo { width: 40px; height: auto; }
.hub-ring {
  position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px;
  border-radius: 50%; border: 1px dashed rgba(0, 188, 212, 0.5);
  animation: spin 10s linear infinite; pointer-events: none;
}
.hub-ring.ring-2 {
  top: -20px; left: -20px; right: -20px; bottom: -20px;
  border: 1px solid rgba(59, 130, 246, 0.2); animation: spinReverse 15s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spinReverse { 100% { transform: rotate(-360deg); } }

.bento-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 20px; padding: 24px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-decoration: none; text-align: center;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: fadeIn 0.6s ease both;
  overflow: hidden; position: relative;
}
.bento-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.8), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.bento-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: #fff; z-index: 5;
  box-shadow: 0 20px 40px rgba(0, 188, 212, 0.15);
}
.bento-card:hover::after { opacity: 1; }

.bento-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; justify-content: center; align-items: center; color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.bento-card span { font-weight: 700; color: #1e293b; font-size: 0.95rem; line-height: 1.2; z-index: 2;}

.b-blue:hover { border-color: rgba(59, 130, 246, 0.4); }
.b-blue .bento-icon { background: linear-gradient(135deg, #3b82f6, #60a5fa); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

.b-cyan:hover { border-color: rgba(0, 188, 212, 0.4); }
.b-cyan .bento-icon { background: linear-gradient(135deg, #00bcd4, #22d3ee); box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3); }

.b-green:hover { border-color: rgba(16, 185, 129, 0.4); }
.b-green .bento-icon { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }

.b-purple:hover { border-color: rgba(139, 92, 246, 0.4); }
.b-purple .bento-icon { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }

@media(max-width: 600px) {
  .hero-bento { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
  .bento-hub { position: relative; transform: none; top: 0; left: 0; margin: 0 auto 20px; }
}


/* 9. Sub-page Hero Enhancements */
.sub-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 2;
  animation: fadeIn 0.8s ease 0.1s both;
}
.sub-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.sub-stat {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 188, 212, 0.2);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: transform 0.3s, box-shadow 0.3s;
}
.sub-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 188, 212, 0.15);
  background: #fff;
}
.sub-stat span {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00bcd4, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.sub-stat small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media(max-width: 900px) {
  .sub-hero-content { margin-bottom: 40px; }
  .sub-stats { gap: 10px; }
  .sub-stat { padding: 10px 16px; }
}


/* Top Meta Row for Subpages */
.top-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}
.back-link:hover {
  background: #fff;
  color: var(--cyan);
  box-shadow: 0 4px 10px rgba(0,188,212,0.1);
  transform: translateX(-3px);
}
.sub-badge {
  margin: 0 !important; /* override old margins */
  font-size: 0.8rem;
  background: rgba(0, 188, 212, 0.1);
  color: var(--cyan);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}
