/* Mobile styles (up to 990px) */

/* Common mobile styles */
:root {
  --mobile-padding: 1rem;
  --header-height: 70px;
}

/* Base mobile styles (applies to all mobile sizes) */
body {
  font-size: 15px;
  line-height: 1.5;
  padding: 0 !important;
  margin: 0 !important;
}

/* Apply padding-top to body for non-homepage content */
body:not(.homepage) {
  padding-top: var(--header-height) !important;
}

/* ================================= 
   CONTACT PAGE MOBILE STYLES
==================================== */

/* Reset all padding and margins for contact page */
.contact-page .main-content.contact-section,
.contact-page .contact-info-section,
.contact-page .contact-grid,
.contact-page .container,
.contact-page .section-header {
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Specific overrides for contact page sections */
.contact-page .main-content.contact-section {
  padding: 0 !important;
  margin: 0 !important;
}

.contact-page .contact-info-section {
  padding: 10px 0 0 0 !important;
  margin: 0 !important;
}

.contact-page .container {
  padding: 0 15px !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

.contact-page .section-header {
  padding: 0 0 15px 0 !important;
  margin: 0 0 5px 0 !important;
}

.contact-page .contact-grid {
  gap: 15px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.contact-page .contact-card {
  margin-bottom: 15px !important;
  padding: 15px !important;
}

/* Ensure the hero section starts at the very top */
.homepage .hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-height: 100vh !important;
  height: 100vh !important;
  position: relative;
  margin-bottom: 0;
}

/* Ensure hero content is properly positioned */
.homepage .hero .hero-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Adjust hero slideshow to account for mobile header */
.homepage .hero-slideshow {
  top: 0;
  height: 100vh !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Ensure mobile header doesn't create space */
.homepage #main-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Fix for mobile header */
.homepage .mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary-color) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Main content spacing */
main, .main-content, #main-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  position: relative;
  z-index: 1;
}

/* First section on each page */
main > section:first-child,
.main-content > section:first-child,
#main-content > section:first-child {
  padding-top: 20px !important;
  margin-top: 0 !important;
}

/* Hide desktop header and navigation on mobile */
#main-content #header.desktop-header,
#main-content header.desktop-header,
.desktop-header,
.mainHeader.desktop-header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* Hide top bar on mobile */
.topBar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 0 !important;
  z-index: -1 !important;
}

/* Hide main navigation on mobile */
.mainNav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  width: 0 !important;
  z-index: -1 !important;
}

/* Ensure hero section starts right below mobile header */
.hero {
  margin-top: 0 !important;
  padding-top: var(--header-height) !important;
  position: relative;
  z-index: 1;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Ensure mobile header is always visible on mobile */
.mobile-header {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: var(--header-height) !important;
  overflow: visible !important;
  position: fixed !important;
  width: 100% !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: var(--bg-dark) !important;
}

/* Mobile Menu Modal */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 400px;
  background: rgba(26, 26, 26, 0.95);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mobile-menu-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-title {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
  transition: color 0.2s ease;
}

.mobile-menu-close:hover {
  color: var(--accent);
}

/* Navigation Links */
.mobile-nav {
  margin-bottom: 2rem;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.mobile-nav-link {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  transform: translateX(5px);
}

/* Social Icons */
.mobile-social {
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-social-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 1rem 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.mobile-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.mobile-social-link:hover {
  background: var(--accent);
  color: #1a1a1a;
  transform: translateY(-3px);
}

/* Language Picker */
.mobile-language-picker {
  margin-top: 1rem;
}

.mobile-language-label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.mobile-language-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.mobile-language-select:hover,
.mobile-language-select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .mobile-menu-modal {
    width: 95%;
    padding: 2rem 1rem;
  }
  
  .mobile-nav-link {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
  
  .mobile-social-link {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
  }
}

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

.language-selector {
  text-align: center;
}

.language-selector h3 {
  color: var(--light-text);
  margin-bottom: 0.5rem;
}

.language-selector select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-text);
  border-radius: 5px;
  font-family: var(--font-family-primary);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-close-btn i {
  color: var(--light-text);
}

.mobile-menu-modal.active {
  display: block;
}

/* Mobile menu container */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-dark);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 500px;
  gap: 2rem;
  position: relative;
  z-index: 10000;
  color: var(--light-text) !important;
}

/* Mobile menu navigation links */
.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--light-text) !important;
}

.mobile-nav-links li {
  margin: 10px 0;
  color: var(--light-text) !important;
}

.mobile-nav-links a {
  color: var(--light-text) !important;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 15px 20px;
  display: block;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
  text-align: center;
  width: 100%;
}

