:root {
  --fs-xs: clamp(0.85rem, 2vw, 1rem);    /* pieni teksti, footer, metatiedot */
  --fs-sm: clamp(1rem, 2.5vw, 1.2rem);   /* perusteksti, buttonit, nav */
  --fs-md: clamp(1.2rem, 3vw, 1.6rem);   /* ingressit, nostot, featuret */
  --fs-lg: clamp(2.2rem, 4vw, 3rem);   /* alaotsikot, lohkon avaukset */
  --fs-xl: clamp(2.5rem, 6vw, 4rem);     /* pääotsikot, hero-h1 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: white;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
header.nav ul {
  background: rgba(0, 0, 0, 0.5);
  padding: 2.75rem 5rem;
  position: sticky;
  top: 0;
  z-index: 999;
}
@media (max-width: 768px) {
  .hero {
    padding: 100px 1.5rem 6rem 1.5rem;
    background-position: center;
  }
}


.logo img {
  position: absolute;
  height: clamp(300px, 12vw, 140px);
  width: auto;
  max-width: 90vw;
  display: block;
  top: -40px;
  left: 0px;
}


nav ul {
  display: flex;
  gap: 5rem;
  list-style: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2rem 4rem 12rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 20%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 200px;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    #000 100%
  );
  z-index: 3;
  pointer-events: none;
}


.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.hero-overlay h2 {
  font-size: var(--fs-xl);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-overlay p {
  font-size: clamp(1.1rem, 3.2vw, 1.6rem);
  font-weight: 500;
  color: #e0e0e0;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  font-size: clamp(1rem, 2.8vw, 1.4rem);
  padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.2rem, 4vw, 2rem);
  color: white;
  background-color: #ff6b35;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 5;
}



.cta-button:hover {
    background-color: #e65a24;
  box-shadow:
    0 0 10px #f45c2c,
    0 0 20px #f45c2c,
    0 0 40px rgba(244, 92, 44, 0.5);
  transition: box-shadow 0.3s ease, background-color 0.2s ease;
}

/* ===== FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-overlay h2 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.8s ease-out forwards;
  animation-delay: 0s;
}

.hero-overlay p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.8s ease-out forwards;
  animation-delay: 0.1s;
}

.cta-button {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.8s ease-out forwards; 
  animation-delay: 0.2s;
}

.cta-button {
  position: relative;
  overflow: hidden;
}

.spark-wrapper {
  position: absolute;
  top: -25px;
  left: -25px;
  width: 150px;
  height: 150px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button:hover .spark-wrapper {
  opacity: 1;
}

.spark {
  transform-origin: 50% 50%;
}

.spark1 {
  animation: spin1 3s linear infinite;
}

.spark2 {
  animation: spin2 4.5s linear infinite reverse;
}

.spark3 {
  animation: spin3 6s ease-in-out infinite;
}

@keyframes spin1 {
  0% { transform: rotate(0deg) translateX(30px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(30px) rotate(-360deg); }
}

@keyframes spin2 {
  0% { transform: rotate(0deg) translateX(40px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
}

@keyframes spin3 {
  0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}
nav ul li a {
  position: relative;
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 4px 0;
  transition: color 0.4s ease, letter-spacing 0.3s ease;
  letter-spacing: 0px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, #ff6b35, #ffc99b);
  transition: width 0.4s ease;
  border-radius: 1px;
}

nav ul li a:hover {
  color: #ff6b35;
  letter-spacing: 1px;
}

nav ul li a:hover::after {
  width: 100%;
}
nav ul li a.active {
  color: #ff6b35;
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #ff6b35, #ffc99b);
  border-radius: 1px;
}
nav ul li a {
  position: relative;
}
.services {
  background: #000 url(kuvat/asfalt-light.png);
  background-repeat: repeat;
  background-size: 512px 512px;
  margin-top: 0;
  position: relative;
  z-index: 3;
  padding-bottom: 6rem;
}
.services::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, transparent 0%, #0b0b0b 100%);
  z-index: 4;
  pointer-events: none;
}

.services-header {
  position: relative;
  background: none;
  padding: 6rem 1.5rem 2.5rem;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.services-header h2 {
  font-size: var(--fs-lg);
  font-weight: 900;
  margin: 0;
  padding-top: 6rem;
  z-index: 50;
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
  max-width: 1000px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
}

.service-card {
  border: 1px solid #ff6b35;
  background-color: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.card-top {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 2;
  position: relative;
}

.card-top .icon {
  width: 40px;
  height: auto;
}

.card-top h3 {
  font-size: var(--fs-sm);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
}

.card-top p {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: #ddd;
  margin: 0;
}

.card-image {
  aspect-ratio: 3 / 1.5;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.service-card:hover .card-image img {
  opacity: 0.35;
}
.icon {
  width: 40px;
  height: auto;
  margin-bottom: 1rem;
  filter: invert(1); /* jos ikoni on tumma, tämä tekee siitä valkoisen */
}
.service-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
}

