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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #4A90E2;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 28px;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #4A90E2;
}

.login-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.medical-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 60px;
    animation: float 6s ease-in-out infinite;
}

.medical-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.medical-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.medical-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.medical-icon:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

.pulse-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
}

.pulse-line::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 40px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0,10 L20,10 L25,0 L35,20 L45,0 L55,20 L60,10 L100,10' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    animation: pulse-move 3s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-move {
    0% { left: -40px; }
    100% { left: 100%; }
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

.doctor-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.doctor-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.doctor-image:hover img {
    transform: scale(1.05);
}

.image-glow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    z-index: -1;
}

.doctor-info {
    color: white;
    animation: slideInLeft 1s ease-out 0.3s both;
}

.doctor-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.doctor-degree {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.hospital-name {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.2rem;
    width: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border-radius: 2px;
}

.about-description {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #666;
    line-height: 1.8;
}

.timeline {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #4A90E2;
    z-index: 1;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 250px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.timeline-icon i {
    font-size: 30px;
    color: white;
}

.timeline-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
}

/* Schedule Section */
.schedule-section {
    padding: 100px 0;
    background: white;
}

.schedule-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.refresh-btn, .appointment-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.refresh-btn {
    background: #f8f9fa;
    color: #4A90E2;
    border: 2px solid #4A90E2;
}

.refresh-btn:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
}

.refresh-btn:hover i {
    animation: spin 1s linear infinite;
}

.appointment-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    animation: pulse-glow 2s infinite;
}

.appointment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(74, 144, 226, 0.6);
    }
}

.schedule-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 20px;
    font-weight: 600;
    text-align: left;
    font-size: 1.1rem;
}

.schedule-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.schedule-table tr {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
}

.schedule-table tr:nth-child(1) { animation-delay: 0.1s; }
.schedule-table tr:nth-child(2) { animation-delay: 0.2s; }
.schedule-table tr:nth-child(3) { animation-delay: 0.3s; }
.schedule-table tr:nth-child(4) { animation-delay: 0.4s; }
.schedule-table tr:nth-child(5) { animation-delay: 0.5s; }
.schedule-table tr:nth-child(6) { animation-delay: 0.6s; }
.schedule-table tr:nth-child(7) { animation-delay: 0.7s; }
.schedule-table tr:nth-child(8) { animation-delay: 0.8s; }

.schedule-table tbody tr:hover {
    background-color: #f8f9fa;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Appointments Section */
.appointments-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.appointment-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #4A90E2;
    background: white;
    color: #4A90E2;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #4A90E2;
    color: white;
}

.appointments-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.appointments-table table {
    width: 100%;
    border-collapse: collapse;
}

.appointments-table th {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 20px;
    font-weight: 600;
    text-align: left;
}

.appointments-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.complete-btn, .reschedule-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    margin-right: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.complete-btn {
    background: #28a745;
    color: white;
}

.reschedule-btn {
    background: #ffc107;
    color: #333;
}

.complete-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.reschedule-btn:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
}

.service-icon i {
    font-size: 35px;
    color: white;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.testimonials-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-item {
    display: none;
    padding: 50px;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.testimonial-item.active {
    display: block;
}

.testimonial-content p {
    font-size: 1.3rem;
    color: #333;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author strong {
    color: #4A90E2;
    font-size: 1.1rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.95rem;
    display: block;
    margin-top: 5px;
}

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

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-footer-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-footer-icons .medical-icon {
    color: rgba(255, 255, 255, 0.05);
    font-size: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #4A90E2;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4A90E2;
}

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

.social-icons a {
    width: 45px;
    height: 45px;
    background: #4A90E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.social-icons a:nth-child(1) { animation-delay: 0.1s; }
.social-icons a:nth-child(2) { animation-delay: 0.2s; }
.social-icons a:nth-child(3) { animation-delay: 0.3s; }

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    position: relative;
    z-index: 2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}

.close:hover {
    color: #333;
}

.modal-header {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.modal-header i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
}

.login-submit-btn,
.appointment-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-submit-btn:hover,
.appointment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .doctor-name {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .timeline {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .timeline::before {
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .schedule-table {
        overflow-x: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .doctor-name {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}