/* General Reset */

/* SPA Page Transitions */
.page-section {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease-out;
    animation: swipeIn 0.4s ease-out forwards;
}

.page-section.active {
    display: block;
}

@keyframes swipeIn {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.active-link {
    color: #0f766e !important;
    border-bottom: 2px solid #0f766e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

body {
    line-height: 1.6;
    color: #334155;
    background-color: #fdfbf7;
}

html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 26px;
    font-weight: bold;
    color: #0f766e; /* Modern Teal */
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.navbar nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.navbar nav ul li a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar nav ul li a:hover {
    color: #0f766e;
}

.cta-button {
    background-color: #0f766e;
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #115e59;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

/* Hero Section */
.hero {
    /* Using a nice dental-related background image from unsplash */
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 86, 179, 0.7)), url('https://images.unsplash.com/photo-1606811841689-23dfddce3e95?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    max-width: 800px;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 40px;
}

.cta-button.primary {
    font-size: 20px;
    padding: 15px 35px;
}

/* Services Section */
.services {
    padding: 80px 50px;
    text-align: center;
    background-color: #fff;
}

.services h2 {
    font-size: 40px;
    color: #0f766e;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.service-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.1);
}

.service-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    color: #3aa6d6;
}

.service-content h3 {
    color: #3aa6d6;
    font-size: 24px;
    margin-bottom: 5px;
}

.service-content .subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.service-content .description {
    color: #7f8c8d;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10000;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.fab:hover {
    transform: scale(1.1);
}

.fab-whatsapp {
    background-color: #25D366;
}

.fab-call {
    background-color: #0f766e;
}

/* Visitor Counter */
.visitor-counter {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}


.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #95a5a6;
    font-size: 14px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background-color: #0f766e;
    color: white;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-family: sans-serif;
}

/* About Section */
.about {
    display: flex;
    padding: 100px 50px;
    align-items: center;
    gap: 60px;
    background-color: #eef5fc; /* Light blue tint */
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 40px;
    color: #0f766e;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
}

.about-image {
    flex: 1;
}

.clinic-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    display: flex;
    justify-content: space-around;
    padding: 60px 50px;
    background-color: #2c3e50;
    color: #fff;
    flex-wrap: wrap;
    gap: 40px;
}

footer h3 {
    margin-bottom: 25px;
    color: #66b3ff;
    font-size: 24px;
}

footer p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Reviews Section */
.reviews {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
    overflow: hidden;
}

.reviews h2 {
    font-size: 36px;
    color: #0f766e;
    margin-bottom: 40px;
}

.reviews-container {
    display: flex;
    width: 200%;
    animation: scroll 20s linear infinite;
}

.reviews-container:hover {
    animation-play-state: paused;
}

.review-card {
    flex: 0 0 auto;
    width: 300px;
    margin: 0 20px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
}

.review-card .stars {
    color: #f39c12;
    margin-bottom: 10px;
    font-size: 20px;
}

.review-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.review-card h4 {
    color: #333;
    font-weight: bold;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Map Section */
.map-container {
    width: 100%;
    height: 350px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Cases Section */
.cases {
    padding: 80px 50px;
    background-color: #f0f7ff;
    text-align: center;
}

.cases h2 {
    font-size: 36px;
    color: #0f766e;
    margin-bottom: 40px;
}

.cases-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.case-card {
    background-color: #fff;
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.case-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.case-gallery::-webkit-scrollbar {
    height: 6px;
}

.case-gallery::-webkit-scrollbar-thumb {
    background: #0f766e;
    border-radius: 10px;
}

.case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    color: #0f766e;
    margin-bottom: 10px;
}

/* Admin Panel Specific Styles */
.admin-body {
    background-color: #eef5fc;
    padding: 50px;
}

.admin-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.admin-container h1 {
    color: #0f766e;
    margin-bottom: 10px;
}

.admin-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.admin-container hr {
    margin: 40px 0;
    border: none;
    border-top: 1px solid #eee;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #0f766e;
    text-decoration: none;
    font-weight: bold;
}

/* Doctor Section */
.doctor-section {
    padding: 80px 50px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.doctor-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 5px solid #0f766e;
}

.doctor-info {
    max-width: 500px;
}

.doctor-info h2 {
    font-size: 36px;
    color: #0f766e;
    margin-bottom: 10px;
}

.doctor-info h4 {
    font-size: 20px;
    color: #f39c12;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    .navbar nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .services, .about, .cases, .doctor-section {
        padding: 40px 20px;
    }
    .about {
        flex-direction: column;
        text-align: center;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    footer {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }
    .fab {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
}

.doctor-info p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}
