@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    html {
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        background-color: #070B14;
        color: #F1F5F9;
        scroll-behavior: smooth;
        letter-spacing: -0.012em;
    }
    
    h1, h2, h3, h4, h5, h6, .font-heading {
        font-family: 'Syne', 'Urbanist', sans-serif;
        letter-spacing: -0.035em;
        font-weight: 800;
    }

    .font-tech, .badge-kicker {
        font-family: 'Space Grotesk', sans-serif;
        letter-spacing: 0.15em;
    }
}

/* Luxury Editorial Headings */
h1 {
    line-height: 1.08;
    text-shadow: 0 4px 30px rgba(0, 112, 243, 0.25);
}
h2 {
    line-height: 1.15;
    text-shadow: 0 3px 20px rgba(0, 217, 255, 0.15);
}

/* Custom Scrollbar - Ice Blue */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #070B14;
}
::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 4px;
    border: 1px solid rgba(0, 140, 255, 0.35);
}
::-webkit-scrollbar-thumb:hover {
    background: #0070F3;
}

/* Glowing Elements and Borders - Logo Ice & Electric Blue */
.glow-blue {
    box-shadow: 0 0 25px rgba(0, 112, 243, 0.45);
}
.glow-blue-sm {
    box-shadow: 0 0 15px rgba(0, 140, 255, 0.3);
}
.glow-blue-lg {
    box-shadow: 0 0 45px rgba(0, 140, 255, 0.65);
}
.glow-cyan {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
}

.border-glow {
    border: 1px solid rgba(0, 140, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.border-glow:hover {
    border-color: rgba(0, 217, 255, 0.7);
    box-shadow: 0 0 25px rgba(0, 140, 255, 0.35);
    transform: translateY(-2px);
}

/* Background Gradients - Deep Navy & Ice Ambient */
.bg-radial-gradient {
    background: radial-gradient(circle at 50% 25%, rgba(0, 102, 255, 0.18) 0%, rgba(7, 11, 20, 0.96) 75%);
}

.bg-tech-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(0, 140, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 140, 255, 0.05) 1px, transparent 1px);
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(14, 23, 42, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
    border-color: rgba(0, 140, 255, 0.45);
}

/* Keyframes & Animations */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 112, 243, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 35px rgba(0, 217, 255, 0.75);
        transform: scale(1.02);
    }
}
.animate-pulse-glow {
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes floatAppliance {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}
.animate-float {
    animation: floatAppliance 5s infinite ease-in-out;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
.whatsapp-pulse {
    animation: whatsappPulse 2s infinite;
}

/* Before / After Container */
.comparison-container {
    position: relative;
    overflow: hidden;
    user-select: none;
}
.comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0070F3;
    cursor: ew-resize;
    z-index: 30;
    box-shadow: 0 0 10px #00C2FF;
}
.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #0070F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
}
