/*
Theme Name: Extern-IT Onepage
Theme URI: https://example.com
Author: David Widlak
Description: Het one-page thema voor Extern-IT
Version: 1.0
*/
:root {
  --black: #1d1d1d;
  --white: #eee;
  --main: rgb(244, 106, 71);
  --secure: rgb(102, 61, 161);
  --care: rgb(60, 188, 149);
  --group: rgb(83, 132, 204);
  --transition: all 0.65s cubic-bezier(0, 1, 0.35, 1);
}

@font-face {
  font-family: "Brockmann";
  src: url("assets/brockmann-bold-webfont.eot") format("eot"),
    url("assets/brockmann-bold-webfont.ttf") format("ttf"),
    url("assets/brockmann-bold-webfont.woff") format("woff"),
    url("assets/brockmann-bold-webfont.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Brockmann";
  src: url("assets/") format("eot"),
    url("assets/brockmann-medium-webfont.eof") format("eot"),
    url("assets/brockmann-medium-webfont.ttf") format("truetype"),
    url("assets/brockmann-medium-webfont.woff") format("woff"),
    url("assets/brockmann-medium-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh; /* Allows scrolling if content is too long */
  margin: 0;
  background-color: var(--black);
  overflow-x: hidden;
}

.content {
  text-align: left;
  max-width: 50%;
}

.privacy-content {
  margin-top: 150px;
}

.privacy-content h2,
h3,
h4,
h5,
h6 {
  font-family: "Brockmann";
  font-size: clamp(1.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1rem;
  margin-top: 0;
}

.main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

h1 {
  font-family: "Brockmann";
  font-size: clamp(3rem, calc(3rem + ((1vw - 0.35rem) * 2)), 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1rem;
  margin-top: 0;
}

li,
p {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 32px;
  font-optical-sizing: auto;
}

li {
  margin-bottom: 0;
}

h1::selection,
p::selection,
.btn-text::selection {
  background-color: #ef7c4f;
  color: var(--white);
}

.btn-more {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75em;
  cursor: pointer; /* Indicates the button is clickable */
  pointer-events: all;
  transition: var(--transition);
}

.btn-icon {
  transition: var(--transition); /* Smooth animation */
}

.btn-text {
  color: var(--white);
  font-family: "Brockmann";
  font-weight: 700;
  transition: var(--transition); /* Smooth text color change */
}

/* Hover effect */
.btn-more:hover .btn-icon {
  transform: translateX(5px); /* Moves the SVG slightly to the right */
}

.btn-more:hover .btn-text {
  color: var(--main); /* Changes text color to var(--main) */
}

/* SVG Container */
.logo_links {
  flex: 1;
  display: flex;
  justify-content: center;
  width: 450px;
  height: 450px;
}

/* SVG */
.logo_links svg {
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease-in-out;
}

/* SVG Text */
.logo_links text {
  font-size: 5px;
  pointer-events: none;
  transition: fill 0.2s ease;
  font-family: "Brockmann";
  font-weight: 400;
}

/* Hover Effect: Increase Interactive Surface */
.logo_links a {
  display: block;
  position: absolute;
  width: 40px; /* Increase hitbox */
  height: 40px;
  pointer-events: all;
}

/* ------------------------- */
/*  HEADER */
/* ------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.header-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Left side (Logo) */
.header-left {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 100px;
  width: auto;
}

/* Right side (For future elements) */
.header-right {
  display: flex;
  align-items: center;
}

/* 
    SVG ANIMATIONS
*/
/* Default transition for all paths */
.logo_links path {
  transition: transform 0.15s ease-in-out, fill 0.15s ease-in-out;
}

/* Animation when hovered */
.svg_group:hover {
  animation: moveDown 0.2s ease-in-out forwards;
}

.svg_care:hover {
  animation: moveRight 0.2s ease-in-out forwards;
}

.svg_secure:hover {
  animation: moveLeft 0.2s ease-in-out forwards;
}

.svg_extern:hover {
  animation: moveUp 0.2s ease-in-out forwards;
}

/* Automatically move back when the mouse leaves */
.svg_group {
  animation: moveBackDown 0.2s ease-in-out forwards;
}

.svg_care {
  animation: moveBackRight 0.2s ease-in-out forwards;
}

.svg_secure {
  animation: moveBackLeft 0.2s ease-in-out forwards;
}

.svg_extern {
  animation: moveBackUp 0.2s ease-in-out forwards;
}

/* Keyframes to move arrows in and out */
@keyframes moveDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(3px);
  }
}

@keyframes moveRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(3px);
  }
}

@keyframes moveLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-3px);
  }
}

@keyframes moveUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3px);
  }
}

/* Animation to move back when mouse leaves */
@keyframes moveBackDown {
  from {
    transform: translateY(3px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes moveBackRight {
  from {
    transform: translateX(3px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes moveBackLeft {
  from {
    transform: translateX(-3px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes moveBackUp {
  from {
    transform: translateY(-3px);
  }
  to {
    transform: translateY(0);
  }
}

/* Top-left diagonal shape */
.top-left-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background-color: #ef7c4f; /* Adjust to match your theme */
  clip-path: polygon(0 0, 100% 0, 0 100%); /* Creates the triangle effect */
  z-index: -1; /* Ensure it's above other elements */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .top-left-shape {
    width: 100px;
    height: 100px;
  }
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0;
  background-color: var(--black);
  color: var(--white);
  position: relative; /* Now it follows the flow of the page */
  width: 100%;
  z-index: 5; /* Ensure it's above other elements */
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-family: "Brockmann", sans-serif;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--main);
}

.footer-text {
  font-size: 0.9rem;
  font-family: "Red Hat Display", sans-serif;
  font-optical-sizing: auto;
}

/* ------------------------- */
/* RESPONSIVENESS IMPROVEMENTS */
/* ------------------------- */

/* Smaller screens (tablets & mobile) */
/* Tablets: Stack SVG under text */
@media (max-width: 1025px) {
  .main-container {
    flex-direction: column;
    /* text-align: center; */
    min-height: 0;
    padding-top: 100px;
  }

  .content {
    max-width: 70%;
  }

  .logo_links {
    width: 450px;
    height: 450px;
    margin-top: 2rem;
    flex: none;
  }

  .btn-more {
    justify-content: center;
  }

  h1 {
    font-size: 2rem;
  }

  .contact-form-container {
    will-change: max-height, opacity !important; /* Optimizes animation */
    transition: max-height 0.2s ease-in-out, opacity 0.2s ease-in-out !important;
  }
}

/* Mobile: Make text smaller, stack elements */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    gap: 0;
    padding: 1.2rem;
  }

  .content {
    max-width: 100%;
    margin-top: 75px;
    /* text-align: center; */
  }

  h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }

  p {
    font-size: 1rem;
  }

  .logo_links {
    width: 300px;
    height: 300px;
  }

  .site-header {
    padding: 0;
  }

  .header-logo {
    height: 60px; /* Slightly smaller on mobile */
    padding-top: 12px;
  }
}
