/* Custom CSS for Igreja Batista Aliança Website - Modern Design */

/* Font Classes */
.font-heading {
  font-family: "Playfair Display", serif;
}

.font-body {
  font-family: "Inter", sans-serif;
}

/* Modern Color Palette */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #7c3aed;
  --accent: #06b6d4;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #a2924b 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Modern Carousel Styles */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 2rem 2rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

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

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

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

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

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

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

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

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

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

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 4s ease infinite;
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
  /* Full screen carousel with header overlay */
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  /* Mobile header color inversion */
  header {
    background-color: black !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  }

  header .text-gray-700 {
    color: white !important;
  }

  header .hover\:text-blue-600:hover {
    color: white !important;
  }

  header img {
    background-color: transparent !important;
    border-radius: 50%;
    padding: 4px;
  }

  .carousel-container {
    height: calc(100vh) !important;
  }

  .carousel-slide img {
    height: calc(100vh - 64px);
    object-fit: cover;
  }

  .carousel-overlay {
    padding: 2rem;
    padding-top: 80px; /* Space for header */
  }

  .carousel-overlay h1 {
    font-size: 2.5rem;
  }

  .carousel-overlay h2 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  /* Full screen carousel with header overlay */
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  /* Mobile header color inversion */
  header {
    background-color: black !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
  }

  header .text-gray-700 {
    color: white !important;
  }

  header .hover\:text-blue-600:hover {
    color: white !important;
  }

  header img {
    background-color: transparent !important;
    border-radius: 50%;
    padding: 4px;
  }

  .carousel-container {
    height: calc(100vh) !important;
  }

  .carousel-slide img {
    height: calc(100vh - 64px);
    object-fit: cover;
  }

  .carousel-overlay {
    padding: 2rem;
    padding-top: 80px; /* Space for header */
  }

  .carousel-overlay h1 {
    font-size: 2rem;
  }

  .carousel-overlay h2 {
    font-size: 1.5rem;
  }

  .carousel-overlay p {
    font-size: 1rem;
  }

  .carousel-overlay .space-x-4 {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .carousel-overlay a {
    padding: 1em 1em;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Modern Hover Effects & Interactions */
.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

/* Modern Button Styles */
.btn-primary {
  background: var(--gradient-1);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.5s ease;
}

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

.btn-primary:hover {
  background: #a2924b;
  color: var(white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--bg-white);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Modern Card Styles */
.card-modern {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Focus Styles for Accessibility */
button:focus,
a:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Modern Logo & Branding */
.footer-logo {
  background: transparent;
  border-radius: 50%;
  padding: 8px;
  background: radial-gradient(
    circle,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 100%
  );
}

.footer-logo-mask {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.footer-logo-mask:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Modern Icon Animations */
.icon-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Modern Section Dividers */
.section-divider {
  height: 2px;
  background: var(--gradient-1);
  width: 100px;
  margin: 3rem auto;
  border-radius: 1px;
}

.section-divider-wave {
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f9fafb' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E")
    no-repeat;
  background-size: cover;
  margin: 0;
  padding: 0;
}

/* Modern Print Styles */
@media print {
  .carousel-container,
  header,
  footer {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  section {
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* Modern Loading Animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(37, 99, 235, 0.1);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Modern Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid #10b981;
}

.notification.error {
  border-left: 4px solid #ef4444;
}

.notification.info {
  border-left: 4px solid var(--primary);
}
