:root {
    --primary: #3F2A1D;
    --secondary: #E6D5B8;
    --accent: #D4A017;
    --background: #F9F5F0;
    --text: #2A1E17;
}
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.8;
    background: var(--background);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}
.company-name {
    color: #ff0000;
}
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
header {
    background: var(--primary);
    color: #fff;
    padding: 10px 0;
}
.navbar {
    background: var(--secondary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
}
.navbar-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}
.nav-link {
    font-weight: 400;
    color: var(--text);
    position: relative;
    transition: color 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}
.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-link:nth-child(3) { animation-delay: 0.3s; }
.nav-link:nth-child(4) { animation-delay: 0.4s; }
.nav-link:nth-child(5) { animation-delay: 0.5s; }
.nav-link:nth-child(6) { animation-delay: 0.6s; }
.nav-link:nth-child(7) { animation-delay: 0.7s; }
.nav-link:nth-child(8) { animation-delay: 0.8s; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent);
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}
.navbar-toggler {
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}
.navbar-toggler:hover {
    background: var(--accent);
}
.navbar-toggler:focus {
    outline: none;
}
.navbar-toggler .toggler-icon {
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s ease;
}
.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
#hero {
    position: relative;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    height: 80vh;
}
#hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(63, 42, 29, 0.5);
    z-index: -1;
}
#hero h1, #hero p {
    opacity: 0;
    animation: fadeInDown 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    position: relative;
    z-index: 1;
}
#hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    animation-delay: 0.3s;
}
#hero p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 20px;
    animation-delay: 0.6s;
}
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}
section {
    padding: 60px 0;
    background: var(--secondary);
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px;
}
.section-title p {
    color: #666;
    font-weight: 300;
    font-size: 0.9rem;
}
#about img {
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-top: 20px;
}
#our-doctor {
    background: linear-gradient(135deg, var(--secondary) 50%, var(--primary) 50%);
    padding: 80px 0;
}
.doctor-profile {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.4s ease;
    max-width: 900px;
    margin: 0 auto;
}
.doctor-profile:hover {
    transform: scale(1.02);
}
.doctor-profile .row {
    display: flex;
    align-items: center;
}
.doctor-image {
    position: relative;
    padding: 0;
}
.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
    transition: transform 0.4s ease;
}
.doctor-profile:hover .doctor-image img {
    transform: scale(1.05);
}
.doctor-details {
    padding: 40px;
    position: relative;
}
.doctor-details h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.doctor-details .qualifications {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}
.doctor-details .description {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}
.surgery-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.doctor-profile:hover .surgery-badge {
    transform: rotate(10deg) scale(1.1);
}
.surgery-badge span {
    font-size: 0.9rem;
    text-transform: uppercase;
}
.surgery-badge .count {
    font-size: 1.8rem;
}
#services {
    position: relative;
    background: url('https://www.transparenttextures.com/patterns/asfalt-light.png'), var(--secondary);
    background-size: auto;
}
.service-card {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(230, 213, 184, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    margin-bottom: 20px;
}
.service-card:hover {
    background: rgba(230, 213, 184, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-10px);
}
.service-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}
.service-card:hover i {
    transform: scale(1.2);
    color: var(--accent);
}
.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}
.btn-primary {
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    transition: background 0.3s ease;
}
.btn-primary:hover {
    background: var(--accent);
    color: var(--primary);
}
.testimonial-card {
    background: rgba(230, 213, 184, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease;
    margin-bottom: 20px;
}
.testimonial-card:hover {
    background: rgba(230, 213, 184, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-10px);
}
.testimonial-card p {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}
.testimonial-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 10px;
}
.accordion-item {
    background: rgba(230, 213, 184, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 15px;
}
.accordion-button {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}
.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: #fff;
}
.accordion-button:focus {
    box-shadow: none;
}
.accordion-body {
    font-size: 0.9rem;
}
.tip-card {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(230, 213, 184, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    margin-bottom: 20px;
}
.tip-card:hover {
    background: rgba(230, 213, 184, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-10px);
}
.tip-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}
.tip-card:hover i {
    transform: scale(1.2);
    color: var(--accent);
}
.tip-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}
.tip-card p {
    font-size: 0.9rem;
}
.equipment-card {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(230, 213, 184, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    margin-bottom: 20px;
}
.equipment-card:hover {
    background: rgba(230, 213, 184, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: scale(1.05);
}
.equipment-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}
.equipment-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}
.equipment-card p {
    font-size: 0.9rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 100%;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(230, 213, 184, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    margin-bottom: 20px;
}
.gallery-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: scale(1.05);
}
.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(63, 42, 29, 0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}
footer {
    background: var(--primary);
    color: #fff;
    padding: 40px 0 20px;
}
footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--accent);
}
footer h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}
footer p, footer ul li {
    font-size: 0.9rem;
}
.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 10px;
}
.whatsapp-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2), inset 0 -2px 5px rgba(0,0,0,0.1), inset 0 2px 5px rgba(255,255,255,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}
.whatsapp-toggle:hover {
    transform: scale(1.1);
}
.whatsapp-toggle i {
    font-size: 1.8rem;
}
@media (max-width: 576px) {
    header .row { flex-direction: column; text-align: center; }
    header .col-md-6 { margin-bottom: 10px; }
    header p { font-size: 0.8rem; }
    .navbar-logo { height: 30px; }
    .navbar-nav { text-align: center; }
    .nav-link { font-size: 0.9rem; padding: 10px 0; animation: slideInFromLeft 0.5s ease forwards; }
    @keyframes slideInFromLeft { 0% { opacity: 0; transform: translateX(-20px); } 100% { opacity: 1; transform: translateX(0); } }
    #hero { height: 60vh; padding: 80px 0; }
    #hero h1 { font-size: 1.8rem; }
    #hero p { font-size: 0.9rem; }
    section { padding: 40px 0; margin: 15px 0; }
    .section-title h2 { font-size: 1.8rem; }
    .section-title p { font-size: 0.8rem; }
    #about p { font-size: 0.9rem; }
    #about img { margin-top: 15px; }
    #our-doctor { padding: 40px 0; }
    .doctor-profile { flex-direction: column; }
    .doctor-image img { border-radius: 20px 20px 0 0; height: 250px; }
    .doctor-details { padding: 20px; }
    .doctor-details h3 { font-size: 1.5rem; }
    .doctor-details .qualifications { font-size: 0.9rem; }
    .doctor-details .description { font-size: 0.8rem; }
    .surgery-badge { width: 100px; height: 100px; top: 10px; right: 10px; }
    .surgery-badge span { font-size: 0.7rem; }
    .surgery-badge .count { font-size: 1.5rem; }
    .service-card { padding: 15px; animation: slideInFromRight 0.6s ease forwards; }
    .service-card i { font-size: 1.8rem; }
    .service-card h3 { font-size: 1.1rem; }
    .service-card p { font-size: 0.8rem; }
    .testimonial-card { padding: 15px; animation: fadeInUpMobile 0.6s ease forwards; }
    .testimonial-card p { font-size: 0.8rem; }
    .testimonial-card h5 { font-size: 1rem; }
    .accordion-button { font-size: 0.8rem; }
    .accordion-body { font-size: 0.8rem; }
    .tip-card { padding: 15px; animation: slideInFromLeft 0.6s ease forwards; }
    .tip-card i { font-size: 1.8rem; }
    .tip-card h4 { font-size: 1rem; }
    .tip-card p { font-size: 0.8rem; }
    .equipment-card { padding: 15px; animation: fadeInUpMobile 0.6s ease forwards; }
    .equipment-card img { height: 120px; }
    .equipment-card h4 { font-size: 1rem; }
    .equipment-card p { font-size: 0.8rem; }
    .gallery-item img { height: auto; }
    .gallery-caption { font-size: 0.8rem; padding: 8px; }
    #contact .col-md-6 { margin-bottom: 20px; }
    #contact h4 { font-size: 1.2rem; }
    #contact p { font-size: 0.9rem; }
    #contact iframe { height: 250px; }
    footer { padding: 30px 0 15px; }
    footer .col-md-4 { margin-bottom: 20px; text-align: center; }
    footer h4 { font-size: 1.1rem; }
    footer p, footer ul li { font-size: 0.8rem; }
    .footer-logo { height: 40px; }
    .whatsapp-toggle { width: 50px; height: 50px; bottom: 15px; right: 15px; }
    .whatsapp-toggle i { font-size: 1.5rem; }
    @keyframes fadeInUpMobile { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
    @keyframes slideInFromRight { 0% { opacity: 0; transform: translateX(20px); } 100% { opacity: 1; transform: translateX(0); } }
