/* GENERAL */
body {
    background-color: #ffffff;
    max-width: 1438px;
}

.SubTitle {
  color: #CAB0FF;
  font-family: "Passion One", sans-serif;
  font-size: 4rem;
  margin-bottom: 1rem;
  padding: 2rem 9rem;
}

/* NAVIGATION BAR */
.topBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 9rem;
    background-color: white;
    top: 0;
    z-index: 100;
    font-family: "Passion One", sans-serif;
  }
  
  .logo {
    font-weight: bold;
    font-size: 1.3rem;

    --b: 0.1em;   /* the thickness of the line */
    --c: #8962d8; /* the color */
    
    color: #CAB0FF;
    padding-block: var(--b);
    background: 
      linear-gradient(var(--c) 50%,#8962d8 0) 0% calc(100% - var(--_p,0%))/100% 200%,
      linear-gradient(var(--c) 0 0) 0% var(--_p,0%)/var(--_p,0%) var(--b) no-repeat;
    -webkit-background-clip: text,padding-box;
            background-clip: text,padding-box;
    transition: .2s var(--_s,0s) linear,background-size .2s calc(.2s - var(--_s,0s));
  }

  .logo:hover {
    --_p: 100%;
    --_s: .2s;
    color: #8962d8
  }  

  .navigation {
    display: flex;
    gap: 2rem;
    font-size: 1.3rem;
  }
  
  .navigation a {
    text-decoration: none;
    font-weight: 600;
    color: #E7DBFF;
    position: relative;
    transition: all 0.2s ease;
  }
  
  .navigation a:hover {
    transform: scale(1.3);
  }
  
  .navigation .selected {
    color: #CAB0FF;
  }
  
  .navigation .selected::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #CAB0FF;
    position: absolute;
    bottom: -4px;
    left: 0;
  }
  
  .socials {
    display: flex;
    gap: 1.7rem;
  }
  
  .socials a {
    color: #CAB0FF;
    font-size: 1.4rem;
    transition: transform 0.2s ease;
  }
  
  .socials a:hover {
    transform: scale(1.3);
    color: #8962d8
  }
  
/* HOMEPAGE */
.homeBody {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 5rem 9rem;
  max-width: 1500px; /* or whatever width works */
  margin: 0 auto;
}

.homeLeft {
  flex: 2;
  min-width: 280px;
  padding: 5rem 2rem;

}

.homeLeft h1.highlight {
  color: #CAB0FF; /* your lavender */
  font-size: 7rem;
  font-family: "Passion One", sans-serif;
}

.homeLeft h4 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', serif;
}

.homeLeft h5 {
  font-size: 1.4rem;
  margin-top: 0.8rem;
  font-family: 'Poppins', serif;
}

/* Headshot flip animation */
.homeRight {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
}

.flip {
  background-color: transparent;
  width: 400px;
  height: 370px;
  perspective: 1000px; /* Required for 3D flip */
}

.inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip:hover .inner {
  transform: rotateY(180deg);
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.back {
  transform: rotateY(180deg);
}

.headshot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border: 4px solid #b48eff;
}


