/* ==== VARIABLES ==== */
:root {
  /* Primary brand colors */
  --cooprate-color: hsl(213, 100%, 35%);
  --cooprate-color-hover: hsl(213, 71%, 67%);
  --accent-color: hsl(0, 80%, 55%);

  /* Text color */
  --text-color-60: hsl(220, 9%, 20%);
  --text-color-30: hsl(222, 47%, 11%);
  --text-color-10: hsl(220, 4%, 50%);

  /* background  color */
  --bg-color: hsl(210, 25%, 98%);
  --card-bg: hsl(0, 0%, 100%);

  --border-color: hsl(220, 13%, 91%);
  --input-bg: hsl(220, 13%, 91%);
  --ring-color: hsl(224, 76%, 50%);

  /* Gradients */
  --linear-gradient: linear-gradient(
    to right,
    hsl(270, 100%, 70%),
    hsl(330, 80%, 65%),
    hsl(210, 100%, 70%)
  );
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color-60);
  line-height: 1.6;
}

/* ==== REUSABLE CLASSES==== */
.section-container {
  padding: 40px 10%;
  background-color: var(--bg-color);
}

.section-header {
  text-align: center;
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 600;
}
.section-header:after {
  content: "";
  display: block;
  height: 6px;
  width: 100%;
  background-color: var(--cooprate-color);
  margin-top: 3px;
  border-radius: 3px;
}

/* ==== NAVBAR ==== */
nav.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: var(--card-bg);
  color: var(--text-color-60);
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--cooprate-color);
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  transition: transform 0.3s ease;
}

.nav-links li a {
  color: var(--text-color-60);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--cooprate-color);
  border-bottom: 2px solid var(--cooprate-color);
}

/* ==== MOBILE SCREEN MENU ==== */
/* mobile screen nav at the top right */
.mobile-nav {
  display: none;
}

/* ==== MOBILE MENU ==== */
@media (max-width: 768px) {
  /* this block focuses on making the sidebar to be vissible in smaller devices while hiding the navlinks  */
  .nav-links {
    display: none;
  }
  .mobile-nav {
    display: flex;
    width: 40px;
  }

  .mobile-nav-links {
    position: fixed;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 40px;
    transition: 0.3s ease;
    top: 70px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;

    transition: transform 0.3s ease;
  }

  .mobile-nav-link {
    width: 100%;
    height: 40px;
    border-radius: 6px 0 0 6px;
    background-color: var(--cooprate-color);
    list-style: none;
  }
  .mobile-nav-link a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
  }
}

/* ==== HERO ==== */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 0 10px #4ecdc4, 0 0 20px #349090;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 4px solid var(--border-color);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.highlight {
  background-image: var(--linear-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-description-text {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
  align-items: center;
}

.social-icons a {
  font-size: 24px;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  padding: 5px;
  align-items: center;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: var(--ring-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  background-color: var(--cooprate-color);
}
.social-icons a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==== ABOUT ==== */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.about-overview {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
}

.about-summary ul {
  list-style: none;
  margin-top: 15px;
}

.about-summary li {
  font-size: 15px;
  padding: 5px;
  border-bottom: 1.5px solid var(--cooprate-color);
}

.about-action {
  margin-top: 10px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.about-action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  padding: 10px;
  width: 50%;
  border-radius: 3px;
  border: 1px solid var(--cooprate-color);
  text-decoration: none;
  transition: 0.3s ease;
}
.download-cv {
  color: var(--bg-color);
  background-color: var(--cooprate-color);
  &:hover {
    color: var(--cooprate-color);
    background-color: var(--bg-color);
  }
}
.hire-me {
  color: var(--cooprate-color);
  background-color: var(--bg-color);
  &:hover {
    color: var(--bg-color);
    background-color: var(--cooprate-color);
  }
}

/* ===about details === */
.about-details {
  flex: 2;
  min-width: 300px;
}
.about-details-header {
  text-align: center;
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: 5px;
  font-weight: 500;
}
.about-details-header:after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--cooprate-color);
  margin-top: 1px;
}

/* ===SKILLS, EDUCATION AND  EXPERIENCE  */

.about-details-content {
  width: 100%;
}
/* skills section */

.skills {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin-top: 20px;
}
.skill-item {
  flex: 0 0 100%;
  width: 100%;
}
.skill-item h5 {
  line-height: 30px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-color-30);
  text-transform: capitalize;
  margin: 0;
}
.skill-item .progress {
  background-color: var(--card-bg);
  height: 5px;
  border-radius: 2.5px;
  width: 100%;
  position: relative;
}
.skill-item {
  margin-bottom: 15px;
}
.skill-item .progress .progress-in {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 4px;
  background-color: var(--cooprate-color);
}
.skill-item .skill-percent {
  line-height: 30px;
  color: var(--text-color-10);
  position: absolute;
  right: 0;
  top: -30px;
  font-weight: 400;
}

.about-details-content .row-education-experience {
  display: flex;
  justify-content: center;
  width: 100%;
}
.education,
.experience {
  display: flex;
  flex-direction: column;

  flex: 0 0 50%;
  max-width: 50%;
  margin-top: 10px;
  padding-left: 5px;
  padding-right: 5px;
  position: relative;
}

