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

:root {
  --primary-color: #0f9d8a;
  --secondary-color: #b66a12;
  --dark-color: #102a43;
  --text-color: #333333;
  --light-text: #59636e;
  --background-color: #fffaf0;
  --white: #ffffff;
  --border-color: #ead8b8;
  --shadow: 0 6px 20px rgba(70, 49, 25, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  background: var(--background-color);
  color: var(--text-color);
}

/* Header and Navbar */

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 6.5rem;
  padding: 1.5rem 8%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--dark-color);
  font-size: 2rem;
  font-weight: 700;
}

header .logo i {
  color: var(--primary-color);
}

header .logo:hover {
  color: var(--secondary-color);
}

header .navbar ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

header .navbar ul li a {
  position: relative;
  color: var(--dark-color);
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

header .navbar ul li a::after {
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 0;
  height: 0.2rem;
  background: var(--primary-color);
  content: "";
  transition: width 0.3s ease;
}

header .navbar ul li a:hover,
header .navbar ul li a.active {
  color: var(--primary-color);
}

header .navbar ul li a:hover::after,
header .navbar ul li a.active::after {
  width: 100%;
}

#menu {
  display: none;
  color: var(--dark-color);
  font-size: 2.6rem;
  cursor: pointer;
}

/* Main content */

main {
  min-height: 100vh;
  padding-top: 8rem;

  background-image:
    linear-gradient(
      rgba(5, 18, 28, 0.72),
      rgba(7, 25, 37, 0.76)
    ),
    url("../assets/images/educationbg.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.education,
.certifications {
  width: 100%;
  min-height: auto;
  padding: 6rem 8%;
}

.education {
  position: relative;
  background: transparent;
}

.heading {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--dark-color);
  font-size: 3.5rem;
  font-weight: 800;
}

.heading i {
  margin-right: 0.8rem;
  color: var(--primary-color);
}

.heading span {
  color: var(--secondary-color);
}

.quote {
  max-width: 75rem;
  margin: 0 auto 4rem;
  text-align: center;
  color: var(--light-text);
  font-size: 1.6rem;
  line-height: 1.8;
}

/* Education cards */

.box-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 110rem;
  margin: 0 auto;
}

.education-card {
  display: grid;
  grid-template-columns: minmax(26rem, 35%) 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.education-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}


.education-card .image {
  width: 100%;
  min-height: 32rem;
  overflow: hidden;
  background: #eeeeee;
}

.education-card .image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 32rem;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.education-card:hover .image img {
  transform: scale(1.04);
}

.education-card .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.education-card .content h2 {
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-size: 2.4rem;
  line-height: 1.4;
}

.education-card .content h3 {
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
}

.education-card .content h3 a {
  color: var(--primary-color);
}

.education-card .content h3 a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.education-card .location,
.education-card .gpa,
.education-card .date {
  margin-bottom: 0.8rem;
  color: var(--light-text);
  font-size: 1.5rem;
  line-height: 1.6;
}

.education-card .gpa {
  color: #0b7a35;
  font-weight: 600;
}

.education-card .date {
  color: var(--secondary-color);
  font-weight: 600;
}

.coursework {
  margin-top: 1.5rem;
}

.coursework h4 {
  margin-bottom: 1rem;
  color: var(--dark-color);
  font-size: 1.7rem;
}

.coursework ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
}

.coursework ul li {
  padding: 0.7rem 1.1rem;
  background: #ede9ff;
  border-radius: 2rem;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 500;
}

/* Certifications */

.certification-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(28rem, 1fr));
  gap: 2rem;
  max-width: 100rem;
  margin: 4rem auto 0;
}

.certification-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.certification-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.13);
}

.certification-card > i {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  background: var(--primary-color);
  border-radius: 50%;
  color: var(--white);
  font-size: 2.8rem;
}

.certification-card h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-size: 1.7rem;
  line-height: 1.4;
}

.certification-card p {
  color: var(--light-text);
  font-size: 1.4rem;
}

/* Back button */

.back-button {
  display: flex;
  justify-content: center;
  padding: 1rem 2rem 6rem;
  background: var(--white);
}

.back-button a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2rem;
  background: var(--primary-color);
  border-radius: 0.6rem;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.back-button a:hover {
  background: var(--secondary-color);
  transform: translateY(-0.2rem);
}

/* Footer */

.footer {
  padding: 4rem 8% 2rem;
  background: #00012b;
  color: var(--white);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: 115rem;
  margin: 0 auto;
}

.footer-content h3 {
  margin-bottom: 1.4rem;
  font-size: 1.9rem;
}

.footer-content p {
  max-width: 45rem;
  color: #d5d5e0;
  font-size: 1.4rem;
  line-height: 1.8;
}

.footer-content > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.footer-content > div:nth-child(2) a {
  width: fit-content;
  margin-bottom: 0.8rem;
  color: #d5d5e0;
  font-size: 1.4rem;
}

.footer-content > div:nth-child(2) a:hover {
  color: #ffd900;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--white);
  border-radius: 50%;
  color: var(--dark-color);
  font-size: 1.8rem;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.social-links a:hover {
  background: #ffd900;
  color: var(--dark-color);
  transform: translateY(-0.3rem);
}

.copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  color: #d5d5e0;
  font-size: 1.3rem;
}



/* Responsive design */

@media screen and (max-width: 1050px) {
  header {
    padding: 1.5rem 4%;
  }

  header .navbar ul {
    gap: 1.6rem;
  }

  header .navbar ul li a {
    font-size: 1.4rem;
  }

  .education,
  .certifications {
    padding-right: 5%;
    padding-left: 5%;
  }
}

