/* Color Variables */
:root {
    --primary: #005baa;
    --primary-dark: #004a8a;
    --secondary: #f8f9fa;
    --accent: #ff6b35;
    --text: #333;
    --text-light: #6c757d;
    --white: #fff;
    --light-gray: #e9ecef;
    --border: #dee2e6;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition-section: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --dark-blue: #002b54;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    min-height: 48px; /* Fixed height */
    display: inline-flex; /* For vertical centering */
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
    /*display: inline-block;*/
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    min-width: 180px;
    border: 2px solid transparent;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background-color: #e05a2b;
    border-color: #e05a2b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

/* Adjust top bar button */
.top-bar .btn {
    min-height: 36px; /* Slightly smaller for top bar */
    font-size: 0.875rem;
    padding: 0 16px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.top-bar .contact-info a {
    color: var(--white);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.top-bar .contact-info a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.contact-info i {
    margin-right: 5px;
}

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

.social-icons a {
    color: var(--white);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Add this to the Top Bar section */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end; /* Align items to the right */
    flex: 1; /* Take available space */
}

/* Modify existing .contact-info */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1; /* Take available space */
}

/* Keep existing top-bar-content rules */
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%; /* Ensure full width */
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.sticky {
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.logo-line1 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-line2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--text-light);
}

.header-cta .btn {
  padding: px 24px;
  min-width: 150px;
  font-size: 0.9rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-weight: 500;
    color: var(--text);
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 500px;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    padding: 20px;
    display: none;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown:nth-child(4) .dropdown-menu,
.dropdown:nth-child(5) .dropdown-menu {
    width: 200px;
    padding: 15px;
}

.dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-column {
    flex: 1;
    padding: 0 10px;
}

.dropdown-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.dropdown-column a {
    display: block;
    padding: 8px 0;
    color: var(--text);
    font-weight: 400;
    transition: var(--transition);
}

.dropdown-column a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* Neurolens Hero Section */
/* Add to existing CSS */
/* Enhanced Hero Section */
.neurolens-hero {
    background: linear-gradient(135deg, #1a2a6c, #2a4d8e, #4a7bb9);
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    margin-bottom: 2rem;
}

.neurolens-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease;
}

.neurolens-hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1rem;
    animation: fadeIn 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="white"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="white"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="white"/></svg>');
    background-size: 1200px 100px;
    animation: waveAnimation 20s linear infinite;
}

@keyframes waveAnimation {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

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

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

/* Enhanced Content Sections */
.section-routine {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    position: relative;
}

.cee_routine1 {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #ffffff, #f0f7ff);
}

.section-header.center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header.center h2 {
    display: inline-block;
}

.section-header.center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Benefits List */
.neurolens-benefits {
    list-style: none;
    margin: 1.5rem 0 2rem;
    padding: 0;
}

.neurolens-benefits li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.neurolens-benefits i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #0066cc;
    font-size: 1.3rem;
}

/* Tech Feature Blocks */
.tech-feature {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 102, 204, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tech-feature:hover {
    background: rgba(0, 102, 204, 0.08);
    transform: translateY(-3px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e6f2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.8rem;
    color: #0066cc;
}

/* Image Styling */
.section-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.section-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .neurolens-hero h1 {
        font-size: 2.2rem;
    }
    
    .neurolens-hero p {
        font-size: 1.2rem;
    }
    
    .tech-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
    .btn {
        min-height: 44px; /* Slightly smaller on mobile */
    }
    
    .top-bar .btn {
        min-height: 32px;
    }
    
    .cta-buttons .btn,
    .testimonials-cta .btn {
        width: 100%;
        max-width: 300px;
    }    
}

/* Section: How Neurolens Works */
.vision-health-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    background-image: 
        linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%230066cc" opacity="0.1"/><circle cx="50" cy="50" r="3" fill="%230066cc" opacity="0.1"/><circle cx="80" cy="80" r="2" fill="%230066cc" opacity="0.1"/></svg>');
    background-size: 150px;
}

.vision-health-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--rounded-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--accent);
}

