:root {
  --text-color: #1a1c20;
  --link-color: #4a76ee;
  --background-color: #eeeff1;
  --navbar-color : linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --body-color : linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --border-color : #000;
  --key-color : #000;
  --hover-color : white;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  line-height: 1.6;
  background: var(--body-color);
  color: var(--text-color);
  min-height: 100vh;
  display: block;
}

a {
  text-decoration: none;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0; 
  padding: 0 50px;
  height: 120px;
  background :var(--navbar-color);
  z-index :1000;   
  font-weight: 200;      
}

nav .left{
  display: flex;
  justify-content: center;
  align-items: center;
}
nav .left span{
  padding-top: 20px;
  font-size: 30px;
  font-weight: bold;
  padding-left: 10px;
}

.nav-logo {
    margin-top: 20px;
    width: 80px;
    height: auto;
    margin-right: 10px;
    padding-left: 0;
}
nav .right a {
  color: var(--text-color);
  margin: 0 10px;
}

nav .right a:last-child {
  color: var(--background-color);
  background-color: var(--link-color);
  padding: 5px 15px;
  border-radius: 5px;
}
.right1 span:hover {
  color: var(--link-color);
  font-weight: bold;
}
nav .right a:last-child:hover{
  color: black;
  font-weight: bold;
}


nav .right1 {
  position: relative;
  display: inline-block;
  color: var(--link-color); /* your link/text color */
}

nav .right1::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--link-color); /* underline color */
  transition: width 0.3s ease;
}

nav .right1:hover::after {
  width: 100%;
}


/* SECTION 1: Hero */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin: 20px 0;
  margin-bottom: 100px;
  gap: 40px;
}

.hero-section .text {
  flex: 5;
}

.hero-section .text h2 {
  font-size: 45px;
}
/*
.hero-section .text span{
  color: var(--link-color);
}*/

.hero-section .text .links {
  margin-top: 25px;
}

.hero-section .text .links a {
  display: inline-block;
  padding: 5px 10px;
  color: #4a76ee;
  border: 2px solid var(--link-color);
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: .1s;
}

.hero-section .text .links a:hover {
  color:var(--text-color);
  border: 2px solid var(--text-color);
  font-weight: bold;
}

.hero-section .headshot {
  flex: 2;
  display: flex;
  justify-content: right;
}

.hero-section .headshot img {
  width: 350px;
  border-radius:20%;
  height: 400px;
  margin-top: 25px ;
  
}

/* SECTION 2: Table */
.academics-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.academics-section h2 {
  text-align: center;
  font-size: 35px;
}

table {
  border: 1px solid var(--border-color);
  border-collapse: collapse;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  border: 1px solid var(--border-color);
  padding: 15px;
  /*background: rgba(255, 255, 255, 0.5);*/
}

table a{
  color: black;
}


th {
  background:linear-gradient(to bottom, #7fa4ec 20%, #9eb7dc 100%);
  color: var(--body-color);
  font-weight: 500;
  font-weight: bold;
}

tr:hover td {
  background: rgba(239, 240, 227, 0.823);
}

.course h2{
  text-align: left;
}



/* SECTION 4: Contact */
.contact-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.contact-section h2 {
  font-size: 35px;
}

.contact-section .group {
  display: flex;
  gap: 50px;
}

.contact-section .group .text {
  flex: 3;
  margin-top: 20px;
}

.contact-section .group form {
  flex: 3;
  display: flex;
  flex-direction: column;
}

.contact-section .group form input,
.contact-section .group form textarea {
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--link-color);
  background-color: transparent;
  padding: 10px;
  margin-bottom: 15px;
  outline: none;
  resize: none;
}

.contact-section .group form button {
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background-color: var(--link-color);
  border: none;
  height: 50px;
  cursor: pointer;
  transition: .1s;
}

.contact-section .group form button:hover {
  filter: brightness(.9);
}

@media (max-width: 768px) {
  table {
      display: block;
      overflow-x: auto;
  }
}

@media (max-width: 850px) {
  /* SECTION 1: Hero */
  .hero-section .text h2 {
    font-size: 35px;
  }
}

@media (max-width: 740px) {
  /* SECTION 1: Hero */
  .hero-section {
    flex-direction: column-reverse;
  }

  .hero-section .headshot img {
    width: 300px;
  }

  /* SECTION 3: Testimony */
  .testimony-section {
    text-align: center;
  }

  .testimony-section .group {
    flex-direction: column;
  }

  /* SECTION 4: Contact */
  .contact-section .group {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  /* NAVBAR */
  nav {
    padding: 0 20px;
  }

  nav .right a {
    font-size: 22px;
  }

  nav .right a:last-child {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
  }

  nav .right a span {
    display: none;
  }

  /* SECTION 1: Hero */
  .hero-section {
    padding: 0 20px;
  }

  .hero-section .text h2 {
    font-size: 30px;
  }

  /* SECTION 2: Skills */
  .academics-section {
    padding: 0 20px;
  }

  .academics-section .cells .cell span {
    font-size: 16px;
  }

  /* SECTION 3: Testimony */
  .testimony-section {
    padding: 0 20px;
  }

  /* SECTION 4: Contact */
  .contact-section {
    padding: 0 20px;
  }
}