.card-image img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-card:hover .card-image img {
  transform: scale(1.05);
  opacity: 0.3;
}
.services-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #000 0%,
    rgba(0, 0, 0, 0.7) 40%,
    rgba(0, 0, 0, 0.3) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.cta-wrapper {
  position: relative;
  background-color: #000;
  background: url('kuvat/ctatausta.webp') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 4rem 5rem;
  min-height: 600px;
  overflow: hidden;
}



.cta-image {
  position: absolute;
  bottom: 0;
  right: 5rem;
  z-index: 2;
}

.cta-image img {
  max-height: 500px;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.6));
}
.cta-text {
  position: relative;
  z-index: 3;
  max-width: 600px;
}

.cta-text h2 {
  font-size: var(--fs-lg);
  line-height: 1.3;
  font-weight: 900;
  margin-bottom: 1rem;
}

.cta-text p {
  font-size: var(--fs-sm);
  margin-bottom: 2rem;
}
.cta-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  height: 160px;
  width: 100%;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
  z-index: 1;
}

.cta-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 160px;
  width: 100%;
  background: linear-gradient(to top, #000 0%, transparent 100%);
  z-index: 1;
}
@media (max-width: 768px) {
  .cta-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    min-height: auto;
  }

  .cta-text {
    max-width: 100%;
    z-index: 3;
  }

  .cta-image {
    position: static;
    margin-top: 2rem;
    max-width: 80%;
  }

  .cta-image img {
    max-width: 100%;
    height: auto;
  }
}

.contact-section {
  background: #000 url(kuvat/asfalt-light.png);
  background-repeat: repeat;
  background-size: 512px 512px;
  color: white;
  padding-top: 12rem;
  padding-bottom: 6rem;
}

.contact-headline {
  text-align: center;
  font-size: var(--fs-lg);
  margin-bottom: 3rem;
  color: white;
  font-weight: 900;
  position: relative;
}

.contact-headline::after {
  content: '';
  display: block;
  height: 4px;
  width: 500px;
  margin: 1rem auto 0;
  background: linear-gradient(to right, #ff6b35, transparent);
  border-radius: 2px;
}

.contact-card-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.contact-card {
  background: #111;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: white;
  width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
}

.contact-card img {
  width: 40px;
  margin-bottom: 1rem;
  filter: invert(1);
}

.contact-card h3 {
  font-size: 1.2rem;
  color: #ff6b35;
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  color: #ff6b35;
}

.map-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  z-index: 1;
}

.line-wrapper {
  margin-top: 1rem;
  height: 4px;
  width: 200px;
  position: relative;
  z-index: 2;
}

.animated-line {
  width: 100%;
  height: 100%;
  display: block;
}

.hidden-line {
  stroke: #ff6b35;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1s ease;
}

.hidden-line.draw {
  stroke-dashoffset: 0;
}

@keyframes sparkFlash {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.2);
    box-shadow: 0 0 0px #ff6b35;
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.5);
    box-shadow: 0 0 10px #ff6b35, 0 0 20px #ffc99b;
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    box-shadow: 0 0 4px #ff6b35;
  }
}
.spark-head {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #ff6b35, #ffc99b);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}

.spark-head.animate {
  animation: moveSparkHead 1s linear forwards;
  opacity: 1;
}

@keyframes moveSparkHead {
  0% { left: 0%; }
  100% { left: 100%; }
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ffc99b;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  opacity: 1;
  animation: sparkParticle 0.6s ease-out forwards;
}

@keyframes sparkParticle {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0.5);
    opacity: 0;
  }
}
.weld-flare {
  position: absolute;
  top: 65%;
  left: 50%;
  width: clamp(80px, 18vw, 180px);
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, rgba(255,107,53,0.4), transparent 70%);
  border-radius: 50%;
  filter: blur(16px);
  animation: flarePulse 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 20;
  transform: translate(-5%, -10%);
  mix-blend-mode: screen;
}

@keyframes flarePulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.4);
  }
}
.box-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20vw;
  aspect-ratio: 3.5 / 1;
  background: linear-gradient(90deg, rgba(255,107,53,0.2), rgba(255,200,155,0.3));
  border-radius: 0.5rem;
  filter: blur(14px);
  animation: glowFlicker 1.4s infinite;
  transform: translate(20%, -110%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 2;
}

@keyframes glowFlicker {
  0%   { opacity: 0.1; }
  5%   { opacity: 0.4; }
  10%  { opacity: 0.05; }
  15%  { opacity: 0.3; }
  20%  { opacity: 0.15; }
  25%  { opacity: 0.5; }
  30%  { opacity: 0.2; }
  35%  { opacity: 0.6; }
  40%  { opacity: 0.05; }
  50%  { opacity: 0.4; }
  60%  { opacity: 0.1; }
  70%  { opacity: 0.3; }
  80%  { opacity: 0.2; }
  90%  { opacity: 0.5; }
  100% { opacity: 0.1; }
}
.cta-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,107,53,0.15), transparent 80%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

