/* Import Poppins font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/* Base */
:root {
  --bg: #1e1a2e;
  --bg-alt: #5c4f6e;
  --text: #ffffff;
  --muted: #ffffff;
  --primary: #ccc1ff;
  --primary-600: #3d8bfd;
  --secondary: #b3abc9;
  --accent: #bba0ff;
  --accent-2: #99ffbb;
  --border: #1c2430;
  --card: #121821;
  --success: #22c55e;
  --danger: #ef4444;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  --rotate-speed: 40;
  --count: 8; /* Default count, the DOM element should override this */
  --easeInOutSine: cubic-bezier(0.37, 0, 0.63, 1);
  --easing: cubic-bezier(0, 0.37, 1, 0.63);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Poppins", Inter, system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--text);
  text-decoration: none;
}
p {
  color: var(--muted);
}
/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.1px);
  -webkit-backdrop-filter: blur(5.1px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 80px;
}
.header-sections {
  width: 33.33%;
}
.header-sections-middle {
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-sections-right {
  display: flex;
  justify-content: right;
  align-items: right;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.logo span {
  color: var(--primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a {
  opacity: 0.9;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a.active {
  color: var(--primary);
}
.nav-links a::first-letter {
  color: var(--accent);
  font-weight: bold;
}
.logo-white {
  max-width: 50px;
}
.container {
  width: min(1440px, 92%);
  margin: 0 auto;
}
.container-full {
  width: 95vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.section {
  padding: 10px 0;
}
.section--alt {
  background: var(--bg-alt);
}
.section__title {
  font-size: 28px;
  margin: 0 0 24px;
}
.section-1 {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #1e1a2e;
  background: linear-gradient(
    90deg,
    rgba(30, 26, 46, 0.01) 0%,
    rgba(30, 26, 46, 0.95) 25%,
    rgba(30, 26, 46, 0.95) 50%,
    rgba(30, 26, 46, 0.95) 75%,
    rgba(30, 26, 46, 0.01) 100%
  );
  padding: 40px;
}
.section-2 {
  display: flex;
  background-color: var(--white);
  color: var(--bg);
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5.1px);
  -webkit-backdrop-filter: blur(5.1px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 80px;
}
.header-sections {
  width: 33.33%;
}
.header-sections-middle {
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-sections-right {
  display: flex;
  justify-content: right;
  align-items: right;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.logo span {
  color: var(--primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a {
  opacity: 0.9;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a.active {
  color: var(--primary);
}
.nav-links a::first-letter {
  color: var(--accent);
  font-weight: bold;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  z-index: 101;
  transition: transform 0.3s ease;
}

.nav-toggle:active {
  transform: scale(0.95);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Grids */
.grid {
  display: grid;
  gap: 24px;
  align-items: center;
}
.grid--2cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* custom button*/
.btn {
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
  padding: 5px 30px;
  border-radius: 100px;
  background: linear-gradient(
    135deg,
    var(--white),
    var(--accent),
    var(--white)
  );
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  font-size: 15px;
}

.btn:hover {
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--white),
    var(--accent)
  );
}

.btn > svg {
  width: 34px;
  margin-left: 10px;
  transition: transform 0.3s ease-in-out;
}

.btn:hover svg {
  transform: translateX(5px);
}

.btn:active {
  transform: scale(0.95);
}

.contact-card {
  height: 100%;
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background-image: url("../images/kontaktcard.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* section 4 dark */
.section-4 {
  display: flex;
  gap: 40px;
  width: 100%;
  padding: 50px 10px 100px 10px;
}
.section-4-header {
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 10px;
}
.section-4-header p {
  font-size: clamp(12px, 2vw, 16px);
  font-weight: 600;
  color: var(--accent);
  margin: 0;
  border-radius: 100px;
  border: 1px solid var(--accent);
  padding: 2px 10px 2px 10px;
}
.section-4-header h1 {
  padding: 5px;
  font-size: clamp(28px, 3vw, 45px);
  line-height: 1.1;
  margin: 0 0 16px;
  background-image: linear-gradient(
    150deg,
    var(--white),
    var(--accent),
    var(--white),
    var(--accent)
  );
  color: transparent;
  background-clip: text;
}
.section-4-left {
  width: 40%;
  background-image: url("../images/kontaktcard.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: inline-block;
  min-height: 350px;
  border-radius: 15px;
}
.section-4-card {
  width: 70%;
  height: 100%;
  /* From https://css.glass */
  background: rgba(30, 26, 46, 0.5);
  border-radius: 15px 0 0 15px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4.3px);
  -webkit-backdrop-filter: blur(4.3px);
  border: 1px solid rgba(30, 26, 46, 0.4);
  padding: 40px;
}
.section-4 h2 {
  font-size: clamp(25px, 2vw, 30px);
  padding: 5px;
  line-height: 1.1;
  margin: 0 0 16px;
  background-image: linear-gradient(
    150deg,
    var(--white),
    var(--accent),
    var(--white),
    var(--accent)
  );
  color: transparent;
  background-clip: text;
}
.section-4-right {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 40px;
  width: 60%;
  min-height: 350px;
  background-image: linear-gradient(240deg, var(--bg-alt), var(--bg));
  border-radius: 15px;
  box-shadow: 2px 4px 30px rgba(88, 88, 88, 0.1);
}

.card-icon-s5 {
  background-image: url("../images/check-mark.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 25px;
  height: 25px;
  display: inline-block;
}

/* Services */
.service-box {
  display: flex;
  justify-content: center;
}
.service-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.service-text p {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Portfolio */
.portfolio .tile {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 60px 18px;
  background: rgba(18, 24, 33, 0.6);
  overflow: hidden;
}
.portfolio .tile span {
  position: relative;
  z-index: 2;
  font-weight: 600;
}
.portfolio .tile::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    220px 220px at var(--mx, 50%) var(--my, 50%),
    rgba(110, 168, 254, 0.35),
    transparent 60%
  );
  transition: 0.2s;
}
.portfolio .tile:hover::after {
  inset: -20%;
}

/* Contact */
.form {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0e141c;
  color: var(--text);
}
.form-status {
  min-height: 20px;
  font-size: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 100px 0;
  background: rgba(11, 14, 18, 0.6);
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-direction: column;
}
.footer-content {
  display: flex;
  border-bottom: 1px solid var(--accent);
}

.footer-left {
  width: 70%;
  display: flex;
  gap: 10px;
  padding-right: 10%;
}
.footer-right {
  width: 30%;
  display: flex;
  justify-content: space-between;
}
.quick-links {
  display: flex;
  flex-direction: column;
}
.footer-copyright {
  margin: 0;
}
.logo-white-footer {
  max-width: 150px;
}

/* Responsive - Tablet (641px - 1024px) */
@media (max-width: 1024px) {
  .container {
    width: min(95%, 95%);
  }

  .nav {
    height: 70px;
    padding: 0 15px;
  }

  .header-sections {
    width: auto;
  }

  .header-sections-right {
    display: none;
  }

  /* Hero Section */
  .section-1 {
    padding: 30px 20px;
    text-align: center;
  }

  .hero__content p {
    font-size: 16px;
  }

  .actions {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .btn,
  .btn-ghost {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Section 2 */
  .section-2 {
    flex-direction: column;
  }

  .section-2-left,
  .section-2-right {
    width: 100%;
  }

  .section-2-left {
    padding: 60px 20px;
    text-align: center;
  }

  .section-2-left-checkmarks {
    justify-content: center;
    gap: 30px;
  }

  .section-2-img {
    min-height: 300px;
  }

  /* Section 3 */
  .section-3 {
    flex-direction: column;
  }

  .section-3-left,
  .section-3-right {
    width: 100%;
    padding: 40px 20px;
  }

  .void {
    max-width: 100%;
    margin: 20px auto;
  }

  /* Section 4 */
  .section-4 {
    flex-direction: column;
    gap: 30px;
  }

  .section-4-left,
  .section-4-right {
    width: 100%;
  }

  .section-4-card {
    width: 100%;
    border-radius: 15px;
  }

  /* Moving Cards */
  .moving-cards-outer {
    flex-direction: column;
  }

  .moving-cards {
    width: 100%;
    max-height: 500px;
  }

  /* Service Box */
  .service-text {
    flex-direction: column;
    gap: 20px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-left {
    width: 100%;
    padding-right: 0;
  }

  .footer-right {
    width: 100%;
    flex-direction: column;
    gap: 30px;
  }

  .grid--2cols {
    grid-template-columns: 1fr;
  }
  .grid--3cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive - Mobile (up to 640px) */
@media (max-width: 640px) {
  /* Navbar */
  .nav-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav {
    height: 60px;
    position: relative;
  }

  .header-sections {
    width: auto;
  }

  .header-sections-middle {
    position: static;
  }

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: 60px;
    background: rgba(30, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 20px;
    gap: 15px;
    display: none;
    flex-direction: column;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    display: flex;
  }

  .header-sections-right {
    display: none;
  }

  /* Hero Section */
  .hero {
    min-height: auto;
  }

  .section-1 {
    padding: 40px 15px;
    text-align: center;
  }

  .hero__content h1 {
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.2;
    margin: 10px 0;
  }

  .hero__content p {
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0;
  }

  .hero-headline {
    margin-top: 20px;
  }

  .actions {
    flex-direction: column;
    gap: 12px;
    padding: 25px 0;
    width: 100%;
  }

  .btn,
  .btn-ghost {
    width: 100%;
    padding: 12px 25px;
    font-size: 14px;
  }

  .btn svg,
  .btn-ghost svg {
    width: 24px;
  }

  /* Moving Cards - Mobile */
  .moving-cards-outer {
    flex-direction: column;
    gap: 15px;
  }

  .moving-cards {
    width: 100%;
    padding: 10px;
    max-height: 400px;
  }

  .hero-filter {
    width: 100%;
  }

  /* Section 2 */
  .section-2 {
    flex-direction: column;
  }

  .section-2-left {
    padding: 40px 15px;
    width: 100%;
    gap: 20px;
  }

  .section-2-left h1 {
    font-size: clamp(24px, 5vw, 32px);
    text-align: center;
  }

  .section-2-left p {
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
  }

  .section-2-left-checkmarks {
    flex-direction: column;
    gap: 20px;
    text-align: left;
  }

  .section-2-left-checkmarks > div {
    width: 100%;
  }

  .section-2-right {
    width: 100%;
    padding: 15px;
  }

  .section-2-img {
    min-height: 250px;
  }

  /* Section 3 */
  .section-3 {
    flex-direction: column;
  }

  .section-3-left,
  .section-3-right {
    width: 100%;
    padding: 30px 15px;
  }

  .section-3-left h1 {
    font-size: clamp(22px, 5vw, 28px);
    text-align: center;
  }

  .section-3-left p {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }

  .section-3-left h3 {
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
  }

  .section-2-btn-box {
    display: flex;
    justify-content: center;
  }

  .btn-white-section {
    width: 100%;
    max-width: 300px;
    padding: 12px 25px;
    font-size: 14px;
  }

  .void {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
  }

  .section-3-right ul {
    outline: none;
  }

  .card-section-3 {
    width: 35%;
    padding: 12px 16px;
    font-size: 12px;
  }

  .model-name {
    font-size: 14px;
  }

  /* Section 4 */
  .section-4-header {
    padding-top: 30px;
    margin-top: 30px;
    text-align: center;
  }

  .section-4-header h1 {
    font-size: clamp(24px, 5vw, 32px);
  }

  .section-4 {
    flex-direction: column;
    gap: 20px;
    padding: 30px 15px 50px 15px;
  }

  .section-4-left {
    width: 100%;
    min-height: 250px;
  }

  .section-4-card {
    width: 100%;
    padding: 25px 20px;
    border-radius: 15px;
  }

  .section-4-right {
    width: 100%;
    padding: 25px 20px;
    min-height: auto;
  }

  .section-4 h2 {
    font-size: clamp(20px, 4vw, 24px);
  }

  .section-4 p {
    font-size: 14px;
    line-height: 1.6;
  }

  .service-text {
    flex-direction: column;
    gap: 15px;
    padding: 20px 15px;
  }

  .card-text {
    font-size: 14px;
  }

  .card-icon {
    width: 20px;
    height: 20px;
  }

  /* Footer */
  .site-footer {
    padding: 30px 0 20px 0;
  }

  .footer {
    padding: 0 15px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    padding-bottom: 30px;
    text-align: center;
  }

  .footer-left {
    width: 100%;
    padding-right: 0;
    padding-top: 0;
  }

  .footer-left p {
    font-size: 14px;
    line-height: 1.6;
  }

  .footer-right {
    width: 100%;
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .quick-links {
    align-items: center;
  }

  .quick-links h4,
  .footer-right > div h4 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .footer-right a,
  .footer-right p {
    font-size: 14px;
  }

  .footer-copyright {
    font-size: 12px;
    margin-top: 20px;
  }

  /* Grid adjustments */
  .grid--2cols {
    grid-template-columns: 1fr;
  }
  .grid--3cols {
    grid-template-columns: 1fr;
  }
  .grid--4cols {
    grid-template-columns: 1fr;
  }

  /* Container adjustments */
  .container {
    width: 95%;
    padding: 0 15px;
  }

  .container-full {
    width: 100%;
  }
}
