:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-card: rgba(26, 26, 26, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #666666;
  --accent-primary: #ffd700;
  --accent-hover: #ffed4e;
  --border-color: rgba(255, 215, 0, 0.2);
  --shadow-light: rgba(255, 215, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(26, 26, 26, 0.7);
  --glass-border: rgba(255, 215, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 20px;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-notice.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.cookie-btn {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 15, 15, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #111111 100%);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  filter: blur(3px) brightness(0.4) contrast(1.2);
  z-index: 0;
  object-fit: cover;
}

.three-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.7;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 15, 15, 0.7) 0%,
    rgba(15, 15, 15, 0.5) 50%,
    rgba(15, 15, 15, 0.7) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 1s ease-out 0.5s forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 1s ease-out 1s forwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 1s ease-out 1.5s forwards;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: Add a subtle fade-in for the entire hero content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo {
  max-width: 200px;
  filter: drop-shadow(0 0 20px var(--shadow-light));
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-dark);
  border-color: var(--accent-primary);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Brand Showcase Section */
.brands-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 2rem;
}

.brand-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.brand-card:hover::before {
  transform: scaleX(1);
}

.brand-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-dark);
  border-color: var(--accent-primary);
}

.brand-logo {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 10px;
  transition: all 0.3s ease;
}

.brand-card:hover .brand-logo {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.brand-logo-img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.brand-card:hover .brand-logo-img {
  transform: scale(1.1);
}

.brand-logo-placeholder {
  width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.riwax-logo {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.adbl-logo {
  background: linear-gradient(135deg, #555555 0%, #333333 100%);
}

.proelit-logo {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.brand-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
}

.brand-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

.brand-link::after {
  content: '→';
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.brand-link:hover {
  color: var(--accent-hover);
}

.brand-link:hover::after {
  transform: translateX(5px);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 215, 0, 0.05);
  transform: translateX(10px);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-primary);
  width: 30px;
  text-align: center;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.contact-item p,
.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent-primary);
}

.contact-form-container {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-dark);
  position: relative;
  overflow: hidden;
}

.contact-3d-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
}

.contact-car-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-overlay-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  pointer-events: none;
  z-index: 10;
  padding: 20px;
}

.contact-overlay-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0;
  color: var(--text-primary);
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.floating-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-primary);
  border-radius: 50px;
  padding: 12px 20px;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
  pointer-events: auto;
  cursor: pointer;
  position: absolute;
  width: fit-content;
  max-width: 250px;
}

.floating-contact-item[data-type="phone"] {
  top: 80px;
  left: 20px;
  animation-delay: 0s;
}

.floating-contact-item[data-type="email"] {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  animation-delay: -1s;
}

.floating-contact-item[data-type="location"] {
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -2s;
}

.floating-contact-item:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.floating-contact-item[data-type="phone"]:hover {
  transform: scale(1.05);
}

.floating-contact-item[data-type="email"]:hover {
  transform: translateY(-50%) scale(1.05);
}

.floating-contact-item[data-type="location"]:hover {
  transform: translateX(-50%) scale(1.05);
}

.floating-contact-item i {
  font-size: 1.2rem;
  color: var(--accent-primary);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.floating-contact-item span {
  color: var(--text-primary);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive adjustments for contact items */
@media (max-width: 768px) {
  .floating-contact-item {
    max-width: 200px;
    padding: 10px 16px;
  }
  
  .floating-contact-item span {
    font-size: 0.8rem;
  }
  
  .floating-contact-item[data-type="phone"] {
    top: 60px;
    left: 10px;
  }

  .floating-contact-item[data-type="email"] {
    right: 10px;
  }

  .floating-contact-item[data-type="location"] {
    bottom: 60px;
  }
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--text-primary);
  text-align: center;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 30px;
  height: 30px;
}

.footer-brand-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--bg-primary);
  color: var(--accent-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent-primary);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--accent-primary);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-video {
    filter: blur(4px) brightness(0.3) contrast(1.1);
  }

  .hero-title {
    font-size: 2.5rem;
    transform: translateY(30px);
  }

  .hero-subtitle {
    font-size: 1.1rem;
    transform: translateY(20px);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    transform: translateY(20px);
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .brands-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    text-align: center;
    flex-direction: column;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 30px 20px;
  }

  .brand-card {
    padding: 30px 20px;
  }

  .contact-card,
  .contact-form-container {
    padding: 30px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-secondary: #ffffff;
    --border-color: #ffffff;
  }
}

/* Add these styles to your existing style.css file */

/* Add these styles to your existing style.css file */

/* Add these styles to your existing style.css file */

/* Service card enhancements */
.service-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  color: var(--text-secondary);
}

.service-features li {
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.4;
  font-size: 0.95rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.service-base {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.service-price {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--accent-primary);
  font-size: 1.1rem;
}

.service-optional {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

.service-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.3;
}

/* Service grid improvements */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  justify-items: center; /* Center items when fewer than 3 per row */
}

/* Ensure service cards are flexbox containers for proper spacing and alignment */
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 450px; /* Slightly increased for better alignment */
  width: 100%;
  max-width: 400px; /* Consistent card width */
}

/* Gallery responsive improvements */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default: 3 columns on desktop */
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Tablet view: 2 columns */
@media (max-width: 1023px) and (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* Mobile view: 1 column */
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-item {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Add these styles to your existing style.css file */

/* Service card enhancements */
.service-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  color: var(--text-secondary);
}

.service-features li {
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.4;
  font-size: 0.95rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.service-base {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.service-price {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--accent-primary);
  font-size: 1.1rem;
}

.service-optional {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

.service-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.3;
}

/* Service grid improvements */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  justify-items: center; /* Center items when fewer than 3 per row */
}

/* Ensure service cards are flexbox containers for proper spacing and alignment */
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 450px; /* Slightly increased for better alignment */
  width: 100%;
  max-width: 400px; /* Consistent card width */
}

/* Gallery responsive improvements */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default: 3 columns on desktop */
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Tablet view: 2 columns */
@media (max-width: 1023px) and (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* Mobile view: 1 column with proper before/after sequence */
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-item {
    max-width: 100%;
    margin: 0 auto;
  }
  
  /* Reorder gallery items for proper before/after sequence on mobile */
  .gallery-1 { order: 1; } /* szarpolir.JPG - előtte */
  .gallery-4 { order: 2; } /* jopolir.JPG - utána */
  .gallery-2 { order: 3; } /* koszosnis.JPG - előtte */
  .gallery-5 { order: 4; } /* tisztanis.JPG - utána */
  .gallery-3 { order: 5; } /* koszosrena.JPG - előtte */
  .gallery-6 { order: 6; } /* tisztarena.JPG - utána */
}