.about-details-content h3.title {
  text-align: start;
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--cooprate-color);
}
.about-details-content .timeline-box {
  display: flex;
  flex: 0 0 100%;
  max-width: 100%;
  flex-wrap: wrap;
  position: relative;
}
.about-details-content .timeline {
  background-color: var(--card-bg);
  padding: 30px 15px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 100%;
  position: relative;
}
.about-details-content .timeline .timeline-item {
  position: relative;
  padding-left: 37px;
  padding-bottom: 50px;
}
.about-details-content .timeline .timeline-item:last-child {
  padding-bottom: 50px;
}
.about-details-content .timeline .timeline-item::before {
  content: "";
  width: 1px;
  position: absolute;
  height: 100%;
  left: 7px;
  top: 0;
  background: var(--cooprate-color);
}
.about-details-content .timeline .circle-dot {
  position: absolute;
  left: 0px;
  top: 0px;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: var(--cooprate-color);
}
.about-details-content .timeline .timeline-date {
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-color-30);
}

.about-details-content .timeline .timeline-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: capitalize;
  color: var(--text-color-60);
}
.about-details-content .timeline .timeline-text {
  font-size: 16px;
  line-height: 25px;
  color: var(--text-color-10);
  margin: 0;
}
@media (max-width: 1000px) {
  .about-details-content .row-education-experience {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .experience,
  .education {
    display: flex;

    max-width: 100%;
  }
}
/* ===SKILLS, EDUCATION AND  EXPERIENCE ENDS  */

/* ===== OVERVIEW  ==== */
.overview-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50vh;
}

.overview-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--card-bg);
  color: var(--text-color-30);
  flex-basis: 30%;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
  height: 90%;
}

.overview-card:hover {
  transform: translateY(-6px);
}

/* Different style for the middle card */
.middle-card {
  background: var(--cooprate-color);
}

/* Resize and layout only on large screens */
@media (max-width: 800px) {
  .overview-container {
    width: 100%;
    display: flex;
    flex-basis: 100%;
    height: auto;
    flex-direction: column;
    padding: 5px;
  }
  .overview-card {
    display: flex;
    height: auto;
    flex-basis: 100%;
    width: 100%;
  }
}
/* ===== OVERVIEW ENDS ==== */

/* ==== SERVICES ==== */
.services-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
  background: var(--card-bg);
  color: var(--text-color-30);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  background: var(--cooprate-color);
  padding: 10px;
  border-radius: 50%;
  margin-bottom: 10px;
}
/* ==== SERVICES ENDS ==== */
/* ==== PORTFOLIO ==== */
.portfolio-grid {
  /*3 card column display*/
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
  background: var(--card-bg);
  color: var(--text-color-30);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: 0.3s ease;
  padding: 12px;
}

.project-card:hover {
  transform: translateY(-5px);
}
.project-card-image {
  border-radius: 8px;
}
.project-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.project-card h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.technologies-used {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  list-style: none;
}

.technology {
  background: var(--accent-color);
  color: var(--text-color-60);
  font-size: 0.6rem;
  padding: 4px 6px;
  border-radius: 3px;
}

.links {
  display: flex;
  gap: 5px;

  width: 100%;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  padding: 6px;
  border: 1px solid var(--cooprate-color);
  border-radius: 3px;
  text-decoration: none;
}
.live-demo {
  background-color: var(--cooprate-color);
  color: var(--bg-color);
  &:hover {
    background-color: var(--card-bg);
    color: var(--cooprate-color);
  }
}
.github-link {
  background-color: var(--card-bg);
  color: var(--cooprate-color);
  &:hover {
    background-color: var(--cooprate-color);
    color: var(--bg-color);
  }
}
/* ==== PORTFOLIO ENDS==== */
/* ==== CONTACT SECTION ==== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  color: var(--text-color-60);
  margin-top: 2rem;
}

.contact-form {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 15px;
  padding: 10px;
  background: var(--input-bg);
  color: var(--text-color-60);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
}

.submit-btn {
  background: var(--cooprate-color);
  color: var(--text-color-60);
  font-weight: bold;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}
.submit-btn:hover {
  background: var(--cooprate-color-hover);
  color: var(--text-color-10);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 14px;
}

.contact-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Frequently Asked Questions  */
.faq-section h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--cooprate-color);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  color: var(--accent-color);
  text-align: left;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 5px 0;
}

.faq-answer {
  display: flex;
  align-items: center;
  padding-top: 5px;
  font-weight: 500;
  color: var(--text-color-10);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* ==== CONTACT SECTION ENDS ==== */

/* ==== FOOTER ==== */
.footer {
  text-align: center;
  padding: 20px 10%;
  background-color: var(--card);
  color: var(--text-color-10);
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  line-height: 1.6;
}
.connect-footer {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 250px 1fr;
  align-items: center;
  justify-content: center;
}
.connect-footer .blank-content {
  content: "";
  display: flex;
  height: 2px;
  border-radius: 1.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: var(--cooprate-color);
}
.footer .footer-connect {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-direction: column;
}
.footer-connect p {
  font-size: 1.2rem;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.footer-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--cooprate-color);
  padding: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 24px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: var(--ring-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.footer-links a:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.footer-links a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .about-content,
  .contact .content-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 30px 7%;
  }
}
@media (max-width: 568px) {
  .section-container {
    padding: 20px 5%;
  }
}
