@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@900&display=swap');

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.projects-grid img {
  height: 200px;
  width: 200px;
  object-fit: contain;
  transition: transform 0.2s;
}

.projects-grid img:hover {
  transform: scale(1.1);
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-item p {
  margin-top: 8px;
  font-size: 16px;
  color: #FFFFFF;
}
.content-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 30px 0;
}

.content-block.reverse {
  flex-direction: row-reverse;
}

.content-block img {
  width: 350px;
  height: 300px;
  object-fit: contain;
  border-radius: 15px;
  flex-shrink: 0;
  background-color: rgba(255,255,255,0.05);
}
.content-block .content-text {
  flex: 1;
}
.content-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  width: 350px;
}
.project-section {
  margin: 40px 0;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  border-left: 4px solid #9dfff4;
}

.project-section h2 {
  margin-top: 0;
}

.timeline-section {
    padding: 80px 10%;
}


.timeline-section h1 {
    text-align: center;
    font-size: 45px;
    color: #2e49bf;
    margin-bottom: 60px;
}


/* Timeline line */
.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
}


.timeline::before {
    content: "";
    position: absolute;
    width: 5px;
    background: #2e49bf;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
}


/* Timeline cards */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}


.timeline-item:nth-child(odd) {
    left: 0;
}


.timeline-item:nth-child(even) {
    left: 50%;
}


/* Circle markers */
.timeline-dot {
    position: absolute;
    width: 25px;
    height: 25px;
    background: white;
    border: 6px solid #9dfff4;
    border-radius: 50%;
    top: 30px;
    z-index: 2;
}


.timeline-item:nth-child(odd) .timeline-dot {
    right: -15px;
}


.timeline-item:nth-child(even) .timeline-dot {
    left: -15px;
}


/* Cards */
.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0px 10px 25px rgba(91,33,182,0.15);
    transition: 0.3s;
}


.timeline-content:hover {
    transform: translateY(-8px);
}


.timeline-content h2 {
    color: #2e49bf;
    margin: 0;
}


.timeline-content h3 {
    color: #7688e0;
}


.timeline-content p {
    color: #FFFFFF;
    line-height: 1.6;
}


/* Mobile */
@media screen and (max-width: 700px){

    .timeline::before {
        left: 20px;
    }


    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 60px;
    }


    .timeline-item .timeline-dot {
        left: 5px;
    }

}

.content-images img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .content-block {
    flex-direction: column !important;
  }
  .content-block img {
    width: 100%;
    height: auto;
  }
}

a {
  text-decoration: none;
}

