:root {
    --primary-color: #0d3b66;
    --secondary-color: #faf0ca;
    --accent-color: #f4d35e;
    --light-color: #f9f9f9;
    --dark-color: #222;
    --text-color: #333;
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 600;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e9c44a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}


/* Navbar */
.navbar {
    background: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu ul li {
    margin-left: 2rem;
}

.nav-menu ul li a {
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    background: url('hero-background.png') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-color);
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-weight: 300;
}

/* Why Us Section */
.why-us-section {
    padding: 60px 0;
    background-color: var(--light-color);
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}
.why-us-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.why-us-card h3 {
    margin-bottom: 10px;
}

/* Services Section */
.services-section, .treatments-section, .contact-section {
    padding: 80px 0;
}
.services-section, .treatments-section {
    background: var(--light-color);
}

.services-grid, .treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}
.service-card h3 {
    margin-bottom: 15px;
}

/* Results Section */
.results-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}
.results-section > .container > p {
    max-width: 600px;
    margin: -20px auto 40px;
    font-size: 1rem;
    color: #555;
}
#results-warning {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #ddd;
}
.warning-text {
    font-size: 0.9rem;
    color: var(--text-color);
}
.results-gallery.hidden {
    display: none;
}
.results-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.gallery-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    min-height: 250px; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}
.gallery-placeholder {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Allow placeholder to fill space */
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease-in-out;
}
.gallery-item .blurred-image {
    filter: blur(20px) brightness(0.9);
    transform: scale(1.1);
}
.gallery-item .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 59, 102, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.gallery-item.revealed .blurred-image {
    filter: blur(0) brightness(1);
    transform: scale(1);
}

.gallery-item.revealed .image-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Map Section */
.map-section {
    padding: 0;
    line-height: 0; /* Removes extra space under the iframe */
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #fff;
}
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-content h2 {
    margin-bottom: 20px;
}

/* Treatments Section */
.treatments-section .section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 40px auto;
}
.treatment-card {
    background: var(--primary-color);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
}
.treatment-card h4 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Doctor Section */
.doctor-section {
    padding: 80px 0;
    background: var(--light-color);
}
.doctor-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.doctor-image {
    flex: 1;
    max-width: 400px;
}
.doctor-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.doctor-bio {
    flex: 2;
}
.doctor-bio h3 {
    margin-bottom: 20px;
}
.doctor-bio .credentials {
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--text-color);
}
.doctor-signature {
    margin-top: 20px;
    margin-bottom: 30px;
    line-height: 1.4;
}
.doctor-signature p {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: #fff;
}
.contact-section h2 {
    color: #fff;
}
.contact-section p {
    text-align: center;
    max-width: 600px;
    margin: -20px auto 40px auto;
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}
.form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: var(--font-family);
    font-size: 1rem;
}
.contact-form textarea {
    height: 120px;
    resize: vertical;
    margin-bottom: 20px;
}
.contact-form button {
    width: 100%;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #f4f4f4;
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
}
.footer-col a {
    color: #f4f4f4;
    transition: color 0.3s ease;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li a {
    color: #f4f4f4;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-col ul li a:hover, .footer-col a:hover {
    color: var(--accent-color);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8rem;
}
.footer-bottom p {
    margin: 0;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    right: 25px;
}
.float-btn {
    position: fixed;
    bottom: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.phone-btn {
    background-color: var(--primary-color);
    left: 25px;
}

.whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
    right: 25px;
}

/* Responsive */
@media(max-width: 992px) {
    .doctor-section .container {
        flex-direction: column;
        text-align: center;
    }
}
@media(max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu ul {
        flex-direction: column;
        width: 100%;
    }
    .nav-menu ul li {
        margin: 10px 0;
        text-align: center;
    }
    .hamburger {
        display: block;
    }
    .navbar .btn {
        display: none;
    }
    .form-group {
        flex-direction: column;
    }
}