/* ===== 1. CSS RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #c2a681;
    --primary-dark: #a08963;
    --secondary-color: #a0a0a0;
    --accent-color: #c0c0c0;
    --text-primary: #1e293b;
    --text-secondary: #8a8a8a;
    --text-light: #b8b8b8;
    --background: #ffffff;
    --background-alt: #f9f8f6;
    --border-color: #e5e5e5;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;
    --spacing-5xl: 6rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s ease;
}

/* ===== 2. BASE STYLES ===== */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    padding-top: 60px; /* Account for fixed header */
}

body.menu-open {
    overflow: hidden;
}

/* ===== 3. LAYOUT COMPONENTS ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
    border-radius: 4px;
    transition: var(--transition);
}

.skip-link:focus {
    top: 6px;
}

/* ===== 4. HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav {
    padding: var(--spacing-md) 0;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== 5. BUTTONS & INTERACTIVE ELEMENTS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: var(--font-size-base);
    gap: var(--spacing-xs);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

/* ===== 6. PAGE SECTIONS ===== */

/* Banner/Hero Section */
.banner {
    width: 100%;
    height: 550px;
    position: relative;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    background-image: url('../images/bg.jpg');
    background-position: center 35%;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Welcome/About Section */
.welcome-section {
    padding: var(--spacing-5xl) 0 var(--spacing-2xl) 0;
    background-color: var(--background-alt);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.welcome-content h1,
.welcome-content h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.welcome-content p {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.appointment-actions {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.appointment-actions:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.appointment-actions h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.appointment-actions p {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.action-buttons .btn {
    justify-content: center;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header-services {
    text-align: center;
    margin-bottom: var(--spacing-1xl);
}

.section-header h2, .section-header-services h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.section-header p, .section-header-services p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: var(--spacing-2xl) 0;
    background: var(--background);
    position: relative;
    z-index: 3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--spacing-xl);
    padding: var(--spacing-lg) 0 var(--spacing-4xl);
}

.service-card {
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: var(--shadow-medium);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: opacity, transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    opacity: 1 !important;
    filter: brightness(1.2) !important;
    z-index: 10;
}

.service-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: var(--font-size-sm);
}

.service-card.cloned {
    pointer-events: none;
}

.service-card.selected {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    z-index: 5;
}

.service-card.selected .service-icon {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* News Section */
.news {
    padding: var(--spacing-2xl) 0;
    background: var(--background-alt);
    position: relative;
    z-index: 1;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.news-card {
    background: var(--background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    gap: var(--spacing-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    transition: var(--transition);
}

.news-card:hover::before {
    left: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.date-month {
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
}

.date-day {
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: 1;
}

.date-year {
    font-size: var(--font-size-xs);
    opacity: 0.9;
}

.news-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.3;
}

.news-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.news-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.news-cta {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* News Loading State */
.news-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-2xl);
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-lg);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Doctor Section */
.doctor-section {
    padding: var(--spacing-2xl) 0;
    background: var(--background);
}

.doctor-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(194, 166, 129, 0.05), transparent);
    transition: var(--transition);
}

.doctor-card:hover::before {
    left: 100%;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.doctor-photo-container {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.doctor-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.doctor-card:hover .doctor-photo {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(194, 166, 129, 0.3);
}

.doctor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.doctor-description h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    text-align: center;
}

.doctor-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.doctor-description h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-color);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.doctor-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.doctor-credentials {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.doctor-credentials:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.doctor-credentials h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.credentials-list {
    list-style: none;
    padding: 0;
}

.credentials-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-weight: 500;
}

.credentials-list i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    padding: var(--spacing-2xl) 0;
    background: var(--background-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--spacing-2xl);
}

.testimonial-card {
    background: var(--background);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.testimonial-content {
    margin-bottom: 0;
}

.testimonial-content p {
    font-size: var(--font-size-sm);
    line-height: 1.4;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    justify-content: space-between;
}

.testimonial-author .author-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-author .stars {
    color: #c2a681;
    font-size: var(--font-size-sm);
    letter-spacing: 1px;
    margin-left: auto;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-sm);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: calc(var(--spacing-xs) / 2);
}

.author-info span {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
}

/* CTA Section */
.cta {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-text {
    text-align: center;
}

.cta-text .btn {
    margin: 0 var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.cta-text h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.cta-text p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
}

.cta-text .btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-text .btn-primary:hover {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: start;
}

.directions-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.75rem;
}

.directions-section h4 {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 600;
    text-align: center;
}

.directions-section .btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.directions-section .btn-primary:hover {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-info,
.hours-info {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info h3,
.hours-info h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.contact-info h3 i,
.hours-info h3 i {
    color: var(--accent-color);
}

.address p {
    margin-bottom: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-md);
}

/* Location Grid Layout - Enhanced Specificity */
.contact-info .location-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: var(--spacing-lg) !important;
    align-items: start !important;
    width: 100% !important;
}

.contact-info .directions-section,
.contact-info .directions-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    align-self: start !important;
    gap: var(--spacing-sm) !important;
    justify-self: start !important;
}

.contact-info .directions-button h4 {
    font-size: var(--font-size-md) !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.contact-info .directions-button .btn {
    background: white !important;
    color: var(--primary-color) !important;
    border: 2px solid white !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.contact-info .directions-button .btn:hover {
    background: var(--accent-color) !important;
    color: white !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-2px) !important;
}

.hours {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row .day {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.hours-row .time {
    color: white;
    font-weight: 600;
}

.cta-visual {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: floatAround 8s ease-in-out infinite;
}

.element i {
    font-size: var(--font-size-xl);
    color: white;
}

.element-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    top: 30%;
    right: 20%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 30%;
    left: 30%;
    animation-delay: 4s;
}

.element-4 {
    bottom: 20%;
    right: 30%;
    animation-delay: 6s;
}

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
    75% { transform: translate(-20px, 20px) rotate(270deg); }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-brand-social {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: var(--spacing-md);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-lg);
}

.footer-brand .logo {
    color: white;
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    display: block;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: var(--font-size-sm);
}

.footer-column h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-column ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
}

.footer-column ul li {
    margin-bottom: 1px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: var(--font-size-sm);
    position: relative;
    display: inline-block;
}

.footer-column ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

/* Alternating pattern for visual order across 2 columns */
.footer-column ul li:nth-child(1) a,
.footer-column ul li:nth-child(4) a,
.footer-column ul li:nth-child(5) a,
.footer-column ul li:nth-child(8) a,
.footer-column ul li:nth-child(9) a {
    color: rgba(255, 255, 255, 0.9);
}

.footer-column ul li:nth-child(2) a,
.footer-column ul li:nth-child(3) a,
.footer-column ul li:nth-child(6) a,
.footer-column ul li:nth-child(7) a,
.footer-column ul li:nth-child(10) a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column ul li a:hover {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transform: translateX(4px);
}

.footer-column ul li a:hover::after {
    width: 100%;
}

.footer-social {
    text-align: center;
}

.footer-social h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-sm);
    position: relative;
    z-index: 1;
}