.vision-health-content::before {
    content: '';
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background: var(--primary-light);
    border-radius: 50%;
    z-index: 0;
}

.vision-health-content h2 {
    position: relative;
    z-index: 1;
}

.vision-health-content p {
    position: relative;
    z-index: 1;
}

.vision-health-content li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 30px;
}

.vision-health-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.vision-health-content .cta-container {
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-flex {
        flex-direction: column;
    }
            
    .section-routine:first-of-type .section-text,
    .cee_routine1 .section-text {
        padding: 1.5rem;
    }
            
    .neurolens-hero h1 {
        font-size: 2.2rem;
    }
            
    .neurolens-hero p {
        font-size: 1.2rem;
    }
            
    .vision-health-content {
        padding: 1.5rem;
    }
            
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .neurolens-hero {
        padding: 3rem 0;
    }
            
    .neurolens-hero h1 {
        font-size: 1.8rem;
    }
            
    .neurolens-hero p {
        font-size: 1rem;
    }
            
    .section-routine,
    .cee_routine1,
    .vision-health-section {
        padding: 2rem 0;
    }
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: var(--secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Fixed 4 columns */
    gap: 2rem;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
}

.service-card {
    background-color: var(--white);
    border-radius: var(--rounded-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Insurance Section */
.insurance-section {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--white);
}

.insurance-content h2 {
    margin-bottom: 1.5rem;
}

.insurance-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

.insurance-image {
    width: 100%;
    height: auto;
    margin: 0 auto 2rem;
    border-radius: var(--rounded-sm);
    box-shadow: var(--shadow-sm);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--secondary);
}

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

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--rounded-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.stars {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text);
    position: relative;
    line-height: 1.7;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 0;
}

.testimonial-text::before {
    margin-right: 5px;
    vertical-align: -0.4em;
}

.testimonial-text::after {
    margin-left: 5px;
    vertical-align: -0.6em;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

.testimonials-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imgs/comprehensive_eye_exam.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.125rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

/* Border for Call Us button */
.cta-section .btn-outline {
    border: 2px solid var(--white) !important;
    background-color: transparent !important;
    color: var(--white) !important;
}

.cta-section .btn-outline:hover {
    background-color: var(--white) !important;
    color: var(--primary) !important;
    border-color: var(--white) !important;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 4rem 0 0;
    position: relative;
}

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

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

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

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
    padding-left: 5px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}
/*
.hours-list span {
    font-weight: 500;
}
*/