/* TypeWriter Animation */
.cursor {
  display: inline-block;
  animation: blink 0.7s infinite;
  color: #CAB0FF;
  font-weight: bold;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ABOUT ME PAGE */

/* About Me Header */
.aboutMe {
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
}
.aboutCard {
  display: flex;
  flex-wrap: wrap;
  background-color: #f1e8ff;
  border-radius: 2rem;
  padding: 2rem 2rem;
  max-width: 1150px;
  width: 100%;
  gap: 2rem;
  align-items: center;
}

.aboutLeft {
  flex: 1;
  display: flex;
  justify-content: center;
}

.aboutPic {
  width: 370px;
  height: 480px;
  border-radius: 1rem;
  object-fit: cover;
}

.aboutRight {
  flex: 2;
  font-family: 'Poppins', serif;
  font-size: 1.1rem;
  color: #222;
  line-height: 1.6;
}

.aboutHeader {
  color: #CAB0FF;
  font-family: "Passion One", sans-serif;
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* About Me Skills */
.skills .skillsBoxes {
  padding: 0rem 9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  background-color: #ffffff;
  border: 6px solid #CAB0FF;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: #222;
  width: 260px;
  height: 110px;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.chip img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.chip:hover {
  background-color: #f1e8ff;
}

/* Courses */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    margin-bottom: 50px;
    padding: 0 80px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 20px;
    padding: 20px 0;
    margin: 0 -10px;
}

.carousel-card {
    flex: 0 0 280px;
    background-color: #f1e8ff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 0 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    opacity: 0.4;
    transform: scale(0.95);
}

.carousel-card h1 {
    font-family: "Passion One", sans-serif;
    color: #CAB0FF;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.carousel-card h2 {
    font-family: 'Poppins', sans-serif;
    color: #CAB0FF;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.carousel-card p {
    font-family: 'Poppins', sans-serif;
    color: #222;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 20px;
}

.carousel-btn {
    background-color: #CAB0FF;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 20;
}

.carousel-btn:hover {
    background-color: #8962d8;
    transform: scale(1.1);
}

.carousel-card.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.carousel-card:hover {
    opacity: 0.6;
    transform: scale(1);
}

/* EXPERIENCES */

/* Projects */
.projectBoxes {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 0 2rem;
  margin: 1rem auto 4rem;
  max-width: 1150px;
}

.project {
  background-color: #f1e8ff;
  border-radius: 1rem;
  flex: 1 1 300px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  text-align: center;
  padding-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(202, 176, 255, 0.2);
}

.project img {
  width: 95%;
  border-radius: 1rem;
  height: 200px;
  align-self: center;
  margin-top: 7px;
  object-fit: cover;
}

.projectTitle {
  margin: 1rem;
  font-size: 2.2rem;
  font-family: 'Passion One', sans-serif;
  color: #CAB0FF;
}

.project p {
  margin: 0 1rem 1rem;
  font-family: 'Poppins', serif;
  font-size: 1.15rem;
  color: #333;
  line-height: 1.5;
  flex-grow: 1;
}

.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 20px;
  align-self: center;
}

.languages span {
  background: #cab0ff;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: 'Source Code Pro', monospace;
}

.projectLink {
  position: relative;
  font-family: 'Source Code Pro', monospace;
  background: #cab0ff;
  color: black;
  text-decoration: none;
  padding: 0.5rem 1rem;
  width: 150px;
  text-align: center;
  overflow: hidden;
  display: block;       
  margin: 1rem auto;  

}

.projectLink svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
}

.projectLink svg rect {
  fill: none;
  stroke: #8962d8;
  stroke-width: 4;
  stroke-dasharray: 422;       
  stroke-dashoffset: 422; 
  transition: stroke-dashoffset 0.5s ease;
}

.projectLink:hover {
  color: black;
  text-decoration: none;
}
.projectLink:hover svg rect {
  stroke-dashoffset: 0;
}

/* Work Experiences */
.timeline {
  position: relative;
  margin: 2rem 9rem 4rem;
  padding-left: 2rem;
  border-left: 4px solid #CAB0FF;
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  transition: opacity 0.3s ease;
}

.timeline:hover .timeline-item {
  opacity: 0.4;
}

.timeline-item:hover {
  opacity: 1 !important;
}

.timeline-dot {
  position: absolute;
  left: -42px;              
  top: 0.6rem;               
  width: 16px;
  height: 16px;
  background-color: #CAB0FF;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff; 
}

.timeline-content {
  max-width: 75%;
}

.timeline-content h3 {
  font-family: "Passion One", sans-serif;
  color: #CAB0FF;
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}

.timeline-content p {
  font-family: "Poppins", sans-serif;
  color: #222;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.timeline-date {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #222;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 1rem;
}

/* right-hand column: date on top, link below */
.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;              /* space between date & link */
}

/* copy-pasta from your .projectLink, but flat selectors */
.workLink {
  position: relative;
  display: inline-block;
  font-family: 'Source Code Pro', monospace;
  background: #cab0ff;
  color: black;
  text-decoration: none;
  padding: 0.4rem;
  width: 150px;
  text-align: center;
  overflow: hidden;
}

