html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

#hero, #services, #machines, #contact {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: #f5f0e8;
  color: #e0e0e0;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

#hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

#hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

#logo {
  width: 400px;
  margin-bottom: 8px;
  margin-top: -50px;
}

#hero-content h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
  margin-top: 100px;
}

#slogan {
  font-size: 1.1rem;
  font-weight: 300;
  color: #e05c4a;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#scroll-btn {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #ffffff;
  font-size: 2rem;
  text-decoration: none;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== MACHINES ===== */
#machines {
  padding: 100px 60px;
  background-color: #eee9e0;
}

#machines h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  color: #b1a2a2;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 60px;
  text-align: center;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 16px;
  display: inline-block;
  border-radius: 0 0 4px 4px;
  width: 100%;
}

.machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.machine-card {
  position: relative;
  border-radius: 16px;
  box-shadow: 0 0 30px 10px rgba(180, 185, 190, 0.6),
              inset 0 0 0 1px rgba(255,255,255,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  aspect-ratio: 4/3;
}

.machine-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px 15px rgba(180, 185, 190, 0.8),
              inset 0 0 0 1px rgba(255,255,255,0.2);
  border-color: transparent;
}

.machine-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: brightness 0.4s ease;
}

.machine-card:hover img {
  brightness: 1.1;
  filter: brightness(1.15);
}

.machine-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 15%, rgba(0, 0, 0, 0.55) 100%);
  border-radius: 16px;
  z-index: 1;
  pointer-events: none;
}

.machine-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  border-radius: 16px;
  transition: opacity 0.4s ease;
}

.machine-card:hover::after {
  opacity: 0.7;
}

.machine-info {
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px 24px;
  z-index: 2;
  background: transparent;
}

.machine-info h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.machine-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* ===== CONTACT ===== */
#contact {
  padding: 100px 60px;
  background-image: url('images/Fluck (7 of 25).jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  z-index: 0;
}

#contact h2,
#contact-grid {
  position: relative;
  z-index: 1;
}

#contact h2 {
  color: #ffffff;
}

.contact-bloc h3 {
  color: #c0392b;
}

.contact-bloc p {
  color: #e0e0e0;
}

#contact h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 3.3rem;
  color: #ffffff;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 60px;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 16px;
  display: inline-block;
  border-radius: 0 0 4px 4px;
}

#contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.contact-bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-bloc:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 3rem;
}

.contact-bloc h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: #c0392b;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-bloc p {
  font-size: 1.43rem;
  color: #e0e0e0;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  background-color: #e9dac3;
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: #444444;
  letter-spacing: 1px;
}

/* ===== SERVICES ===== */
#services {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/WAIT PLAN.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#services-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

#services-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 80px 40px;
  text-align: left;
}

#services-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.48rem;
  color: #ffffff;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 16px;
  border-radius: 0 0 4px 4px;
}

#services-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

#services-content ul li {
  font-size: 1.24rem;
  color: #e0e0e0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-left: 20px;
  position: relative;
}

#services-content ul li::before {
  content: '—';
  color: #c0392b;
  position: absolute;
  left: 0;
}

#services-content ul li:last-child {
  border-bottom: none;
}

#services-engagement {
  font-size: 1.35rem;
  color: #ffffff;
  font-style: italic;
  font-weight: 700;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* ===== LOCATION BADGE ===== */
#location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 20px;
}

#swiss-flag {
  font-size: 1rem;
}

#location-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: 3px;
}