@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap");

:root {
  --primary-color: #2105ae;
  --secondary-color: #109164;
  --background-color: #add8e6;
}

* {
  font-family: "Merriweather", serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background-color);
}

a {
  text-decoration: none;
  transition: 0.3s;
}
h3 {
  color: var(--primary-color);
  font-size: clamp(1rem, 6vw, 2rem);
  padding: 2rem;
  text-transform: capitalize;
}
h4 {
  color: var(--primary-color);
  font-size: clamp(1rem, 6vw, 1.5rem);
  text-transform: capitalize;
}

section {
  padding: 6rem 1rem;
  text-align: center;
}

/*  HEADER */
header {
  background-color: var(--background-color);
  width: 100%;
  position: fixed;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  text-transform: uppercase;
  font-size: 1.8rem;
  color: var(--primary-color);
  font-weight: 700;
}

.navigation {
  display: flex;
  gap: 1.5rem;
}

.navigation a {
  color: var(--primary-color);
  font-weight: bold;
}

.navigation a:hover {
  color: var(--secondary-color);
  border-bottom: dotted 3px;
}

/*  HERO */
.main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url(../img/noura2.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 6rem 1rem;
}

.main h2 {
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.main p {
  color: var(--primary-color);
  font-size: clamp(1rem, 3vw, 1.4rem);
  margin: 10px auto;
  font-weight: 900;
}

.main h3 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

/*  BUTTON */
.main-button {
  display: inline-block;
  background-color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 7px;
  color: #fff;
  font-weight: 600;
  margin-top: 15px;
}

.main-button:hover {
  transform: scale(0.95);
}
.main-button a {
  color: #fff;
}

.social-icon {
  margin-top: 15px;
}

.social-icon a {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 0 10px;
}

.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/*  CARD */
.card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/*  PROJECT */
.projects {
  background-color: #000;
}

.project-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.4s;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/*  FOOTER */
.footer {
  background-color: #000;
  color: #fff;
  padding: 2em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-title {
  font-size: 1.2rem;
}
.footer-title span {
  color: var(--primary-color);
}

.menue-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menue-icon {
    display: block;
  }

  .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-color);
    max-height: 0;
    overflow: hidden;
    transition: 0.4s;
  }

  .navigation.active {
    max-height: 300px;
  }

  .navigation a {
    color: #fff;
    padding: 10px;
  }
  .navigation a:hover {
    color: #000;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .main h2 {
    font-size: 2rem;
  }

  .main h3 {
    font-size: 1.3rem;
  }

  .project-img img {
    height: 150px;
  }
}
