/* Modern CSS for New York Ophthalmology */

/* Modern Design System */
:root {
    /* Primary Colors - NYOPH Brand */
    --primary-color: #613c60;
    --primary-dark: #4a2d49;
    --primary-light: #7a4f78;
    --primary-gradient: linear-gradient(135deg, #613c60 0%, #93a8c5 100%);
    
    /* Secondary Colors - NYOPH Brand */
    --secondary-color: #93a8c5;
    --accent-color: #f59e0b;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Border & Shadow */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Modern Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Modern Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Modern Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

h5 { 
    font-size: 1.125rem;
    font-weight: 600;
}

h6 { 
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

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

/* Modern Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: hidden;
}

/* Force mobile menu toggle visibility on all pages */
body .mobile-menu-toggle {
    display: none;
}

/* Ensure mobile menu toggle is visible on about page and all other pages */
@media (max-width: 1024px) {
    body .mobile-menu-toggle,
    .mobile-menu-toggle,
    nav .mobile-menu-toggle,
    .header .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
    background-color: #374151 !important;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.logo {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 35px;
    width: auto;
    max-width: 150px;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0;
    position: relative;
}

.nav-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.4rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Menus */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #f9fafb;
    color: var(--primary-color);
}

.dropdown-content a::after {
    display: none;
}

/* Modern Submenu Styles */
.submenu-header {
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    background: var(--bg-secondary) !important;
    border-bottom: 2px solid var(--primary-color) !important;
    cursor: default !important;
    padding: var(--space-sm) var(--space-md) !important;
    margin: var(--space-sm) 0 var(--space-xs) 0 !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.submenu-header:hover {
    background: var(--bg-secondary) !important;
    color: var(--primary-color) !important;
    transform: none !important;
}

.submenu-item {
    padding-left: var(--space-lg) !important;
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
    position: relative !important;
}

.submenu-item::before {
    content: '📍' !important;
    position: absolute !important;
    left: 0 !important;
    top: var(--space-sm) !important;
    font-size: 0.8rem !important;
}

.submenu-item:hover {
    color: var(--primary-color) !important;
    background: var(--bg-secondary) !important;
    transform: translateX(4px) !important;
}

/* Patient Portal Button */
.patient-portal {
    background: #10b981 !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border: none !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.patient-portal:hover {
    background: #059669 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.patient-portal::after {
    display: none !important;
}


/* Main Content */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Modern Hero Sections */
.hero-section {
    background: linear-gradient(135deg, #613c60 0%, #93a8c5 100%);
    color: white;
    padding: var(--space-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-section::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    padding: var(--space-xl) 0;
}

.hero-badge {
    background: rgba(255,255,255,0.1);
    padding: 1rem 2rem;
    border-radius: 2rem;
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.hero-title {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto var(--space-lg) auto;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-primary {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

/* Services Section */
.services-section {
    background: var(--bg-secondary);
    padding: var(--space-xl) 0;
}

.services-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.services-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.services-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

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

/* Modern Content Cards */
.service-content,
.location-content,
.doctor-profile,
.blog-content,
.ce-content,
.travel-content,
.resources-content,
.refer-content {
    padding: var(--space-lg) 0;
    line-height: 1.5;
}

.service-content h2 {
    color: var(--text-primary);
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.service-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: var(--space-md) 0 var(--space-xs) 0;
    letter-spacing: -0.01em;
}

.service-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
    line-height: 1.5;
}

.service-benefits,
.diagnostic-tests,
.treatment-options,
.candidate-info,
.recovery-info,
.telehealth-benefits,
.telehealth-services,
.requirements,
.conditions-detected,
.exam-frequency,
.lens-options,
.risk-factors,
.emergency-care,
.cost-factors,
.value-proposition,
.payment-methods,
.insurance-info,
.prescription-limits,
.evaluation-process,
.alternative-options,
.financing-options,
.candidate-criteria {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin: var(--space-sm) 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.service-benefits:hover,
.diagnostic-tests:hover,
.treatment-options:hover,
.candidate-info:hover,
.recovery-info:hover,
.telehealth-benefits:hover,
.telehealth-services:hover,
.requirements:hover,
.conditions-detected:hover,
.exam-frequency:hover,
.lens-options:hover,
.risk-factors:hover,
.emergency-care:hover,
.cost-factors:hover,
.value-proposition:hover,
.payment-methods:hover,
.insurance-info:hover,
.prescription-limits:hover,
.evaluation-process:hover,
.alternative-options:hover,
.financing-options:hover,
.candidate-criteria:hover,
.technology-highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.technology-highlight {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 4px solid var(--primary-color);
}

.service-content ul,
.service-content ol {
    margin: var(--space-xs) 0;
    padding-left: var(--space-sm);
}

.service-content ul {
    list-style: none;
    padding-left: 0;
}

.service-content ol {
    list-style: none;
    counter-reset: step-counter;
}

.service-content ol li {
    counter-increment: step-counter;
    position: relative;
    padding-left: var(--space-md);
}

.service-content ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-gradient);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.service-content li {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    padding-left: var(--space-sm);
}

.service-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.25rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.service-content li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.cta-section h3 {
    color: var(--text-primary);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-benefits h3,
.diagnostic-tests h3,
.treatment-options h3,
.candidate-info h3,
.recovery-info h3,
.telehealth-benefits h3,
.telehealth-services h3,
.requirements h3,
.conditions-detected h3,
.exam-frequency h3,
.lens-options h3,
.risk-factors h3,
.emergency-care h3,
.cost-factors h3,
.value-proposition h3,
.payment-methods h3,
.insurance-info h3,
.prescription-limits h3,
.evaluation-process h3,
.alternative-options h3,
.financing-options h3,
.candidate-criteria h3,
.technology-highlight h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
    font-size: 1.125rem;
    font-weight: 700;
}

.service-benefits ul,
.diagnostic-tests ul,
.treatment-options ul,
.candidate-info ul,
.recovery-info ul,
.telehealth-benefits ul,
.telehealth-services ul,
.requirements ul,
.conditions-detected ul,
.exam-frequency ul,
.lens-options ul,
.risk-factors ul,
.emergency-care ul,
.cost-factors ul,
.value-proposition ul,
.payment-methods ul,
.insurance-info ul,
.prescription-limits ul,
.evaluation-process ul,
.alternative-options ul,
.financing-options ul,
.candidate-criteria ul,
.technology-highlight ul {
    list-style: none;
    padding: 0;
}

.service-benefits li,
.diagnostic-tests li,
.treatment-options li,
.candidate-info li,
.recovery-info li,
.telehealth-benefits li,
.telehealth-services li,
.requirements li,
.conditions-detected li,
.exam-frequency li,
.lens-options li,
.risk-factors li,
.emergency-care li,
.cost-factors li,
.value-proposition li,
.payment-methods li,
.insurance-info li,
.prescription-limits li,
.evaluation-process li,
.alternative-options li,
.financing-options li,
.candidate-criteria li,
.technology-highlight li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: var(--space-sm);
}

.service-benefits li:last-child,
.diagnostic-tests li:last-child,
.treatment-options li:last-child,
.candidate-info li:last-child,
.recovery-info li:last-child,
.telehealth-benefits li:last-child,
.telehealth-services li:last-child,
.requirements li:last-child,
.conditions-detected li:last-child,
.exam-frequency li:last-child,
.lens-options li:last-child,
.risk-factors li:last-child,
.emergency-care li:last-child,
.cost-factors li:last-child,
.value-proposition li:last-child,
.payment-methods li:last-child,
.insurance-info li:last-child,
.prescription-limits li:last-child,
.evaluation-process li:last-child,
.alternative-options li:last-child,
.financing-options li:last-child,
.candidate-criteria li:last-child,
.technology-highlight li:last-child {
    border-bottom: none;
}

.service-benefits li::before,
.diagnostic-tests li::before,
.treatment-options li::before,
.candidate-info li::before,
.recovery-info li::before,
.telehealth-benefits li::before,
.telehealth-services li::before,
.requirements li::before,
.conditions-detected li::before,
.exam-frequency li::before,
.lens-options li::before,
.risk-factors li::before,
.emergency-care li::before,
.cost-factors li::before,
.value-proposition li::before,
.payment-methods li::before,
.insurance-info li::before,
.prescription-limits li::before,
.evaluation-process li::before,
.alternative-options li::before,
.financing-options li::before,
.candidate-criteria li::before,
.technology-highlight li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.25rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Modern CTA Sections */
.cta-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    text-align: center;
    border: 1px solid var(--border-light);
}

.cta-section h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

/* Modern Buttons */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, #613c60 0%, #93a8c5 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
    background: linear-gradient(135deg, #4a2d49 0%, #7a8fb3 100%);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
}

.btn-secondary {
    background: var(--accent-gradient);
}

/* Modern Doctor Profile Styles */
.doctor-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    align-items: start;
}

.doctor-photo {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.doctor-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

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

.doctor-details {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.doctor-details h2 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.doctor-details h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.doctor-bio {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    border: 1px solid var(--border-light);
}

/* Modern Location Styles */
.location-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.contact-details,
.hours,
.services,
.parking {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.contact-details:hover,
.hours:hover,
.services:hover,
.parking:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.contact-details h3,
.hours h3,
.services h3,
.parking h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

/* Modern Blog and Content Styles */
.blog-preview,
.ce-events,
.travel-info,
.resource-grid,
.refer-benefits,
.refer-methods,
.refer-options,
.co-management {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-lg) 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.event-card,
.benefit-card,
.refer-option,
.info-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-md) 0;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.event-card:hover,
.benefit-card:hover,
.refer-option:hover,
.info-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.resource-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.py-1 { padding: 0.5rem 0; }
.py-2 { padding: 1rem 0; }
.py-3 { padding: 1.5rem 0; }
.py-4 { padding: 2rem 0; }

/* Modern Responsive Design */
@media (max-width: 1024px) {
    .mobile-menu-toggle,
    body .mobile-menu-toggle,
    .about .mobile-menu-toggle,
    .services .mobile-menu-toggle,
    .contact .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: var(--space-sm) 0;
    }
    
    .mobile-menu-toggle,
    body .mobile-menu-toggle,
    .about .mobile-menu-toggle,
    .services .mobile-menu-toggle,
    .contact .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1002 !important;
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 4px !important;
    }
    
    .mobile-menu-toggle span {
        background-color: #374151 !important;
        width: 25px !important;
        height: 3px !important;
        display: block !important;
        opacity: 1 !important;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: var(--space-sm);
        right: var(--space-sm);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-lg);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-xl);
        border: 1px solid var(--border-light);
        margin-top: var(--space-sm);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: var(--space-md) var(--space-lg);
        color: var(--text-primary);
        font-size: 1rem;
        border-radius: var(--radius-md);
        margin: var(--space-xs) 0;
        transition: all var(--transition-normal);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--bg-secondary);
        color: var(--primary-color);
        transform: translateX(4px);
    }

    .nav-links a::after {
        display: none;
    }

    .patient-portal {
        margin: var(--space-md) 0 0 0;
        border-radius: var(--radius-md);
        text-align: center;
        padding: var(--space-md) var(--space-lg) !important;
        background: var(--accent-gradient) !important;
        color: white !important;
        font-weight: 600 !important;
        width: 100%;
    }

    .patient-portal:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .container {
        padding: 0 var(--space-md);
    }
    
    .logo-img {
        height: 30px;
    }

    /* Modern Mobile Layouts */
    .doctor-profile {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .location-info {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .resource-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .hero-section {
        padding: var(--space-xl) 0;
    }

    .hero-section h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-section p {
        font-size: 1.125rem;
    }

    /* Mobile Animations */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 768px) {
    /* Tablet styles */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        flex: 1;
        min-width: 200px;
    }
    
    .services-title {
        font-size: 2.25rem;
    }
    
    .services-description {
        font-size: 1.1rem;
    }
    
    .service-content div[style*="display: flex"] {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-content div[style*="display: flex"] img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto;
    }
    
    .service-content div[style*="display: grid"] {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .mobile-menu-toggle,
    body .mobile-menu-toggle,
    .about .mobile-menu-toggle,
    .services .mobile-menu-toggle,
    .contact .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hero-section {
        padding: var(--space-lg) 0;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-badge {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: 280px;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-description {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .service-content h2 {
        font-size: 1.5rem;
    }
    
    .service-content h3 {
        font-size: 1.25rem;
    }
    
    .service-content p {
        font-size: 0.9rem;
    }
    
    /* Fix image layouts for mobile */
    .service-content div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .service-content div[style*="display: flex"] img {
        width: 100% !important;
        max-width: 250px !important;
        height: auto !important;
        margin: 0 auto !important;
    }
    
    .service-content div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .service-content div[style*="display: grid"] img {
        width: 80px !important;
        height: auto !important;
    }
    
    /* Mobile menu already handled in 768px breakpoint */
    
    /* Fix button sizes */
    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9rem;
    }
    
    /* Fix CTA sections */
    .cta-section {
        padding: var(--space-sm);
        text-align: center;
    }
    
    .cta-section h3 {
        font-size: 1.25rem;
    }
    
    .cta-section p {
        font-size: 0.9rem;
    }
    
    /* Fix list spacing on mobile */
    .service-content ul,
    .service-content ol {
        padding-left: 1rem;
    }
    
    .service-content li {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Fix content boxes on mobile */
    .service-benefits,
    .candidate-info,
    .recovery-info,
    .lens-options,
    .diagnostic-tests {
        padding: var(--space-sm);
        margin: var(--space-sm) 0;
    }
    
    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 1rem;
    }

    .service-content,
    .location-content,
    .doctor-profile,
    .blog-content,
    .ce-content,
    .travel-content,
    .resources-content,
    .refer-content {
        padding: var(--space-lg) 0;
    }

    .service-benefits,
    .diagnostic-tests,
    .treatment-options,
    .candidate-info,
    .recovery-info,
    .telehealth-benefits,
    .telehealth-services,
    .requirements,
    .conditions-detected,
    .exam-frequency,
    .lens-options,
    .risk-factors,
    .emergency-care,
    .cost-factors,
    .value-proposition,
    .payment-methods,
    .insurance-info,
    .prescription-limits,
    .evaluation-process,
    .alternative-options,
    .financing-options,
    .candidate-criteria {
        padding: var(--space-md);
        margin: var(--space-md) 0;
    }
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Preload critical resources */
.hero {
    will-change: transform;
}

.card {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
