/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", "Arial", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Global Styles */
body {
  line-height: 1.6;
  color: #faf9fa;
  background-color: #353239;
}

/* Header / Navigation */
.header {
  background-color: #353239;
  box-shadow: rgb(36 32 39 / 31%) 0px 6px 13px 0px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* So the mobile menu can be positioned absolutely */
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  font-size: 0rem;
  text-decoration: none;
  color: #faf9fa;
  font-weight: bold;
}

.navbar {
  text-align: center;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #faf9fa;
  font-weight: 400;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* CTA button on the right (desktop) */
.cta-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-left: 1rem;
  background-color: #353239;
  color: #292731 !important;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
}

.cta-button:hover {
  background-color: #bf2c27;
}

/* Hamburger icon (hidden on large screens) */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #faf9fa;
}

/* Mobile Nav (hidden by default) */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 2rem;
  background-color: #353239;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 175px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.mobile-nav ul li a {
  display: inline-block;
  color: #faf9fa;
  text-decoration: none;
  padding: 0.75rem 1rem;
}

.mobile-nav ul li .cta-button {
  margin-top: 0.75rem;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 12rem auto;
  padding: 0 2rem;
  gap: 0rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 19px;
  font-family: "Hind", "Roboto", "Arial", serif;
}

.hero-content p {
  margin-bottom: 1.9rem;
  line-height: 1.5;
}

.hero-cta {
  padding: 0.75rem 1.25rem;
  background-color: #faf9fa;
  color: #242027 !important;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block;
}

.hero-cta:hover {
  background-color: #faf9faeb;
}

.hero-image {
  flex: 1;
  text-align: right;
  max-width: 260px;
  display: flex;
  align-items: center;
  justify-content: end;
}

.hero-image img {
  max-width: 75%;
  height: auto;
  border-radius: 50%;
}

.projects {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.projects h2 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0 0 5rem 0;
  text-align: center;
  font-family: "Hind", "Roboto", "Arial", serif;
  position: relative;
}

.projects h2::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #faf9fa;
  padding: 2px 26px;
}

.projects-container {
  border: 1px solid #000000;
  border-radius: 10px;
}

/* Details */
details {
  box-sizing: border-box;
  overflow: hidden;
}

summary {
  outline: none;
  padding: 1.5rem;
  display: flex;
  color: #fff;
  position: relative;
  cursor: pointer;
  z-index: 10;
  background-color: #353239;
}

summary img {
  margin-right: 16px;
  border-radius: 50%;
}

summary:hover {
  background-color: #2e2a31;
}

.summary-dark {
  background-color: #2e2a31;
}

.summary-dark:hover {
  background-color: #242027;
}

details .content {
  /* animation: details-show 0.5s ease-in-out; */
  z-index: 1;
  color: #fff;
  margin-top: 0%;
  opacity: 1;
  padding: 1.5rem;
}

details .content p {
  margin: 0.5rem 0;
}

/* @keyframes details-show {
  from {
    margin-top: -30%;
    opacity: 0;
  }

  to {
    margin-top: 0%;
    opacity: 1;
  }
} */

/* Open and close icon animation */
details summary::before {
  position: absolute;
  content: "×";
  color: #fff;
  font-size: 1.5rem;
  top: 50%;
  left: unset;
  right: 1.5rem;
  line-height: 0;
  transform: rotate(45deg);
}

details[open] summary:before {
  animation: details-x 0.5s ease-in-out;
  transform: rotate(0deg);
}

@keyframes details-x {
  from {
    transform: rotate(45deg);
  }

  to {
    transform: rotate(0deg);
  }
}

.first-project {
  border-radius: 10px 10px 0 0;
}

.last-project {
  border-radius: 0 0 10px 10px;
}

.dttp-gradient {
  background-image: linear-gradient(180deg, transparent, #30e0611a);
}

.cuch-gradient {
  background-image: linear-gradient(180deg, transparent, #0566911a);
}

.kaviarne-gradient {
  background-image: linear-gradient(180deg, transparent, #d67d1b1a);
}

.zssk-gradient {
  background-image: linear-gradient(180deg, transparent, #ff671f1a);
}

.profesia-gradient {
  background-image: linear-gradient(180deg, transparent, #fbae171a);
}

.project-link {
  color: #faf9fa;
  margin: 8px 0;
  display: block;
}
details .content ul li {
  list-style-position: inside;
}

.contact-container {
  max-width: 650px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact h2 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 12rem 0 5rem 0;
  text-align: center;
  font-family: "Hind", "Roboto", "Arial", serif;
  position: relative;
}

.contact h2::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #faf9fa;
  padding: 2px 26px;
}

.contact p {
  text-align: left;
  margin-bottom: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: end;
}

.form-label-email {
  width: 100%;
}

.form-input-email {
  width: 100%;
  height: 35px;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid #2e2a31;
  outline: none;
  padding: 10px;
  background-color: #2e2a31;
  color: #faf9fa;
}

.form-label-text {
  width: 100%;
}

.form-input-text {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #2e2a31;
  outline: none;
  padding: 10px;
  background-color: #2e2a31;
  color: #faf9fa;
}

.form-button {
  padding: 0.5rem 1rem;
  background-color: #242027;
  color: #faf9fa !important;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  outline: none;
  border: 0px;
  position: relative;
  right: 0;
  margin-top: 1rem;
}

.form-button:hover {
  cursor: pointer;
  background-color: #000000;
}

.completed-text {
  width: 100%;
  text-align: center;
  font-weight: 900;
}

.links-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.links h2 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 12rem 0 5rem 0;
  text-align: center;
  font-family: "Hind", "Roboto", "Arial", serif;
  position: relative;
}

.links h2::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #faf9fa;
  padding: 2px 26px;
}

.link-button {
  padding: 0.75rem 1.25rem;

  color: #fff !important;
  text-decoration: none;
  border-radius: 50%;
  font-weight: 600;
}

.cta:hover {
  background-color: #faf9fa;
}

.links-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-direction: row;
}

.cta-secondary {
  background-color: #242027;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
}

.cta-secondary:hover {
  background-color: #000000;
  cursor: pointer;
}

.footer {
  margin-top: 12rem;
  padding: 0 2rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-link {
  font-size: 14px;
  display: inline-block;
  color: #faf9fa;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 12px;
  margin-bottom: 12px;
}

.privacy-page {
  max-width: 1100px;
  padding: 1rem 2rem 1rem 2rem;
  margin: 0 auto;
}

.privacy-page li {
  list-style-position: inside;
}

.privacy-page h1 {
  margin-top: 1rem;
}

.privacy-page h2 {
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .navbar,
  .cta-button {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    flex-direction: column;
    margin: 4rem auto 0rem auto;
    align-items: flex-start;
  }

  .hero-content,
  .hero-image {
    width: 100%;
  }

  .projects {
    margin-top: 8rem;
  }

  .projects-container {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .hero-image {
    justify-content: flex-start;
  }

  .hero-image img {
    margin-top: 4rem;
    max-width: 72%;
  }

  .contact h2 {
    margin: 8rem 0 5rem 0;
  }

  .links h2 {
    margin: 8rem 0 5rem 0;
  }

  details summary::before {
    display: none;
  }
}