@media screen and (max-width: 850px) {
  #menu {
    display: block;
  }

  header .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 75%;
    min-height: calc(100vh - 6.5rem);
    padding: 2rem;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: -4px 8px 15px rgba(0, 0, 0, 0.12);
    transition: right 0.3s ease;
  }

  header .navbar.nav-toggle {
    right: 0;
  }

  header .navbar ul {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  header .navbar ul li a {
    display: block;
    padding: 1.2rem;
    background: var(--background-color);
    border-radius: 0.5rem;
    font-size: 1.6rem;
  }

  header .navbar ul li a::after {
    display: none;
  }

  .education-card {
    grid-template-columns: 1fr;
  }

  .education-card .image {
    min-height: 26rem;
  }

  .education-card .image img {
    height: 26rem;
    min-height: auto;
  }

  .certification-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media screen and (max-width: 600px) {
  html {
    font-size: 56%;
  }

  header {
    padding: 1.3rem 5%;
  }

  header .logo {
    font-size: 1.8rem;
  }

  header .navbar {
    width: 100%;
  }


  .education,
  .certifications {
    padding: 4.5rem 1.5rem;
  }

  .heading {
    font-size: 2.8rem;
  }

  .quote {
    font-size: 1.5rem;
  }

  .education-card .content {
    padding: 2rem;
  }

  .education-card .content h2 {
    font-size: 2.1rem;
  }

  .education-card .image,
  .education-card .image img {
    height: 22rem;
    min-height: 22rem;
  }

  .certification-card {
    padding: 2rem;
  }

  .certification-card > i {
    width: 5rem;
    height: 5rem;
    font-size: 2.3rem;
  }

  .footer {
    padding: 4rem 2rem 2rem;
  }
 
}
 .social-links a i {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}
/* Navbar hover and active color */
header .navbar ul li a:hover,
header .navbar ul li a.active {
  color: #0f9d8a !important;
  border-bottom-color: #0f9d8a !important;
}

/* ===== CHALKBOARD EDUCATION THEME ===== */

/* Main Education heading */
.education .heading {
  color: #f8fafc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.education .heading i {
  color: #f2a93b;
}

.education .heading span {
  color: #f2a93b;
}

/* Education description */
.education .quote {
  color: #d6e0e8;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

/* Education cards */
.education-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(242, 169, 59, 0.4);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(242, 169, 59, 0.08);
}

.education-card:hover {
  transform: translateY(-6px);
  border-color: rgba(33, 184, 166, 0.65);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.36),
    0 0 22px rgba(33, 184, 166, 0.16);
}

/* Card text */
.education-card .content h2 {
  color: #102a43;
}

.education-card .content h3 a {
  color: #0f8f7f;
}

.education-card .content h3 a:hover {
  color: #086f64;
}

.education-card .location {
  color: #596774;
}

.education-card .gpa {
  color: #087f5b;
}

.education-card .date {
  color: #bd6f0e;
}

/* Coursework */
.coursework h4 {
  color: #102a43;
}

.coursework ul li {
  background: #fff3dc;
  border: 1px solid rgba(224, 142, 28, 0.35);
  color: #94540b;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.coursework ul li:hover {
  background: #f2a93b;
  color: #102a43;
  transform: translateY(-2px);
}

/* Certifications heading */
.certifications {
  background: transparent;
}

.certifications .heading {
  color: #f8fafc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.certifications .heading i,
.certifications .heading span {
  color: #f2a93b;
}

/* Certification cards */
.certification-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(242, 169, 59, 0.38);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    0 0 14px rgba(242, 169, 59, 0.07);
}

.certification-card:hover {
  transform: translateY(-5px);
  border-color: rgba(33, 184, 166, 0.6);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(33, 184, 166, 0.14);
}

.certification-card > i {
  background: linear-gradient(
    135deg,
    #f2a93b,
    #b9680b
  );
}

.certification-card h3 {
  color: #102a43;
}

.certification-card p {
  color: #596774;
}

/* Back button */
.back-button {
  background: transparent;
}

.back-button a {
  background: linear-gradient(
    135deg,
    #14a38f,
    #08786b
  );
  box-shadow: 0 8px 20px rgba(15, 157, 138, 0.35);
}

.back-button a:hover {
  background: linear-gradient(
    135deg,
    #22c5ad,
    #0a6e64
  );
  transform: translateY(-3px);
}

/* ===== CONSISTENT SCROLL-TO-TOP BUTTON ===== */

#scroll-top {
  position: fixed;
  right: 2rem;
  bottom: -8rem;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 4.8rem;
  height: 4.8rem;
  padding: 0;

  background: #168be3;
  border: 2px solid #60baff;
  border-radius: 50%;

  box-shadow:
    0 7px 18px rgba(22, 139, 227, 0.35),
    0 0 14px rgba(22, 139, 227, 0.18);

  opacity: 0;

  transition:
    bottom 0.4s ease,
    opacity 0.4s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

#scroll-top.active {
  bottom: 2rem;
  opacity: 1;
}

#scroll-top:hover {
  background: #0876c9;
  transform: translateY(-4px);
}

/* White upward chevron */

.scroll-chevron {
  position: relative;
  width: 2rem;
  height: 1.2rem;
}

.scroll-chevron::before,
.scroll-chevron::after {
  position: absolute;
  top: 0.4rem;

  width: 1.35rem;
  height: 0.4rem;

  background: #ffffff;
  border-radius: 1rem;

  content: "";
}

.scroll-chevron::before {
  left: 0;
  transform: rotate(-45deg);
}

.scroll-chevron::after {
  right: 0;
  transform: rotate(45deg);
}