.mobile-nav-links a:hover {
  color: var(--accent) !important;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Ensure the mobile header is the only header visible on mobile */
.mobile-header {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: var(--header-height) !important;
  overflow: visible !important;
}

/* Mobile Header - Non-transparent by default for all pages */
.mobile-header {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--primary-color) !important; /* Match top bar color */
  z-index: 1000;
  padding: 0 var(--mobile-padding) !important;
  margin: 0 !important;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease-in-out !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

/* Only make header transparent on homepage */
.homepage .mobile-header {
  background: transparent !important;
  box-shadow: none !important;
}

/* Scrolled state for mobile header */
.mobile-header.scrolled {
  background: rgba(0, 0, 0, 0.95) !important; /* Slightly darker when scrolled */
  box-shadow: 0 2px 15px rgba(0,0,0,0.3) !important;
  transition: all 0.3s ease-in-out !important;
}

/* Ensure homepage header becomes solid when scrolled */
.homepage .mobile-header.scrolled {
  background: rgba(0, 0, 0, 0.95) !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.3) !important;
}

/* Force override any conflicting styles */
body:not(.homepage) .mobile-header,
.about-page .mobile-header,
.services-page .mobile-header,
.contact-page .mobile-header,
.blog-page .mobile-header,
.testimonials-page .mobile-header {
  background: var(--primary-color) !important; /* Match top bar color */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

body:not(.homepage) .mobile-header.scrolled,
.about-page .mobile-header.scrolled,
.services-page .mobile-header.scrolled,
.contact-page .mobile-header.scrolled,
.blog-page .mobile-header.scrolled,
.testimonials-page .mobile-header.scrolled {
  background: var(--primary-color) !important; /* Keep same color when scrolled */
  box-shadow: 0 2px 15px rgba(0,0,0,0.3) !important;
}

.mobile-header .mobile-header-inner {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.mobile-header .logo {
  display: flex;
  align-items: center;
  padding: 0;
  width: auto;
}

.mobile-header .logo-img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.mobile-header .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.mobile-header .logo-title {
  font-family: var(--font-family-secondary);
  font-size: 1.5rem;
  color: var(--light-text);
  font-weight: 700;
}

.mobile-header .logo-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Ensure white text in mobile menu */
.mobileMenu a {
  color: var(--light-text) !important;
}

/* Update mobile menu toggle color */
.mobileMenuToggle span {
  background: var(--light-text);
}

/* Scrolled state for logo text */
.mobile-header.scrolled .logo-title {
  color: var(--light-text);
}

.mobile-header.scrolled .logo-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--light-text);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
  pointer-events: none;
}

/* Ensure white lines in all states */
.mobile-menu-toggle[aria-expanded="true"] span {
  background: var(--light-text) !important;
}

/* Animation for menu icon */
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background: var(--light-text);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
  background: var(--light-text);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background: var(--light-text);
}

/* Hover and focus states */
.mobile-menu-toggle:hover span,
.mobile-menu-toggle:focus span {
  background: var(--light-text);
  opacity: 0.8;
}

/* Ensure proper contrast when menu is open */
.mobile-header.menu-open .mobile-menu-toggle span {
  background: var(--light-text);
}

