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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --light: #f0f9ff;
  --dark: #1e293b;
  --text: #334155;
  --bg-color: #f0f9ff;
  --header-bg: rgba(255, 255, 255, 0.95);
  --card-bg: #ffffff;
  --footer-bg: #1e293b;
  --text-color: #334155;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
  --bg-color: #1a202c;
  --header-bg: rgba(30, 41, 59, 0.95);
  --card-bg: #2d3748;
  --footer-bg: #1a202c;
  --text-color: #e2e8f0;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  --text: #cbd5e0;
  --light: #2d3748;
  --dark: #f8fafc;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--light) 0%, var(--bg-color) 100%);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

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

/* Header Styles */
header {
  background-color: var(--header-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

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

.logo-svg {
  width: 180px;
  height: auto;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-text span {
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

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

nav a:hover::after {
  width: 100%;
}

.cta-button {
  background: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

/* New utility buttons */
.header-utils {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 15px;
}

.util-btn {
  background: transparent;
  border: none;
  color: var(--dark);
  font-size: 1.3rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.util-btn:hover {
  background: rgba(37, 99, 235, 0.1);
  transform: scale(1.1);
}

.util-btn.active {
  color: var(--accent);
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--card-bg);
  min-width: 120px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1;
  top: 100%;
  right: 0;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-content a {
  color: var(--dark);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: rgba(37, 99, 235, 0.1);
}

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

.lang-flag {
  width: 20px;
  height: 15px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 2px;
  overflow: hidden;
}

.lang-flag.en {
  background: linear-gradient(to bottom, #012169, #C8102E);
}

.lang-flag.hi {
  background: linear-gradient(to bottom, #FF9933, #FFFFFF, #138808);
}

/* Hero Section */
.hero {
  /* background: linear-gradient(rgba(37, 99, 235, 0.85), rgba(14, 165, 233, 0.85)), url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80'); */
  background: linear-gradient(rgba(37, 99, 235, 0.85), rgba(14, 165, 233, 0.85)), url('images/eyeglasses_photo_from_unsplash.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--card-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title p {
  max-width: 700px;
  margin: 30px auto 0;
  font-size: 1.1rem;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--light);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--text);
}

.price-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 5px 15px;
  border-radius: 20px;
  margin-top: 15px;
  font-size: 1.1rem;
}

/* About Section */
.about {
  padding: 80px 0;
  background: linear-gradient(to bottom, #e0f2fe, #f0f9ff);
}

body.dark-mode .about {
  background: linear-gradient(to bottom, #2d3748, #1a202c);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.about-text p {
  margin-bottom: 20px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  height: 400px;
  /* background: url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover; */
  background: url('./images/man_holding_eyeglasses.jpg') center/cover;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  color: #2563eb;
  margin-bottom: 15px;
  display: inline-block;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #f59e0b;
  border-radius: 2px;
}

.section-title p {
  max-width: 700px;
  margin: 30px auto 0;
  font-size: 1.1rem;
  color: #334155;
}

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

.testimonial-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: rgba(37, 99, 235, 0.1);
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: linear-gradient(to bottom, #f0f9ff, #e0f2fe);
}

body.dark-mode .contact {
  background: linear-gradient(to bottom, #2d3748, #1a202c);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.contact-info h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-item i {
  font-size: 1.8rem;
  color: var(--primary);
  width: 50px;
}

.contact-details h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.contact-details a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.map-container {
  flex: 1;
  min-width: 300px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid #ccc;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background: #e2e8f0;
  position: relative;
}
/* .map-container {
  flex: 1;
  min-width: 300px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background: #e2e8f0;
  position: relative;
} */

#map {
  width: 100%;
  height: 100%;
}

/* Appointment Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalIn 0.5s ease;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.modal h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background: var(--light);
  color: var(--text);
}

.form-group textarea {
  height: 100px;
}

.submit-btn {
  background: var(--primary);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  font-size: 1.1rem;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 2;
  min-width: 300px;
}

.footer-logo .logo-text {
  color: white;
}

.footer-about {
  flex: 3;
  min-width: 300px;
}

.footer-about p {
  margin: 15px 0;
  color: #cbd5e1;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-5px);
}

.footer-links {
  flex: 2;
  min-width: 200px;
}

.footer-links h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: white;
}

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

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

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.9rem;
}

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

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

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    gap: 15px;
  }

  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    background: var(--header-bg);
    width: 80%;
    height: calc(100vh - 80px);
    transition: all 0.4s ease;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 30px;
    gap: 20px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .contact-content {
    flex-direction: column;
  }

  .map-container {
    width: 100%;
  }

  .header-utils {
    margin: 15px 0;
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo {
    flex-direction: row;
    text-align: left;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .feature-card {
    padding: 20px;
  }

  .about-content {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
  }
}