/* --------------------------------- */
/* ----- Basic Setup -----*/
/* --------------------------------- */

@font-face {
  font-family: "Mona Sans";
  src: url("assets/fonts/Mona-Sans.woff2") format("woff2 supports variations"),
    url("assets/fonts/Mona-Sans.woff2") format("woff2-variations");
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
}

:root {
  --h1: 3.5rem;
  --h2: 3rem;
  --h3: 2.145rem;
  --h4: 1.5rem;
  --text-large: 1.6rem;
  --text-medium: 1.275rem;
  --text-small: 1.125rem;

  --gradient-brand: radial-gradient(
      at 60% 31%,
      rgb(255, 131, 139) 0px,
      transparent 50%
    ),
    radial-gradient(at 48% 98%, rgba(0, 255, 166, 0.707) 0px, transparent 50%),
    radial-gradient(at 84% 67%, rgb(255, 129, 125) 0px, transparent 50%),
    radial-gradient(at 16% 47%, rgb(255, 90, 112) 0px, transparent 50%),
    radial-gradient(at 73% 11%, rgb(115, 255, 225) 0px, transparent 50%),
    radial-gradient(at 49% 37%, rgba(255, 249, 89, 0.695) 0px, transparent 50%),
    radial-gradient(at 70% 21%, rgba(58, 255, 186, 0.715) 0px, transparent 50%);
  --easing: cubic-bezier(0.86, 0, 0.07, 1);

  --site-max-width: 1280px;
  --gutter-nano: 0.5rem;
  --gutter-micro: 1rem;
  --gutter-x-small: 1.5rem;
  --gutter-small: 2rem;
  --gutter-medium: 2.5rem;
  --gutter-large: 3rem;
  --gutter-x-large: 6rem;
  --gutter-huge: 12rem;

  --scroll-padding: 4.375rem;
  --radius: 85px;
}

