/* other css file imports */
@import url("sections/header.css");
@import url("sections/hero.css");
@import url("sections/privacy_policy.css");
@import url("sections/impressum.css");
@import url("sections/footer.css");
@import url("sections/services.css");
@import url("sections/projects.css");

/* CSS variables for reusablity across all files (including above imported) */
:root {
  --space-1: clamp(0.5rem, 1vw, 0.75rem);
  --space-2: clamp(1rem, 2vw, 1.5rem);
  --space-3: clamp(1.5rem, 3vw, 2rem);
  --radius: 12px;
  --max-width: 72ch;
}

@font-face {
  font-family: Roboto;
  src: url("../assets/fonts/Roboto-Regular.ttf");
}

@font-face {
  font-family: Outfit;
  src: url("../assets/fonts/Outfit-VariableFont_wght.ttf");
}

@font-face {
  font-family: Inter;
  src: url("../assets/fonts/Inter-VariableFont_opsz,wght.ttf");
}

/* * { */
/* outline: 1px solid red; */
/*} */

/* 2️⃣ Body and html setup */
html,
body {
  width: 100%;
  /* height: 100%; */
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* prevent horizontal scroll */
  scroll-behavior: smooth;
  font-family: Roboto, sans-serif;
}

body {
  background-image: url("../../assets/mainScreen.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* keeps it fixed while scrolling */
  line-height: 1.5;
  background-color: #0d101d;
}

a {
  text-decoration: none;
  font-weight: bold;
  color: white;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
p,
li {
  overflow-wrap: break-word;
  margin: 0 0 var(--space-1) 0;
}

h1 {
  font-family: Outfit;
  color: white;
  font-size: clamp(2rem, 4vw, 2.5rem);
}
h2 {
  font-family: Outfit;
  font-weight: 700;
  color: white;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
h3 {
  font-family: Outfit;
  color: white;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
h4 {
  font-family: Outfit;
  color: white;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}
p,
li {
  font-family: Outfit;
  color: white;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

/* Small phones */
@media (max-width: 480px) {
  h3 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  p {
    font-size: 1rem;
  }
}