.footer-about {
    max-width: 300px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-contact p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    margin-top: 3px;
    color: var(--accent);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* Back to Top Button */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .dropdown-menu {
        width: 400px;
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .logo-container img {
        height: 60px;
    }
    
    .logo-line1 {
        font-size: 14px;
    }
    
    .logo-line2 {
        font-size: 12px;
    }

    .main-nav {
        width: 100%;
        margin-left: 50px;
    }
        
    .main-nav a {
        font-size: 13px;
        padding: 0.5px 1px;
    }

    .dropdown-column a {
        font-size: 13px;
    }

    .header-cta .btn {
        padding: 6px 12px;
        min-width: 150px;
        font-size: 0.7rem;
    }

    .section-routine:first-of-type .section-text {
        padding: 0 2%;
    }

    .adult-content {
        padding: 0 2%;
    }

    .vision-health-section {
        width: 100%;
        height: auto;
    }
    
    .vision-health-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .section-text{
        text-align: left;
    }
}    

@media (max-width: 820px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }
    
    .main-nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        margin: 0;
        border-bottom: 1px solid var(--border);
    }
    
    .main-nav a {
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-cta {
        width: 100%;
        order: 2;
        margin: 15px 0;
        display: flex;
        justify-content: center;
    }
    
    .header-cta .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .dropdown-menu {
        position: static;
        width: 100% !important;
        box-shadow: none;
        padding: 0;
        display: none;
        opacity: 1;
        transform: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-column {
        padding: 0;
        margin-bottom: 1rem;
    }

    .digital-hero {
        padding: 3rem 1rem;
    }
    .digital-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }    
    
   .section-routine,
    .cee_rooutine1,
    .vision-health-section{
        padding: 2rem 0rem;
        margin: 2rem 0;
    }
    .vision-health-section {
        padding: 1.5rem;
    }
    
    .section-text, .section-image {
        flex: 1 1 100%;
    }

    .section-routine .section-flex,
    .section-flex.reverse,
    .cee_routine1 .section-flex {
        flex-direction: column;
    }

    .section-image{
        align-items: center;
        justify-content: center;
        align-content: center;
    }
    
    .section-routine .section-image{
        order: 1;
    }
    .section-routine .section-text{
        order: 2;       
    }
    .cee_routine1 .section-image{
        order: 1;
    }   
    .cee_routine1 .section-text {
        order: 2;
    }

    .btn, .w3-button {
        width: 100%;
        max-width: 300px;
    }
    
    .w3-auto {
        padding: 2rem;
    }
    
    .testimonials-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }
    
    .main-nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        margin: 0;
        border-bottom: 1px solid var(--border);
    }
    
    .main-nav a {
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-cta {
        width: 100%;
        order: 2;
        margin: 1rem 0;
        display: flex;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        width: 100% !important;
        box-shadow: none;
        padding: 0;
        display: none;
        opacity: 1;
        transform: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-column {
        padding: 0;
        margin-bottom: 1rem;
    }
    .ortho-k-title {
        padding: 3rem 1rem;
        background: linear-gradient(135deg, 
            rgba(0, 102, 204, 0.9) 0%, 
            rgba(0, 179, 255, 0.8) 100%);
    }
    
    .ortho-k-title h1 {
        font-size: 2.2rem;
    }
    
    .ortho-k-title p {
        font-size: 1.2rem;
    }
    
    .ortho-k-title::before {
        animation: none;
    }  
    .vision-health-section {
        background-attachment: scroll;
    }
    
    .section-text, .section-image {
        flex: 1 1 100%;
    }

    .section-routine .section-flex,
    .section-flex.reverse,
    .cee_routine1 .section-flex {
        flex-direction: column;
    }
    
    .section-routine .section-image,
    .cee_routine1 .section-image,
    .section-routine .section-text,
    .cee_routine1 .section-text {
        order: 0;
    }
    
    .btn, .w3-button {
        width: 100%;
        max-width: 300px;
    }
    
    .w3-auto {
        padding: 2rem;
    }
    
    .testimonials-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-routine,
    .cee_sec1 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .h2-text {
        font-size: 1.5rem;
    }

    .section-flex {
        flex-direction: column;
        text-align: left;
    }
    .section-flex.reverse {
        flex-direction: column;
    }    
}

@media (max-width: 768px) {
    .section-routine,
    .cee_sec1 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .h2-text {
        font-size: 1.5rem;
    }

    .w3-button {
        font-size: 1rem;
        width: 90%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .section-routine, .cee_routine1 {
        padding: 2rem 2rem;
    }

    .vision-health-section {
        width: 100%;
        height: auto;
    }
    
    .vision-health-content {
        width: 100%;
        height: auto;
        padding: 1rem;
    }
    
    .w3-auto {
        padding: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Three column image layout */
.neurolens-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
}

.neurolens-steps .service-card {
  background: transparent;
  box-shadow: none;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
}

.neurolens-steps .service-card img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.neurolens-steps .service-content {
  padding: 0;
}

.neurolens-steps .service-content h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.neurolens-steps .service-content p {
  font-size: 0.95rem;
  color: var(--text);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .neurolens-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .neurolens-steps .service-card:nth-child(3) {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .neurolens-steps {
    grid-template-columns: 1fr;
  }
  
  .neurolens-steps .service-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
  }
}

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