:root {
  --primary-color: #1a202c; /* Dark navy for intensity */
  --accent-color: #f67f16; /* Vibrant yellow for energy */
  --secondary-accent: #b20609; /* Bold red for emphasis */
  --text-color: #1f2937; /* Neutral dark gray for readability */
  --light-gray: #ffffff; /* Light gray for backgrounds */
  --white: #ffffff; /* Clean white for contrast */
  --font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gradient: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
}

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

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.7;
}

header {
  background: var(--gradient);
  color: var(--white);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header .container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1002;
  min-width: 44px;
  min-height: 44px;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.menu-toggle:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Animated hamburger menu icon */
#menu-icon {
  display: block;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  line-height: 1;
}

.menu-toggle.active #menu-icon {
  transform: rotate(90deg);
}

/* Navigation styles */
nav, #nav-menu {
  position: relative;
}

nav ul, #nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
  align-items: center;
}

nav ul li, #nav-menu ul li {
  margin: 0;
}

nav a, #nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: block;
  padding: 0.3rem 0;
  position: relative;
}

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

nav a:hover::after, #nav-menu a:hover::after {
  width: 100%;
}

nav a:hover, #nav-menu a:hover {
  color: var(--white);
  transform: scale(1.05);
}

nav a:focus, #nav-menu a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

section {
  padding: 5rem 1rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

#home {
  background: linear-gradient(rgba(26, 32, 44, 0.8), rgba(26, 32, 44, 0.8)), url('images/heroImage.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: center;
  padding: 8rem 1rem;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
}

#home h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#home p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Hero Sections for other pages */
.page-hero {
  background: linear-gradient(rgba(26, 32, 44, 0.8), rgba(26, 32, 44, 0.8)), url('images/heroImage.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: center;
  padding: 8rem 1rem;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Services Page Hero */
.services-hero {
  background: linear-gradient(rgba(26, 32, 44, 0.75), rgba(26, 32, 44, 0.75)), url('images/lifting.jpg');
}

/* About Page Hero */
.about-hero {
  background: linear-gradient(rgba(26, 32, 44, 0.75), rgba(26, 32, 44, 0.75)), url('images/pushing.jpg');
}

/* Contact Page Hero */
.contact-hero {
  background: linear-gradient(rgba(26, 32, 44, 0.75), rgba(26, 32, 44, 0.75)), url('images/heroImage.jpg');
}

.btn {
  display: inline-block;
  background: var(--gradient);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:focus {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

#services {
  background: url('./images/lifting.jpg') center center/cover no-repeat;
  background-attachment: scroll;
  position: relative;
  overflow: hidden;
  min-height: 40vh;
}

.services-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 20, 20, 0.7);
  z-index: 1;
  pointer-events: none;
}

#services .container {
  position: relative;
  z-index: 2;
}

#services h2 {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--white);
}

#about h2, #contact h2 {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary-color);
}

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

.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

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

#about {
  text-align: center;
  background: var(--white);
}

#about p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.25rem;
}

#contact {
  background: var(--gradient);
  color: var(--white);
  text-align: center;
}

#contact p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

footer {
  background: var(--gradient);
  color: var(--white);
  padding: 3rem 1rem 1.5rem;
  margin-top: 2rem;
}

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

.footer-section h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section p,
.footer-section li {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-hours .day {
  font-weight: 500;
}

.footer-hours .time {
  text-align: right;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Tour Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.modal-active {
  opacity: 1;
}

.modal-content {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  animation: modalSlideIn 0.3s ease forwards;
}

.modal.modal-active .modal-content {
  transform: scale(1);
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.7) translateY(-50px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.75rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.modal-close:hover {
  background: #f5f5f5;
  color: var(--primary-color);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1rem 2rem;
}

.modal-image {
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.modal-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

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

.modal-text li {
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
}

.modal-footer {
  padding: 1rem 2rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  border-top: 1px solid #eee;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid #ddd;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--primary-color);
  background: rgba(250, 204, 21, 0.1);
}

/* Media Queries for Responsiveness */
@media (min-width: 768px) {
  #home h2 {
    font-size: 4rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  nav ul, #nav-menu ul {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1002;
    position: relative;
  }

  nav, #nav-menu {
    display: block;
    width: 100%;
    position: relative;
  }

  nav ul, #nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: -1rem;
    right: -1rem;
    background: linear-gradient(135deg, rgba(246, 127, 22, 0.96), rgba(178, 6, 9, 0.96));
    padding: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 0.75rem 0.75rem;
    width: calc(100% + 2rem);
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(10px);
    max-height: 70vh;
    overflow-y: auto;
  }

  nav ul.active, 
  #nav-menu.active {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  nav ul li, #nav-menu li {
    width: 100%;
    text-align: center;
    margin: 0;
  }

  nav a, #nav-menu a {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.15rem;
    border-radius: 0.5rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
  }

  nav a:hover, #nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: none;
  }

  nav a::after, #nav-menu a::after {
    display: none;
  }

  nav ul li:last-child a, #nav-menu li:last-child a {
    border-bottom: none;
    margin-bottom: 0;
  }

  header h1 {
    font-size: 1.75rem;
  }

  header .container {
    padding: 0 1rem;
    position: relative;
    overflow: visible;
  }

  header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  #home {
    padding: 6rem 1rem 4rem;
    min-height: 70vh;
    background-attachment: scroll;
  }

  #home h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  #home p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .page-hero {
    padding: 6rem 1rem 4rem;
    min-height: 70vh;
    background-attachment: scroll;
  }

  .page-hero h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .page-hero p {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  #services {
    background-attachment: scroll;
    min-height: 35vh;
  }

  .testimonials-section {
    background-attachment: scroll;
    min-height: auto;
    padding: 3rem 1rem;
  }

  section[style*="background"] {
    background-attachment: scroll;
  }

  *[style*="background-attachment: fixed"] {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    min-width: 48px;
    min-height: 48px;
    font-size: 1.75rem;
  }

  header .container {
    padding: 0 0.5rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  nav ul, #nav-menu {
    padding: 0.5rem;
    left: -0.5rem;
    right: -0.5rem;
    width: calc(100% + 1rem);
  }

  nav a, #nav-menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
  }

  #home {
    padding: 4rem 1rem 3rem;
    min-height: 60vh;
    background-position: center center;
  }

  #home h2 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
  }

  #home p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }

  .page-hero {
    padding: 4rem 1rem 3rem;
    min-height: 60vh;
    background-position: center center;
  }

  .page-hero h1 {
    font-size: 1.75rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
  }

  .page-hero p {
    font-size: 1rem;
    line-height: 1.4;
  }

  section {
    padding: 3rem 1rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-hours {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .footer-hours .time {
    text-align: left;
    margin-left: 1rem;
  }

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

@media (max-width: 768px) {
  .modal {
    padding: 0.5rem;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: 0.75rem;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 1rem 1.5rem;
  }

  .modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .modal-image img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .modal-header h2 {
    font-size: 1.25rem;
  }

  .modal-text p {
    font-size: 1rem;
  }
}