/* Custom Styles for specific effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.1);
  transition: all 0.3s ease;
}

.hero-bg {
  background-image: linear-gradient(rgba(30, 58, 138, 0.65), rgba(30, 58, 138, 0.55)), url('../img/Patron_Logo_Amarillo_WebP.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, #2563eb, #fbbf24);
  animation: gradient-shift 3s ease infinite;
}

.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
  transition: left 0.5s ease;
}

.card-hover:hover::before {
  left: 100%;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(251, 191, 36, 0.3), 0 10px 10px -5px rgba(37, 99, 235, 0.2);
}

/* Decorative circles inspired by cooperative logo */
.circle-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.circle-yellow {
  background: radial-gradient(circle, #fbbf24, transparent);
  animation: float 8s ease-in-out infinite;
}

.circle-blue {
  background: radial-gradient(circle, #2563eb, transparent);
  animation: float 10s ease-in-out infinite reverse;
}

/* Accent borders with brand colors */
.accent-border-top {
  border-top: 3px solid #fbbf24;
  position: relative;
}

.accent-border-top::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: #2563eb;
  transition: width 0.6s ease;
}

.accent-border-top:hover::after {
  width: 100%;
}

.accent-border-left {
  border-left: 4px solid #2563eb;
}

/* Pattern overlay for sections */
.pattern-overlay {
  background-image: url('../img/Patron_Logo_Amarillo_WebP.png');
  background-size: 400px;
  background-repeat: repeat;
  opacity: 0.03;
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: pattern-drift 60s linear infinite;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.6);
  }
}

@keyframes gradient-shift {

  0%,
  100% {
    background-image: linear-gradient(to right, #2563eb, #fbbf24);
  }

  50% {
    background-image: linear-gradient(to right, #fbbf24, #2563eb);
  }
}

@keyframes pattern-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 400px 400px;
  }
}

@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 scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

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

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

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

.animate-scale-in {
  animation: scaleIn 0.6s ease-out;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Stagger delays for sequential animations */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

/* Scroll reveal animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effects for buttons */
.btn-hover-effect {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-hover-effect::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-hover-effect:hover::before {
  width: 300px;
  height: 300px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-bg {
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {

  /* Hero adjustments */
  h1 {
    font-size: 3rem;
  }

  .text-7xl {
    font-size: 4rem;
  }

  .px-8 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .py-4 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .flex-col {
    flex-direction: column;
  }

  .sm\:flex-row {
    flex-direction: column;
  }

  .gap-4>*:not(:last-child) {
    margin-bottom: 1rem;
  }

  .md\:hidden {
    display: block;
  }

  .hidden {
    display: none;
  }

  .md\:flex {
    display: none;
  }

  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .text-4xl {
    font-size: 2.5rem;
  }

  .text-xl {
    font-size: 1.25rem;
  }
}

/* Additional global styles */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

.font-display {
  font-family: 'Outfit', sans-serif;
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
}

.btn-hover-effect {
  position: relative;
  overflow: hidden;
}

.btn-hover-effect::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-hover-effect:hover::after {
  width: 300px;
  height: 300px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
  }

  50% {
    box-shadow: 0 0 20px 0 rgba(251, 191, 36, 0.7);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

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

.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Carousel Styles */
.carousel-container {
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-dot.active {
  background-color: #fbbf24;
  width: 2rem;
}

/* Mobile Menu */
#mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 40;
}

/* Animated shapes for vibrant hero */
.hero-shape {
  position: absolute;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
  animation: shape-float 20s infinite alternate;
}

@keyframes shape-float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(100px, 50px) rotate(90deg);
  }
}

.hero-slide-content {
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateY(30px);
  opacity: 0;
}

.active .hero-slide-content {
  transform: translateY(0);
  opacity: 1;
}