@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  --madmax-dark: #0a0a0a;
  --madmax-darker: #050505;
  --madmax-light: #1a1a1a;
  --accent: #ffd600;
  --accent-dark: #e6c200;
  --accent-light: #fff066;
  --white: #ffffff;
  --gray-light: #2a2a2a;
  --gray-medium: #888888;
  --gray-dark: #cccccc;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --madmax-yellow: #ffd600;
  --shadow-light: 0 10px 30px rgba(255, 214, 0, 0.15);
  --hero-bg: url("../img/hero2.jpg");
  --hero-bg-mobile: url("../img/mobile.png");
}
[data-theme="light"] {
  --madmax-dark: #ffffff;
  --madmax-darker: #f5f5f5;
  --madmax-light: #fafafa;
  --accent: #ffd600; /* keep your accent the same, or tweak */
  --accent-dark: #e6c200;
  --accent-light: #fff066;
  --white: #0a0a0a;
  --white_light: #ffffff;
  --gray-light: #cccccc;
  --gray-medium: #555555;
  --gray-dark: #2a2a2a;
  --hero-bg: url("../img/hero2.jpg");
  /* flip or adjust any other variables you need */
}

/* ——————————————————————————————
   Hero paragraph stays white in light mode
   —————————————————————————————— */
html[data-theme="light"] #hero .hero-content p {
  color: var(--white_light) !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for sticky navbar */
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: var(--gray-dark);
  overflow-x: hidden;
  background: var(--madmax-dark);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 214, 0, 0.1);
  transition: var(--transition);
  will-change: transform;
}

header.scrolled {
  background: var(--madmax-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(255, 214, 0, 0.3);
}
/* ——————————————————————————————
   Make header transparent over hero
   —————————————————————————————— */
header {
  /* remove the dark overlay so the hero shows through */
  background: transparent;
  /* keep the blur if you like, but hide the bottom border */
  backdrop-filter: blur(20px);
  border-bottom-color: transparent;
}

/* ——————————————————————————————
   On scroll: re-apply solid background
   —————————————————————————————— */
header.scrolled {
  /* dark-mode background (you already have this) */
  background: var(--madmax-dark);
  border-bottom-color: rgba(255, 214, 0, 0.3);
  /* you might want a slightly softer shadow */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ——————————————————————————————
   Light-theme override when scrolled
   —————————————————————————————— */
[data-theme="light"] header.scrolled {
  /* use your light-mode variable instead of white */
  background: var(--madmax-light);
  border-bottom-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: var(--white);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.logo .fas {
  color: var(--accent);
  margin-right: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

#burger {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
  z-index: 1001;
}

#burger:hover {
  background: rgba(255, 214, 0, 0.1);
}

#burger:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#burger svg {
  width: 24px;
  height: 24px;
  transition: var(--transition);
}

#burger.active svg {
  transform: rotate(90deg);
}

#nav {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

#nav li {
  margin: 0;
}

#nav > li.theme-toggle {
  margin-left: auto;
}

/* 2) style the <a id="theme-toggle"> just like your other nav links */
#theme-toggle {
  color: var(--gray-medium);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

/* 3) icon sizing and hover (optional overrides) */
#theme-toggle i {
  font-size: 1.4rem;
}

#nav a {
  color: var(--gray-medium);
  text-decoration: none;
  transition: var(--transition);
  padding: 0.8rem 1.2rem;
  border-radius: 50%;
  font-weight: 500;
  font-size: 1.2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

#nav a:hover {
  color: var(--accent);
  background: rgba(255, 214, 0, 0.1);
  transform: translateY(-2px) scale(1.1);
}

/* reuse your hover styles */
#theme-toggle:hover {
  color: var(--accent);
  background: rgba(255, 214, 0, 0.1);
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-left: 2rem;
}

.social-links a {
  color: var(--gray-medium);
  font-size: 1.2rem;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--accent);
  background: rgba(255, 214, 0, 0.1);
  transform: translateY(-2px);
}

/* optional: make the toggle a little more visible on hover */
#theme-toggle:hover {
  color: var(--accent);
  background: rgba(255, 214, 0, 0.1);
}

/* optional: if you want it slightly bigger or smaller */
#theme-toggle i {
  font-size: 1.4rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  #burger {
    display: block;
  }

  #nav {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--madmax-dark);
    flex-direction: column;
    gap: 0;
    padding: 2rem;
    border-top: 1px solid rgba(255, 214, 0, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  #nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    animation: slideDown 0.3s ease-out;
  }

  #nav li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #nav a {
    padding: 1rem;
    border-radius: 50%;
    text-align: center;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* reuse your hover styles */
  #theme-toggle:hover {
    color: var(--accent);
    background: rgba(255, 214, 0, 0.1);
  }
  .social-links {
    margin-left: 0;
    margin-top: 1rem;
    justify-content: center;
  }
}

