@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #90b9bb;
  --secondary-color: #509eba;
  --text-dark: #0f172a;
  --text-light: #94a3b8;
  --extra-light: #e2e8f0;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Merriweather", serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--header-font);
  text-align: center;
  color: var(--text-dark);
}

.section__subheader {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-align: center;
}

.section__subheader::before {
  position: absolute;
  content: "";
  left: 50%;
  top: -3rem;
  height: 2rem;
  width: 2px;
  background-color: var(--secondary-color);
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

.header {
  background-image: url("assets/header.jpg");
  background-position: center center;
  height: 845px; 
  background-size: cover;
  background-repeat: no-repeat;
}

nav {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo a {
  position: relative;
  padding: 2rem 1rem;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--white);
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.link a {
  padding: 5px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.link a:hover {
  color: var(--secondary-color);
}

.header__container {
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.header__content {
  padding: 5rem 0;
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-family: var(--header-font);
  color: var(--white);
}

.header__content .btn {
  position: relative;
  padding: 1rem 2rem;
  margin-right: 2rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--secondary-color);
  cursor: pointer;
}

.header__content a {
  font-size: 1rem;
  color: var(--white);
}

.header__content a:hover {
  color: var(--white);
}

.header__image img {
  max-width: 450px;
  margin: auto;
}

.about__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  background-color: var(--secondary-color)
}

.about__content {
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
}

.about__content h3 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-family: var(--header-font);
  color: var(--white);
}

.about__content p {
  font-size: 1rem;
  color: var(--white);
  margin-right: 200px;
  
}

.about__image img {
  max-width: 450px;
  margin: auto;
  padding: 2rem;
}

.about__content .btn {
  position: relative;
  padding: 1rem 2rem;
  margin-right: 2rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  background-color: var(--white);
  cursor: pointer;
  max-width: 150px;
  top: 10px;
}

.about__content a {
  font-size: 1rem;
  color: var(--secondary-color);
}

.academics__content h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-family: var(--header-font);
  color: var(--white);
}

.academics__content p{
  font-size: 1rem;
  color: var(--white);
  margin-right: 10px;
  text-align: justify;
}

.resume__container {
  display: grid;
  align-items: center;
  background-color: var(--white);
  width: 100%;
  max-width: 100vw;
  padding: 2rem;
}

.resume__content {
  width: 100%;
}

.resume__content h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-family: var(--header-font);
  color: var(--secondary-color);
  text-align: center;
}

.blogs__container {
  background-color: var(--white);
  min-width: 100vw;
  padding: 50px;
}

.blogs__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.blogspage__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.blogs__card {
  overflow: hidden;
  border: 2px solid var(--extra-light);
  border-radius: 10px;
  margin-bottom: 2rem;
}

.blogs__content {
  padding: 1rem;
  background-color: var(--white);
}

.blogs__content h5 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.blogs__content h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--text-dark);
}

.blogs__content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.blogs__content a {
  font-size: 0.9rem;
  color: var(--text-light);
}

.blogs__content a:hover {
  color: var(--secondary-color);
}

.blog-image {
  float: left;
  margin-right: 1rem; 
  margin-bottom: 1rem; 
  width: 150px;
  height: auto;
}


.btn {
  display: inline-block;
  padding: 1rem 2rem;
  margin-right: 2rem;
  margin-top: 1rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--secondary-color);
  cursor: pointer;
  text-decoration: none;
}

.btn a {
  color: inherit;
  text-decoration: none;
}

.footer {
  background-color: var(--secondary-color);
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__col h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--white);
}

.footer__col p {
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--white);
}

.footer__col form {
  margin-bottom: 1rem;
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
}

.footer__col input {
  width: 100%;
  padding: 0.75rem 1rem;
  outline: none;
  border: none;
  font-size: 1rem;
  background-color: var(--white);
}

.footer__col button {
  padding: 0.75rem 1rem;
  outline: var(--white);
  border: none;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--secondary-color);
}

.footer__socials {
  display: flex;
  align-items: center;
}

.footer__socials a {
  padding: 5px 10px;
  font-size: 1rem;
  color: var(--white);
  transition: 0.3s;
}

.footer__socials a:hover {
  color: var(--white);
  background-color: var(--secondary-color);
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--white);
}

.footer__col:nth-child(3) a {
  display: block;
  margin-bottom: 1rem;
  color: var(--white);
  transition: 0.3s;
}

.footer__col:nth-child(3) a:hover {
  color: var(--secondary-color);
}

.footer__bar {
  font-size: 0.9rem;
  padding: 1rem;
  color: var(--white);
  text-align: center;
}

@media (width < 900px) {
  .nav__links {
    gap: 1rem;
  }

  .header__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .header__image {
    grid-area: 1/1/2/2;
  }

  .header__content {
    text-align: center;
  }

  .blogs__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 4rem;
  }
}

@media (width < 600px) {
  .nav__links {
    display: none;
  }

  .services__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .projects__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .projects__card:nth-child(even) {
    transform: translateY(0);
  }

  .blogs__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(1, 1fr);
  }
}

