/* General Styles */
html {
  scroll-behavior: smooth; /* Smooth scrolling effect */
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1c1c1c;
  color: #fff;
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 18%;
  background-size: cover; /* Ensure the background covers the header area */
  position: relative;
  z-index: 1; /* Ensure header elements are above the background */
}

/* Header Background Pattern */
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/intersecting-curves.svg") no-repeat center;
  background-size: cover;
  opacity: 1; /* Adjust opacity for a subtle effect */
  z-index: -1; /* Lower z-index to place it behind other elements */
}

/* Navigation Styles */
.nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Logo Styling */
.logo img,
.logo svg {
  height: 80px; /* Adjust this value to make the logo larger */
  width: auto; /* Maintain aspect ratio */
  margin-right: 15px;
  z-index: 2; /* Ensure logo stays above background */
}

/* Navigation Link Styles */
.nav-links {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  gap: 15px;
  justify-content: flex-end;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  border: 2px solid transparent;
  position: relative;
  transition: border 0.3s ease; /* Transition only the border property */
  white-space: nowrap;
}

.nav-links a:hover {
  box-shadow: 0 0 0 2px #1e90ff; /* Blue shadow on hover to mimic outline */
  text-decoration: none; /* Prevent underline on hover */
  color: #fff; /* Keep the color the same */
}

/* Special Styling for 'Kontakta oss' Link */
.contact-link {
  background-color: #1e90ff;
  color: white;
  padding: 10px 15px;
  border: 2px solid transparent;
  white-space: nowrap;
}

.contact-link:hover {
  background-color: #1c7ed6;
  box-shadow: 0 0 0 2px #1c7ed6;
}

/* Section Styles for Consistent Padding */
.hero,
.services,
.about-contact {
  padding: 50px 15%; /* 50px top/bottom and 5% left/right padding for responsive spacing */
}

/* Hero Section */
.hero {
  display: flex; /* Use flexbox */
  flex-direction: column; /* Stack elements vertically */
  align-items: flex-start; /* Align items to the left */
  padding: 100px 18%; /* Add responsive padding for spacing */
  background-color: #1c1c1c;
}

.hero h2 {
  font-size: 3rem;
  margin: 0; /* Remove default margin for tight alignment */
}

.hero p {
  font-size: 1.5rem;
  margin-top: 10px; /* Adjust margin for spacing */
  padding-left: 20px;
}

/* Services Section */
.services {
  background-color: #333;
  text-align: center;
}

.services h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.service-box {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* Grid layout with auto-adjusting columns */
  gap: 20px; /* Space between cards */
}

.box {
  background-color: #2d2d2d;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.box img {
  max-height: 50px;
  margin-bottom: 15px;
}

.box h3 {
  font-size: 1.5rem;
  margin: 10px 0;
}

.box p {
  font-size: 1rem;
  color: #ccc;
}

/* About Section */

/* Container for About and Contact Sections */
.about-contact {
  display: flex;
  justify-content: center; /* Center the container horizontally */
  align-items: flex-start; /* Align items at the top */
  gap: 50px; /* Space between the sections */
}

/* Individual Columns Styling */
.about,
.contact {
  flex: 1; /* Each takes equal width */
  width: 40%; /* Slightly smaller width for better centering */
  min-width: 200px; /* Minimum width for each column */
}

.about {
  background-color: #1c1c1c;
  text-align: left; /* Align text to the left */
}

.about h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #fff;
}

.about p {
  font-size: 1rem;
  line-height: 1.6; /* Adjust for better spacing */
  color: #ccc; /* Slightly lighter text color for readability */
  max-width: 700px; /* Optional: To control width */
  margin: 0; /* Ensure no default margins interfere */
}

/* Contact Section */
.contact {
  background-color: #1c1c1c;
  text-align: left; /* Center the form title */
}

.contact h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #fff;
}

.contact a {
  color: #fff; /* Set the email link color to white */
}

