/* 
  Pinnacle Dental Centre - Core Styles 
  Using Tailwind utility-first approach with custom premium animations.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #3198D8;
    --accent-seafoam: #20C997;
    --accent-teal: #17A2B8;
    --premium-white: #FFFFFF;
    --soft-gray: #F8FAFC;
    --text-dark: #1E293B;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--premium-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-premium {
    font-family: 'Outfit', sans-serif;
}

/* Luxury Transitions */
.premium-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating WhatsApp Button Animation */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(32, 201, 151, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(32, 201, 151, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(32, 201, 151, 0);
    }
}

.whatsapp-btn {
    animation: pulse-green 2s infinite;
}

/* Glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Marquee Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    animation: scroll 30s linear infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--soft-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-teal);
}

/* ===== HERO CAROUSEL ===== */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

/* ===== SERVICE CARDS & MODAL ===== */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#service-modal .relative {
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== BEFORE/AFTER SLIDER ===== */
.comparison-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 32px;
}

.comparison-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
}

.comparison-before img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

.comparison-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-slider {
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background: white;
    z-index: 20;
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    color: #3198D8;
}

/* ===== PREMIUM SECTION ENHANCEMENTS ===== */

.bg-mesh-gradient {
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, hsla(203, 67%, 52%, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(162, 72%, 45%, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(203, 67%, 52%, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(162, 72%, 45%, 0.05) 0px, transparent 50%);
}

.premium-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

.glow-pinnacle {
    box-shadow: 0 0 20px rgba(49, 152, 216, 0.15);
}

.glow-seafoam {
    box-shadow: 0 0 20px rgba(32, 201, 151, 0.15);
}

/* Mission/Vision Mesh */
.mission-mesh {
    background: radial-gradient(circle at 20% 30%, rgba(49, 152, 216, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(32, 201, 151, 0.1) 0%, transparent 40%);
}

/* Staff Card Soft Glow */
.staff-card-glow:hover {
    box-shadow: 0 20px 50px rgba(49, 152, 216, 0.15);
}

/* Insurance Marquee Card */
.marquee-card {
    background: var(--premium-white);
    border-radius: 2.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    padding: 3rem 0;
    margin: 0 1rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 10;
}