/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066CC;
    --secondary-color: #0099FF;
    --dark-color: #001a33;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --whatsapp-color: #25D366;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
    
    /* Advanced Hero Colors */
    --primary-blue: #0077B6;
    --secondary-blue: #00B4D8;
    --dark-blue: #03045E;
    --healing-green: #52B788;
    --soft-teal: #56CFE1;
    --pure-white: #FFFFFF;
    --soft-gray: #F8F9FA;
    --text-gray: #495057;
    --dark-gray: #212529;
    --accent-gold: #FFB700;
    --glass-white: rgba(255, 255, 255, 0.95);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

main {
    position: relative;
    z-index: 1;
    background-color: #fff;
    transform: none !important;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

a:hover {
    color: var(--secondary-color);
}

/* Header Styles */
.main-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.header-top {
    background: var(--light-color);
    padding: 10px 0;
    font-size: 0.9rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
    color: var(--text-light);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.whatsapp-btn, .info-btn {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.whatsapp-btn {
    background: var(--whatsapp-color);
    color: white;
}

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

/* Navigation */
.main-nav {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: inline-block;
}

.logo {
    height: 65px;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-features {
    display: flex;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.feature-item i {
    color: var(--primary-color);
}

.doctor-card {
    position: relative;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
    z-index: 1;
}

/* Services Section */
.services-section {
    position: relative;
    padding: 80px 0;
    background: var(--light-color);
    z-index: 10;
    margin-top: 0;
    transform: none !important;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

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

.service-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 30px;
    color: white;
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
}

/* Why Us Section */
.why-us-section {
    position: relative;
    padding: 80px 0;
    background: white;
    z-index: 2;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.why-us-item {
    text-align: center;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-us-item:hover .icon-wrapper {
    background: var(--primary-color);
}

.icon-wrapper i {
    font-size: 35px;
    color: var(--primary-color);
    transition: var(--transition);
}

.why-us-item:hover .icon-wrapper i {
    color: white;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    z-index: 2;
}

.cta-content h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* Blog Section */
.blog-section {
    position: relative;
    padding: 80px 0;
    background: var(--light-color);
    z-index: 2;
}

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

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-placeholder-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-placeholder-img i {
    font-size: 50px;
    color: white;
    opacity: 0.8;
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background: var(--light-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.blog-card h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: white;
}

.footer-top {
    padding: 60px 0 40px;
}

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

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a {
    color: rgba(255,255,255,0.7);
}

.footer-column ul a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.social-links i {
    color: white;
    font-size: 18px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
}

.footer-bottom-content {
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float i {
    color: white;
    font-size: 30px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 900;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-light);
}

.close:hover {
    color: var(--text-color);
}

.modal h2 {
    margin-bottom: 30px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--secondary-color);
}

/* Hide mobile close button on desktop */
@media (min-width: 769px) {
    .mobile-menu-close {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(180deg, #f8f9fa 0%, white 10%);
        width: 80%;
        max-width: 320px;
        height: 100vh;
        text-align: left;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 5px 0 25px rgba(0,0,0,0.2);
        padding: 100px 0 30px 0;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Mobile menu items styling */
    .nav-menu li {
        width: 100%;
        margin: 0;
        padding: 0 20px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 10px;
        font-size: 16px;
        color: var(--dark-color);
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--primary-color);
        background: rgba(0, 206, 209, 0.05);
        border-radius: 8px;
    }
    
    /* Mobile close button - Simple and Visible */
    .mobile-menu-close {
        display: block !important;
        position: absolute;
        top: 30px;
        right: 20px;
        width: 45px;
        height: 45px;
        background: #00CED1;
        border: 2px solid white;
        border-radius: 10px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
        z-index: 1000;
        transition: all 0.3s ease;
    }
    
    /* Fallback X icon using pseudo-element if spans don't work */
    .mobile-menu-close::after {
        content: '×';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 32px;
        font-weight: 300;
        color: white;
        line-height: 1;
    }
    
    .mobile-menu-close::before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-menu-close:hover::before {
        opacity: 1;
    }
    
    .mobile-menu-close:hover {
        transform: scale(1.1);
        background: #20B2AA;
        box-shadow: 0 6px 20px rgba(0, 206, 209, 0.4);
    }
    
    .mobile-menu-close:hover span:first-child {
        transform: translate(-50%, -50%) rotate(135deg);
    }
    
    .mobile-menu-close:hover span:last-child {
        transform: translate(-50%, -50%) rotate(-135deg);
    }
    
    .mobile-menu-close:active {
        transform: scale(0.95) rotate(180deg);
        transition: all 0.1s ease;
    }
    
    .mobile-menu-close span {
        position: absolute;
        width: 25px;
        height: 3px;
        background: white;
        border-radius: 2px;
        top: 50%;
        left: 50%;
        transform-origin: center;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close span:first-child {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    
    .mobile-menu-close span:last-child {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    
    /* Dropdown menu mobile styles */
    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        padding-left: 20px;
        margin-top: 0;
        display: none;
    }
    
    .nav-menu .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-menu .dropdown-menu a {
        font-size: 14px;
        padding: 10px;
    }
    
    .mobile-menu-close:hover span {
        width: 28px;
    }
    
    /* Overlay for mobile menu */
    .nav-menu::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: -1;
    }
    
    .nav-menu.active::after {
        opacity: 1;
        visibility: visible;
        left: 320px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-color);
        display: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .services-grid,
    .why-us-grid,
    .blog-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .header-top-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float i {
        font-size: 25px;
    }
}

/* Instagram Section Styles */
.instagram-section {
    padding: 80px 0;
    background: var(--light-color);
}

.instagram-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.instagram-section .section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.instagram-section .section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.instagram-profile-link {
    display: inline-block;
    margin-top: 10px;
    color: #E4405F;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.instagram-profile-link:hover {
    transform: translateY(-2px);
    color: #C13584;
}

.instagram-profile-link i {
    margin-right: 8px;
}

.instagram-embed-container {
    margin: 40px auto;
    max-width: 1200px;
    min-height: 400px;
}

.instagram-grid {
    width: 100%;
}

.instagram-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.instagram-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.instagram-post iframe {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

.instagram-more {
    text-align: center;
    margin-top: 30px;
}

.instagram-more p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.instagram-cta {
    text-align: center;
    margin-top: 50px;
}

.btn-instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(221, 42, 123, 0.4);
    color: white;
}

.btn-instagram i {
    font-size: 1.3rem;
}

/* Responsive Instagram Section */
@media (max-width: 992px) {
    .instagram-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .instagram-section {
        padding: 60px 0;
    }
    
    .instagram-section .section-header h2 {
        font-size: 2rem;
    }
    
    .instagram-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .btn-instagram {
        padding: 12px 30px;
        font-size: 1rem;
    }
}