@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Modern Animated Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #f1f2ff 0%,
    #e8e9ff 25%,
    #f1f2ff 50%,
    #e8e9ff 75%,
    #f1f2ff 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -2;
  pointer-events: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animated Blob Shapes */
body::after {
  content: "";
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.15) 0%,
    rgba(59, 130, 246, 0.1) 50%,
    transparent 70%
  );
  border-radius: 50%;
  top: -250px;
  right: -250px;
  animation: blobMove 20s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
}

@keyframes blobMove {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-100px, 100px) scale(1.2);
  }
  66% {
    transform: translate(100px, -100px) scale(0.8);
  }
}

/* Additional Floating Blobs */
.modern-bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.modern-bg-blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.2) 0%,
    transparent 70%
  );
  top: 20%;
  left: -200px;
  animation: floatBlob1 25s ease-in-out infinite;
}

.modern-bg-blob-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.2) 0%,
    transparent 70%
  );
  bottom: 20%;
  right: -150px;
  animation: floatBlob2 30s ease-in-out infinite;
}

.modern-bg-blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.15) 0%,
    transparent 70%
  );
  top: 60%;
  left: 50%;
  animation: floatBlob3 20s ease-in-out infinite;
}

@keyframes floatBlob1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(150px, -100px) scale(1.3);
  }
}

@keyframes floatBlob2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-120px, 150px) scale(1.2);
  }
}

@keyframes floatBlob3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(100px, 80px) scale(1.1);
  }
}

/* Smooth Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-shimmer {
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes cloudMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}

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

@keyframes blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

.animate-blob {
  animation: blob 7s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 4s ease-in-out infinite;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Phone Mockup Enhancements */
.phone-mockup {
  background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: fit-content;
  display: flex;
  flex-direction: column;
}

.phone-mockup .phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.phone-mockup:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.phone-screen {
  background: white;
  border-radius: 32px;
  overflow: hidden;
  height: 100%;
  min-height: 600px;
  transition: all 0.3s ease;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  object-position: bottom;
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 0;
}

.phone-screen.p-0 {
  padding: 0 !important;
  margin: 0;
}

.phone-screen.p-0 img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: bottom center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  padding: 0;
  display: block;
}

/* Fix Black.png image bottom alignment - override Tailwind classes */
img[src*="Black.png"] {
  object-fit: cover !important;
  object-position: bottom center !important;
  position: relative !important;
  bottom: 0 !important;
  top: auto !important;
  display: block !important;
}

/* Override Tailwind object-contain to use cover instead */
img[src*="Black.png"].object-contain {
  object-fit: cover !important;
  object-position: bottom center !important;
}

/* Override all negative bottom Tailwind utilities */
img[src*="Black.png"].bottom-32,
img[src*="Black.png"].-bottom-12,
img[src*="Black.png"].-bottom-16,
img[src*="Black.png"].-bottom-5 {
  bottom: 0 !important;
}

/* Ensure image fills container at all breakpoints */
@media (min-width: 768px) {
  img[src*="Black.png"] {
    object-fit: cover !important;
    object-position: bottom center !important;
    bottom: 0 !important;
  }
}

@media (min-width: 1280px) {
  img[src*="Black.png"] {
    object-fit: cover !important;
    object-position: bottom center !important;
    bottom: 0 !important;
  }
}

/* Glow Effects */
.glow-effect {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.3) 0%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

/* Sky Background */
.sky-background {
  background: linear-gradient(to bottom, #87ceeb 0%, #b0e0e6 50%, #e0f6ff 100%);
  position: relative;
  overflow: hidden;
}

.clouds {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.8) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 60% 60%,
      rgba(255, 255, 255, 0.7) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 40%,
      rgba(255, 255, 255, 0.6) 0%,
      transparent 50%
    );
  background-size: 200% 100%;
  animation: cloudMove 20s linear infinite;
}

.phone-outline {
  position: absolute;
  border: 4px solid rgba(135, 206, 235, 0.6);
  border-radius: 35px;
  width: 300px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulse 3s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(135, 206, 235, 0.5);
}

@media (max-width: 768px) {
  .phone-outline {
    width: 240px;
    height: 340px;
  }
}

.phone-outline::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 20px;
  background: rgba(135, 206, 235, 0.4);
  border-radius: 0 0 15px 15px;
}

/* Button Enhancements */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Card Hover Effects */
.feature-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2563eb, #7c3aed);
}

/* Header Scroll Effect */
header {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
  margin: 0;
  border-bottom: 1px solid #e5e7eb;
  left: 0;
  right: 0;
  max-width: 100%;
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  margin: 1rem auto 0 auto;
  left: 0;
  right: 0;
  max-width: 80%;
  border-bottom: 1px solid #e5e7eb;
  padding-left: 0;
  padding-right: 0;
}

header.scrolled nav {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sparkle Animation */
.sparkle {
  animation: rotate 3s linear infinite;
}

/* Number Counter Animation */
.counter {
  transition: all 0.3s ease;
}

/* Progress Bar Animation */
.progress-bar {
  transition: width 1s ease-out;
}

.shadow-3xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.otp-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.3s;
  background-color: #fff;
}

.otp-input:focus {
  border-color: #9333ea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

@media (min-width: 640px) {
  .otp-input {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-radius: 12px;
  }
}

/* Video Background Section */
.video-background-section {
  position: relative;
  min-height: 100vh;
  background: #f1f2ff;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 1;
}

/* Mobile-specific styles for video background section */
@media (max-width: 768px) {
  .video-background-section {
    min-height: 50vh;
    padding-top: 6rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .phone-screen.p-0 img {
    object-position: bottom center;
    bottom: 0;
  }

  .video-background-section .max-w-4xl {
    flex: 0 0 auto;
  }

  .video-background-section .max-w-7xl {
    flex: 0 0 auto;
    margin-top: auto;
  }
}

/* Pricing Card with Cut Corner */
.pricing-card-cut-corner {
  position: relative;
  overflow: visible;
  background-image: url("../images/Subtract.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 20px;
  min-height: 700px;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card-cut-corner > * {
  position: relative;
  z-index: 1;
}

/* Charge Zer Card Styling with Background Image */
.charge-zer-card {
  position: relative;
  overflow: hidden;
  /* background-color: white; */
}

.charge-zer-card > * {
  position: relative;
  z-index: 1;
}

/* Coin Stack Effect for Charge Zer Cards */
.coin-stack {
  width: 60px;
  height: 60px;
  position: relative;
}

.coin-stack .coin {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.coin-stack .coin::before {
  content: "Z";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.coin-stack .coin:nth-child(1) {
  top: 0;
  left: 0;
  z-index: 3;
}

.coin-stack .coin:nth-child(2) {
  top: 8px;
  left: 8px;
  z-index: 2;
  opacity: 0.9;
}

.coin-stack .coin:nth-child(3) {
  top: 16px;
  left: 16px;
  z-index: 1;
  opacity: 0.8;
}

/* Silver coins */
.coin-stack.silver .coin {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

/* Gold coins */
.coin-stack.gold .coin {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
