/* ===== Base & Reset ===== */
:root {
    --primary-color: #008080; /* Teal/Cyan */
    --primary-dark: #005959;
    --secondary-color: #0a2540; /* Dark Blue */
    --accent-color: #20c997;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-5 {
    margin-top: 50px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.3;
}

.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.line {
    height: 3px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 10px 0 20px;
}

.line.center {
    margin: 10px auto 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

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

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

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

/* ===== Navbar ===== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 75px;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-left: 10px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.btn-nav {
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 128, 128, 0.2);
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

/* ===== Hero Slider & Form ===== */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    margin-top: 75px; /* offset navbar */
    display: flex;
    align-items: center;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 37, 64, 0.6);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 5%;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    margin: 0 auto;
}

.slide-content h1 {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease;
}

/* ===== About Us ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1.2;
}

.about-image {
    flex: 0.8;
    position: relative;
}

.img-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.img-wrapper img {
    border-radius: 15px;
    width: 100%;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 50px 0 50px 50px;
    text-align: center;
    width: 130px;
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 2;
}

.experience-badge .years {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 13px;
    margin-top: 5px;
}

.doctor-name {
    font-size: 28px;
    margin-bottom: 5px;
}

.credentials {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 15px;
}

.about-desc {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 25px;
    margin-top: 35px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 15px;
}

.feature i {
    color: var(--primary-color);
    font-size: 22px;
}

/* ===== Achievements ===== */
.achievements-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    color: var(--white);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.achievement-card i {
    font-size: 45px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.achievement-card h3 {
    font-size: 40px;
    color: var(--white);
    margin-bottom: 5px;
}

.achievement-card p {
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===== Services ===== */
.main-service-title {
    margin-bottom: 50px;
}

.category-header {
    text-align: left;
    margin-bottom: 30px;
}

.category-header h2 {
    font-size: 26px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-header p {
    color: var(--text-light);
}

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

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.service-img {
    height: 220px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.card-actions .btn {
    flex: 1;
    padding: 10px 0;
    font-size: 13px;
}

/* ===== Facilities ===== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.facility-card {
    background: var(--white);
    padding: 35px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.facility-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(0, 128, 128, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-card i {
    font-size: 35px;
    color: var(--primary-color);
}

/* ===== Contact Us ===== */
.contact-grid {
    display: flex;
    gap: 50px;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item .icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 128, 128, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-item p {
    color: var(--text-light);
    font-size: 15px;
}

.business-hours-wrapper {
    flex: 1;
}

.business-hours-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.business-hours-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.business-hours-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 14px;
}

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

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
    font-size: 15px;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li.closed span:last-child {
    color: #e74c3c;
    font-weight: 600;
}

/* ===== Full Width Map ===== */
.full-width-map {
    width: 100%;
    line-height: 0;
}

/* ===== Footer ===== */
.main-footer {
    background: var(--secondary-color);
    color: var(--white);
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 60px 0;
}

.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.brand-col .footer-logo {
    background: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
}

.brand-col .footer-logo img {
    height: 35px;
}

.brand-col .footer-logo .logo-text {
    color: var(--secondary-color);
    font-size: 18px;
    margin-left: 10px;
    font-weight: 700;
}

.brand-col p {
    color: #b0c4de;
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

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

.links-col ul li {
    margin-bottom: 12px;
}

.links-col ul li a {
    color: #b0c4de;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-col ul li a i {
    font-size: 10px;
}

.links-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-col ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #b0c4de;
    line-height: 1.6;
}

.contact-col ul li i {
    color: var(--white);
    margin-top: 5px;
}

.footer-bottom {
    background: var(--primary-color);
    text-align: center;
    padding: 15px 0;
}

.footer-bottom p {
    color: var(--white);
    font-size: 13px;
}

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

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.1);
    color: var(--white);
}

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

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

.float-btn.scroll-top {
    background-color: var(--secondary-color);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    nav {
        gap: 15px;
    }
    .nav-links {
        gap: 10px;
    }
    .nav-links li a {
        font-size: 14px;
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .experience-badge {
        left: auto;
        right: -10px;
        border-radius: 50%;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        flex-direction: column;
    }
    
    .appointment-form-wrapper {
        position: relative;
        right: 0;
        transform: none;
        margin: 0 auto;
        padding-top: 100px;
    }
    
    .slide-content {
        top: 20%;
        transform: none;
        text-align: center;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    nav {
        gap: 0;
    }
    
    .navbar .nav-links {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        gap: 30px;
    }
    
    .navbar .nav-links.active {
        left: 0;
    }
    
    .nav-action {
        display: none; 
    }
    
    .hamburger {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        flex-direction: column;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .category-header h2 {
        font-size: 20px;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
}
