/* 
 * Real Tepache Milenario - Main Stylesheet
 * This stylesheet contains all custom styles for the website
 */

/* Global Styles
-------------------------------------------------- */
:root {
    --primary-color: #F2B705;
    --secondary-color: #333;
    --accent-color: #78A22F;
    --text-color: #333333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --dark-overlay: rgba(0, 0, 0, 0.7);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    background-color: #121212;
    color: var(--light-color);
}

/* Three.js Canvas */
#threejs-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    opacity: 0.9;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.main-content {
    position: relative;
    z-index: 2;
}

.section-3d {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.section-title.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--light-color);
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: #e0aa00;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(242, 183, 5, 0.3);
}

.btn-outline-light {
    color: white;
    border-color: white;
    border-width: 2px;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.text-highlight {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

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

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.3s;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.6s;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.9s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.appear-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.appear-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Main content sections */
.main-content {
    position: relative;
    z-index: 2;
}

/* Add animation classes for more dynamic elements */
.floating {
    animation: float 6s ease-in-out infinite;
    transform-origin: center center;
}

.floating-delay-1 {
    animation: float 6s ease-in-out 2s infinite;
    transform-origin: center center;
}

.floating-delay-2 {
    animation: float 6s ease-in-out 4s infinite;
    transform-origin: center center;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Hero section with background image */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-logo {
    max-width: 250px;
    margin-bottom: 30px;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    color: white;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
    z-index: 5;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.scroll-indicator span {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.scroll-indicator i {
    font-size: 1.5rem;
    opacity: 0.9;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* About Section
-------------------------------------------------- */
.about-text {
    color: white;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.about-3d-container {
    height: 400px;
    position: relative;
}

#bottle-model-container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-item:hover {
    background-color: rgba(242, 183, 5, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item span {
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Video Section
-------------------------------------------------- */
#video-section {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 80px 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Benefits Section
-------------------------------------------------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    will-change: transform;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background-color: rgba(242, 183, 5, 0.1);
}

.benefit-card:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(45deg);
    z-index: -1;
    transition: all 0.8s ease;
}

.benefit-card:hover:before {
    transform: rotate(315deg);
}

.benefit-icon {
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.benefit-icon i {
    font-size: 24px;
    color: var(--secondary-color);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.benefit-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Testimonial Section
-------------------------------------------------- */
.testimonial-carousel {
    position: relative;
    margin-bottom: 60px;
    overflow: visible;
}

.swiper-container {
    overflow: visible;
    padding: 30px 10px;
}

.testimonial-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    backdrop-filter: blur(5px);
    min-height: 350px; /* Set a minimum height for the testimonial items */
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-item h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.testimonial-item .position {
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.testimonial-item .quote {
    position: relative;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-style: italic;
}

.testimonial-item .quote:before,
.testimonial-item .quote:after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
    opacity: 0.5;
}

.testimonial-item .quote:before {
    top: -20px;
    left: 0;
}

.testimonial-item .quote:after {
    bottom: -30px;
    right: 0;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* Swiper navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(242, 183, 5, 0.3);
    transform: scale(1.1);
}

.swiper-container-3d .swiper-slide-shadow-left,
.swiper-container-3d .swiper-slide-shadow-right {
    background-image: none;
}

@media (max-width: 767.98px) {
    .testimonial-img {
        width: 80px;
        height: 80px;
    }
    
    #testimonials .video-container {
        margin-bottom: 30px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Subscribe Section
-------------------------------------------------- */
#subscribe {
    position: relative;
}

.subscription-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.subscription-benefits li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.subscription-benefits li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.subscription-price {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.subscription-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.price-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

.subscription-3d-container {
    height: 400px;
    position: relative;
}

#subscription-model-container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

/* Footer
-------------------------------------------------- */
.footer {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px 0 30px;
    position: relative;
    z-index: 5;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.footer h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.footer h4:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    padding: 8px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Modal Styles
-------------------------------------------------- */
.modal-content {
    background-color: #1a1a1a;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(242, 183, 5, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Additional animation effects 
-------------------------------------------------- */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(242, 183, 5, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

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

.pulse-animation:hover {
    animation: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(242, 183, 5, 0.3);
}

/* Enhance floating animations */
.floating {
    animation: float 6s ease-in-out infinite;
    transform-origin: center center;
}

.floating-delay-1 {
    animation: float 6s ease-in-out 2s infinite;
    transform-origin: center center;
}

.floating-delay-2 {
    animation: float 6s ease-in-out 4s infinite;
    transform-origin: center center;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Responsive Styles
-------------------------------------------------- */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 20px 0;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-3d {
        padding: 80px 0;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .feature-item {
        width: 100%;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer [class^="col-"] {
        margin-bottom: 30px;
    }
    
    .hero-content {
        margin: 0 15px;
    }
    
    .testimonial-img {
        width: 80px;
        height: 80px;
    }
    
    #testimonials .video-container {
        margin-bottom: 30px;
    }
}

/* Featured testimonial video */
#testimonials .video-container {
    margin-bottom: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

#testimonials .video-container:hover {
    transform: translateY(-10px);
}

/* Instagram testimonials link */
#testimonials .instagram-link {
    margin-bottom: 30px;
    text-align: center;
}

#testimonials .instagram-link a {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#testimonials .instagram-link a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
} 