/* 
   Professional Dental Theme (Premium Dark Polish)
   Primary: #3B82F6 (Bright Blue)
   Background: #0F172A (Deep Slate)
   Surface: Gradient Slate
   Font: Inter
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #3B82F6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --primary-dark: #2563EB;

    --text-main: #F8FAFC;
    --text-muted: #94A3B8;

    --bg-page: #0B1120;
    /* Darker, richer slate */
    --bg-surface: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
    --bg-glass: rgba(30, 41, 59, 0.7);

    --border: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);

    --container-width: 1280px;
    --section-padding: 120px;

    --font-heading: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    --shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Cleaner, subtle background */
    background-image: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #FFFFFF 30%, #94A3B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}

@media (min-width: 1400px) {
    h1 {
        font-size: 6rem;
    }
}

h2 {
    font-size: 2.75rem;
    margin-bottom: 3rem;
    text-align: center;
    color: white;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 48px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Spacing Utilities */
.mt-16 {
    margin-top: 16px;
}

.mt-32 {
    margin-top: 32px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.mb-12 {
    margin-bottom: 12px;
}

.btn-full {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Staggered Animations for Grids */
.grid>div:nth-child(1) {
    transition-delay: 0.1s;
}

.grid>div:nth-child(2) {
    transition-delay: 0.2s;
}

.grid>div:nth-child(3) {
    transition-delay: 0.3s;
}

.grid>div:nth-child(4) {
    transition-delay: 0.4s;
}

.grid>div:nth-child(5) {
    transition-delay: 0.5s;
}

.grid>div:nth-child(6) {
    transition-delay: 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 17, 32, 0.85);
    /* Glass dark */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-menu a:hover {
    color: white;
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
}

/* Hero Section */
.hero {
    padding-top: 220px;
    padding-bottom: 180px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(11, 17, 32, 0.7), rgba(11, 17, 32, 0.9)),
        url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 24px;
    color: white;
}

.hero .subheadline {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #E2E8F0;
    font-weight: 400;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 48px;
    color: #CBD5E1;
}

/* Trust Bar */
.trust-bar {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.trust-stat-number {
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.trust-stat-label {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Services */
.service-card {
    background: var(--bg-surface);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

/* Portfolio */
.portfolio-card {
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    border: 1px solid var(--border);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(59, 130, 246, 0.1);
}

.portfolio-img {
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.portfolio-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(11, 17, 32, 0.8));
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 1;
}

/* Enforce 16:9 aspect ratio */
.portfolio-img {
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.08);
    opacity: 1;
}

.portfolio-content {
    padding: 32px;
    position: relative;
    z-index: 2;
}

.result-badge {
    margin-top: 16px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    font-size: 0.9rem;
}

/* Pricing */
.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    /* Adjusted padding */
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    /* Flex layout for alignment */
    flex-direction: column;
    height: 100%;
    /* Ensure full height in grid */
}

.pricing-card.featured {
    border: 1px solid var(--primary);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 1) 100%);
    /* Slightly darker/richer */
    transform: scale(1.03);
    /* Subtle scale */
    z-index: 2;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.15);
    /* refined glow */
}

/* Card Header Grouping for spacing */
.pricing-card h3,
.pricing-card .price,
.pricing-card p {
    margin-bottom: 0;
}

.pricing-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.pricing-card .price {
    margin-bottom: 8px;
}

.pricing-card>p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    /* Separator */
}

.pricing-card.featured>p {
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.popular-tag {
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 24px 0;
    letter-spacing: -1px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 16px 0 24px;
    letter-spacing: -1px;
}

.currency {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    vertical-align: middle;
}

.pricing-card ul {
    text-align: left;
    margin: 0 0 32px 0;
    /* Removing top margin as it's handled by padding-bottom of prev element */
    flex-grow: 1;
    /* Pushes button to bottom */
    padding-top: 24px;
}

.pricing-card li {
    margin-bottom: 20px;
    /* Increased spacing */
    display: flex;
    gap: 16px;
    /* Better icon separation */
    align-items: flex-start;
    /* Align icon to top of text */
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.pricing-card li i {
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary-glow));
    margin-top: 4px;
    /* Optical alignment */
    flex-shrink: 0;
}

/* Button Anchor */
.pricing-card .btn-full {
    margin-top: auto;
}

.pricing-card.featured li {
    color: #E2E8F0;
}

/* Testimonials */
.testimonial-card {
    background: linear-gradient(145deg, #253347 0%, #172033 100%);
    padding: 40px;
    border-radius: 16px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--bg-surface);
    outline: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.125rem;
    margin-bottom: 16px;
    display: block;
    color: var(--text-main);
}

.testimonial-author h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: white;
}

.section-footer-text {
    margin-top: 40px;
    color: var(--text-muted);
}

.section-footer-text-lg {
    margin-top: 40px;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

/* Footer */
footer {
    background: #020617;
    border-top: 1px solid var(--border);
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 1.25rem;
    color: white;
    letter-spacing: -0.01em;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding-top: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
/* Mobile Only Elements */
.mobile-only {
    display: none;
}

/* Responsive */
.social-icons {
    font-size: 1.25rem;
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary);
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    h1 {
        font-size: 4rem;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        gap: 20px;
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation */
    .mobile-only {
        display: inline-flex;
    }

    .nav-cta .btn {
        display: none;
        /* Hide header CTA */
    }

    .nav-menu {
        display: flex;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 17, 32, 0.98);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 24px;
        align-items: center;
        gap: 24px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
    }

    .nav-menu.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-menu a {
        font-size: 1.125rem;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .mobile-toggle {
        display: block;
        font-size: 1.75rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 100px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-img {
        margin: 0 auto 16px;
    }
}