/*
============================================================
* NexRise - Reusable Premium Animation & Background Styles
* Serves Home, About, and other sub-pages
============================================================
*/

:root {
  --color-accent-gradient: linear-gradient(135deg, var(--brand-blue, #2563eb) 0%, var(--brand-cyan, #06b6d4) 100%);
  --glass-bg-reusable: rgba(255, 255, 255, 0.02);
  --glass-border-reusable: rgba(255, 255, 255, 0.05);
  --glow-reusable-1: rgba(37, 99, 235, 0.08);
  --glow-reusable-2: rgba(6, 182, 212, 0.08);
}

[data-theme="dark"] {
  --glass-bg-reusable: rgba(10, 10, 8, 0.35);
  --glass-border-reusable: rgba(245, 244, 240, 0.04);
  --glow-reusable-1: rgba(6, 182, 212, 0.12);
  --glow-reusable-2: rgba(37, 99, 235, 0.1);
}

/* --- Global Layout Configuration --- */
body {
  overflow-x: hidden !important;
}

/* --- Premium Background Effects --- */
.premium-bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.85;
  mix-blend-mode: screen;
}

.bg-glow-1 {
  top: -15%;
  left: -10%;
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, var(--glow-reusable-1) 0%, transparent 70%);
  animation: moveBlob1 30s infinite alternate ease-in-out;
}

.bg-glow-2 {
  bottom: -15%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, var(--glow-reusable-2) 0%, transparent 70%);
  animation: moveBlob2 35s infinite alternate ease-in-out;
}

.bg-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(245, 244, 240, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 244, 240, 0.02) 1px, transparent 1px);
  background-size: 90px 90px;
}

[data-theme="dark"] .bg-grid-overlay {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

.bg-noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
  opacity: 0.65;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bg-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: var(--fg);
  border-radius: 50%;
  opacity: 0.15;
}

/* --- Scroll Progress Bar --- */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.05);
}

.scroll-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--color-accent-gradient);
  box-shadow: 0 0 10px var(--brand-cyan, #06b6d4);
  transition: width 0.1s ease-out;
}

/* --- Animations Keyframes --- */
@keyframes moveBlob1 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.05); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

@keyframes moveBlob2 {
  0% { transform: translate(0px, 0px) scale(1.05); }
  50% { transform: translate(-50px, 30px) scale(0.98); }
  100% { transform: translate(40px, -60px) scale(1.02); }
}

/* --- Text Splitting Reveal Helpers --- */
.reveal-text {
  overflow: hidden;
}

.reveal-text .char {
  display: inline-block;
  transform: translateY(100%);
}

.word-wrap {
  overflow: hidden;
  vertical-align: bottom;
}

/* --- Glassmorphic Enhancements --- */
.glass-glow-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg-reusable);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border-reusable);
  transition: all 0.4s var(--ease-out);
}

.glass-glow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.glass-glow-card:hover::before {
  opacity: 0.65;
}

/* --- Parallax Image Reveal Wrapper --- */
.parallax-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  clip-path: inset(0px 0px 0px 0px round 16px);
  transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.parallax-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-img-wrapper:hover img {
  transform: scale(1.08);
}