@keyframes sparkSlide {
  0% { transform: translateY(0) scaleX(0.8); opacity: 0.1; }
  50% { transform: translateY(-40px) scaleX(1); opacity: 0.5; }
  100% { transform: translateY(0) scaleX(0.8); opacity: 0.1; }
}
.cta-text::after {
  content: '';
  display: block;
  width: 200px;
  height: 4px;
  background: linear-gradient(to right, #ff6b35, transparent);
  margin-top: 1rem;
  border-radius: 2px;
}
.cta-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 65%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at center,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.7) 70%,
    transparent 100%);
  transform: translateX(-50%);
  filter: blur(60px);
  z-index: 2;
  pointer-events: none;
}
@keyframes shimmerPulse {
  0% { opacity: 0.03; transform: scaleX(1); }
  50% { opacity: 0.07; transform: scaleX(1.1); }
  100% { opacity: 0.03; transform: scaleX(1); }
}

.cta-wrapper::before {
  animation: shimmerPulse 5s ease-in-out infinite;
}
.cta-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 25%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(255, 107, 53, 0.05) 75%,
    transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.cta-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  mix-blend-mode: screen;
  z-index: 2;
  pointer-events: none;
}
.cta-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  height: 160px;
  width: 100%;
  background: linear-gradient(to bottom, #0a0a0a 0%, transparent 100%);
  z-index: 1;
}

.social-section {
  background-color: #0a0a0a;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.social-title {
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.social-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 110px;
  margin: 0.8rem auto 0;
  background: linear-gradient(to right, #ff6b35, transparent);
  border-radius: 2px;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.social-row a {
  font-size: 2rem;
  color: white;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  text-decoration: none;
  position: relative;
}

.social-row a:hover {
  color: #ff6b35;
  transform: translateY(-4px);
  text-shadow: 0 0 8px #ff6b35, 0 0 16px #ffc99b;
}
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1000;
  }

  nav ul.active {
    display: flex;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* HERO */
  .hero {
    padding: 40vh 1.5rem 3rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-position: center;
  }

  .hero-overlay {
    width: 100%;
  }

  .cta-button {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }


  /* LOGO */
  .logo {
    top: 12px;
    left: 16px;
  }

  .logo img {
    height: 250px;
    max-width: 80vw;
  }

  /* NAVIGATION */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;
    backdrop-filter: none;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 1001;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
  }

  nav ul.active {
    transform: translateX(0);
  }

  nav ul li a {
    font-size: 1.6rem;
  }
}
@media (max-width: 768px) {
  nav {
    backdrop-filter: none;
  }

  nav.menu-open {
    backdrop-filter: blur(6px);
  }
}
.menu-toggle {
  display: none; /* näkyy vain mobiilissa */
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 30px;
  height: 22px;
  z-index: 1100;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: white;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.4s;
}

/* Näytä vain mobiilissa */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
.menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background: rgba(0, 0, 0, 0.97);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1000;
  }

  nav ul.active {
    transform: translateX(0);
    display: flex;
  }

  nav ul li {
    opacity: 0;
    transform: translateY(20px);
    animation: none;
  }

  nav ul.active li {
    animation: fadeInUp 0.5s ease forwards;
  }

  nav ul.active li:nth-child(1) { animation-delay: 0.1s; }
  nav ul.active li:nth-child(2) { animation-delay: 0.2s; }
  nav ul.active li:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  font-size: 1rem;
}
.payment-policy {
  max-width: 900px;
  margin: 3rem auto 2rem;
  padding: 1.5rem 2rem;
  font-size: 0.95rem;
  color: #ccc;
  background-color: #111;
  border-left: 4px solid #ff6b35;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.15);
}
.payment-policy p {
  margin: 0;
  line-height: 1.6;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #111;
  color: white;
  border-radius: 16px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
  transform: scale(0.96) translateY(30px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 800;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ccc;
}

.modal input {
  padding: 0.75rem 1rem;
  border: 1px solid #333;
  background: #1a1a1a;
  color: white;
  border-radius: 8px;
  font-size: 1rem;
}

.modal input:focus {
  outline: none;
  border-color: #ff6b35;
}

.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: white;
}
.modal select,
.modal textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #333;
  background: #1a1a1a;
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
}

.modal select:focus,
.modal textarea:focus {
  outline: none;
  border-color: #ff6b35;
}
#reg {
  text-transform: uppercase;
  letter-spacing: 1px;
}
.thank-you-message {
  text-align: center;
  margin-top: 2rem;
  animation: fadeIn 0.5s ease forwards;
  color: #ff6b35;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
