@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --primary-blue: #005691;
  --secondary-blue: #0087CC;
  --accent-blue: #89CFF0;
  --white: #FFFFFF;
  --dark-grey: #333333;
  --light-grey: #f5f5f5;
  --font-main: 'Montserrat', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--dark-grey);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: transparent;
  border-bottom: 1px solid var(--accent-blue);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: var(--primary-blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s;
}

.header-logo:hover img {
  transform: scale(1.03);
}

.header-nav {
  display: none;
}

.header-nav ul {
  display: flex;
  gap: 30px;
}

.header-nav a {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent-blue);
  transition: width 0.2s ease-out, left 0.2s ease-out;
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
  left: 0;
}

.header-nav a.active {
  font-weight: 600;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 20px;
}

.header-phone {
  color: var(--white);
  font-size: 14px;
}

.header-phone:hover {
  color: var(--accent-blue);
}

.btn-primary {
  display: inline-block;
  background: var(--accent-blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:focus {
  outline: 2px solid var(--secondary-blue);
  outline-offset: 2px;
}

.btn-primary.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(137, 207, 240, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(137, 207, 240, 0);
  }
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary-blue);
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid var(--primary-blue);
  transition: background 0.3s, color 0.3s;
}

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

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--primary-blue);
  z-index: 999;
  padding: 80px 30px 30px;
  transition: right 0.3s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mobile-menu a {
  color: var(--white);
  font-size: 20px;
  font-weight: 500;
  display: block;
}

.mobile-menu .btn-primary {
  margin-top: 30px;
  text-align: center;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px;
  max-width: 900px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.5s forwards;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--accent-blue);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeIn 0.5s 1s forwards;
}

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

.hero-split {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 100px 40px;
}

.hero-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-services {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-link {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  color: var(--white);
  transition: background 0.3s, transform 0.3s;
}

.service-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(10px);
}

.service-link h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.service-link p {
  font-size: 14px;
  opacity: 0.8;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 64px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  z-index: 999;
  transition: width 0.1s;
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 20px;
  text-align: center;
}

.section-subtitle {
  font-size: 18px;
  color: var(--dark-grey);
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Overview */
.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.service-card {
  background: #E0F2F7;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 86, 145, 0.2);
}

.service-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

.service-card h3 {
  font-size: 20px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.service-card p {
  font-size: 14px;
  color: var(--dark-grey);
  margin-bottom: 20px;
}

.service-card .learn-more {
  color: var(--secondary-blue);
  font-weight: 500;
  font-size: 14px;
}

.lens-effect {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137, 207, 240, 0.3) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Why Choose Us */
.why-section {
  background: linear-gradient(180deg, var(--white) 0%, #E0F2F7 100%);
}

.why-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.why-image {
  display: none;
}

.why-image img {
  width: 100%;
  border-radius: 10px;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.why-point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-point-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-point-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.why-point h4 {
  font-size: 18px;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.why-point p {
  font-size: 14px;
  color: var(--dark-grey);
}

/* Testimonials */
.testimonials-section {
  background: var(--primary-blue);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
  color: var(--white);
}

.testimonials-section .section-subtitle {
  color: var(--accent-blue);
}

.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 20px;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s;
}

.testimonial-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-quote {
  font-size: 20px;
  color: var(--white);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.8;
}

.testimonial-author {
  font-size: 16px;
  color: var(--accent-blue);
  font-weight: 600;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.testimonial-dot.active {
  background: var(--accent-blue);
}

/* Conditions We Treat */
.conditions-section {
  background: var(--white);
}

.conditions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.condition-card {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: transform 0.3s, box-shadow 0.3s;
}

.condition-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.condition-card h4 {
  font-size: 18px;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.condition-card p {
  font-size: 14px;
  color: var(--dark-grey);
}

/* FAQ Section */
.faq-section {
  background: #f5f5f5;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-grey);
  text-align: left;
  font-family: var(--font-main);
}

.faq-question span {
  font-size: 24px;
  color: var(--secondary-blue);
  transition: transform 0.3s;
}

.faq-item.open .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 25px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 25px 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--dark-grey);
  line-height: 1.8;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>') repeat;
  opacity: 0.3;
}

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

.cta-banner h2 {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 15px;
}

.cta-banner p {
  font-size: 18px;
  color: var(--accent-blue);
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--dark-grey);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 20px;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-links h4,
.footer-services h4,
.footer-social h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--accent-blue);
}

.footer-links ul,
.footer-services ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-services a {
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}

.footer-links a:hover,
.footer-services a:hover {
  opacity: 1;
  color: var(--accent-blue);
}

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

.footer-social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}

.footer-social-icons a:hover {
  transform: scale(1.1);
  background: var(--accent-blue);
}

.footer-social-icons svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

.footer-clarity-line {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-blue), var(--secondary-blue), var(--accent-blue));
  margin-bottom: 40px;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Page Hero Sections (Generic) */
