/* Frontend Styles - Dental Clinic Website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary: #00ABE4;
    --secondary: #E9F1FA;
    --white: #FFFFFF;
    --dark: #1e293b;
    --light-text: #64748b;
    --border: #e2e8f0;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 171, 228, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    max-height: 50px;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
    color: white !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 171, 228, 0.3);
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 171, 228, 0.4);
}

/* ─────────────────────────────────
   Image Slider – Premium (natadama style)
───────────────────────────────── */
.hero-slider {
    position: relative;
    width: 100%;
    /* Kurangi tinggi navbar (~70px) agar slider pas di bawah navbar sticky */
    height: calc(100vh - 70px);
    min-height: 480px;
    max-height: 900px;
    overflow: hidden;
    background: #111;
    line-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

/* Progress bar at bottom */
.hero-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: 20;
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #00ABE4, #38bdf8);
    z-index: 21;
    transition: width linear;
    transform-origin: left;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
    z-index: 1;
}

.slider-slide.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 2;
}

.slider-slide.slide-left {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
}

.slider-slide.slide-right {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

/* Image – no zoom, static */
.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

/* Gradient overlay – centered (natadama style) */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    max-width: 820px;
    padding: 0 40px;
    text-align: center;
    animation: slideTextUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes slideTextUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.slide-subtitle {
    font-size: clamp(15px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Dual CTA buttons container */
.slide-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00ABE4 0%, #0284c7 100%);
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 30px rgba(0, 171, 228, 0.50);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 171, 228, 0.65);
}

/* Secondary outline button */
.slide-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(4px);
}

.slide-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ── Navigation Arrows ── */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 18px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1;
}

.slider-arrow:hover {
    background: rgba(0, 171, 228, 0.80);
    border-color: #00ABE4;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 24px rgba(0, 171, 228, 0.45);
}

.slider-prev {
    left: 28px;
}

.slider-next {
    right: 28px;
}

/* ── Slide Counter Badge ── */
.slider-counter {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 15;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 1px;
}

/* ── Dots ── */
.slider-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
    align-items: center;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0;
    outline: none;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.slider-dot.active {
    width: 32px;
    border-radius: 4px;
    background: linear-gradient(90deg, #00ABE4, #38bdf8);
    box-shadow: 0 0 12px rgba(0, 171, 228, 0.6);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-slider {
        height: calc(100vh - 70px);
        min-height: 300px;
        max-height: none;
        padding: 0 !important;
    }

    .slide-content {
        padding: 0 20px;
    }

    .slide-title {
        font-size: 20px;
    }

    .slide-subtitle {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .slide-btn,
    .slide-btn-outline {
        padding: 11px 24px;
        font-size: 13px;
    }

    .slide-actions {
        gap: 10px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .slider-dots {
        bottom: 16px;
    }

    .slider-counter {
        top: 14px;
        right: 14px;
        font-size: 11px;
        padding: 4px 10px;
    }
}



/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--white) 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 50%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero .btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(0, 171, 228, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 171, 228, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 171, 228, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 171, 228, 0.2);
    border-color: var(--primary);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-card p {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.6;
}

/* Why Choose Us */
.why-choose {
    background: var(--secondary);
    padding: 60px 0;
}

.why-choose .section-header {
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    color: var(--light-text);
    font-size: 14px;
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.mt-4 {
    margin-top: 40px;
}

.mb-4 {
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

/* Floating WhatsApp Widget */
.wa-floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.wa-toggle-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.wa-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wa-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-popup-header {
    background-color: #095E54;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.wa-header-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #128C7E;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.wa-header-avatar img,
.wa-header-avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-header-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.wa-header-info p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.8;
}

.wa-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wa-close-btn:hover {
    opacity: 1;
}

.wa-popup-body {
    padding: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%23efeae2"/><path d="M0 0h10v10H0zm20 20h10v10H20zM40 0h10v10H40zm20 20h10v10H60z" fill="%23dfd8c8" fill-opacity="0.4"/></svg>');
    background-color: #efeae2;
    min-height: 120px;
}

.wa-message {
    background-color: white;
    padding: 10px 15px;
    border-radius: 0 10px 10px 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 90%;
    margin-bottom: 10px;
}

.wa-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 10px solid white;
    border-right: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.wa-message-name {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 5px;
    font-weight: 500;
}

.wa-message-text {
    font-size: 14px;
    color: #111b21;
    line-height: 1.4;
    margin-bottom: 15px;
}

.wa-message-time {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
    text-align: right;
    margin-top: -10px;
}

.wa-popup-footer {
    padding: 15px 20px;
    background-color: white;
    border-top: 1px solid #f0f0f0;
}

.wa-start-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s;
    gap: 8px;
}

.wa-start-chat-btn:hover {
    background-color: #1DA851;
    color: white;
}

@media (max-width: 480px) {
    .wa-popup {
        width: calc(100vw - 40px);
        right: -10px;
    }
}