/* Dental Landing Page - Creative 3.1 (Fixes & Polish) */

/* 1. FONTS & BASICS */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --dl-gold: #D4AF37;
    --dl-navy: #0f172a;
    --dl-accent: #3b82f6;
}

.dl-page-wrapper {
    font-family: 'Cairo', sans-serif !important;
    overflow-x: hidden;
    background-color: #FAFAFA;
}

h1,
h2,
h3,
h4,
h5,
h6,
.dl-heading-creative {
    font-family: 'Cairo', sans-serif !important;
}

/* 2. ADVANCED ANIMATIONS */
@keyframes floatY {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: floatY 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: floatY 7s ease-in-out infinite 1s;
}

/* 3. UTILITIES */
.dl-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4. FIX BORDER RADIUS ON HOVER (Webkit Bug Fix) */
/* This forces the browser to respect overflow:hidden during transforms */
.rounded-\[3rem\],
.rounded-\[2rem\],
.rounded-3xl,
.rounded-\[1\.5rem\] {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
    /* Force GPU */
    overflow: hidden;
    /* Ensure strict overflow */
}

/* 5. CUSTOM BUTTONS */
.btn-creative {
    position: relative;
    padding: 16px 40px;
    background: var(--dl-gold);
    color: white;
    font-weight: 800;
    border-radius: 100px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.btn-creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--dl-navy);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-creative:hover::before {
    width: 100%;
}

.btn-creative:hover {
    transform: scale(1.05);
}

/* 6. SHAPES & GLASS */
.shape-blob {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transition: border-radius 1s ease;
}

.shape-blob:hover {
    border-radius: 60% 40% 30% 70% / 50% 40% 50% 60%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* 7. SERVICE HOVER EFFECTS */
.service-card-3d {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
    overflow: hidden;
    /* Strict overflow */
    border-radius: 2rem;
    /* Enforce here too */
}

.service-card-3d:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Removed RotateX to avoid jagged edges on some screens, sticking to clean lift */