.contact p {
  font-size: 1rem;
  line-height: 1.6; /* Adjust for better spacing */
  color: #ccc; /* Slightly lighter text color for readability */
  max-width: 700px; /* Optional: To control width */
  margin: 0; /* Ensure no default margins interfere */
}

/* Form Styling */
form {
  max-width: 600px; /* Set a maximum width for the form */
  margin: 0 auto; /* Center the form */
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns layout */
  gap: 15px; /* Slightly reduce the gap between inputs */
}

input,
textarea {
  padding: 12px; /* Slightly reduce padding inside inputs */
  border: 1px solid #1e90ff;
  border-radius: 8px; /* Round the corners */
  background-color: #fff; /* White background for inputs */
  color: #333; /* Darker text for readability */
  font-size: 1rem; /* Adjust font size */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a soft shadow */
  transition: border 0.3s, box-shadow 0.3s; /* Smooth transition effect */
}

input:focus,
textarea:focus {
  border-color: #1c7ed6; /* Darker blue border on focus */
  box-shadow: 0 0 8px rgba(28, 126, 214, 0.5); /* Highlighted shadow on focus */
  outline: none; /* Remove default outline */
}

textarea {
  grid-column: span 2; /* Make textarea span both columns */
  min-height: 150px; /* Set a minimum height for the message field */
}

button {
  grid-column: span 2; /* Make button span both columns */
  padding: 15px;
  background-color: #1e90ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, box-shadow 0.3s;
}

button:hover {
  background-color: #1c7ed6;
  box-shadow: 0 4px 8px rgba(28, 126, 214, 0.3);
}

/* Footer Styles */
.footer {
  padding: 30px 15%; /* Reduced padding to make the footer less high */
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  font-size: 0.9em;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  height: 50px; /* Adjust as needed */
  width: auto;
  margin-bottom: 10px;
}

.footer-info p {
  margin: 5px 0; /* Adjust spacing between lines */
}

.footer-info a {
  color: #fff; /* Set the email link color to white */
  text-decoration: none; /* Remove underline for a cleaner look */
}

.footer-info a:hover {
  text-decoration: underline; /* Add underline on hover for clarity */
}

.footer-divider {
  width: 100%;
  border-top: 1px solid #444;
  margin: 20px 0; /* Adjust spacing between sections */
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.footer-bottom-right {
  display: flex;
  gap: 15px; /* Space between links */
}

.footer-link {
  color: #aaa;
  font-size: 0.9rem;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-copyright {
  color: #aaa;
  font-size: 0.9rem;
}

/* Mobile and Responsive Styles */
/* Adjust sections, forms, and the header for smaller devices */
@media (max-width: 768px) {
  /* Header */
  .header {
    flex-direction: column;
    padding: 10px 5%;
  }

  /* Navigation */
  .nav {
    justify-content: center;
  }

  .nav-links {
    flex-direction: column;
  }

  .contact-link {
    margin-top: 10px;
  }

  /* Service Section */
  .service-box {
    grid-template-columns: 1fr; /* One card per row on small screens */
    flex-direction: column;
    align-items: center;
  }

  .box {
    width: 80%;
    margin-bottom: 20px;
    padding: 15px; /* Adjust padding */
  }

  /* Form */
  form {
    grid-template-columns: 1fr; /* One column layout on small screens */
  }

  textarea,
  button {
    grid-column: span 1; /* Span full width in single-column layout */
  }

  /* About and Contact Section */
  .about-contact {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    padding: 50px 5%; /* Reduce padding for smaller screens */
    margin: 0 auto; /* Center the container */
  }

  .contact,
  .about {
    width: 100%; /* Full width on smaller screens */
  }

  /* Footer */
  .footer-left,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom-right {
    justify-content: center; /* Center the links on small screens */
    gap: 10px;
    font-size: 0.7rem; /* Smaller font size for mobile */
  }

  .footer-copyright {
    margin-top: 5px;
    font-size: 0.7rem;
  }

  /* Menu Trigger */
  .menu-trigger {
    display: block;
    cursor: pointer;
  }

  .menu-bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
  }

  .nav-links {
    display: none;
  }
}
