/* ============================================
   PREMIUM DESIGN SYSTEM
   Modern, Attractive, Premium Look & Feel
============================================ */

:root {
    /* Premium Color Palette */
    --primary-gradient: linear-gradient(135deg, #00a7e1 0%, #0077b5 50%, #005a87 100%);
    --hero-gradient: linear-gradient(135deg, #0a1628 0%, #0d2847 50%, #1a3a5c 100%);
    --accent-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    --gold-gradient: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);

    /* Premium Primary Colors */
    --primary-blue: #00a7e1;
    --primary-dark-blue: #0077b5;
    --primary-navy: #0a1628;
    --primary-teal: #00d4aa;

    /* Premium Accent Colors */
    --accent-coral: #ff6b6b;
    --accent-gold: #ffd700;
    --accent-violet: #7c3aed;
    --accent-emerald: #10b981;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Premium Neutrals */
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Social Colors */
    --facebook: #1877f2;
    --twitter: #1da1f2;
    --youtube: #ff0000;
    --pinterest: #e60023;
    --linkedin: #0a66c2;
    --instagram: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Poppins', sans-serif;

    /* Premium Spacing */
    --navbar-height: 122px;
    --sidebar-width: 50px;
    --section-padding: 100px;

    /* Premium Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Premium Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(0, 167, 225, 0.3);
    --shadow-glow-accent: 0 0 40px rgba(255, 107, 107, 0.3);

    /* Premium Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
}

/* ============================================
   MODERN CSS RESET
============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    /* Native App Feel */
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--off-white);
    position: relative;
}

body.menu-open {
    overflow: hidden !important;
    touch-action: none;
    -ms-touch-action: none;
    height: 100vh;
}

/* Premium App-Like Interactions */
a,
button,
.media-pill,
.premium-tab {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Premium background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 167, 225, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================
   PREMIUM TYPOGRAPHY
============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

/* Premium section titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 60px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

/* ============================================
   PREMIUM BUTTONS
============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-fast);
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(0, 167, 225, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--white);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ============================================
   PREMIUM CARDS
============================================ */

.premium-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-fast);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

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

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   PREMIUM ANIMATIONS
============================================ */

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

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

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animate on scroll classes */
.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-down {
    animation: fadeInDown 0.8s ease forwards;
}

.animate-scale {
    animation: scaleIn 0.6s ease forwards;
}

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

/* ============================================
   PREMIUM UTILITY CLASSES
============================================ */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-primary {
    color: var(--primary-blue);
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium divider */
.divider {
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    margin: 20px 0;
}

.divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* Premium badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-full);
}

/* ============================================
   MAIN CONTENT AREA
============================================ */

#main-content {
    min-height: 100vh;
}

.site-alerts {
    position: relative;
    z-index: 950;
    padding-top: calc(var(--navbar-height) + 18px);
}

.site-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-lg);
}

.site-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.site-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================
   PREMIUM SCROLLBAR
============================================ */

::-webkit-scrollbar {
    display: none;
}

::-webkit-scrollbar-track {
    display: none;
}

::-webkit-scrollbar-thumb {
    display: none;
}

::-webkit-scrollbar-thumb:hover {
    display: none;
}

/* ============================================
   PREMIUM SELECTION
============================================ */

::selection {
    background: rgba(0, 167, 225, 0.3);
    color: var(--gray-900);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */

@media (max-width: 1200px) {
    :root {
        --sidebar-width: 45px;
        --section-padding: 80px;
    }
}

@media (max-width: 992px) {
    :root {
        --navbar-height: 112px;
        --section-padding: 72px;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 104px;
        --sidebar-width: 40px;
        --section-padding: 60px;
    }

    body {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    :root {
        --navbar-height: 92px;
        --section-padding: 50px;
    }

    .site-alerts {
        padding-top: calc(var(--navbar-height) + 12px);
    }
}

/* ============================================
   STICKY SEND MESSAGE BUTTON
============================================ */

.send-message-fixed {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.send-message-fixed.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: var(--transition-normal);
}

.btn-message i {
    font-size: 18px;
}

.btn-message:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 167, 225, 0.5);
    color: var(--white);
}

@media (max-width: 768px) {
    .send-message-fixed {
        bottom: calc(90px + env(safe-area-inset-bottom));
        left: 16px;
        transform: translateY(20px);
        width: auto;
        max-width: none;
    }

    .send-message-fixed.visible {
        transform: translateY(0);
    }

    /* Icon-only compact circle on mobile */
    .btn-message {
        width: 52px;
        height: 52px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
        font-size: 0;
        /* Hide text */
        justify-content: center;
        align-items: center;
        position: relative;
        color: transparent;
    }

    .btn-message i {
        font-size: 20px;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: var(--white);
    }
}

/* ============================================
   PREMIUM SECTION STYLING
   Dental-themed dividers and backgrounds
============================================ */

/* Scroll reveal animation classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children animation */
.stagger-children>* {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.revealed>*:nth-child(1) {
    transition-delay: 0.05s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.revealed>*:nth-child(2) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.revealed>*:nth-child(3) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.revealed>*:nth-child(4) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.revealed>*:nth-child(5) {
    transition-delay: 0.25s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.revealed>*:nth-child(6) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.revealed>*:nth-child(7) {
    transition-delay: 0.35s;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.revealed>*:nth-child(8) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

/* Premium wave section divider */
.section-wave {
    position: relative;
    overflow: hidden;
}

.section-wave::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f8fafc' d='M0,30 C480,60 960,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    z-index: 5;
}

/* Dental decorative background for sections */
.dental-bg-pattern {
    position: relative;
}

.dental-bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='72' viewBox='0 0 60 72'%3E%3Cpath d='M30 3C15 3 6 14 6 28c0 10 6 14 9 18 2 3 2 7 0 17-1 3 1 6 5 6 4 0 6-5 7-12 1-4 2-6 3-6s2 2 3 6c1 7 3 12 7 12 4 0 6-3 5-6-2-10-2-14 0-17 3-4 9-8 9-18C54 14 45 3 30 3z' fill='%2300a7e1' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 80px 95px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   PREMIUM BUTTON RIPPLE EFFECT
============================================ */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   COUNTER ANIMATION
============================================ */
.counter-animated {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   PREMIUM SECTION HEADERS
============================================ */
.section-header-premium {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header-premium h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
}

.section-header-premium h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00d4aa, #00a7e1);
    border-radius: var(--radius-full);
}

.section-header-premium .section-subtitle {
    color: var(--gray-500);
    font-size: 16px;
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SCROLL-TO-TOP BUTTON (Enhanced)
============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00a7e1, #00d4aa);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 167, 225, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 167, 225, 0.5);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: calc(100px + env(safe-area-inset-bottom));
        left: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   ENHANCED MOBILE APP-LIKE STYLES
============================================ */
@media (max-width: 768px) {

    /* Smoother interactions */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Better touch targets */
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Premium card hover on mobile = active state */
    .premium-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Smooth section spacing on mobile */
    section {
        scroll-margin-top: var(--navbar-height);
    }
}