@import url("https://fonts.googleapis.com/css2?family=Caveat&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,500;1,600;1,700;1,800;1,900&family=Sour+Gummy:wght@100..900&display=swap");
:root {
  --primary-color: #349ba6;
  --secondary-color: #004850;
  --background-color: #f2f2f2;
  --card-background-color: #ffffff;
  --link-color: #349ba6;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Sour Gummy", sans-serif; /* background-color: var(--background-color); */
}

a {
  text-decoration: none;
  color: var(--primary-color);
}
p {
  margin: 1rem 0;
}
ul {
  list-style: none;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--background-color);
}
.navbar ul {
  display: flex;
}
.navbar ul li {
  margin-right: 1rem;
}
.logo {
  font-size: 3rem;
  font-weight: bold;
  color: #349ba6;
}
/* Hero Section */

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  height: 80vh;
}

/* Main Section */
main {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  background-color: var(--background-color);
  padding-top: 3rem;
  /* height: 500px; */
}
.left-content,
.center-content,
.right-content {
  flex: 1;
  max-width: 300px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
main h4 {
  margin-bottom: 10px;
}

/* TEstimonials section */
.testimonials {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}
.testimonials h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}
.testimonial {
  background: var(--background-color);
  padding: 20px;
  margin: 15px 0;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer Section */
.main-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--background-color);
  color: #333;
  min-height: 100px;
  padding: 10px;
}
/* contact us page */
.contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100vh;
  padding-top: 50px;
}
.contact-wrapper {
  max-width: 370px;
}
.contact-wrapper h2 {
  color: var(--primary-color);
  text-align: center;
  font-size: 3rem;
}
form .form-item {
  margin: 10px 0;
}
.form-item input,
.form-item textarea {
  width: 100%;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  padding: 1rem;
}
.form-item input:focus,
.form-item textarea {
  outline: none;
  box-shadow: 0 0 4px rgba(0, 72, 80, 0.5);
}
form button {
  border: none;
  padding: 8px 24px;
  color: #fff;
  font-size: 1rem;
  background-color: var(--primary-color);
  border-radius: 7px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
form button:hover {
  background-color: var(--secondary-color);
}

/* Projects Section */
.projects {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  text-align: center;
}
.project-content {
  display: flex;
  justify-content: space-around;
  padding: 1.5rem;
  flex-wrap: wrap;
}

.items {
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.2s ease-in-out;
}
.items img {
  width: 100%;
  object-fit: cover;
}
.description a {
  display: block;
  margin-top: 0.5rem;
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
}
.description a:hover {
  text-decoration: underline;
}
.items:hover {
  transform: scale(1.02);
}
/* General Styling for Article Section */
.articles {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.articles h2 {
  font-size: 2rem;
  color: var(--primary-color);

  text-align: center;
  margin-bottom: 20px;
}

/* Individual Article Styling */
.article-item {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.article-item h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.article-item p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}
/* media queries */
@media (max-width: 480px) {
  header {
    flex-direction: column;
    padding: 0.5rem;
  }
  header .navbar {
    margin-top: 0.4rem;
  }
  .navbar ul li {
    margin-right: 0.5rem;
  }
  .hero {
    height: auto;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
  .hero article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .logo {
    font-size: 1.5rem;
  }
  main {
    flex-direction: column;
    padding: 10px;
  }
  /* .left-content,
  .center-content,
  .right-content {
    background: #fff;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
  } */
  /* Contact us */
  .contact-wrapper h2 {
    color: #349ba6;
    text-align: center;
    font-size: 1.5rem;
  }
  .form-item input,
  .form-item textarea {
    width: 75%;
    border: 1px solid #349ba6;
    border-radius: 5px;
    padding: 0.5rem;
  }
  form button {
    border: none;
    padding: 4px 12px;
    color: #fff;
    font-size: 0.75rem;
    background-color: #349ba6;
    border-radius: 7px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #121212;
    --text-color: #fff;
    --primary-color: #00c4b3;
    --secondary-color: #888888;
    --project-p-color: #333;
    --card-background-color: #2a2a2a;
    --link-color: #00c4b3;
  }

  body {
    background-color: var(--background-color);
    color: var(--text-color);
  }

  h1,
  h2,
  .testimonials h2 {
    color: var(--primary-color);
  }

  p,
  .article-item p {
    color: var(--text-color);
  }
  .description p,
  .description h3 {
    color: var(--project-p-color);
  }

  .card {
    background-color: var(--card-background-color);
    padding: 15px;
    border-radius: 8px;
  }

  a {
    color: var(--link-color);
  }

  a:hover {
    color: var(--secondary-color);
  }
}
