/* Import from Google fonts */
@import url("https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap");

:root {
  --main-color: #1a3b94;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: "Arimo", sans-serif;
  background: #ffffff;
  color: #1f1f1f;
  line-height: 1.6;
  &.dark-mode {
    background: #121212;
    color: #f5f5f5;
    header {
      background: rgba(18, 18, 18, 0.95);
      nav a {
        color: #f5f5f5;
      }
    }
    .project-card,
    .edu-card,
    .skill {
      background: #1e1e1e;
      color: #f5f5f5;
      box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
    }
  }
}
section {
  padding: 4rem 10%;
  box-shadow: 0 -8px 41px -1px #1a3b9422 inset;
}
/* Special heading style */
h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  &::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--main-color);
    bottom: -8px;
    left: 0;
    border-radius: 2px;
  }
}
/* Buttons styles */
.btn-container {
  display: flex;
  .btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: var(--main-color);
    color: #fff;
    text-decoration: none;
    margin-right: 1rem;
  }
  .btn-outline {
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
  }
}
.theme-btn {
  background: transparent;
  border: 3px solid var(--main-color);
  border-right: none;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  position: fixed;
  top: 100px;
  right: 0;
  padding: 10px;
}
.back-to-top {
  background: #ffffff25;
  border: 3px solid var(--main-color);
  color: var(--main-color);
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  font-size: 1.25rem;
  font-weight: bolder;
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  &:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  }
}
/* Header Style */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 10%;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 100;
  .logo {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--main-color);
  }
  .menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
  }
  .navbar {
    a {
      margin-left: 2rem;
      text-decoration: none;
      font-weight: 500;
      color: #333;
      &:hover {
        color: var(--main-color);
      }
    }
  }
}
/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 10% 4rem;
  gap: 2rem;
  .hero-text {
    flex: 1;
    h1 {
      font-size: 3rem;
      margin-bottom: 1rem;
    }
    p {
      max-width: 500px;
      margin-bottom: 2rem;
    }
  }
  .hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    img {
      width: 350px;
      border-radius: 20px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
  }
}
/* About section */
.about-content {
  display: flex;
  gap: 8rem;
  align-items: center;
  img {
    width: 250px;
    border-radius: 15px;
  }
  p {
    flex: 1;
  }
}
/* Education section */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  .edu-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    h4 {
      margin-bottom: 0.3rem;
      color: var(--main-color);
    }
    span {
      display: block;
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 0.5rem;
    }
  }
}
/* Skills section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  .skill {
    background: #f4f6fb;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
  }
}
/* Projects section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  .project-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }
    .content {
      padding: 1rem;
      h4 {
        margin-bottom: 0.5rem;
      }
      p {
        margin-bottom: 0.5rem;
      }
    }
    .btn-container {
      display: flex;
      justify-content: space-between;
    }
  }
}
.project-card,
.edu-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  &:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
}
/* Contact section */
.contact-info {
  display: grid;
  gap: 0.5rem;
  p {
    margin: 5px 0;
    i {
      color: var(--main-color);
      font-size: 1.3rem;
      margin-right: 10px;
    }
    a {
      color: var(--main-color);
      text-decoration: none;
    }
  }
}
footer {
  background-color: var(--main-color);
  text-align: center;
  padding: 20px;
  font-size: 20px;
  color: #f4f6fb;
}
/* Media queries */
@media (max-width: 768px) {
  header {
    .navbar {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 70px;
      right: 10%;
      background: #fff;
      padding: 1rem;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      border-radius: 8px;
      &.show {
        display: flex;
      }
      a {
        margin: 0.5rem 0;
        display: block;
      }
    }
    .menu-icon {
      display: block;
    }
  }
}
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    padding-top: 6rem;
    text-align: center;
    .hero-img {
      display: none;
    }
    .btn-container {
      justify-content: center;
    }
  }
  .about-content {
    flex-direction: column;
    gap: 4rem;
    text-align: center;
  }
  .btn-container {
    flex-wrap: wrap;
    gap: 20px;
    .btn {
      width: 80%;
      text-align: center;
    }
  }
  .projects-grid {
    .project-card {
      .content {
        display: flex;
        flex-direction: column;
        text-align: center;
      }
      .btn-container {
        justify-content: center;
      }
    }
  }
}
