/* Custom styles for Studybo Landing Page */

/* Bokeh Effect Background */
.bokeh-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.bokeh-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(15px);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.bokeh-1 {
  width: 150px;
  height: 150px;
  background: rgba(79, 70, 229, 0.3); /* primary color */
  top: 20%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.bokeh-2 {
  width: 100px;
  height: 100px;
  background: rgba(16, 185, 129, 0.3); /* secondary color */
  top: 50%;
  right: 15%;
  animation: float 10s ease-in-out infinite 1s;
}

.bokeh-3 {
  width: 200px;
  height: 200px;
  background: rgba(79, 70, 229, 0.2); /* primary color */
  bottom: 10%;
  left: 30%;
  animation: float 12s ease-in-out infinite 2s;
}

.bokeh-4 {
  width: 120px;
  height: 120px;
  background: rgba(16, 185, 129, 0.2); /* secondary color */
  top: 30%;
  right: 30%;
  animation: float 9s ease-in-out infinite 3s;
}

.bokeh-5 {
  width: 180px;
  height: 180px;
  background: rgba(245, 158, 11, 0.2); /* amber color */
  bottom: 20%;
  right: 10%;
  animation: float 11s ease-in-out infinite 4s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Parallax Effect */
.parallax-container {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  transform: translateZ(-1px) scale(2);
  z-index: -1;
}

.parallax-content {
  position: relative;
  transform: translateZ(0);
  z-index: 1;
}

/* Abstract Geometric Patterns */
.geometric-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.wave-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='wave' width='100' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 10 Q 25 0, 50 10 T 100 10' stroke='%234F46E5' fill='none' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23wave)'/%3E%3C/svg%3E");
}

.circle-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='circles' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='20' cy='20' r='10' stroke='%2310B981' fill='none' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23circles)'/%3E%3C/svg%3E");
}

.dots-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='dots' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='5' cy='5' r='1' fill='%234F46E5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23dots)'/%3E%3C/svg%3E");
}

.lines-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='lines' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 20 L40 20' stroke='%2310B981' stroke-width='1'/%3E%3Cpath d='M20 0 L20 40' stroke='%2310B981' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23lines)'/%3E%3C/svg%3E");
}

/* Gradient Backgrounds */
.gradient-blue-green {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.gradient-purple-blue {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
}

.gradient-yellow-orange {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
}

/* Smooth section transitions */
.section-transition {
  position: relative;
}

.section-transition::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(249, 250, 251, 1));
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .bokeh-circle {
    opacity: 0.3;
  }

  .parallax-bg {
    transform: translateZ(-1px) scale(1.5);
  }

  .geometric-pattern {
    opacity: 0.03;
  }
}

/* Accessibility and readability improvements */
.text-text-primary {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.text-text-secondary {
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* Ensure content is always readable over patterns and gradients */
.container {
  position: relative;
  z-index: 5;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Enhance focus states for accessibility */
a:focus, button:focus {
  outline: 2px solid rgba(79, 70, 229, 0.5);
  outline-offset: 2px;
}

/* Improve card readability */
.bg-white {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
