/* =================================
   Bíblia Viva - Custom Styles
   ================================= */

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Hero Section */
#hero {
    position: relative;
    background: linear-gradient(135deg, #2C3E50 0%, #4A90A4 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23D4AF37" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,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"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content h1 {
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Animate hero on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Decorative elements */
.card:hover {
    transform: translateY(-8px) !important;
}

/* Button enhancements */
.btn {
    transition: all 0.3s ease;
}

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

/* Form styling */
.form-control input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.error-message {
    display: none;
}

.error-message.active {
    display: block;
}

input.error {
    border-color: #ef4444 !important;
}

/* Testimonial cards */
.avatar.placeholder > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product cards enhancements */
.card figure {
    transition: transform 0.3s ease;
}

.card:hover figure {
    transform: scale(1.05);
}

/* Footer links */
footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    transform: scale(1.1);
}

/* Scroll animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Loading spinner for form submission */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    #hero {
        min-height: 100vh;
        padding-top: 2rem;
    }
}

/* Custom badge styling */
.badge-success {
    background-color: #10b981;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Elegant divider */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #D4AF37, transparent);
    margin: 3rem auto;
    max-width: 200px;
}

/* Cross decorative element */
.decorative-cross {
    position: relative;
    display: inline-block;
}

.decorative-cross::before,
.decorative-cross::after {
    content: "";
    position: absolute;
    background-color: #D4AF37;
}

.decorative-cross::before {
    width: 2px;
    height: 20px;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.decorative-cross::after {
    width: 12px;
    height: 2px;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Smooth scroll offset for anchors */
html {
    scroll-padding-top: 2rem;
}

/* Price styling */
.card-body .text-4xl {
    font-family: 'Playfair Display', serif;
    letter-spacing: -1px;
}

/* Social media icons animation */
.btn-circle {
    transition: all 0.3s ease;
}

.btn-circle:hover {
    transform: rotate(360deg) scale(1.1);
}

/* WhatsApp button pulse effect */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

footer .bg-green-500 {
    animation: whatsapp-pulse 2s infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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