/* ==========================================
   Power Power - Custom Styles
   Modern Landing Page 2025
   ========================================== */

/* CSS Variables */
:root {
    --primary-50: #fef2f2;
    --primary-100: #fee2e2;
    --primary-200: #fecaca;
    --primary-300: #fca5a5;
    --primary-400: #f87171;
    --primary-500: #ef4444;
    --primary-600: #dc2626;
    --primary-700: #b91c1c;
    --primary-800: #991b1b;
    --primary-900: #7f1d1d;

    --secondary-50: #fdf2f8;
    --secondary-100: #fce7f3;
    --secondary-200: #fbcfe8;
    --secondary-300: #f9a8d4;
    --secondary-400: #f472b6;
    --secondary-500: #ec4899;
    --secondary-600: #db2777;
    --secondary-700: #be185d;

    --transition-fast: 150ms;
    --transition-normal: 300ms;
    --transition-slow: 500ms;
}

/* ==========================================
   Base Styles
   ========================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: var(--primary-500);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-500), var(--secondary-500));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-600), var(--secondary-600));
}

/* ==========================================
   Header Styles
   ========================================== */

#header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#header.scrolled nav {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ==========================================
   Marquee Animation
   ========================================== */

.marquee-container {
    overflow: hidden;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* ==========================================
   Swiper Customization
   ========================================== */

/* Product Swiper */
.product-swiper {
    padding-bottom: 50px;
}

.product-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--primary-300);
    opacity: 1;
}

.product-swiper .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary-600), var(--secondary-500));
}

/* Testimonial Swiper */
.testimonial-swiper {
    padding-bottom: 50px;
}

.testimonial-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--secondary-300);
    opacity: 1;
}

.testimonial-swiper .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary-600), var(--secondary-500));
}

/* ==========================================
   Animation Enhancements
   ========================================== */

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

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

/* Pulse Glow */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(220, 38, 38, 0.8);
    }
}

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

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-shimmer {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Bounce Slow */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* ==========================================
   Button Styles
   ========================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all var(--transition-normal) ease;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: white;
    color: #374151;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    transition: all var(--transition-normal) ease;
}

.btn-secondary:hover {
    border-color: var(--primary-300);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   Card Styles
   ========================================== */

.card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal) ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Gradient Card */
.card-gradient {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
    color: white;
}

/* ==========================================
   Section Backgrounds
   ========================================== */

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1f2937, #111827);
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================
   Typography
   ========================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-animated {
    background: linear-gradient(90deg, var(--primary-600), var(--secondary-500), var(--primary-600));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* ==========================================
   Form Styles
   ========================================== */

input, textarea, select {
    color: #000000;
}

input::placeholder,
textarea::placeholder {
    color: #6b7280;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* ==========================================
   Preloader
   ========================================== */

#preloader {
    z-index: 9999;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================
   Back to Top Button
   ========================================== */

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   Mobile Menu
   ========================================== */

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease;
}

#mobile-menu.active {
    max-height: 500px;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */

/* Mobile */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* Pricing cards stack nicely */
    .pricing-card {
        margin-bottom: 1rem;
    }

    /* Floating buttons adjustment */
    .fixed.bottom-6.right-6 {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    html {
        scroll-padding-top: 80px;
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Large screens */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* ==========================================
   Accessibility
   ========================================== */

/* Focus styles */
a:focus,
button:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* 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;
    }

    .animate-float,
    .animate-float-slow,
    .animate-pulse-glow,
    .animate-shimmer,
    .animate-bounce-slow {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }

    .btn-primary {
        border: 2px solid #000;
    }
}

/* ==========================================
   Print Styles
   ========================================== */

@media print {
    header,
    #preloader,
    #back-to-top,
    .fixed,
    .fb-customerchat {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ==========================================
   AOS Overrides
   ========================================== */

[data-aos] {
    pointer-events: auto !important;
}

/* ==========================================
   Custom Utilities
   ========================================== */

.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

.shadow-glow-lg {
    box-shadow: 0 0 50px rgba(220, 38, 38, 0.4);
}

/* Gradient borders */
.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-500), var(--secondary-500)) border-box;
}

/* ==========================================
   Image Placeholder Styles
   ========================================== */

img[src*="placeholder"],
img:not([src]),
img[src=""] {
    background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product image placeholder */
.product-placeholder {
    background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.product-placeholder::after {
    content: '📦';
    font-size: 4rem;
}
