/* Profile link hover style same as other sidebar links */
.side-nav-profile-link:hover {
  background: linear-gradient(90deg, #009688 0%, #ffd600 100%);
  color: #009688 !important;
}
/* Page-wide entrance animation */
body {
  animation: fadeInBody 1.2s cubic-bezier(.77,0,.18,1);
}
@keyframes fadeInBody {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Navbar animation */
.navbar {
  animation: slideDownNav 1s cubic-bezier(.77,0,.18,1);
}
@keyframes slideDownNav {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: none; }
}

/* Sidebar animation */
.side-nav {
  animation: fadeInSidebar 1.1s cubic-bezier(.77,0,.18,1);
}
@keyframes fadeInSidebar {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: none; }
}

/* Section entrance animation */
section {
  animation: fadeInSection 1.2s cubic-bezier(.77,0,.18,1);
}
@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

/* Card hover animation (already present, but enhance) */
.card.text-center:hover {
  box-shadow: 0 24px 64px rgba(0,150,136,0.32), 0 8px 32px rgba(0,0,0,0.16);
  transform: scale(1.07) translateY(-10px) rotate(-1deg);
  transition: transform 0.35s, box-shadow 0.35s;
}

/* Button hover animation */
a, button {
  transition: box-shadow 0.25s, transform 0.25s, background 0.25s;
}
a:hover, button:hover {
  box-shadow: 0 4px 16px rgba(0,150,136,0.18);
  transform: scale(1.06);
}
body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background: #f4f4f4;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #009688;
    color: #fff;
    padding: 1rem 2rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1001;
}
.logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'Roboto', Arial, sans-serif;
}
.nav-toggle {
    z-index: 1002;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    display: block;
}
.nav-toggle .bar {
    display: block;
    width: 28px;
    height: 4px;
    margin: 5px 0;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}
.side-nav {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: linear-gradient(135deg, #009688 70%, #fff 100%);
    box-shadow: -2px 0 16px rgba(0,150,136,0.18);
    transition: right 0.4s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.3s;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    opacity: 0;
    pointer-events: none;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    overflow: hidden;
}
.side-nav.open {
    right: 0;
    opacity: 1;
    pointer-events: auto;
}
.side-nav-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 1rem 1rem;
    background: rgba(255,255,255,0.12);
}
.side-nav-header img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,150,136,0.18);
    margin-bottom: 0.7rem;
}
.side-nav-header h2 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}
.side-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
    padding-right: 2rem;
    margin-top: 2rem;
}
.side-nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    background: rgba(0,150,136,0.18);
    box-shadow: 0 1px 4px rgba(0,150,136,0.10);
    transition: background 0.2s, color 0.2s;
}
.side-nav-links a:hover {
    background: #fff;
    color: #009688;
}
.slider {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    min-height: 260px;
}
.slide {
    display: none;
    padding: 2rem;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.slide.active {
    display: flex;
}
.slide-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,150,136,0.15);
}
.slide-caption h3 {
    margin: 0.5rem 0 0.2rem 0;
    color: #009688;
    font-size: 1.3rem;
}
.slide-caption p {
    margin: 0;
    color: #555;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #009688;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,150,136,0.15);
    transition: background 0.2s;
}
.prev {
    left: 10px;
}
.next {
    right: 10px;
}
.categories {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,150,136,0.10);
    text-align: center;
}
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.category {
    background: #009688;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    flex: 1 1 150px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,150,136,0.08);
    transition: background 0.2s;
}
.category:hover {
    background: #00796b;
}
.cat-icon {
    font-size: 1.3em;
    margin-right: 0.5em;
    vertical-align: middle;
}
.cat-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 0.7em;
    vertical-align: middle;
}
.top-doctors {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,150,136,0.10);
    text-align: center;
}
.top-section-flex {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}
.doctor-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.doctor-card {
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,150,136,0.10);
    padding: 1.5rem 1rem;
    text-align: center;
    width: 200px;
    transition: box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.doctor-card:hover {
    box-shadow: 0 4px 16px rgba(0,150,136,0.18);
}
.doctor-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,150,136,0.15);
}
.appoint-btn {
    background: #009688;
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.7rem;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 1px 4px rgba(0,150,136,0.10);
}
.appoint-btn:hover {
    background: #00796b;
}
.about-features {
    background: linear-gradient(135deg, #fff 70%, #e0f2f1 100%);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,150,136,0.10);
    padding: 2rem 1.5rem;
    max-width: 320px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
}
.about-features h3 {
    color: #009688;
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}
.about-features p {
    color: #444;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}
.about-img {
    width: 150px;
    height: 150px;
  
    object-fit: cover;

  
}
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.features-list li {
    background: #e0f2f1;
    color: #009688;
    font-weight: 500;
    margin: 0.5rem 0;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 1px 4px rgba(0,150,136,0.08);
}
footer {
    background: #009688;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    border-radius: 0 0 16px 16px;
}
@media (max-width: 900px) {
    .categories, .top-doctors {
        max-width: 98vw;
        padding: 1rem;
    }
    .slider {
        max-width: 98vw;
    }
    .top-section-flex {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    .about-features {
        max-width: 100%;
        margin: 0 auto;
    }
}
@media (max-width: 600px) {
    .navbar {
        flex-direction: row;
        padding: 1rem;
    }
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        margin-left: auto;
    }
    .nav-toggle .bar {
        display: block;
        width: 28px;
        height: 4px;
        margin: 5px 0;
        background: #fff;
        border-radius: 2px;
        transition: 0.3s;
    }
    .side-nav {
        width: 80vw;
        max-width: 320px;
        border-top-left-radius: 16px;
        border-bottom-left-radius: 16px;
    }
    .side-nav-header {
        padding: 1.2rem 0.5rem 0.7rem 0.5rem;
    }
    .side-nav-links {
        gap: 1rem;
        padding-right: 1rem;
    }
    .category-list, .doctor-list {
        flex-direction: column;
        gap: 1rem;
    }
    .slider {
        max-width: 100%;
    }
    .doctor-card {
        width: 100%;
    }
}
