/* -------------------- VARIABLES -------------------- */
:root {
  --primary-blue: #00aaff;
  --hover-blue: #66d9ff;
  --card-bg: rgba(10, 20, 25, 0.65);
  --text-light: #e0f7f9;
  --header-height: 65px;
  --transition-speed: 0.3s;
}

/* -------------------- BASE STYLES -------------------- */
html, body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background-color: #000;
  color: var(--text-light);
  font-family: "Goldman", sans-serif;
  text-align: center;
  overscroll-behavior: auto;
}

body {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
}

* {
  box-sizing: border-box;
}

main {
  padding: 2rem;
  padding-top: var(--header-height);
}

.goldman-regular { font-weight: 400; }
.goldman-bold { font-weight: 700; }

/* -------------------- SCROLLBAR (Desktop only) -------------------- */
@media (min-width: 769px) {
  ::-webkit-scrollbar {
    width: 10px;
    background: #000;
  }
  ::-webkit-scrollbar-thumb {
    background-color: #ac02f5;
    border-radius: 10px;
    border: 2px solid #000;
  }
  body {
    scrollbar-width: thin;
    scrollbar-color: #ac02f5 #000;
  }
}

/* -------------------- HEADER & NAVIGATION -------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  z-index: 1000;
  border-bottom: 2px solid #ac02f5;
}

.logo img {
  max-height: calc(var(--header-height) - 10px);
  height: auto;
  object-fit: contain;
  transition: max-height var(--transition-speed) ease;
}

.desktop-nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
}

.desktop-nav a,
.desktop-nav .dropdown > button {
  color: #ac02f5;
  text-decoration: none;
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 600;
  transition: color var(--transition-speed) ease;
  background: none;
  border: none;
  cursor: pointer;
}

.desktop-nav a:hover,
.desktop-nav .dropdown > button:hover {
  color: var(--hover-blue);
}

/* Mobile menu styles */
.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  position: relative;
  width: 30px;
  height: 24px;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: '';
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: #fff;
  left: 0;
  transition: 0.3s ease;
}

.menu-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle::before { top: 0; }
.menu-toggle::after { bottom: 0; }

.menu-toggle.open span { background-color: transparent; }
.menu-toggle.open::before {
  transform: rotate(45deg);
  top: 50%;
}
.menu-toggle.open::after {
  transform: rotate(-45deg);
  bottom: 50%;
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: rgba(0, 0, 0, 0.9);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}

.mobile-menu nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-menu nav a {
  color: #ac02f5;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 12px;
  border-radius: 5px;
  transition: background-color var(--transition-speed) ease;
}

.mobile-menu nav a:hover {
  background-color: rgba(0, 170, 255, 0.1);
}

.lang-button {
  background: none;
  border: 1px solid #ac02f5;
  color: #ac02f5;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.lang-button:hover {
  background-color: rgba(174, 241, 246, 0.1);
}

/* -------------------- HERO SECTION -------------------- */
.hero-section2 {
  position: relative;
  height: 580px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-section2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('bg.jpg');
  background-size: 110%;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  animation: zoomIn 2s ease-out forwards;
  z-index: 0;
}

.hero-section2 h1 {
  font-size: 3rem;
  margin-top: 225px;
  position: absolute;
  top: 0;
  width: 100%;
  padding: 0;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
  animation-delay: 0s;
}

@keyframes zoomIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------- CARDS -------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  max-width: 1160px;
  margin: 0 auto;
  gap: 20px;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 280px;
  min-width: 220px;
  height: 390px;
  perspective: 1000px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px 15px;
  border-radius: 12px;
  background: linear-gradient(to top, #0f99b4 0%, #000000 55%);
  box-shadow:
    0 0 6px rgba(15, 153, 180, 0.35),
    0 0 12px rgba(15, 153, 180, 0.25),
    0 0 24px rgba(15, 153, 180, 0.15);
  text-align: center;
  backface-visibility: hidden;
  z-index: 1;
}

.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  backface-visibility: hidden;
  background: linear-gradient(to top, #0f99b4 0%, #000000 55%);
  color: white;
  box-shadow:
    0 0 6px rgba(15, 153, 180, 0.35),
    0 0 12px rgba(15, 153, 180, 0.25),
    0 0 24px rgba(15, 153, 180, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  direction: ltr;
  padding: 20px;
  transform: rotateY(180deg);
}

.car-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.card .card-front img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
}

