/* ====================================
   REVANAIL - CUSTOM CSS STYLES
   Mobile-First Responsive Design
   ==================================== */

/* Root Variables */
:root {
    --primary-color: #4F46E5;
    --primary-dark: #3730A3;
    --primary-light: #818CF8;
    --secondary-color: #06B6D4;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    --gradient-secondary: linear-gradient(135deg, #3730A3 0%, #1E40AF 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ====================================
   NAVIGATION
   ==================================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.btn-cta {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

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

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-link::after {
        display: none;
    }
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero-section {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

.hero-image-wrapper {
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-product-img {
    max-width: 400px;
    filter: drop-shadow(0 20px 40px rgba(79, 70, 229, 0.3));
    animation: productFloat 3s ease-in-out infinite;
}

@keyframes productFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.floating-badge {
    position: absolute;
    top: 20%;
    right: -10%;
    background: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: var(--shadow-xl);
    animation: pulse 2s ease-in-out infinite;
    z-index: 10;
}

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

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

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

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

.bg-primary-gradient {
    background: var(--gradient-primary);
}

.trust-badges {
    margin-top: 1.5rem;
}

/* Mobile Hero Adjustments */
@media (max-width: 767px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .hero-product-img {
        max-width: 280px;
    }
    
    .floating-badge {
        position: static;
        display: inline-block;
        margin-top: 1rem;
    }
}

/* ====================================
   FEATURE CARDS
   ==================================== */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: var(--shadow-xl);
}

.feature-card {
    border-radius: 15px;
    overflow: hidden;
}

.feature-icon {
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* ====================================
   COUNTDOWN TIMER
   ==================================== */
.countdown-timer {
    font-family: 'Poppins', sans-serif;
}

.timer-label {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.timer-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
}

.timer-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.timer-text {
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

.timer-separator {
    font-size: 3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
}

/* Mobile Timer */
@media (max-width: 575px) {
    .timer-box {
        padding: 1rem 1.5rem;
    }
    
    .timer-value {
        font-size: 2.5rem;
    }
    
    .timer-separator {
        font-size: 2rem;
    }
}

/* ====================================
   PRICING SECTION
   ==================================== */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.pricing-card {
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.most-popular {
    border: 3px solid var(--success-color);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--success-color);
    color: var(--white);
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.package-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.price-wrapper {
    padding: 1rem 0;
}

.old-price {
    font-size: 1.25rem;
}

.current-price {
    line-height: 1;
    margin: 0.5rem 0;
}

.per-bottle {
    font-size: 1rem;
}

.bonus-badges .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

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

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

/* Mobile Pricing */
@media (max-width: 575px) {
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .popular-badge {
        font-size: 0.75rem;
        padding: 0.4rem 2.5rem;
    }
}

/* ====================================
   BONUS CARDS
   ==================================== */
.bonus-card {
    border-radius: 20px;
    transition: var(--transition);
    overflow: hidden;
}

.bonus-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.bonus-badge {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}

/* ====================================
   REVIEW CARDS
   ==================================== */
.review-card {
    border-radius: 15px;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ====================================
   ACCORDION STYLES
   ==================================== */
.accordion-button {
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

/* ====================================
   INGREDIENT CARDS
   ==================================== */
.ingredient-card {
    border-radius: 15px;
    transition: var(--transition);
}

.ingredient-card:hover {
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

/* ====================================
   BENEFIT ITEMS
   ==================================== */
.benefit-item {
    transition: var(--transition);
    border-radius: 10px;
}

.benefit-item:hover {
    background: var(--light-color);
    transform: translateX(10px);
}

/* ====================================
   FINAL CTA SECTION
   ==================================== */
.final-cta-section {
    position: relative;
    overflow: hidden;
}

.final-cta-img {
    max-width: 400px;
    animation: ctaFloat 4s ease-in-out infinite;
}

@keyframes ctaFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

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

.price-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
}

/* Mobile Final CTA */
@media (max-width: 767px) {
    .final-cta-img {
        max-width: 280px;
    }
}

/* ====================================
   SCROLL TO TOP BUTTON
   ==================================== */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border: none;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.5rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ====================================
   PURCHASE NOTIFICATION
   ==================================== */
.purchase-notification {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    opacity: 0;
    transform: translateX(-400px);
    transition: var(--transition);
    max-width: 320px;
}

.purchase-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Purchase Notification */
@media (max-width: 575px) {
    .purchase-notification {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        bottom: 80px;
    }
}

/* ====================================
   MODAL CUSTOMIZATION
   ==================================== */
.modal-content {
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    border-radius: 20px 20px 0 0;
}

/* ====================================
   FOOTER
   ==================================== */
.footer-section {
    background: var(--dark-color);
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* ====================================
   UTILITY CLASSES
   ==================================== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

/* ====================================
   ANIMATIONS
   ==================================== */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Fade animations */
[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(-50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .timer-value {
        font-size: 3rem;
    }
}

/* Mobile Phones (< 768px) */
@media (max-width: 767px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    /* Stack columns */
    .row > [class*="col-"] {
        margin-bottom: 1rem;
    }
}

/* Small Mobile (< 575px) */
@media (max-width: 575px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* Prevent horizontal scroll */
body, html {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all sections are responsive */
section {
    max-width: 100%;
    overflow-x: hidden;
}

/* ====================================
   REDUCED MOTION
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ====================================
   PRINT STYLES
   ==================================== */
@media print {
    .navbar,
    .footer-section,
    #scrollTopBtn,
    .purchase-notification,
    #exitPopup {
        display: none !important;
    }
    
    .pricing-section,
    .pricing-section-2 {
        page-break-inside: avoid;
    }
}