/* ===== 7. RESPONSIVE DESIGN - TABLET ===== */
@media (max-width: 1024px) {
    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }
    
    .cta-info {
        flex-direction: row;
        gap: var(--spacing-lg);
    }
    
    .contact-info,
    .hours-info {
        flex: 1;
    }
    
    .doctor-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .doctor-photo {
        width: 150px;
        height: 150px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .code-window {
        transform: none;
        max-width: 500px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

/* ===== 8. RESPONSIVE DESIGN - MOBILE ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--shadow-medium);
        flex-direction: column;
        padding: var(--spacing-lg) 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        text-align: center;
        margin: var(--spacing-sm) 0;
    }
    
    .nav-menu a {
        display: block;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-lg);
    }
    
    .banner {
        height: 275px;
    }
    
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .welcome-content h1,
    .welcome-content h2 {
        font-size: var(--font-size-3xl);
        text-align: center;
    }
    
    .welcome-content p {
        text-align: center;
    }
    
    .appointment-actions {
        padding: var(--spacing-xl);
    }
    
    .action-buttons {
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: var(--spacing-md);
        padding: var(--spacing-md) 0 var(--spacing-4xl);
    }
    
    .service-card {
        padding: var(--spacing-md); /* Reduced padding for smaller card size */
    }
    
    .carousel-indicators {
        margin-top: var(--spacing-lg);
    }
    
    .section-header h2 {
        font-size: var(--font-size-3xl);
    }
    
    .reasons-text h2,
    .cta-text h2 {
        font-size: var(--font-size-3xl);
    }
    
    .cta-text a {
        font-size: 0.8625rem;
    }
    
    .news-card {
        flex-direction: column;
        text-align: center;
    }
    
    .news-date {
        align-self: center;
        margin-bottom: var(--spacing-md);
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .cta-info {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .contact-info,
    .hours-info {
        padding: var(--spacing-md);
    }

/* Mobile Location Grid - Updated for new structure */
    .location-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md) !important;
        text-align: center !important;
    }

    .directions-section {
        align-items: center !important;
        justify-self: center !important;
    }

    .directions-section h4 {
        text-align: center !important;
    }

    .directions-section .btn {
        width: 100% !important;
        max-width: 200px !important;
    }    .hours-row {
        font-size: var(--font-size-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand-social {
        grid-template-rows: auto auto;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-column ul {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .floating-card,
    .element {
        position: static;
        display: inline-flex;
        margin: var(--spacing-md);
        animation: none;
    }
    
    .features-visual,
    .cta-visual {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        padding: var(--spacing-xl);
    }
}

/* ===== 9. RESPONSIVE DESIGN - SMALL MOBILE ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .section-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: var(--spacing-sm);
    }
    
    .feature-card,
    .testimonial-card {
        padding: var(--spacing-xs) var(--spacing-md);
        max-height: none;
    }
    
    .chart-container {
        gap: var(--spacing-xs);
    }
    
    .chart-bar {
        width: 30px;
    }

    .doctor-portrait {
        margin-bottom: 0px;
        margin-left: 60px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== 10. ACCESSIBILITY & PRINT STYLES ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.btn:focus,
.nav-menu a:focus,
.logo:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .nav-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}