body.dark {
  --bg-color-primary: #0c0a0a;
  --bg-color-secondary: #161211;
  --important: #fff;
  --sub: #c3c3c3;
  --body: #989898;
  --border: #c0c0c015;
  --border-dark: #c0c0c02f;
  --gradient-border: linear-gradient(to left bottom, #777, #0e0d0d);
  --shadow: 0 1rem 1rem #00000040;
}

body.light {
  --bg-color-primary: #fbfbfb;
  --bg-color-secondary: #ffffff;
  --important: #000;
  --sub: #111;
  --body: #585b63;
  --border: #62626234;
  --border-dark: #5e5e5e1f;
  --gradient-border: linear-gradient(to left bottom, #000000c6, #0e0d0d00);
  --shadow: 0 1rem 1rem rgba(0, 0, 0, 0.25);
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-family: "Mona Sans", sans-serif;
  box-sizing: border-box;
  scroll-padding-top: var(--scroll-padding);
}

@media (max-width: 1200px) {
  html {
    font-size: 90%;
  }
}

@media (max-width: 645px) {
  html {
    font-size: 80%;
  }
}

body {
  font-size: var(--text-medium);
  color: var(--body);
  background-color: var(--bg-color-primary);
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Improve media defaults */

picture
svg,
img {
  display: block;
  max-inline-size: 100%;
  object-fit: contain;
}

textarea {
  resize: none;
}

/* --------------------------------- */
/* ----- Typography -----*/
/* --------------------------------- */

input,
textarea,
button {
  font: inherit;
}

p,
h1,
h2,
h3,
.h4 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.h4 {
  font-stretch: 125%;
  line-height: 1.2;
  color: var(--important);
}

.h1 {
  font-size: var(--h1);
}

.h2 {
  font-size: var(--h2);
  text-align: center;
}

.h3 {
  font-size: var(--h3);
}

.h4 {
  font-size: var(--h4);
}

@media (max-width: 845px) {
  :root {
    --h1: 2.845rem;
    --h2: 2.45rem;
    --h3: 1.85rem;
  }
}

@media (max-width: 700px) {
  :root {
    --h1: 2.545rem;
  }
}

@media (max-width: 545px) {
  :root {
    --h1: 2.4rem;
    --text-large: 1.5rem;
  }
}

@media (max-width: 485px) {
  :root {
    --h1: 2.145rem;
    --h2: 1.875rem;
    --h3: 1.6rem;
    --text-large: 1.345rem;
  }
}

/* --------------------------------- */
/* ----- Utilities -----*/
/* --------------------------------- */

/* Center and constrain the width of page sections */

.container {
  max-inline-size: var(--site-max-width);
  margin-inline: auto;
}

@media (max-width: 1375px) {
  :root {
    --site-max-width: 1160px;
  }
}

@media (max-width: 1275px) {
  .container {
    padding-inline: var(--gutter-small);
  }
}

@media (max-width: 1200px) {
  .container {
    padding-inline: var(--gutter-medium);
  }
}

@media (max-width: 575px) {
  .container {
    padding-inline: var(--gutter-small);
  }
}

/* disable scroll when menu is opened */

.lock-screen {
  overflow-y: hidden;
}

/* hides visually and removes from accessibility tree  */

.hidden {
  visibility: hidden;
  transform: translateX(-100%);
}

.transform {
  transform: translateY(6rem);
  opacity: 0;
}

.shown {
  transition: 0.1s;
  color: lightgrey;
}

/* --------------------------------- */
/* ----- Components -----*/
/* --------------------------------- */

.btn {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  padding: 18px 60px;
  border-radius: var(--gutter-nano);
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}

@media (max-width: 700px) {
  .btn {
    padding: 16px 48px;
  }
}

@media (max-width: 485px) {
  .btn {
    font-size: 1.2rem;
    padding: 14px 38px;
  }
}

.btn-cta {
  color: var(--bg-color-primary);
  background-color: var(--important);
}

body.dark .btn-cta:hover,
body.dark .btn-cta:focus {
  box-shadow: #ffffff40 0 0 0 var(--gutter-nano);
}

body.light .btn-cta:hover,
body.light .btn-cta:focus {
  box-shadow: #07070733 0 0 0 var(--gutter-nano);
}

.btn-secondary {
  border: 1px solid var(--border-dark);
  color: var(--important);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--important);
}

.link {
  display: inline-block;
  font-weight: 600;
  font-size: var(--text-small);
  padding: var(--gutter-nano) 0;
  text-decoration: none;
  color: var(--important);
  position: relative;
}

.link::after,
.link::before {
  content: "";
  width: 100%;
  height: 1px;
  margin-block-start: var(--gutter-nano);
  position: absolute;
  bottom: -1px;
  left: 0;
  transition: 300ms;
}

body.dark .link::before {
  background-color: #d3d3d357;
}

body.dark .link::after {
  background-color: white;
}

body.light .link::before {
  background-color: lightgray;
}

body.light .link::after {
  background-color: black;
}

.link::after {
  background-color: white;
  transform-origin: left;
  transform: scaleX(0);
}

.link:hover::after,
.link:focus::after {
  transform: scaleX(1);
}

/* --------------------------------- */
/* ----- Layout -----*/
/* --------------------------------- */

section:not(:first-child) {
  padding-block-start: var(--gutter-huge);
}

section:first-child {
  padding-block-start: 7rem;
}

@media (max-width: 885px) {
  :root {
    --gutter-huge: 8rem;
    --gutter-x-large: 4rem;
  }
}

main {
  border-top: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background-color: var(--bg-color-primary);
  transform: translateY(calc(-1 * var(--radius)));
}

@media (max-width: 1185px) {
  :root {
    --radius: 45px;
  }
}

/* --------------------------------- */
/* ----- Menu Button -----*/
/* --------------------------------- */

.menu-btn-container {
  position: fixed;
  width: 100%;
  top: var(--gutter-x-small);
  left: 0;
  z-index: 4;
}

.menu-btn {
  display: block;
  margin-inline-start: auto;
  border: 1px solid var(--border-dark);
  inline-size: 132px;
  padding-block: var(--gutter-nano);
  border-radius: var(--gutter-large);
  text-decoration: none;
  background-color: var(--bg-color-secondary);
  color: var(--important);
  cursor: pointer;
}

.menu-btn,
.nav-items a {
  font-stretch: 125%;
  font-weight: 900;
}

/* --------------------------------- */
/* ----- Navigation -----*/
/* --------------------------------- */

.nav {
  min-block-size: 100vh;
  position: fixed;
  width: 100%;
  background-color: #ff5e99;
  background-image: var(--gradient-brand);
  transition: 450ms var(--easing);
  z-index: 3;
}

.nav-items {
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translateY(-50%) translateX(-15%);
  list-style-type: none;
}

.nav-item:not(:last-child) {
  margin-block-end: var(--gutter-x-small);
}

.nav-item a {
  display: inline-block;
  font-size: var(--h2);
  text-decoration: none;
  color: #fff;
}

.nav-item a::after {
  content: "";
  display: block;
  block-size: var(--gutter-nano);
  width: 100%;
  transform: scale(0);
  transform-origin: left;
  background-color: white;
  transition: transform 250ms var(--easing);
}

.nav-item a:hover::after,
.nav-item a:focus::after {
  transform: scale(1);
}

/* --------------------------------- */
/* ----- Header -----*/
/* --------------------------------- */

.header {
  min-block-size: calc(100vh + var(--radius));
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

body.dark .header {
  background-image: linear-gradient(#0000008b, #000000e6),
    url("assets/images/hero-bg.jpeg");
}

body.light .header {
  background-image: linear-gradient(#ffffffef, #ffffff83),
    url("assets/images/hero-bg.jpeg");
}

.header-textbox {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.h1 span {
  display: block;
}

.header-text {
  font-size: var(--text-medium);
  font-weight: 400;
  max-inline-size: 745px;
  margin-block-start: var(--gutter-micro);
  margin-block-end: var(--gutter-medium);
}

@media (max-width: 1200px) {
  .header-text {
    max-inline-size: 685px;
  }
}

@media (max-width: 845px) {
  .header-text {
    max-inline-size: 585px;
  }
}

.header-btns {
  display: inline-flex;
  gap: var(--gutter-x-small);
}

@media (max-width: 400px) {
  .header-textbox {
    left: 0;
    text-align: center;
    padding-inline: 0.6rem;
  }
  .header-btns {
    flex-direction: column;
    width: 80%;
  }
}

/* --------------------------------- */
/* ----- About -----*/
/* --------------------------------- */
/* About Section Styling */
.about-section {
    padding-top: 0;
    background-color: var(--bg-color-primary);
}

/* Container Setup */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--gutter-medium);
    text-align: center;
}

/* About Wrapper */
.about {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Align items to the top */
    gap: 5px; /* Space between image and caption */
    flex-wrap: wrap; /* Wrap to the next line on smaller screens */
}

/* About Image Holder */
.about-img-holder {
   width: 100%;
    max-width: 443px;
    aspect-ratio: 443 / 519; /* Maintains the proportions */
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden; /* Prevents image overflow */
}

/* About Image Styling */
.about-img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Rounded corners instead of full circle */
    object-fit: cover; /* Ensures image maintains aspect ratio */
    transition: transform 0.3s ease-in-out;
}

.about-img:hover {
    transform: scale(1.05); /* Slight zoom effect */
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-img-holder {
        max-width: 300px;
        /* Height automatically adjusts based on aspect-ratio */
    }
}

@media (max-width: 480px) {
    .about-img-holder {
        max-width: 250px;
        /* Height automatically adjusts based on aspect-ratio */
    }
}
/* About Caption */
.about-caption {
    max-width: 800px;
    text-align: center;
}

/* Header Styling */
.about-caption header {
    margin-bottom: 1.5rem;
}

.h2 {
    font-size: var(--h2);
    font-weight: bold;
    color: var(--important);
    margin-bottom: var(--gutter-small);
}

/* Paragraph Styling */
.about-caption p {
    font-size: var(--text-medium);
    line-height: 1.6;
    color: var(--body);
    margin-bottom: var(--gutter-small);
}

/* Button Styling */
.btn-rounded {
    border-radius: 50px;
    padding: 0.5rem 2rem;
    font-size: var(--text-medium);
    color: var(--important);
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-rounded:hover {
    background-color: var(--primary-color);
    color: var(--bg-color-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-img-holder {
        max-width: 300px; /* Reduce max width for smaller screens */
        height: 300px; /* Maintain square aspect */
    }
}

@media (max-width: 480px) {
    .about-img-holder {
        max-width: 250px; /* Even smaller max width for very small screens */
        height: 250px; /* Keep it square */
    }
}

/* Service card */


.logos {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-block-start: var(--gutter-x-large);
}

@media (max-width: 885px) {
  .logos {
    padding-block-start: calc(
      var(--gutter-x-large) + var(--gutter-x-large) - 2rem
    );
  }
}

.logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo {
  position: absolute;
  top: 0;
  max-block-size: 500px;
  max-inline-size: 500px;
  transition: all 2.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 845px) {
  .logo {
    max-inline-size: 100px;
  }

  .logo-group:last-child {
    display: none;
  }
}

@media (max-width: 400px) {
  .logo {
    max-inline-size: 85px;
  }
}

.logo.hide {
  opacity: 0;
}

.logo.to-top {
  transform: scale(0.4) translateY(-150px);
}

.logo.to-bottom {
  transform: scale(0.4) translateY(150px);
}

body.dark .logo {
  filter: invert(97%) grayscale(100%) opacity(0.6);
}

body.light .logo {
  filter: grayscale(100%) opacity(0.6);
}




/* Education Timeline */
.testimonials {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    position: relative;
    gap: 2rem;
    color: var(--body); /* Text color based on theme */
}

/* Add timeline line */
.testimonials::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border); /* Border color based on theme */
    z-index: 0;
    transition: height 0.3s ease, background-color 0.3s ease;
}

/* Each educational stage */
.testimonial {
    position: relative;
    background: var(--bg-color-secondary); /* Background based on theme */
    padding: 1rem;
    border: 1px solid var(--border); /* Use theme border color */
    border-radius: 8px;
    text-align: center;
    width: calc(100% - 4rem)/3; /* Adjusted for 3 equal sections */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for educational stages */
.testimonial:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow); /* Shadow effect based on theme */
}


/* Testimonial content */
.testimonial .testimonial-text {
    margin-bottom: 1rem;
    font-size: var(--text-small); /* Font size based on theme */
    color: var(--body); /* Text color based on theme */
}

.testimonial .testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 2px solid var(--border); /* Border around image */
}

.testimonial .testimonial-author-name {
    font-weight: bold;
    margin: 0.2rem 0;
    color: var(--important); /* Name text color (usually white or black based on theme) */
}

.testimonial .testimonial-author-job {
    font-size: var(--text-small); /* Font size for the job title */
    color: var(--sub); /* Secondary text color */
}

/* Responsive design adjustments */

/* Tablet and larger screens */
@media (max-width: 1045px) {
    .testimonials {
        flex-direction: column;
        align-items: center;
    }

    .testimonials::before {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
    }

    .testimonial {
        width: 100%; /* Full width for smaller screens */
        margin: 1rem 0;
        text-align: center;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    .testimonials {
        flex-direction: column;
        align-items: center;
    }

    .testimonials::before {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
    }

    .testimonial {
        width: 100%; /* Stack testimonials vertically */
        margin: 1rem 0;
        text-align: center;
    }

    .testimonial .testimonial-author img {
        width: 40px;
        height: 40px;
    }

    .testimonial .testimonial-author-name {
        font-size: var(--text-small);
    }

    .testimonial .testimonial-author-job {
        font-size: var(--text-small);
    }
}

/* Smaller mobile screens */
@media (max-width: 485px) {
    .testimonials {
        flex-direction: column;
        align-items: center;
    }

    .testimonials::before {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
    }

    .testimonial {
        width: 100%; /* Full width for very small screens */
        margin: 1rem 0;
    }

    .testimonial .testimonial-text {
        font-size: var(--text-small); /* Ensure readability on smaller screens */
    }
}
/* --------------------------------- */
/* ----- My Journey Timeline ----- */
/* --------------------------------- */

.timeline-section {
  padding: 60px 20px;
  background: #f8f9fa;
}

.timeline-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: #333;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto;
}

/* Center vertical line */
.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: linear-gradient(180deg, #ddd 0%, #bbb 100%);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

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

/* LEFT items */
.timeline-item.left {
  left: 0;
  text-align: right;
}

/* RIGHT items */
.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* -------------------------------
   IMAGE MARKER (graduation cap, trophy, briefcase)
-------------------------------- */

.timeline-marker {
  position: absolute;
  top: 30px;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.3s ease;
}

/* Marker positioning */
.timeline-item.left .timeline-marker {
  right: -24px;
}

.timeline-item.right .timeline-marker {
  left: -24px;
}

/* Marker icon image */
.timeline-marker img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Marker rings by type */
.timeline-item.degree .timeline-marker {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #27ae60;
}

.timeline-item.award .timeline-marker {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #f39c12;
}

.timeline-item.work .timeline-marker {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #3498db;
}

/* Hover effect on marker */
.timeline-item:hover .timeline-marker {
  transform: scale(1.15);
}

/* -------------------------------
   CONTENT CARD
-------------------------------- */

.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  z-index: 2;
}

/* LEFT alignment */
.timeline-item.left .timeline-content {
  flex-direction: row-reverse;
  text-align: right;
}

/* RIGHT alignment */
.timeline-item.right .timeline-content {
  flex-direction: row;
  text-align: left;
}

/* Zoom hover effect on the entire card */
.timeline-item:hover .timeline-content {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* -------------------------------
   LOGO SIZING
-------------------------------- */

.timeline-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

/* -------------------------------
   TEXT CONTENT
-------------------------------- */

.content-text {
  flex: 1;
}

.content-text h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #222;
  line-height: 1.3;
}

.content-text h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}