.card-front .details-text {
  font-size: 1rem;
  color: #ac02f5;
  margin-bottom: 10px;
  margin-top: 40px;
}

.card-front h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  margin-top: 5px;
}

.card-back h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  text-align: center;
}

.car-info-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 0.92rem;
  margin-bottom: 16px;
  margin-top: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.pricing-grid div:nth-child(2),
.pricing-grid div:nth-child(4) {
  text-align: left; /* "Heti ár", "Havi ár" */
}

.pricing-grid div:nth-child(3),
.pricing-grid div:nth-child(5) {
  text-align: right; /* "450.000 Ft", "990.000 Ft" */
}

.pricing-grid h4 {
  grid-column: 1 / -1;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 8px;
  border-top: 1px solid #666;
  padding-top: 4px;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 0px;
  padding: 10px 16px;
  background-color: #1da851;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s;
  gap: 10px;
}

.whatsapp-button:hover {
  background-color: #178c46;
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.whatsapp-text {
  flex-grow: 1;
  text-align: center;
}

/* -------------------- ABOUT SECTION -------------------- */
.about-section {
  padding: 4rem 1rem 1rem;
  display: flex;
  justify-content: center;
}

.about-container {
  background: radial-gradient(circle at center, #242424 0%, #111 90%);
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 800px;
  backdrop-filter: blur(8px);
}

.about-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.about-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* -------------------- TESTIMONIALS -------------------- */
.testimonial-section {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  position: relative;
}

.testimonial-slide {
  display: none;
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 1.2rem;
  background: radial-gradient(circle at center, #242424 0%, #111 90%);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 1s ease-in-out;
}

.testimonial-author {
  margin-top: 0.8rem;
  color: #ac02f5;
  font-weight: bold;
}

/* -------------------- CONTACT SECTION -------------------- */
.contact-top {
  text-align: center;
  margin: 70px auto 50px;
  max-width: 800px;
  padding: 0 20px;
}

.contact-top h2 {
  font-size: 3rem;
  color: #ac02f5; /* Your specified Tiffany blue */
  margin-bottom: 25px;
  font-weight: 700;
}

.contact-top p {
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 60px; /* Added more space below */
}

/* Contact Info Section */
.contact-info-section {
  max-width: 800px;
  margin: 0 auto 80px; /* Increased bottom margin */
  padding: 0 20px;
}

.contact-info-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; /* Increased gap between boxes */
  margin-bottom: 40px; /* Added space below contact info */
}

.contact-info-box {
  text-align: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.contact-info-box h3 {
  color: #ac02f5; /* Tiffany blue */
  font-size: 1.6rem; /* Slightly larger */
  margin-bottom: 15px; /* More space below heading */
  font-weight: 500;
}

.contact-info-box p {
  color: #fff;
  font-size: 1.3rem; /* Larger text */
  margin: 0;
  line-height: 1.6;
}

/* Map Section Styles */
.contact-map-section {
  max-width: 1200px;
  margin: 0 auto 80px; /* More space at bottom */
  padding: 0 20px;
}

.contact-map-header {
  background: transparent;
  padding: 0;
  margin-bottom: 30px; /* More space above map */
  text-align: center;
}

.contact-map-header h3 {
  font-size: 1.6rem;
  color: #ac02f5; /* Tiffany blue */
  margin: 0 0 15px 0; /* More space below */
  font-weight: 500;
}

.contact-map {
  height: 450px; /* Slightly taller map */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(174, 241, 246, 0.3); /* Tiffany blue subtle border */
}

/* Contact Link Styles */
.contact-link {
  color: #ac02f5; /* Your Tiffany blue color */
  text-decoration: none; /* No underline */
  transition: opacity 0.3s ease;
  display: inline-block;
}

.contact-link:hover {
  opacity: 0.8; /* Subtle hover effect */
}

/* For mobile devices */
a[href^="tel:"] {
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-top h2 {
    font-size: 2.5rem;
  }
  
  .contact-top p {
    font-size: 1.1rem;
    margin-bottom: 50px;
  }
  
  .contact-info-container {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 30px;
  }
  
  .contact-map {
    height: 350px;
  }
}
/* -------------------- FOOTER -------------------- */
footer {
  position: relative;
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom);
}

.footer-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  align-items: start;
  text-align: center;
  z-index: 1;
  position: relative;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-section img.logo {
  width: 60px;
  height: auto;
}

.footer-section h4 {
  margin: 0.5rem 0 0.2rem;
  font-size: 1rem;
  color: #ac02f5;
}

.footer-section p,
.footer-section li,
.footer-section a {
  color: #ccc;
  font-size: 0.9rem;
  margin: 0;
  text-decoration: none;
}

.footer-section a:hover {
  color: #fff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 0.5rem;
}

.social-icons img {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #888;
}

footer a,
footer nav a,
footer ul li a {
  color: var(--primary-blue);
  text-decoration: none;
}

footer a:hover {
  color: var(--hover-blue);
}

/* -------------------- MEDIA QUERIES -------------------- */
@media (max-width: 768px) {
  /* Header */
  .menu-toggle {
    display: block;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu nav ul {
    margin-top: 40px;
    gap: 20px;
  }
  .mobile-menu nav a {
    padding: 16px;
    font-size: 1.3rem;
  }

  /* Hero */
  .hero-section2 {
    height: 400px;
  }
  .hero-section2::before {
    background-size: 120%;
  }
  .hero-section2 h1 {
    font-size: 2rem;
    margin-top: 130px;
  }
  
  @keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.35); }
  }

  /* Cards */
  .card-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Increased from 20px */
    padding: 15px; /* Increased from 10px */
  }
  .card {
    width: 100%;
    max-width: 320px; /* Increased from 280px */
    min-width: 280px; /* Increased from 220px */
    height: 420px; /* Increased from 390px */
    perspective: 1000px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
  }
  .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
  }
  .card.flipped .card-inner {
    transform: rotateY(180deg);
  }
  .card-front,
  .card-back {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-radius: 12px;
    backface-visibility: hidden;
    background: linear-gradient(to top, #0f99b4 0%, #000000 55%);
    box-shadow:
      0 0 6px rgba(15, 153, 180, 0.35),
      0 0 12px rgba(15, 153, 180, 0.25),
      0 0 24px rgba(15, 153, 180, 0.15);
  }
  .card-front {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    padding: 25px; /* Increased from 20px 15px */
    text-align: center;
    z-index: 1;
  }
  .card-back {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    direction: ltr;
    padding: 25px; /* Increased from 20px */
    transform: rotateY(180deg);
  }
  .card .card-front img {
    max-width: 100%;
    max-height: 200px; /* Increased from 180px */
    object-fit: contain;
    border-radius: 8px;
  }
  .card-front .details-text {
    font-size: 1rem;
    color: #ac02f5;
    margin-bottom: 10px;
    margin-top: 40px;
  }
  .card-front h3,
  .card-back h3 {
    font-size: 1.3rem; /* Increased from 1.2rem */
    font-weight: 600;
    margin: 0 0 8px 0;
    margin-top: 5px;
    text-align: center;
  }
  .car-info-grid,
  .pricing-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 15px; /* Increased from 4px 12px */
    font-size: 1rem; /* Increased from 0.92rem */
    margin-bottom: 16px;
    margin-top: 16px;
  }
  .pricing-grid h4 {
    grid-column: 1 / -1;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    border-top: 1px solid #666;
    padding-top: 8px;
  }
  .whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: 0;
    padding: 12px 20px; /* Increased from 10px 16px */
    background-color: #1da851;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s;
    gap: 10px;
    font-size: 1.1rem; /* Increased from 1rem */
  }
  .whatsapp-button:hover {
    background-color: #178c46;
  }
  .whatsapp-icon {
    width: 24px; /* Increased from 22px */
    height: 24px; /* Increased from 22px */
    filter: brightness(0) invert(1);
    flex-shrink: 0;
  }
  .whatsapp-text {
    flex-grow: 1;
    text-align: center;
  }

  /* Contact */
  .contact-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 20px;
  }
  .contact-form-container,
  .contact-map-container {
    padding: 0;
  }
  .contact-map-container {
    grid-row: 4;
  }
  .contact-map {
    min-height: 350px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-section {
    margin-bottom: 1.5rem;
  }
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  /* About */
  .about-container {
    padding: 1.5rem;
  }
  .about-title {
    font-size: 1.5rem;
  }
  .about-text {
    font-size: 0.95rem;
  }
}

.aszf-section ul {
  list-style-position: inside;
  padding-left: 0;
  display: inline-block;
  text-align: center;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .aszf-section ul {
    display: block;
    width: 100%;
    padding-left: 0;
    margin: 0 auto;
    text-align: center;  /* mobilon középre igazítjuk a szöveget is */
  }
  
  .aszf-section ul li {
    text-align: center;  /* a listaelemek szövege is középen legyen mobilon */
  }
}