/* Staff Section - Mobile */
@media (max-width: 989.98px) {
.featured-doctor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 40px 15px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.featured-doctor-header {
    text-align: center;
    margin-bottom: 15px;
}

.featured-doctor h1 {
    font-size: 1.8rem;
    margin: 15px 0 5px 0; /* Added top margin */
    color: #2c3e50;
    line-height: 1.2;
}

.featured-doctor .specialty {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 5px 0;
    display: block;
}

.featured-doctor .doctor-title {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0 0 15px 0;
}

.featured-doctor .btn-primary {
    margin: 10px auto 0;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: auto;
    max-width: 280px;
    display: block;
    text-align: center;
    text-decoration: none;
}

.featured-doctor-image {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
}

.featured-doctor-image img {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: contain;
    object-position: center;
}

.featured-doctor-content {
    text-align: center;
    padding: 0 15px;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Hide desktop header in content area on mobile */
.featured-doctor-content h1,
.featured-doctor-content .specialty,
.featured-doctor-content .doctor-title {
    display: none;
}

.doctor-bio {
    margin: 0 0 25px 0;
    line-height: 1.7;
    color: #555;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}

.doctor-specialties {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 30px 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.doctor-specialties li {
    background: #f5f5f5;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 20px auto 25px;
    border: none;
}

/* Button styles consolidated above */

/* Footer Mobile Styles */
.footer {
    padding: 40px 0 20px;
    background-color: #2c2c2c;
    color: #fff;
}

.footer .container {
    padding: 0 15px;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 500px;
    margin: 0 auto;
}

/* Hide social media icons */
.footer .social-links {
    display: none;
}

.footer-about,
.footer-links,
.footer-services,
.footer-contact {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove border from last item */
.footer-contact {
    border-bottom: none;
}

.footer-logo {
    max-width: 180px;
    margin: 0 auto 15px;
    display: block;
}

.footer-about p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer h3 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 12px;
}

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

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

.footer-contact li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #bbb;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #999;
}

.footer-legal {
    margin-top: 10px;
}

.footer-legal a {
    color: #bbb;
    margin: 0 8px;
    font-size: 0.85rem;
}

.footer-legal span {
    color: #666;
}
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.98);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  overscroll-behavior: contain;
  height: 100vh;
  max-height: 100%;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Menu Styles */
.mobile-menu {
  width: 100%;
  max-width: 100%;
  text-align: left;
  margin: 0;
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10000;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 70px; /* Space for close button */
  padding-bottom: 40px;
  scroll-padding-top: 70px; /* Ensure content isn't hidden behind fixed header */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.mobile-menu::-webkit-scrollbar {
  display: none;
}

.mobile-menu-overlay.active .mobile-menu {
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.3s ease-out forwards;
}

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

@keyframes slideIn {
  from {
    transform: translateY(-10px);
  }
  to {
    transform: translateY(0);
  }
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  width: 100%;
}

.mobile-menu .menu-item {
  margin: 20px 0;
  opacity: 1;
  transform: none;
  transition: all 0.3s ease;
  width: 100%;
}

.mobile-menu-overlay.active .menu-item {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for menu items */
.mobile-menu .menu-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu .menu-item:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu .menu-item:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu .menu-item:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu .menu-item:nth-child(5) { transition-delay: 0.3s; }

/* Menu Links */
.mobile-menu a {
  color: #fff !important;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  font-family: var(--font-family-secondary);
  display: block;
  padding: 12px 20px;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.mobile-menu a:hover {
  opacity: 1;
  color: var(--accent) !important;
}

/* Hover and Active States */
.mobile-menu a:hover,
.mobile-menu .current-menu-item a {
  color: var(--accent) !important;
}

.mobile-menu a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.mobile-menu a:hover::after,
.mobile-menu .current-menu-item a::after {
  width: 50%;
}

/* Close Button */
.mobile-close-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  padding: 0;
  line-height: 1;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
}

.mobile-close-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
  background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active .mobile-close-btn {
  opacity: 1;
  pointer-events: auto;
}

.mobile-close-btn:hover {
  color: var(--accent);
}

/* Mobile Social Links */
.mobile-social-links {
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
  order: 2; /* Social links come after navigation */
}

.social-links-title {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.social-link {
  color: #fff !important;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-3px);
  color: #000 !important;
}

/* Mobile Contact Info */
.mobile-contact-info {
  margin-top: 20px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  order: 3; /* Contact info comes last */
}

/* Menu Links Container */
.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  width: 100%;
  box-sizing: border-box;
  order: 1; /* Ensure nav links appear first */
}

/* Menu Items */
.mobile-menu .menu-item {
  margin: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

/* Menu Links */
.mobile-menu a {
  color: #fff !important;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  font-family: var(--font-family-secondary);
  display: block;
  padding: 12px 15px;
  transition: all 0.2s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  width: 100%;
  box-sizing: border-box;
  border-radius: 6px;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  opacity: 1;
  color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.05);
}

/* Active/Current Menu Item */
.mobile-menu .current-menu-item > a {
  color: var(--accent) !important;
  font-weight: 600;
}

/* Menu Item Hover Effect */
.mobile-menu .menu-item a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 15px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.mobile-menu .menu-item a:hover::after,
.mobile-menu .current-menu-item > a::after {
  width: 30px;
}

.contact-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.contact-link i {
  color: var(--accent);
  width: 20px;
  text-align: center;
}

.contact-link:hover {
  color: #fff !important;
  transform: translateX(5px);
}

/* Ensure menu items are visible */
.mobile-menu .menu-item {
  opacity: 1;
  transform: none;
  transition: none;
}

.mobile-menu-overlay.active .menu-item {
  opacity: 1;
  transform: none;
}

.mobileMenuContainer {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.closeMobileMenu {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.mobileMenu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobileMenu .menu-item {
  margin-bottom: 1.5rem;
}

.mobileMenu .menu-item a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  font-family: var(--font-family-secondary);
}

.mobileMenu .menu-item a:hover,
.mobileMenu .current-menu-item a {
  color: var(--accent);
}

/* Show mobile header on mobile */
.mobile-header {
  display: flex;
}

/* Hide desktop header on mobile */
.desktop-header {
  display: none;
}

.mainNav li {
  width: 100%;
  border-bottom: 1px solid #eee;
}

.mainNav a {
  display: block;
  padding: 0.8rem 0;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.hero-content {
  padding: 2rem var(--mobile-padding);
  text-align: center;
}

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

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

/* Responsive adjustments for different mobile sizes */

/* Small mobile devices (up to 479.98px) */
@media (max-width: 479.98px) {
  :root {
    --mobile-padding: 0.8rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

/* Standard mobile devices (480px - 575.98px) */
@media (min-width: 480px) and (max-width: 575.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
}

/* Large mobile devices (576px - 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --mobile-padding: 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
}