.content-text h3 a:hover {
  color: #3498db;
  text-decoration: underline;
}

.org {
  font-size: 0.95rem;
  color: #555;
  margin: 4px 0;
  line-height: 1.4;
}

.org a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.org a:hover {
  color: #3498db;
  text-decoration: underline;
}

.date {
  font-size: 0.9rem;
  color: #999;
  margin-top: 8px;
  font-style: italic;
}

/* ---------------------------------
   MOBILE RESPONSIVE
--------------------------------- */

@media (max-width: 768px) {
  .timeline::after {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
    text-align: left;
    left: 0 !important;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-marker {
    left: 6px !important;
    right: auto !important;
  }

  .timeline-content {
    flex-direction: row !important;
    text-align: left !important;
  }

  .timeline-logo {
    width: 50px;
    height: 50px;
  }

  .content-text h3 {
    font-size: 1.1rem;
  }
  .timeline-logo-stacked {
  width: 100%;
  max-width: 70px;
  height: auto;
  max-height: 45px;
  object-fit: contain;
  border-radius: 4px;
}
}

/* --------------------------------- */
/* ----- Featured article -----*/
/* --------------------------------- */

.featured-article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-block-end: 44.8px;
  }
  
  @media (max-width: 985px) {
    .featured-article {
      margin-block-end: 24.4px;
    }
  }
  
  .featured-article .article-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%; /* Ensure it adapts to the container width */
  }
  
  .article-illustration img {
    max-width: 50%; /* Scales the image to fit within the container */
    height: auto;    /* Maintains the aspect ratio */
    border-radius: var(--gutter-nano);
    margin: 0 auto;  /* Centers the image horizontally */
    border-radius: 20px;
  }
  