.bubble-text {
  font-size: 80px;
  font-weight: 900;
  font-family: 'Nunito', Arial Rounded MT Bold, Arial, sans-serif;
  background: linear-gradient(135deg, #9dfff4 0%, #7688e0 50%, #2e49bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  letter-spacing: 6px;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

/* Vertical navbar */
nav ul {
  list-style-type: none;
  font-weight: bold;
  margin: 0;
  padding: 0;
  width: 250px;
  min-height: 100vh;
  background-color: #FFFFFF;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

nav ul li a {
  display: block;
  color: #7688e0;
  padding: 16px 20px;
  text-decoration: none;
  font-size: 18px;
  border-bottom: 2.5px solid #702963a9;
}

nav ul li a:hover {
  background-color: #7688e0;
  color: white;
}

/* Bottom image in navbar */
nav ul li:last-child {
  position: absolute;
  bottom: 10px;
  width: 50%;
  text-align: center;
}

nav ul li:last-child img {
  max-width: 60px;
  height: auto;
}
.facts-section {
  text-align: center;
  margin: 30px auto;
  max-width: 600px;
}

.fact-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 30px;
  margin: 20px 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.fact-button {
  background: linear-gradient(135deg, #9dfff4, #7688e0);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #9dfff4, #7688e0);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: none;
  z-index: 9999;
  transition: transform 0.2s;
}

.back-to-top:hover {
  transform: scale(1.1);
}
.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(118, 136, 224, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 15px;
  padding: 10px;
  box-sizing: border-box;
}

.project-overlay p {
  color: white;
  text-align: center;
  font-size: 14px !important;
  margin: 0;
}

.project-item:hover .project-overlay {
  opacity: 1;
}
.dino-bubble {
  position: fixed;
  bottom: 30px;
  right: 100px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #9dfff4, #7688e0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.dino-bubble:hover {
  transform: scale(1.1);
}

.chat-window {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 100px;
  width: 320px;
  height: 400px;
  background: #4a1a42;
  border-radius: 20px;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  overflow: hidden;
}

.chat-header {
  background: linear-gradient(135deg, #9dfff4, #7688e0);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: white;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 14px !important;
  max-width: 85%;
  line-height: 1.4;
}

.dino-message {
  background: rgba(255,255,255,0.15);
  align-self: flex-start;
}

.user-message {
  background: linear-gradient(135deg, #9dfff4, #7688e0);
  align-self: flex-end;
  color: white;
}

.chat-input-row {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.chat-input-row input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 14px;
}

.chat-input-row input::placeholder {
  color: rgba(255,255,255,0.5);
}

.chat-input-row button {
  background: linear-gradient(135deg, #9dfff4, #7688e0);
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.fact-button:hover {
  transform: scale(1.05);
}

/* Hide gear icons in navbar */
nav .fa-gear {
  display: none;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 0;
  width: 20px;
  height: 100%;
}

.dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 250px;
  top: 0;
  width: 250px;
  background-color: rgb(74, 26, 66);
  min-height: 300px !important;
  list-style-type: none;
  padding: 10px 0;
  margin: 0;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 4px 0px 10px rgba(0,0,0,0.5);
  isolation: isolate;
}

.dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
}

.dropdown-menu li {
  display: block;
  width: 100%;
  background-color: rgb(74, 26, 66);
}

.dropdown-menu li a {
  display: block;
  color: #FFFFFF;
  padding: 16px 20px;
  border-bottom: 2.5px solid #702963;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.5;
  white-space: nowrap;
  background-color: rgb(74, 26, 66);
}

.dropdown-menu li a:hover {
  background-color: #7688e0;
}

.dropdown-menu li:last-child {
  position: static;
  bottom: auto;
  width: auto;
  text-align: left;
}

/* Main content */
.main-content {
  margin-left: 250px;
  padding: 20px;
  width: calc(100% - 250px);
  animation: fadeIn 1s ease-in-out;
}

.left-aligned {
  text-align: left !important;
}

.gear-list {
  list-style: none;
  padding-left: 20px;
  text-align: left;
}

.gear-list li {
  margin: 10px 0;
}

.gear-list > li .fa-gear {
  color: #9dfff4;
  margin-right: 8px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

h1 { font-size: 40px; }
h2 { font-size: 30px; }
p { font-size: 20px; }
li { font-size: 20px; }

.centered-bold-text {
  text-align: center;
  font-weight: bold;
}
.centered-text {
  text-align: center;
}
.flex-container {
  display: flex;
  align-items: center;
  gap: 20px;
}
.flex-container img {
  max-width: 450px;
  height: auto;
  border-radius: 40px;
}
.container {
  margin: 0 auto;
  width: 50%;
}

@media (max-width: 768px) {
  nav ul {
    position: fixed;
    width: 100%;
    height: auto;
    min-height: unset;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
    z-index: 1000;
    top: 0;
    left: 0;
  }

  nav ul li a {
    padding: 8px 10px;
    font-size: 13px;
  }

  nav ul li:last-child {
    display: none;
  }

  .dropdown-menu {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
    margin-top: 120px;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }

  .bubble-text {
    font-size: 40px;
    letter-spacing: 2px;
  }

  .flex-container {
    flex-direction: column;
  }

  .flex-container img {
    max-width: 100%;
  }
}

.dna-container {
  width: 100%;
  pointer-events: none;
  opacity: 0.7;
  margin-bottom: 10px;
}

.dna-strand {
  width: 100%;
  height: 80px;
}

.skills-section {
  max-width: 600px;
  margin: 20px auto;
}

.skill {
  margin-bottom: 15px;
}

.skill p {
  margin-bottom: 5px;
  font-weight: bold;
}

.progress-bar {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  height: 30px;
  width: 100%;
  overflow: hidden;
}

.progress {
  background: linear-gradient(135deg, #9dfff4, #7688e0);
  height: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-size: 14px;
  font-weight: bold;
  animation: fill 1.5s ease-in-out;
}

@keyframes fill {
  from { width: 0%; }
  to { width: inherit }
}

/* =========================
   🔌 TOP RESISTOR DECORATIONS
   ========================= */

body {
  position: relative;
}


/* resistor body */
.resistor {
  position: absolute;
  top: 35px;
  width: 90px;
  height: 25px;
  background: #d9b38c;
  border-radius: 8px;
  z-index: 50;
  opacity: 0.9;

  box-shadow:
    0 5px 15px rgba(0,0,0,0.25);

  animation: resistorFloat 4s ease-in-out infinite;
}


/* metal wires */
.resistor::before,
.resistor::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 35px;
  height: 4px;
  background: #c0c0c0;
}

.resistor::before {
  left: -35px;
}

.resistor::after {
  right: -35px;
}


/* resistor color bands */
.resistor .band {
  position: absolute;
  height: 25px;
  width: 8px;
  top: 0;
}

.resistor .band:nth-child(1) {
  left: 20px;
  background: #702963;
}

.resistor .band:nth-child(2) {
  left: 38px;
  background: #2e49bf;
}

.resistor .band:nth-child(3) {
  left: 56px;
  background: #9dfff4;
}

.resistor .band:nth-child(4) {
  left: 75px;
  background: #f2c94c;
}


/* top placements */
.resistor.one {
  left: 350px;
  transform: rotate(-20deg);
}

.resistor.two {
  left: 650px;
  transform: translateX(-50%) rotate(15deg);
}

.resistor.three {
  left: 950px;
  transform: rotate(-20deg);
}

.resistor.four {
  left: 1250px;
  transform: translateX(-50%) rotate(15deg);
}


/* hover glow */
.resistor:hover {
  cursor: pointer;
  animation-play-state: paused;

  filter:
    drop-shadow(0 0 8px #9dfff4)
    drop-shadow(0 0 18px #7688e0);

  transform: scale(1.15) rotate(-10deg);
}




/* keep title/content below decorations */
.main-content {
  padding-top: 100px;
}


/* mobile hide them so navbar doesn't get crowded */
@media (max-width:768px){

  .resistor {
    display:none;
  }

}

/* ===============================
   🧬 FUTURE BME LAB BACKGROUND
   =============================== */

body {
  font-family: Calibri Light, "Calibri Light";
  color: #FFFFFF;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: hidden;
  background-color: #632970;
  min-height: 100vh;
}

/* subtle blueprint grid */
body::before {

  content:"";
  position:fixed;
  inset:0;

  background-image:
    linear-gradient(#9dfff422 1px, transparent 1px),
    linear-gradient(90deg,#9dfff422 1px, transparent 1px);

  background-size:45px 45px;

  pointer-events:none;
  z-index:-2;
}

/* Lab glass panels */

.project-section,
.fact-card,
.timeline-content {

  background:
  linear-gradient(
    135deg,
    rgba(157,255,244,0.15),
    rgba(118,136,224,0.12)
  );

  backdrop-filter: blur(15px);

  border:
  1px solid rgba(157,255,244,0.4);

  box-shadow:
    0 0 25px rgba(157,255,244,0.15),
    inset 0 0 20px rgba(118,136,224,0.1);
}

.lab-status {

position:fixed;
top:20px;
right:25px;

padding:10px 20px;

border-radius:30px;

background:#111827aa;

border:1px solid #9dfff4;

color:#9dfff4;

font-weight:bold;

font-size:14px;

box-shadow:
0 0 20px #9dfff4;

z-index:9999;

}

h1,h2 {

letter-spacing:3px;

text-transform:uppercase;

text-shadow:
0 0 5px #9be0d8;

}

button,
.fact-button,
.back-to-top {

border:1px solid #9dfff4 !important;

box-shadow:
0 0 15px #9dfff477;

}


button:hover,
.fact-button:hover {

box-shadow:
0 0 30px #9dfff4;

}