/* Hero Section */
#hero {
  background: linear-gradient(
      135deg,
      rgba(10, 10, 10, 0.8) 0%,
      rgba(5, 5, 5, 0.9) 100%
    ),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  position: relative;
}

html[data-theme="light"] #hero {
  background: var(--hero-bg);
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  position: relative;
}

/*
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, var(--madmax-light) 100%);
  z-index: 1;
}
*/
/* Alternative wave divider - uncomment if you prefer this style 

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--madmax-light);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
  z-index: 1;
}
*/

/* Curved divider option - uncomment if you prefer this style */

#hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--madmax-light);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  width: 100%;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-weight: 800;
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 3rem;
  color: var(--gray-dark);
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Professional Button Styles */
.cta-button {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  );
  color: var(--madmax-dark);
  padding: 1.2rem 3rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  animation: fadeInUp 1s ease-out 0.6s both;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(255, 214, 0, 0.3);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(255, 214, 0, 0.5);
  background: linear-gradient(
    135deg,
    var(--accent-dark) 0%,
    var(--accent) 100%
  );
}

.cta-button:active {
  transform: translateY(-1px) scale(1.02);
  transition: all 0.1s ease;
}

.cta-button:focus {
  outline: 3px solid rgba(255, 214, 0, 0.5);
  outline-offset: 2px;
}

/* Map Link Button */
.map-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent-dark) 100%
  );
  color: var(--madmax-dark);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 214, 0, 0.2);
  border: none;
  cursor: pointer;
}

html[data-theme="light"] .map-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 100%);
  color: var(--white_light);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 214, 0, 0.2);
  border: none;
  cursor: pointer;
}

.map-link a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 214, 0, 0.4);
  background: linear-gradient(
    135deg,
    var(--accent-dark) 0%,
    var(--accent) 100%
  );
}

html[data-theme="light"] .map-link a:hover {
  transform: translateY(-2px);
}

.map-link a:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
}

section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  color: var(--white);
  font-weight: 700;
  position: relative;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 2px;
}

/* Services */
#services {
  background: var(--madmax-light);
  color: var(--white);
}

#services h2 {
  color: var(--accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.service-card {
  background: var(--madmax-dark);
  border: 1px solid rgba(255, 214, 0, 0.2);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-light);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.5);
  color: var(--accent);
}

.service-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.service-card p {
  color: var(--gray-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About */
#about {
  background: var(--madmax-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#about .container {
  position: relative;
  z-index: 2;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: all 0.4s ease;
  border-radius: 15px;
  border: 3px solid var(--accent);
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .about-content {
    gap: 5rem;
  }
}

.about-text {
  position: relative;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.about-text.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.about-text h3 {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.about-text h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.6s ease;
}

.about-text.animate-in h3::after {
  width: 100%;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-medium);
  margin-bottom: 1.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.about-text.animate-in p {
  opacity: 1;
  transform: translateY(0);
}

.about-text p:nth-child(2) {
  transition-delay: 0.2s;
}

.about-text p:nth-child(3) {
  transition-delay: 0.4s;
}

.about-text p:nth-child(4) {
  transition-delay: 0.6s;
}

.about-text p:first-of-type {
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding-left: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem;
}

.stat-item {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.about-text.animate-in .stat-item {
  opacity: 1;
  transform: translateY(0);
}

.stat-item:nth-child(1) {
  transition-delay: 0.8s;
}
.stat-item:nth-child(2) {
  transition-delay: 1s;
}
.stat-item:nth-child(3) {
  transition-delay: 1.2s;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-medium);
  font-weight: 500;
}

.about-image {
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.about-image.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.image-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  max-width: 400px;
  width: 100%;
  border-radius: 15px;
}

.image-container:hover {
  transform: translateY(-10px) scale(1.05) rotate(2deg);
  box-shadow: 0 30px 60px rgba(255, 214, 0, 0.3);
}

.image-container:hover img {
  transform: scale(1.1) rotate(1deg);
  border-color: var(--accent-light);
  filter: brightness(1.1);
}

.about-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: all 0.4s ease;
  border-radius: 15px;
  border: 3px solid var(--accent);
  will-change: transform;
}

@media (min-width: 768px) {
  .about-image img {
    height: 300px;
  }
}

@media (min-width: 1024px) {
  .about-image img {
    height: 350px;
  }
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 2;
}

.image-container:hover .image-overlay {
  transform: translateY(0);
}

.overlay-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.overlay-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--gray-light);
}

