/* GENERAL */

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

* {
  margin: 0;
  padding: 0;
}

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

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

/* Logo then Name (Left Side) */
.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-container img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 2rem;
  font-weight: 400;
  color: rgb(53, 53, 53);
}

/* Maintain right-side nav */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #f7f7f7; /* Lighter grey */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: box-shadow 0.3s ease;
}



/* Responsive Behavior */


nav,
.nav-links {
  display: flex;
}

nav {
  display: flex;
  justify-content: space-between; /* Push left and right */
  align-items: center;
  padding: 18px 100px;
  height: auto;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: rgb(255,95,5);
  text-decoration: underline;
  text-underline-offset: 2.2rem;
  text-decoration-color: rgb(255, 95, 5);
}

p a:hover{
  color: rgb(255,95,5);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  text-decoration-color: rgb(255, 95, 5);
}

li a:hover{
  color: rgb(255,95,5);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  text-decoration-color: rgb(255, 95, 5);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding: 2rem 1rem; /* smaller padding */
  margin: 1rem 0;     /* tighter vertical spacing */
  min-height: auto !important;  /* override global heights */
  height: auto !important;      /* override #profile, #contact, etc. */
}


.section-container {
  display: flex;
}

/* Welcome Banner */
.course-welcome {
  text-align: center;
  margin: 2rem auto 3rem auto;
  padding: 1rem;
}

.welcome-line {
  font-size: 1.5rem;        /* smaller than main title */
  font-weight: 400;         /* normal weight */
  color: rgb(85, 85, 85);
  margin: 0;
}

.course-title {
  font-size: 3.5rem;        /* larger */
  font-weight: 300;         /* lighter weight */
  color: rgb(53, 53, 53);
  margin: 0.2rem 0 0.5rem 0;
}

/* Divider style */
.divider {
  width: 10%;
  border: 0;
  height: 4px;
  background: rgb(255, 95, 5);
  border-radius: 2px;
  margin: 0.5rem auto;
}



/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#research {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.details-container p {
  text-align: center;
  font-size: 10pt;
  line-height: 1.7;
}

.section-container {
  gap: 3rem;
  height: 70%;
  text-align: justify;
  line-height: 1.7;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-sub-title.text {
      font-size: 12pt;
      text-align: center;
      font-weight: 400;
      line-height: 1.6;
      color: rgb(85, 85, 85);
      font-family: 'Poppins', sans-serif;
    }

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */
/*
#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}
*/
/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

/* ============================= */
/* COURSE CONTENT SECTIONS       */
/* ============================= */

/* General section styling */
main section {
  padding: 0 1rem;
  margin: 2rem auto;
  max-width: 1000px;
}

main section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: rgb(53, 53, 53);
  text-align: left;
  border-bottom: 2px solid rgb(255, 95, 5);
  padding-bottom: 0.5rem;
}

main section h2 {
  font-size: 1.75rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  color: rgb(53, 53, 53);
}

main section p,
main section li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgb(85, 85, 85);
}

/* Course Info List */
#course-info ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

#course-info li {
  margin: 0.3rem 0;
  font-size: 1.05rem;
}

/* Schedule / Grading */
#schedule h2 {
  margin-bottom: 0.5rem; /* smaller space below h2 */
}

#schedule ul {
  padding-left: 3rem;
  margin-top: 0.3rem;
}

#schedule li {
  margin: 0.3rem 0;
  font-size: 1.05rem;
}

/* Lectures & Assignments */
#lectures ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

#lectures li {
  margin-bottom: 0.8rem;
}

#lectures a {
  font-weight: 500;
  color: rgb(53, 53, 53);
}

#lectures a:hover {
  color: rgb(255, 95, 5);
}

/* Materials */
#materials h2 {
  margin-bottom: 0.5rem; /* smaller space below h2 */
}

#materials ul {
  margin-top: 0.3rem;
  padding-left: 3rem;
}

#materials li {
  margin: 0.3rem 0;
  font-size: 1.05rem;
}

/* Contact */
#contact ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

#contact li {
  margin: 0.3rem 0;
  font-size: 1.05rem;
}

#contact a:hover {
  color: rgb(255, 95, 5);
}

/* Footer */
footer {
  background-color: #f7f7f7;
  border-top: 1px solid #ddd;
  padding: 1rem 0;
  margin-top: 3rem;
}

footer p {
  color: rgb(85, 85, 85);
  font-size: 0.9rem;
  text-align: center;
}

/* Weekly Outline Table */
#weekly-outline {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

#weekly-outline h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #222; /* neutral dark gray */
}

.table-container {
  overflow-x: auto;
}

.outline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.outline-table th,
.outline-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.outline-table th {
  background: #f5f5f5;  /* light gray header */
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.outline-table tr:nth-child(even) {
  background: #fafafa; /* subtle alternating gray */
}

.outline-table tr:hover {
  background: #fff3ef; /* soft Illinois orange tint */
}

.outline-table a {
  color: #444; /* neutral gray links */
  text-decoration: none;
  font-weight: 500;
}

.outline-table a:hover {
  color: #FF552E; /* Illinois orange hover */
}