/* --------------------------------- */
/* ----- Contact -----*/
/* --------------------------------- */

.contact-content {
  display: grid;
  grid-template-columns: minmax(245px, 35%) 1fr;
  margin-block: var(--gutter-x-large);
  border: 1px solid var(--border);
  border-radius: var(--gutter-nano);
}

@media (max-width: 1032px) {
  .contact-content {
    display: flex;
    flex-direction: column-reverse;
    max-inline-size: 845px;
    margin-inline: auto;
  }
}

.contact-textbox,
.contact-form {
  padding: var(--gutter-large) var(--gutter-small);
}

.hire-alert {
  display: inline-flex;
  align-items: center;
  gap: var(--gutter-nano);
  font-size: initial;
  padding: var(--gutter-nano) var(--gutter-micro);
  border-radius: var(--gutter-small);
  position: relative;
  z-index: 1;
  margin-block-end: var(--gutter-small);
  color: var(--important);
}

.hire-alert::before,
.hire-alert::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.hire-alert::after {
  background-image: var(--gradient-border);
  z-index: -2;
}

.hire-alert::before {
  background-color: var(--bg-color-primary);
  inset: 1px;
  z-index: -1;
}

.indicator {
  display: inline-block;
  block-size: var(--gutter-nano);
  inline-size: var(--gutter-nano);
  border-radius: 50%;
  background-color: red;
  animation: blink 550ms alternate infinite var(--easing);
}