/* GPU Hardware Acceleration for smooth elements */
.parallax-img-wrapper, 
.parallax-img-wrapper img, 
.glass-glow-card,
.bg-glow,
.shape-3d,
.process-card,
.works-item,
.service-item,
.blog-item,
.testimonial-card,
.value-card,
.team-card {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* --- Re-designed Premium Agency CTA Section --- */
.premium-agency-cta {
  padding: 6rem 0;
  position: relative;
  z-index: 5;
  background-color: #0a0a08;
}

.cta-two-col-card {
  position: relative;
  padding: 4.5rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .cta-two-col-card {
  background: rgba(10, 10, 8, 0.45);
  border-color: rgba(245, 244, 240, 0.04);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.cta-aurora-glow {
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(37, 99, 235, 0.08) 50%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-cyan, #06b6d4);
  margin-bottom: 1.5rem;
}

.cta-badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand-cyan, #06b6d4);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-cyan, #06b6d4);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.5; }
}

/* Floating stat cards styles */
.floating-cards-container {
  position: relative;
  width: 100%;
  height: 320px;
}

.float-stat-card {
  position: absolute;
  padding: 1.5rem 1.8rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 250px;
  z-index: 3;
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  transition: all 0.4s var(--ease-out);
}

.float-stat-card:hover {
  transform: scale(1.04) translateY(-5px) !important;
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

.float-card-icon {
  font-size: 2rem;
  color: var(--brand-cyan, #06b6d4);
}

.float-stat-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 0.2rem;
  margin-top: 0;
}

.float-stat-card p {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-bottom: 0;
  white-space: nowrap;
}

/* Exact overlap positions */
.float-stat-card.card-1 {
  top: 5%;
  left: 5%;
  animation: ctaFloat1 6s infinite ease-in-out;
}

.float-stat-card.card-2 {
  top: 40%;
  left: 45%;
  animation: ctaFloat2 7s infinite ease-in-out;
}

.float-stat-card.card-3 {
  top: 55%;
  left: 0%;
  animation: ctaFloat3 8s infinite ease-in-out;
}

@keyframes ctaFloat1 {
  0% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(1deg); }
}

@keyframes ctaFloat2 {
  0% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(-1deg); }
}

@keyframes ctaFloat3 {
  0% { transform: translateY(0px) rotate(0.5deg); }
  50% { transform: translateY(-10px) rotate(-0.5deg); }
  100% { transform: translateY(0px) rotate(0.5deg); }
}

/* GPU acceleration for cards */
.float-stat-card {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* --- Responsive Adaptations --- */
@media (max-width: 991px) {
  .cta-two-col-card {
    padding: 3rem 2rem;
  }
  .floating-cards-container {
    height: 380px;
    margin-top: 3rem;
  }
  .float-stat-card.card-1 {
    left: 10%;
  }
  .float-stat-card.card-2 {
    left: 50%;
  }
  .float-stat-card.card-3 {
    left: 20%;
    top: 65%;
  }
}

@media (max-width: 576px) {
  .floating-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: auto;
    align-items: center;
    margin-top: 2rem;
  }
  .float-stat-card {
    position: static;
    width: 100%;
    max-width: 280px;
    animation: none !important;
  }
}

/* --- Redesigned CTA Visual Effects & Micro-interactions --- */
.cta-mouse-light {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

[data-theme="light"] .cta-mouse-light {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  mix-blend-mode: multiply;
}

/* Wavy SVG Lines behind Heading */
.cta-svg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Decorative Floating Circles */
.cta-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(6, 182, 212, 0.2);
  pointer-events: none;
  z-index: 1;
}

.cta-circle-1 {
  width: 140px;
  height: 140px;
  top: 15%;
  left: -20px;
  animation: rotateCircle1 22s infinite linear;
}

.cta-circle-2 {
  width: 220px;
  height: 220px;
  bottom: 10%;
  left: 30%;
  animation: rotateCircle2 28s infinite linear;
}

@keyframes rotateCircle1 {
  0% { transform: rotate(0deg) scale(0.95); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(0.95); }
}

@keyframes rotateCircle2 {
  0% { transform: rotate(360deg) scale(1.05); }
  50% { transform: rotate(180deg) scale(0.95); }
  100% { transform: rotate(0deg) scale(1.05); }
}

/* Premium stat card micro-interactions */
.float-stat-card:hover {
  transform: scale(1.03) translateY(-8px) !important;
  border-color: rgba(6, 182, 212, 0.25) !important;
  box-shadow: 0 25px 50px rgba(6, 182, 212, 0.2) !important;
}

/* Premium Button Styling extensions */
.submit-btn-glow {
  background: var(--color-accent-gradient) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3) !important;
  color: #fff !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.submit-btn-glow:hover {
  transform: scale(1.025) !important;
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.5) !important;
}

.submit-btn-glow i {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn-glow:hover i {
  transform: translate3d(4px, -3px, 0);
}

/* --- Reference Image Match CTA Redesign --- */
.cta-limited-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f97316;
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

.cta-limited-badge i {
  color: #f97316;
  font-size: 0.85rem;
}

.cta-ref-heading {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
}

.cta-accent-color {
  color: #f97316;
  background: linear-gradient(135deg, #f97316 0%, #ffb800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-ref-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a3a3a3 !important;
  max-width: 460px;
}

.cta-btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-ref-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-ref-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.cta-ref-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: transparent;
  color: #ffb800 !important;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 184, 0, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-ref-btn-secondary:hover {
  background: rgba(255, 184, 0, 0.05);
  border-color: #ffb800;
  transform: translateY(-2px);
}

/* Right Side List Items */
.cta-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-list-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  background: rgba(30, 30, 30, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  transition: all 0.3s ease;
}

.cta-list-item:hover {
  transform: translateX(5px);
  background: rgba(40, 40, 40, 0.45) !important;
  border-color: rgba(249, 115, 22, 0.15) !important;
}

.cta-item-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cta-item-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.15rem;
  margin-top: 0;
}

.cta-item-text p {
  font-size: 0.8rem;
  color: #8c8c8c;
  margin-bottom: 0;
}

.cta-bullets-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-bullet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #a3a3a3;
}

.cta-bullet i {
  color: #10b981; /* green checkmark */
  font-size: 0.9rem;
}

/* Specific main card styling for dark theme and overlay logic */
[data-theme="dark"] .cta-two-col-card.glass-glow-card {
  background: #111112 !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="light"] .cta-two-col-card.glass-glow-card {
  background: #151517 !important; /* Keep it dark like the ref image for contrast */
  border-color: rgba(255, 255, 255, 0.04) !important;
}

.cta-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.cta-corner-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

/* Explicit Text Color Overrides for CTA Section (Forcing Dark Theme Contrast on Light/Dark layouts) */
.premium-agency-cta .cta-ref-heading {
  color: #ffffff !important;
}

.premium-agency-cta .cta-ref-description {
  color: #a3a3a3 !important;
}

.premium-agency-cta .cta-item-text h4 {
  color: #ffffff !important;
}

.premium-agency-cta .cta-item-text p {
  color: #8c8c8c !important;
}

.premium-agency-cta .cta-bullet {
  color: #a3a3a3 !important;
}