/* SVG overlay for the animated border */
.workLink svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* initial (hidden) stroke */
.workLink svg rect {
  fill: none;
  stroke: #8962d8;
  stroke-width: 4;
  stroke-dasharray: 422;
  stroke-dashoffset: 422;
  transition: stroke-dashoffset 0.5s ease;
}

.workLink:hover svg rect {
  stroke-dashoffset: 0;
}

.workLink:hover {
  color: black;
  text-decoration: none;
}

/* FOR FUN FEATURES */
.funIntro {
  font-family: 'Poppins', serif;
  font-size: 1.1rem;
  color: #222;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  background-color: #f1e8ff;
  border-radius: 2rem;
  padding: 2rem 2rem;
  max-width: 1150px;
  width: 100%;
  margin: 2rem auto;

}

/* SCREEN SIZES */
body {
  padding: 0 1rem;
}

/* Very small phones */
@media (max-width: 480px) {
  .SubTitle { font-size: 2.5rem; padding: 1rem 0; }
  .topBar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0;
  }
  .socials { justify-content: center; margin-top: .5rem; }
}

/* Small tablets & large phones */
@media (max-width: 768px) {
  /* Home page */
  .homeBody {
    flex-direction: column;
    padding: 2rem 0;           
  }
  .homeLeft, .homeRight {
    width: 100%;
    padding: 1rem 0;
  }

  /* About page */
  .aboutCard {
    flex-direction: column;    
    padding: 1rem;
  }


  /* Skills chips */
  .skills .skillsBoxes {
    justify-content: center;
    padding: 0 1rem;          
  }
  .chip {
    flex: 1 1 45%;
    max-width: none;
    font-size: 1rem;
  }

  /* Courses carousel */
  .carousel-container {
    padding: 2rem 1rem;        
  }
  .carousel-card {
    flex: 0 0 200px;           
  }

  /* Projects: stack cards */
  .projectBoxes {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }
  .project {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
  }
  .project img {
    width: 100%;
    height: auto;
    max-height: 250px;
  }
  .languages {
    justify-content: center;
    padding: 0 1rem;
  }

  /* Timeline items: stack content + meta */
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 0rem;
  }
  .timeline-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 0.2rem;
    align-items: flex-start;
  }

  .timeline {
    margin: 1.5rem 0 2rem 1.5rem;
    padding-left: 0.7rem;
    border-left-width: 3px;
  }
  .topBar {    flex-direction: column;  }

}
@media (max-width: 1024px) {
  .SubTitle { font-size: 3rem; padding: 1.5rem 0; }
  .topBar { padding: 1rem 2rem; }
  .homeBody { padding: 3rem 2rem; }

  .slideshow-wrapper {
    padding: 0rem;
    float: center;
    margin: 0rem;
    min-width: 70%;
    margin: 0rem
  }
  .vertical-nav {
    display: none !important;
  }
}

/* PHOTO SLIDESHOWS */
* {box-sizing:border-box}

.photoDump {
  max-width: 1150px;
}

.slideshow-container {
  position: relative;
  margin: auto;
  min-height: 300px; 
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.mySlides {
  display: none;
}

.mySlides:first-of-type {
  display: block;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: #cab0ff;
  color:#fff;
}

/* Caption text */
.text {
  color: #ffffff;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.mySlides2 {
  display: none;
}

.mySlides2:first-of-type {
  display: block;
}
.slideshow-wrapper {
  flex: 1 1 50px;
  display: flex;
  justify-content: center;
}

.slideshow-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* allows stacking on small screens */
  gap: 1rem;
}

