
:root {
    --primary-gradient: linear-gradient(135deg, #00A9B5 0%, #006F77 100%);
    --primary-color: #00A9B5;
    --dark-blue: #006F77;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: #f8f9fa; /* Light background for general sections */
}

.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0); /* Start transparent */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    color: #495057 !important; /* Default link color */
}

.navbar.scrolled .nav-link {
    color: #495057 !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 169, 181, 0.4);
    color: white;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 169, 181, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 169, 181, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 169, 181, 0);
    }
}


.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #fff; /* Ensure hero background is white for particle contrast */
    padding-top: 5rem; /* Space for fixed navbar */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background-color: #fff; /* Match body background */
    background-image: url('');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

.hero-background-blob-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    z-index: 0;
    animation: blob-move-2 50s ease-in-out infinite alternate-reverse;
}

@keyframes blob-move-2 {
    from {
        transform: translate(-40%, -60%) rotate(0deg) scale(1.1);
    }
    to {
        transform: translate(-60%, -40%) rotate(-360deg) scale(1);
    }
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(0, 169, 181, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #00A9B5 0%, #006F77 50%, #00c3d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 2.5rem;
}

.hero-img {
    max-width: 60%; /* Adjust as needed */
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.feature-card, .doctor-card, .article-card {
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure content is above glow effect */
}

.feature-card, .doctor-card, .article-card {
    padding: 2rem;
}

.doctor-card, .article-card {
    padding: 0;
}


.feature-card:hover, .doctor-card:hover, .article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 15px rgba(0, 169, 181, 0.2);
}

.feature-card::before, .doctor-card::before, .article-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 169, 181, 0.1) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: all 0.5s ease-out;
    opacity: 0;
    z-index: 0;
}

.feature-card:hover::before, .doctor-card:hover::before, .article-card:hover::before {
    transform: rotate(180deg);
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: rotate(10deg) scale(1.1);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

.app-promo {
    background: var(--primary-gradient);
    color: white;
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.qr-placeholder {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card { text-align: center; padding: 2rem; }

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon { transform: scale(1.1); }

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.dept-tab {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dept-tab:hover { border-color: var(--primary-color); }

.dept-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

.dept-content {
    background: linear-gradient(135deg, #00a9b515 0%, #006f7715 100%);
    border-radius: 20px;
    padding: 3rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Doctor Card Styles */
.doctor-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    position: relative;
    z-index: 1; /* Ensure image is above glow */
}
.doctor-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1; /* Ensure info is above glow */
    text-align: center;
}
.doctor-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.doctor-specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}
.doctor-social a {
    color: #adb5bd;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.doctor-social a:hover {
    color: var(--primary-color);
}

.testimonial-card {
    background: linear-gradient(135deg, #00a9b515 0%, #006f7715 100%);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-size: cover;
    background-position: center;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.carousel-indicators .active {
    width: 30px;
    border-radius: 5px;
}

/* Article Card Styles */
.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
    z-index: 1; /* Ensure image is above glow */
}
.article-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1; /* Ensure body content is above glow */
}
.article-category {
    background: rgba(0, 169, 181, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
}
.article-title {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    flex-grow: 1;
}
.article-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.article-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.article-link i {
    transition: transform 0.3s ease;
}
.article-link:hover i {
    transform: translateX(5px);
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover { background: #f8f9fa; }

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #6c757d;
    display: none;
}

.faq-item.active .faq-answer { display: block; }

.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-icon { transition: transform 0.3s ease; }

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
}

.form-control {
    border-radius: 10px;
    padding: 12px 20px;
    border: 1px solid #e9ecef;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 169, 181, 0.25);
}

footer {
    background: #001a1c;
    color: #adb5bd;
    padding-top: 5rem;
    padding-bottom: 2rem;
}
.footer-brand {
    font-weight: 700;
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 1rem;
}
.footer-links h5 {
    color: #fff;
    margin-bottom: 1rem;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 2;
}
.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.footer-social a {
    color: #adb5bd;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}
.footer-social a:hover {
    color: var(--primary-color);
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.footer-contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
}


@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .app-promo { padding: 2rem; }
    footer { text-align: center; }
    .footer-contact-item { justify-content: center; }
}

/* WhatsApp Floating Button Styles */
.wa-float-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Main WhatsApp Button */
.wa-main-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.wa-main-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.wa-main-button:hover::before {
    width: 100%;
    height: 100%;
}

.wa-main-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.wa-main-button.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

.wa-main-button i {
    font-size: 28px;
    color: white;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.wa-main-button.active i {
    transform: rotate(-45deg);
}

/* Notification Badge */
.wa-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 3px solid white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Admin List Menu */
.wa-admin-list {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 300px;
    max-width: 350px;
}

.wa-admin-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 15px;
}

.wa-header-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.wa-header-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.wa-header-text p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Admin Item */
.wa-admin-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.wa-admin-item:hover {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-color: #25D366;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.wa-admin-item:hover * {
    color: white !important;
}

.wa-admin-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.wa-admin-item:hover .wa-admin-avatar {
    background: white;
    color: #25D366;
    transform: scale(1.1);
}

.wa-admin-info {
    flex: 1;
}

.wa-admin-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wa-admin-role {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-status-dot {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.wa-admin-arrow {
    color: #999;
    font-size: 18px;
    transition: all 0.3s ease;
}

.wa-admin-item:hover .wa-admin-arrow {
    transform: translateX(5px);
    color: white;
}

/* Tooltip */
.wa-tooltip {
    position: absolute;
    bottom: 50%;
    right: 75px;
    transform: translateY(50%);
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #333;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.wa-float-wrapper:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
}

.wa-admin-list.active ~ .wa-tooltip {
    opacity: 0;
    visibility: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wa-float-wrapper {
        bottom: 20px;
        right: 20px;
    }

    .wa-main-button {
        width: 55px;
        height: 55px;
    }

    .wa-main-button i {
        font-size: 26px;
    }

    .wa-admin-list {
        min-width: 280px;
        right: -10px;
    }

    .wa-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .wa-float-wrapper {
        bottom: 15px;
        right: 15px;
    }

    .wa-admin-list {
        min-width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
        right: -10px;
    }
}

/* Animation entrance for admin items */
.wa-admin-item {
    animation: slideIn 0.4s ease backwards;
}

.wa-admin-item:nth-child(2) { animation-delay: 0.1s; }
.wa-admin-item:nth-child(3) { animation-delay: 0.2s; }
.wa-admin-item:nth-child(4) { animation-delay: 0.3s; }
.wa-admin-item:nth-child(5) { animation-delay: 0.4s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Verified Badge */
.verified-badge {
    color: #1DA1F2;
    font-size: 12px;
}
