/* Custom Styles for HelpAulas Theme */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Menu hover effects - disabled to avoid conflicts with main styles */

/* Card hover animations */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Subject cards specific hover */
#reforco-escolar .card:hover {
  border-color: #059669 !important;
  background-color: #d1fae5;
}

/* Icon animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Button ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}

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

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

/* Form focus effects */
input:focus,
textarea:focus {
  transform: translateY(-2px);
}

/* Testimonial card special styling */
#depoimentos .card {
  background: white !important;
  position: relative;
  overflow: visible;
}

#depoimentos .card:before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 80px;
  color: #dbeafe;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Blog post card image overlay */
.card-with-image {
  position: relative;
}

.card-with-image img {
  transition: transform 0.5s ease;
}

.card-with-image:hover img {
  transform: scale(1.05);
}

/* Star rating fill animation */
.star {
  fill: #fbbf24;
  stroke: #fbbf24;
}

/* Gradient text animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hero image rotation effect */
.transform-rotate {
  transition: transform 0.5s ease;
}

/* Loading animation for images */
img {
  opacity: 0;
  animation: fadeInImage 0.5s ease forwards;
}

@keyframes fadeInImage {
  to {
    opacity: 1;
  }
}

/* Scroll fade-in effect */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA section pulse effect */
.bg-gradient-cta {
  position: relative;
  overflow: hidden;
}

.bg-gradient-cta:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Footer link underline effect */
footer a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

footer a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #10b981;
  transition: width 0.3s ease;
}

footer a:hover:after {
  width: 100%;
}

/* Mobile menu toggle (if needed) */
@media (max-width: 768px) {
  .main-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  .main-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 5px 0;
    transition: 0.3s;
  }
}

/* Accessibility improvements */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  header,
  footer,
  .btn {
    display: none;
  }
}