.howMany {
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.slideshow-wrapper.right-align {
  justify-content: flex-end;
}
.slideshow-container {
  max-width: 600px;
  width: 100%;
  position: relative;
  min-height: 300px;
}

@media (max-width: 700px) {
  .slideshow-container {
    max-width: 98vw;
    min-width: 0;
    min-height: 180px;
  }
  .slideshow-wrapper {
    justify-content: center;
  }
}

/* Contact Me */
.contact {
  max-width: 750px;
  margin: .5rem auto;
  padding: 2rem;
  background-color: #f1e8ff;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: 'Poppins', sans-serif;
}

.contact h1 {
  text-align: center;
  font-family: 'Passion One', sans-serif;
  font-size: 3rem;
  color: #CAB0FF;
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-inputs {
  padding: 1rem;
  border-radius: 1rem;
  border: 2px solid #CAB0FF;
  background-color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.contact-inputs:focus {
  border-color: #8962d8;
  outline: none;
}

button[type="submit"] {
  width: 150px;
  align-self: center;
  background-color: #CAB0FF;
  color: black;
  font-family: 'Source Code Pro', monospace;
  font-size: 1rem;
  border: none;
  border-radius: 1rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

button[type="submit"]:hover {
  background-color: #8962d8;
  color: white;
}

.icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.rowOne,
.rowTwo {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.icons a {
  color: #CAB0FF;
  font-size: 4.4rem;
  margin: 1.7rem;
}

.icons a i {
  transition: transform 0.4s ease, color 0.2s ease;
}

.icons a:hover i {
  transform: rotate(360deg);
  color: #8962d8;
}

/* Vertical Navigation */
.vertical-nav {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.nav-item {
  color: #CAB0FF;
  text-decoration: none;
  font-family: 'Source Code Pro', monospace;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  background-color: #f1e8ff;
  transition: all 0.3s ease;
  text-align: center;
}

.nav-item:hover {
  background-color: #CAB0FF;
  color: white;
  transform: scale(1.1);
}

/* Add smooth scrolling to the whole page */
html {
  scroll-behavior: smooth;
}

/* QUIZ SECTION */
.quiz-section {
  background: #f1e8ff;
  border-radius: 2rem;
  max-width: 700px;
  margin: 3rem auto 2rem auto;
  padding: 2rem 2.5rem 2.5rem 2.5rem;
  box-shadow: 0 4px 12px rgba(202, 176, 255, 0.08);
  font-family: 'Poppins', sans-serif;
}
.quiz-section h1 {
  color: #CAB0FF;
  font-family: 'Passion One', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}
.quiz-question {
  margin-bottom: 0.8rem;
}
.quiz-question label {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
  color: #000000;
  font-family: 'Poppins', sans-serif;
}
.quiz-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 1rem;
  border: 2px solid #CAB0FF;
  font-size: 1rem;
  font-family: 'Source Code Pro', monospace;
  margin-bottom: 0.1rem;
  transition: border-color 0.2s;
  background: #fff;
  color: #222;
}
.quiz-input.incorrect {
  border-color: #8962d8;
  background: #f6f0ff;
}
.quiz-feedback {
  color: #8962d8;
  font-size: 0.98rem;
  font-family: 'Poppins', sans-serif;
  margin-top: 0.1rem;
  min-height: 1.2em;
}
.quiz-feedback.correct {
  color: #8962d8;
  font-weight: 600;
}
.quiz-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem; /* Space between buttons */
  margin-top: 1.5rem; /* Space above buttons */
}
.quiz-submit {
  display: inline-block;
  margin: 2rem auto 0 auto;
  background: #CAB0FF;
  color: black;
  font-family: 'Source Code Pro', monospace;
  font-size: 1.1rem;
  border: none;
  border-radius: 1rem;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
}
.quiz-submit:hover {
  background: #8962d8;
  color: #fff;
}
.quiz-success {
  color: #CAB0FF;
  font-family: 'Passion One', sans-serif;
  font-size: 1.6rem;
  text-align: center;
  margin-top: .5rem;
  font-weight: bold;
}
.quiz-reset {
  display: inline-block;
  margin: 2rem auto 0 auto;
  background: #fff;
  color: #8962d8;
  font-family: 'Source Code Pro', monospace;
  font-size: 1.1rem;
  border: 2px solid #CAB0FF;
  border-radius: 1rem;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.quiz-reset:hover {
  background: #CAB0FF;
  color: #fff;
}

.extraNotes {
  font-family: 'Poppins', serif;
  font-size: 1.1rem;
  color: #222;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  border-radius: 2rem;
  padding: 2rem 2rem;
  max-width: 1150px;
  width: 100%;
  margin: 2rem auto;
}