@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Lato:wght@400;700&display=swap');

:root {
    --primary-color: #6366f1;
    /* Indigo - Modern tech blue */
    --secondary-color: #8b5cf6;
    /* Violet - Deep purple */
    --accent-color: #06b6d4;
    /* Cyan - Electric blue */
    --trust-color: #10b981;
    /* Emerald - Fresh green */
    --urgency-color: #f97316;
    /* Orange - Vibrant orange */
    --success-color: #22c55e;
    /* Green - Bright success */
    --warning-color: #eab308;
    /* Yellow - Amber warning */
    --error-color: #ef4444;
    /* Red - Crimson error */

    --glass-bg: rgba(255, 255, 255, 0.1);
    /* Glassmorphism */
    --glass-border: rgba(255, 255, 255, 0.2);
    --neon-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    /* Indigo glow */

    --text-color: #0f172a;
    /* Slate dark */
    --text-muted: #64748b;
    /* Slate medium */
    --background-color: #ffffff;
    /* Pure white */
    --background-alt: #f1f5f9;
    /* Light slate for better contrast */
    --dark-bg: #0f172a;
    /* Dark slate */
    --card-bg: rgba(255, 255, 255, 0.8);
    /* Semi-transparent */

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-dark: linear-gradient(135deg, #2d3748 0%, #1a202c 50%, #0f172a 100%);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f8fafc;
        --text-muted: #cbd5e1;
        --background-color: #0f172a;
        --background-alt: #1e293b;
        --card-bg: rgba(30, 41, 59, 0.8);
    }

    /* Dark Mode Glassmorphism */
    .product-card,
    .bg-white.rounded-lg.shadow-md {
        background: rgba(15, 23, 42, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4) !important;
        color: var(--text-color);
    }

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

    .text-gray-900,
    .text-gray-800,
    .text-gray-700,
    .text-gray-600 {
        color: var(--text-muted) !important;
    }

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
    /* Account for fixed navbar */
}

/* Mobile-first responsive utilities */
@media (max-width: 640px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }

    .btn {
        padding: 16px 28px !important;
        font-size: 16px !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
        min-height: 52px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }

    .product-card {
        margin-bottom: 2rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    /* Touch-friendly targets */
    button,
    .btn,
    a {
        min-height: 48px !important;
        min-width: 48px !important;
        touch-action: manipulation;
    }

    /* Hero section mobile adjustments */
    .hero-section {
        padding: 4rem 0 !important;
    }

    .hero-section h1 {
        font-size: 2.25rem !important;
    }

    .hero-section p {
        font-size: 1.125rem !important;
    }

    /* Grid adjustments for mobile */
    .grid.grid-cols-1.md\\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .grid.grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* CTA buttons spacing */
    .flex.flex-col.sm\\:flex-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* Container padding adjustments */
    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    /* Products grid section */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Reviews section */
    .grid.grid-cols-1.md\\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Testimonials section */
    .bg-white.rounded-lg.shadow-md.p-8 {
        padding: 1.75rem !important;
    }

    .bg-white.rounded-lg.shadow-md.p-8 .flex.items-center {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    .bg-white.rounded-lg.shadow-md.p-8 .flex.items-center img {
        width: 60px !important;
        height: 60px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .btn {
        font-size: 13px !important;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-color);
}


/* Product card hover effect */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15),
        0 10px 20px rgba(139, 92, 246, 0.1),
        0 0 0 1px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.product-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.1);
}

/* Glassmorphism for review cards */
.product-card.border-l-4 {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 4px solid var(--trust-color);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Scroll reveal animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger animation delays for grid items */
.grid>*:nth-child(1) {
    animation-delay: 0.1s;
}

.grid>*:nth-child(2) {
    animation-delay: 0.2s;
}

.grid>*:nth-child(3) {
    animation-delay: 0.3s;
}

.grid>*:nth-child(4) {
    animation-delay: 0.4s;
}

.grid>*:nth-child(5) {
    animation-delay: 0.5s;
}

.grid>*:nth-child(6) {
    animation-delay: 0.6s;
}

/* Button */
.btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3),
        0 2px 8px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

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

.btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4),
        0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* Ripple effect for buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animated SVG Waves */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

/* Floating Call Button */
.floating-call-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--trust-color), var(--success-color));
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
}

.floating-call-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

.floating-call-button i {
    font-size: 20px;
    margin-right: 0;
    transition: all 0.3s ease;
}

.floating-call-button .call-text {
    position: absolute;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
}

.floating-call-button:hover .call-text {
    opacity: 1;
    transform: translateX(0);
}

.floating-call-button:hover {
    width: 140px;
    border-radius: 28px;
}

.floating-call-button:hover i {
    margin-right: 8px;
}

.pulse-ring {
    position: absolute;
    width: 56px;
    height: 56px;
    border: 2px solid var(--trust-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

.pulse-ring-delay {
    animation-delay: 1s;
}

/* Core Web Vitals Optimizations */

/* Font loading optimization - prevent layout shift */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/Montserrat/v25/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Ew-Y3tcoqK5.woff2') format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/Lato/v23/S6uyw4BMUTPHjx4wXg.woff2') format('woff2');
}

/* Layout stability - prevent CLS */
.product-card img,
article img,
.hero-section img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* Critical CSS above the fold */
.hero-section {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

/* Reduce paint on scroll */
.product-card,
article {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize for 60fps animations */
/* Core Web Vitals - Cumulative Layout Shift prevention */
* {
    box-sizing: border-box;
}

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

/* Reserve space for dynamic content */
.floating-call-button {
    will-change: width;
}

/* Mobile optimizations for floating button */
@media (max-width: 768px) {
    .floating-call-container {
        bottom: 90px;
        right: 15px;
    }

    .floating-call-button {
        width: 50px;
        height: 50px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .floating-call-button:hover {
        width: 130px;
        border-radius: 25px;
    }

    .pulse-ring {
        width: 50px;
        height: 50px;
    }
}


@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}