@keyframes blink {
  100% {
    opacity: 0;
  }
}

.contact-text {
  margin-block-end: var(--gutter-small);
}

.signatures {
  inline-size: 150px;
}

body.light .signatures {
  filter: invert(1);
}

.contact-form {
  background-color: var(--bg-color-secondary);
  border-top-right-radius: var(--gutter-nano);
  border-bottom-right-radius: var(--gutter-nano);
}

.form-field label,
.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
}

.form-field label {
  color: var(--important);
}

.form-field input,
.form-field textarea {
  font-size: var(--text-small);
  color: var(--sub);
  border: none;
  outline: none;
  border-bottom: 1px solid var(--border);
  background-color: transparent;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #888;
}

.form-field input,
.form-field textarea {
  margin-block-end: var(--gutter-small);
  padding: var(--gutter-nano);
  margin-inline: var(--gutter-nano);
}

.form-field label {
  font-size: var(--text-small);
  margin-block-end: var(--gutter-nano);
  margin-inline-start: var(--gutter-nano);
}

.contact-form button[type="submit"] {
  border: none;
}
/* Dark mode for timeline */
body.dark .timeline-section {
  background: var(--bg-color-primary);
}

body.dark .timeline-section h2 {
  color: var(--important);
}

body.dark .timeline::after {
  background: linear-gradient(180deg, #444 0%, #333 100%);
}

body.dark .timeline-content {
  background: var(--bg-color-secondary);
  border-color: var(--border-dark);
}

body.dark .timeline-marker {
  background: var(--bg-color-secondary);
}

body.dark .content-text h3,
body.dark .content-text h3 a {
  color: var(--important);
}

body.dark .org,
body.dark .org a {
  color: var(--sub);
}

body.dark .date {
  color: var(--body);
}

/* Light mode for timeline */
body.light .timeline-section {
  background: #f8f9fa;
}

body.light .timeline-section h2 {
  color: #333;
}

/* --------------------------------- */
/* ----- Footer -----*/
/* --------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--gutter-x-large);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 875px) {
  .footer-content {
    flex-direction: column-reverse;
    gap: var(--gutter-small);
  }
  .footer-text {
    text-align: center;
  }
}

.footer-text {
  font-size: var(--text-small);
}

.footer-text a {
  color: var(--sub);
}

.footer-links {
  display: flex;
  gap: var(--gutter-small);
  list-style-type: none;
}

@media (max-width: 1040px) {
  .footer-links {
    gap: var(--gutter-micro);
  }
}

.footer-link img {
  block-size: 32px;
  inline-size: 32px;
}

.footer-link a {
  opacity: 0.875;
  transition: 225ms ease-in opacity;
}

.footer-link a:hover {
  opacity: 1;
}

body.dark .footer-link img {
  filter: invert(1);
}

.theme-switch {
  /* Track */

  --track-size: calc(var(--thumb-size) * 2);
  --track-padding: 0.225rem;
  --track-inactive: hsl(80 0% 80%);
  --track-active: #d7aefb;

  --track-color-inactive: var(--track-inactive);
  --track-color-active: var(--track-active);

  /* Thumb */

  --thumb-position: 0%;
  --thumb-size: 1.2rem;
  --thumb: hsl(0 0% 100%);
  --thumb-highlight: hsla(0, 0%, 0%, 0.056);

  --thumb-color: var(--thumb);
  --thumb-color-highlight: var(--thumb-highlight);
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 2ch;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch > span,
.theme-switch > input {
  cursor: pointer;
}

.theme-switch span {
  font-size: 1rem;
  color: var(--sub);
}

.theme-switch > input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: content-box;
  inline-size: var(--track-size);
  block-size: var(--thumb-size);
  padding: var(--track-padding);
  background-color: var(--track-color-inactive);
  border-radius: var(--track-size);
}

.theme-switch > input::after {
  display: block;
  content: "";
  inline-size: var(--thumb-size);
  block-size: var(--thumb-size);
  background-color: var(--thumb-color);
  border-radius: 50%;
  transform: translateX(var(--thumb-position));
  transition: 500ms all cubic-bezier(0.45, 0.05, 0.22, 1.3);
}

input:checked {
  --thumb-position: 100%;
  background-color: var(--track-active);
}


/* COUNTDOWN */
#phd-countdown {
    padding: var(--gutter-large) 0;
    background-color: var(--bg-color-primary);
    color: var(--important);
    text-align: center;
}

.countdown-container {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--gutter-medium);
    border: 2px solid var(--border-dark);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.countdown-container h2 {
    font-size: var(--h2);
    margin-bottom: var(--gutter-small);
}

.countdown-timer {
    font-size: var(--text-large);
    font-weight: bold;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.countdown-timer span {
    color: var(--primary-color);
    font-size: var(--h3);
}