.page-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  padding-top: 64px;
}

.page-hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}

.page-hero h1 {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 18px;
  color: var(--accent-blue);
  margin-bottom: 30px;
}

.page-hero-image {
  display: none;
}

/* About Page */
.about-hero {
  background-image: url('images/about-doctors.png');
  background-size: cover;
  background-position: center;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 145, 0.8) 0%, rgba(0, 135, 204, 0.8) 100%);
}

.about-hero .page-hero-content {
  position: relative;
  z-index: 10;
}

.philosophy-section {
  background: var(--white);
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-content h2 {
  font-size: 28px;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.philosophy-content p {
  font-size: 16px;
  color: var(--dark-grey);
  line-height: 1.8;
}

.philosophy-content .highlight {
  color: var(--secondary-blue);
  font-weight: 600;
}

/* Doctor Profiles */
.doctors-section {
  background: #f5f5f5;
}

.doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.doctor-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.doctor-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.doctor-info {
  padding: 25px;
}

.doctor-info h3 {
  font-size: 22px;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.doctor-title {
  font-size: 14px;
  color: var(--secondary-blue);
  margin-bottom: 15px;
  font-weight: 500;
}

.doctor-bio {
  font-size: 14px;
  color: var(--dark-grey);
  margin-bottom: 15px;
  line-height: 1.7;
}

.doctor-insight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.doctor-card:hover .doctor-insight {
  transform: translateY(0);
}

.doctor-insight p {
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
}

/* Technology Section */
.tech-section {
  background: var(--white);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.tech-card {
  background: #E0F2F7;
  padding: 30px;
  border-radius: 10px;
}

.tech-card h3 {
  font-size: 18px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.tech-card p {
  font-size: 14px;
  color: var(--dark-grey);
}

/* Community Section */
.community-section {
  background: #f5f5f5;
}

.community-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.community-content h2 {
  font-size: 28px;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.community-content p {
  font-size: 16px;
  color: var(--dark-grey);
  line-height: 1.8;
}

/* Contact Page */
.contact-hero {
  background-image: url('images/contact-lake-austin.png');
  background-size: cover;
  background-position: center;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 145, 0.8) 0%, rgba(0, 135, 204, 0.8) 100%);
}

.contact-hero .page-hero-content {
  position: relative;
  z-index: 10;
}

.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-form-container {
  background: #f8f8f8;
  padding: 40px;
  border-radius: 10px;
}

.contact-form-container h2 {
  font-size: 24px;
  color: var(--primary-blue);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--dark-grey);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-main);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(0, 135, 204, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info-container {
  padding: 20px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.contact-info-text h4 {
  font-size: 18px;
  color: var(--primary-blue);
  margin-bottom: 5px;
}

.contact-info-text p {
  font-size: 14px;
  color: var(--dark-grey);
}

.contact-info-text a {
  color: var(--secondary-blue);
}

.contact-map {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Form Success Animation */
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 60px;
  height: 60px;
  fill: #4CAF50;
  margin-bottom: 20px;
}

.form-success h3 {
  color: var(--primary-blue);
  margin-bottom: 10px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   TABLET STYLES (768px - 1023px)
   ======================================== */
@media (min-width: 768px) {
  .header {
    height: 70px;
  }
  
  .header-nav {
    display: block;
  }
  
  .header-actions {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .why-image {
    display: block;
  }
  
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-buttons {
    flex-direction: row;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .page-hero h1 {
    font-size: 42px;
  }
}

/* ========================================
   DESKTOP STYLES (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .header {
    height: 80px;
    padding: 0 60px;
  }
  
  .header-logo img {
    height: 60px;
  }
  
  .header-nav ul {
    gap: 40px;
  }
  
  .header-nav a {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 56px;
  }
  
  .hero-subtitle {
    font-size: 22px;
  }
  
  .section-title {
    font-size: 42px;
  }
  
  .section-subtitle {
    font-size: 20px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .service-card {
    padding: 50px 40px;
  }
  
  .why-points {
    gap: 40px;
  }
  
  .why-point {
    gap: 25px;
  }
  
  .why-point-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }
  
  .testimonial-quote {
    font-size: 24px;
  }
  
  .conditions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cta-banner h2 {
    font-size: 48px;
  }
  
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .page-hero {
    min-height: 80vh;
  }
  
  .page-hero h1 {
    font-size: 48px;
  }
  
  .page-hero p {
    font-size: 20px;
  }
  
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
  }
  
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .philosophy-content p {
    font-size: 18px;
  }
}

/* Easter Egg */
.easter-egg {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  animation: float 3s ease-in-out infinite;
}

.easter-egg svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

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

.easter-egg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-blue);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  text-align: center;
  padding: 40px;
}

.easter-egg-overlay.show {
  display: flex;
}

.easter-egg-overlay h2 {
  font-size: 32px;
  color: var(--white);
  max-width: 600px;
}

/* Austin Glow Cursor Trail */
.cursor-trail {
  position: fixed;
  pointer-events: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
  opacity: 0;
  z-index: 9999;
}

/* Form Input Underline Animation */
.form-group input:focus::after,
.form-group textarea:focus::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

.form-group input:focus::after,
.form-group textarea:focus::after {
  transform: scaleX(1);
}

/* Additional Section Styles for Inner Pages */

/* LASIK Page */
.lasik-hero {
  background-image: url('images/lasik-freedom.png');
  background-size: cover;
  background-position: center;
}

.lasik-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 145, 0.8) 0%, rgba(0, 135, 204, 0.8) 100%);
}

.intro-section {
  background: var(--white);
  padding: 80px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.intro-question {
  font-size: 24px;
  color: var(--primary-blue);
  font-weight: 600;
  line-height: 1.5;
}

.intro-text {
  font-size: 16px;
  color: var(--dark-grey);
  line-height: 1.8;
}

.intro-text .highlight {
  color: var(--secondary-blue);
  font-weight: 600;
}

/* Contoura Section */
.contoura-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 100px 0;
}

.contoura-section h2 {
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
}

.contoura-section p {
  font-size: 18px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: center;
}

.contoura-section ul {
  max-width: 600px;
  margin: 40px auto 0;
}

.contoura-section li {
  font-size: 16px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.contoura-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

/* Process Timeline */
.process-section {
  background: var(--white);
  padding: 100px 0;
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-blue);
}

.process-step {
  display: flex;
  gap: 30px;
  position: relative;
}

.process-number {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  z-index: 10;
}

.process-content h3 {
  font-size: 20px;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.process-content p {
  font-size: 15px;
  color: var(--dark-grey);
  line-height: 1.7;
}

/* Benefits Section */
.benefits-section {
  background: #f5f5f5;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.benefit-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.benefit-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--white);
}

.benefit-card h3 {
  font-size: 20px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.benefit-card p {
  font-size: 15px;
  color: var(--dark-grey);
}

/* Cataract Page */
.cataract-hero {
  background-image: url('images/cataract-restored-vision.png');
  background-size: cover;
  background-position: center;
}

.cataract-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 145, 0.8) 0%, rgba(0, 135, 204, 0.8) 100%);
}

/* IOL Options */
.iol-section {
  background: var(--white);
  padding: 100px 0;
}

.iol-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.iol-card {
  background: #E0F2F7;
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.iol-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 86, 145, 0.2);
}

.iol-card h3 {
  font-size: 20px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.iol-card p {
  font-size: 15px;
  color: var(--dark-grey);
}

/* Dry Eye Page */
.dryeye-hero {
  background-image: url('images/dryeye-relief.png');
  background-size: cover;
  background-position: center;
}

.dryeye-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 145, 0.8) 0%, rgba(0, 135, 204, 0.8) 100%);
}

