:root {
    --primary: #00537a;
    --secondary: #ab9c77;
    --primary-light: #007ba3;
    --secondary-light: #c4b596;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --success: #10b981;
    --shadow-sm: 0 2px 8px rgba(0, 83, 122, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 83, 122, 0.12);
    --shadow-lg: 0 20px 40px rgba(0, 83, 122, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding: 1.25rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 4px 16px rgba(0, 83, 122, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 83, 122, 0.35);
}

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

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

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.05rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(171, 156, 119, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    display: block;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.75rem;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(171, 156, 119, 0.2);
    transform: rotate(0deg);
    transition: all 0.4s ease;
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.doctor-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.doctor-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(0, 83, 122, 0.3);
}

.doctor-details h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.doctor-details p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.credential-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--bg-light), #ffffff);
    border-radius: 12px;
    border: 1px solid rgba(171, 156, 119, 0.15);
    transition: all 0.3s ease;
}

.credential-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--secondary);
}

.credential-item i {
    display: block;
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.credential-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.75rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Welcome Section */
.welcome {
    background: var(--bg-white);
}

.welcome-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
    align-items: start;
}

.welcome-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.welcome-text .btn {
    margin-top: 1rem;
}

.welcome-features {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Services Section */
.services {
    background: var(--bg-light);
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(171, 156, 119, 0.15);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--primary) 0%, #006d94 100%);
    color: white;
    border: none;
}

.service-card.featured::before {
    background: var(--secondary);
    transform: scaleX(1);
}

.service-card.featured .service-icon {
    background: rgba(171, 156, 119, 0.3);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured li {
    color: white;
}

.service-card.featured .service-features i {
    color: var(--secondary-light);
}

.service-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 83, 122, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.service-features i {
    color: var(--success);
    font-size: 1rem;
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--secondary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Equipment Section */
.equipment {
    background: white;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.equipment-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(171, 156, 119, 0.1);
}

.equipment-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.equipment-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.equipment-item h4 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.equipment-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: center;
}

.doctor-profile {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(171, 156, 119, 0.15);
}

.profile-image {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    margin: 0 auto 2rem;
    box-shadow: 0 12px 28px rgba(0, 83, 122, 0.3);
}

.profile-credentials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.credential {
    padding: 1.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid rgba(171, 156, 119, 0.1);
    transition: all 0.3s ease;
}

.credential:hover {
    background: linear-gradient(135deg, var(--bg-light), white);
    transform: translateY(-3px);
    border-color: var(--secondary);
}

.credential i {
    display: block;
    color: var(--secondary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.credential span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.about-subtitle {
    color: var(--secondary);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.education-timeline {
    margin: 3rem 0;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.75rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.timeline-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.timeline-content h4 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.credentials-info {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
}

.credential-item {
    color: var(--text-light);
    font-size: 1rem;
}

.credential-item strong {
    color: var(--primary);
    font-weight: 700;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(171, 156, 119, 0.1);
}

.contact-card:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.contact-card h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-link {
    display: block;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--primary);
    transform: scale(1.05);
}

.location-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(171, 156, 119, 0.15);
}

.location-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-card h3 i {
    color: var(--secondary);
}

.address {
    margin-bottom: 2rem;
}

.address p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.address p:first-child {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.map-container {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--secondary);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, #003d59 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-logo i {
    font-size: 2rem;
}

.footer h4 {
    color: var(--secondary);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer i {
    color: var(--secondary);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(171, 156, 119, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    justify-content: center;
}

.footer-bottom i {
    color: #ef4444;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6), 0 0 0 16px rgba(37, 211, 102, 0.1);
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content,
    .welcome-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid,
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-menu {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .highlight {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .services-grid,
    .equipment-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .highlight {
        font-size: 1.75rem;
    }

    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .credentials,
    .profile-credentials {
        grid-template-columns: 1fr;
    }
}