/* Floating elements animation */
@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-content {
    gap: 3rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .about-text p:first-of-type {
    font-size: 1.1rem;
    padding-left: 1rem;
  }

  .about-text p:first-of-type::before {
    font-size: 2rem;
    top: -5px;
  }

  /* Mobile hero optimizations */
  #hero {
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.8) 0%,
        rgba(5, 5, 5, 0.9) 100%
      ),
      var(--hero-bg-mobile) !important;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 100vh;
    width: 100%;
    padding-bottom: 100px; /* Add some padding at the bottom for content */
  }

  html[data-theme="light"] #hero {
    background: var(--hero-bg-mobile) !important;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .hero-content {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .about-text h3 {
    font-size: 1.2rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .image-overlay {
    padding: 1rem;
  }

  .overlay-title {
    font-size: 1rem;
  }

  .overlay-text {
    font-size: 0.8rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .about-text,
  .about-image,
  .stat-item,
  .image-container,
  .about-content::before,
  .about-content::after,
  .about-image::before,
  .about-image::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Reviews */
#reviews {
  background: var(--madmax-light);
  color: var(--white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--madmax-dark);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 214, 0, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

@media (min-width: 768px) {
  .review-card {
    padding: 2rem;
  }
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 214, 0, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.review-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(255, 214, 0, 0.2);
  background: linear-gradient(
    135deg,
    var(--madmax-dark) 0%,
    rgba(26, 26, 26, 0.95) 100%
  );
}

.review-card:hover::before {
  left: 100%;
}

.review-card:hover .avatar {
  transform: scale(1.05) rotate(3deg);
  border-color: var(--accent);
  box-shadow: 0 5px 15px rgba(255, 214, 0, 0.3);
}

.review-card:hover .author {
  color: var(--accent);
}

html[data-theme="light"] .review-card:hover {
  /* remove or soften the shadow */
  box-shadow: none;
  /* reset the dark gradient; use your light background var */
  background: var(--white_light);
  /* keep the subtle lift if you like */
  transform: translateY(-4px) scale(1.01);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .review-header {
    margin-bottom: 1.5rem;
    gap: 1rem;
  }
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--madmax-dark);
  font-weight: bold;
  border: 3px solid var(--madmax-yellow);
  flex-shrink: 0;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .avatar {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
}

.review-info {
  flex: 1;
}

.review-info .author {
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.stars {
  display: flex;
  gap: 0.2rem;
}

.stars i {
  color: var(--madmax-yellow);
  font-size: 1rem;
  transition: all 0.2s ease;
  opacity: 0;
  transform: scale(0);
  cursor: pointer;
  position: relative;
}

.stars i.animate {
  opacity: 1;
  transform: scale(1);
}

.stars i:hover {
  text-shadow: 0 0 8px currentColor;
  filter: drop-shadow(0 0 4px currentColor);
}

.review-text {
  font-style: italic;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-medium);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.review-card:hover .review-text {
  color: var(--white);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
  .review-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .review-card {
    padding: 1.25rem;
  }

  .review-card:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .about-content {
    gap: 2rem;
    padding: 0 1rem;
  }

  .about-image img {
    height: 200px;
  }

  /* Disable parallax on mobile for performance */
  #hero {
    background-attachment: scroll;
  }
}

/* Performance optimizations */
@media (max-width: 768px) {
  /* Reduce animations on smaller screens */
  .image-container:hover {
    transform: translateY(-5px) scale(1.02);
  }

  .image-container:hover img {
    transform: scale(1.05);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .review-card:hover {
    transform: none;
    box-shadow: none;
    background: var(--madmax-dark);
    border-color: rgba(255, 214, 0, 0.1);
  }

  .review-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .image-container:hover {
    transform: none;
  }

  .image-container:hover img {
    transform: none;
  }
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Add scroll-triggered animations */
  .scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
  }

  .scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.map-container {
  width: 100%;
  max-width: 1000px;
  padding: 1rem;
  background: var(--madmax-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--border-radius);
}

.map-link {
  margin-top: 1rem;
}

html[data-theme="light"] .map-link a:hover {
  /* Subtle gray shadow instead of yellow */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

footer {
  background-color: var(--madmax-darker);
  color: var(--gray-medium);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-light);
}

footer {
  background-color: var(--madmax-darker);
  color: var(--gray-medium);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-light);
}