/* Diagnostics Section */
.diagnostics-section {
  background: #f5f5f5;
  padding: 100px 0;
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.diagnostic-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.diagnostic-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagnostic-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

.diagnostic-card h3 {
  font-size: 18px;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.diagnostic-card p {
  font-size: 14px;
  color: var(--dark-grey);
}

/* Treatments Section */
.treatments-section {
  background: var(--white);
  padding: 100px 0;
}

.treatments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.treatment-card {
  background: #E0F2F7;
  padding: 25px;
  border-radius: 8px;
}

.treatment-card h3 {
  font-size: 18px;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.treatment-card p {
  font-size: 14px;
  color: var(--dark-grey);
}

/* Tablet Adjustments */
@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .iol-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .diagnostics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-timeline {
    gap: 60px;
  }
  
  .contoura-section h2 {
    font-size: 42px;
  }
}

/* Desktop Adjustments */
@media (min-width: 1024px) {
  .intro-grid {
    gap: 60px;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .iol-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .diagnostics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .treatments-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .process-timeline {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1000px;
  }
  
  .process-timeline::before {
    left: 0;
    right: 0;
    top: 25px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  
  .process-step {
    flex-direction: column;
    text-align: center;
    flex: 1;
  }
  
  .process-number {
    margin: 0 auto;
  }
}

/* Mobile Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}