/* ?This is where reusable styling of this template will be. 
   !Will contain things like:
   * Button styling
   * Background color styling
   * padding and margin
*/

.container {
  max-width: var(--width-medium);
  margin: 0 auto;
  padding: 1rem 2rem;
}

h1::selection,
h2::selection {
  color: #111;
  background: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.9rem;
  border-radius: 30px;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: 0.3s;
}

.btn-primary {
  background: var(--primary-color);
  color: #000000;
}

.btn-secondary {
  margin: 5px 0;
  background-color: var(--bg-secondary);
  color: var(--bg-primary);
}

/* add hover to resume button */
.btn-primary:hover {
  background: var(--secondary-color);
}

/* Dark mode toggle */
#switch {
  display: none;
}

.toggle-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.toggle-icons>img {
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  width: 30px;
}

.moon {
  transform: rotate(10deg);
}

#switch:checked+.toggle-icons .moon {
  transform: rotate(250deg);
}

#switch:checked+.toggle-icons .sun {
  transform: rotate(100deg);
}

/* Header Container */
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 8rem;
  padding: 1rem;
}

.header-container>div {
  margin-top: 1rem;
}

.content-text {
  text-align: center;
  margin: 1.5rem 0;
}

.content-text h2 {
  font-size: 3rem;
  line-height: 1.2;
  transition: 0.2s ease-in-out;
}

.content-text p {
  padding: 0.5rem;
  margin: 0 auto;
  max-width: 700px;
}

/* Project cards */
.card {
  padding: 1rem;
  background: var(--card-background);
  color: #ffffff;
  border-radius: 5px;
  transition: 0.4s ease-in-out;
  cursor: pointer;
}

.card a {
  color: #ffffff;
  transition: 0.25s ease-in-out;
  font-size: 1.1rem;
  margin-right: 0.3rem;
}

.card a:hover {
  color: var(--primary-color);
}

.card:hover {
  box-shadow: inset 0 100px 1000px 10px rgba(0, 0, 0, 0.8);
}

.card:hover .project-info {
  opacity: 1;
}

/* Project Images */

/* project 1 */
#projects .card:nth-child(1) {
  background: url(../assets/projects/cepireg_database_1773498969396.png) center center/cover;
}

/* Project 2 */
#projects .card:nth-child(2) {
  background: url(../assets/projects/rheumatoid_gwas_1773499003239.png) center center/cover;
}

/* Project 3 */
#projects .card:nth-child(3) {
  background: url(../assets/projects/rnaseq_pipeline_1773499438360.png) center center/cover;
}

/* Project 4 */
#projects .card:nth-child(4) {
  background: url(../assets/projects/huntomics_explorer.png) center center/cover;
}

/* Project 5 */
#projects .card:nth-child(5) {
  background: url(../assets/projects/r_biological_sciences.png) center center/cover;
}

/* Project 6 */
#projects .card:nth-child(6) {
  background: url(../assets/projects/scrnaseq_replication.png) center center/cover;
}

/* Experience and Education Cards Fancy Styling */
#experience .card,
#education .card {
  background: linear-gradient(145deg, var(--bg-primary) 0%, rgba(255, 205, 66, 0.05) 100%);
  border: 1px solid rgba(255, 205, 66, 0.2);
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

#experience .card,
#education .card {
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

#education .project {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#experience .card,
#education .card {
  width: 100%;
  max-width: 800px; /* Wider rectangular layout */
  margin-bottom: 2rem;
  padding: 1.5rem;
}

#experience .card .project-info,
#education .card .project-info {
  display: flex;
  flex-direction: row; /* Logo left, text right */
  align-items: center;
  gap: 2rem;
  opacity: 1;
  position: relative;
  z-index: 1;
}

#experience .exp-logo,
#education .edu-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #ffffff; /* White background for logos to pop */
  padding: 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

#experience .project,
#education .project {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#experience .card .project-bio,
#education .card .project-bio {
  top: 0;
  left: 0;
  color: var(--text-color-two);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#experience .card .project-bio p,
#education .card .project-bio p {
  color: var(--text-color-two);
  opacity: 1;
  font-weight: 500;
  margin-top: 5px;
}

#experience .card .project-bio h3,
#education .card .project-bio h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

/* Ensure hover doesn't darken the experience/education cards like projects */
#experience .card:hover,
#education .card:hover {
  box-shadow: 0 8px 25px rgba(255, 205, 66, 0.15);
  transform: translateY(-5px);
  background: linear-gradient(145deg, var(--bg-primary) 0%, rgba(255, 205, 66, 0.1) 100%);
}

/* Media Queries */
@media (max-width: 768px) {
  .header-container {
    margin-top: 7rem;
    text-align: center;
  }

  .content-text h2 {
    font-size: 2.5rem;
  }
}

/* Experience card logos */
.exp-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  background: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
}

/* Experience Accordion Details */
.experience-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  margin-top: 0;
}

.experience-details.active {
  max-height: 1000px;
  opacity: 1;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 205, 66, 0.2);
}

.experience-details h4 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.experience-details ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.experience-details li {
  color: var(--text-color-two);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

/* Expand Button */
.expand-btn {
  background: rgba(255, 205, 66, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(255, 205, 66, 0.3);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.expand-btn:hover {
  background: var(--primary-color);
  color: #111111;
  box-shadow: 0 0 10px rgba(255, 205, 66, 0.4);
}

.expand-btn i {
  transition: transform 0.4s ease;
  font-size: 1rem;
}

.expand-btn.active {
  background: var(--primary-color);
  color: #111111;
}

.expand-btn.active i {
  transform: rotate(45deg); /* Turns the plus into an x */
}