@import url("https://fonts.cdnfonts.com/css/bebas-neue");
@import url("https://fonts.cdnfonts.com/css/poppins");

/* MAIN */
body {
  margin: 0;
  font-size: 15px;
  background-color: #121212;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

svg {
  color: white;
}

:root {
  --width-df: min(1200px, 90vw);
  --diameter: 500px;
}

header {
  width: 100%;
  padding: 0 calc((100% - var(--width-df)) / 2);
  display: flex;
  justify-content: space-between;
  height: 80px;
  align-items: center;
  z-index: 999;
  position: sticky;
  top: 0;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    box-shadow 0.3s ease;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

header .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

header .logo img {
  width: 65px;
}

header .logo .logo-text {
  font-family: Poppins, sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* HAMBURGER MENU */
.hamburger-menu {
  position: relative;
}

#menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  list-style: none;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.nav-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu li {
  padding: 15px 25px;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.9em;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.nav-menu li:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* SLIDER */
/* SLIDER TEXT */
.slider {
  color: #eee;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: -90px;
  position: relative;
}

.slider .list .item {
  position: absolute;
  inset: 0 0 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider .list .item .content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  height: fit-content;
  width: 100%;
  max-width: 1050px; /* Increased to push the left and right sides a little further apart */
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px; /* Widened the gap to give the elements more breathing room */
  font-size: 1.2em;
  text-transform: uppercase;
  font-family: Poppins;
  text-shadow: 0 0 80px #000;
}

.slider .list .item .content h2 {
  font-size: clamp(4em, 8vw, 10em);
  font-family: "Bebas Neue";
  line-height: 0.9em;
  grid-row: 1 / 3;
  z-index: 1; /* Tucks the h2 behind the model */
  opacity: 0;
}

/* Brings the Home slide's h2 forward so it sits entirely in front of the model */
.slider .list .item:nth-child(1) .content h2 {
  z-index: 4;
}

/* Forces the "More About Me" title to stack into 3 lines on desktop */
.slider .list .item:nth-child(2) .content h2 {
  width: min-content;
}

/* Styling for p1: Aligned to the left */
.slider .list .content p1 {
  display: inline-block;
  padding: 15px 25px;
  text-align: right;
  position: relative;
  z-index: 1; /* Placed behind the me.png model */
  opacity: 0;
  transition:
    opacity 1s,
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
  font-family: Poppins, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
  color: #f0f0f0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 4px solid #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 450px;
  height: fit-content;
  align-self: flex-start;
  margin-left: auto;
}

.slider .list .content p1:hover {
  transform: translateX(-5px);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06));
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  color: #fff;
}

/* ACTION BOX & BUTTONS */
.slider .list .content .action-box {
  display: flex;
  position: relative;
  z-index: 3;
  opacity: 0;
  transition: opacity 1s;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: fit-content;
  align-self: flex-start;
}

/* Glassmorphism panel styling for the About and Projects section */
.slider .list .content .about-action-box,
.slider .list .content .projects-action-box {
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 4px solid #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: clamp(15px, 3vw, 25px) clamp(20px, 4vw, 35px);
  z-index: 1; /* Puts the entire box behind me.png */
  width: 100%;
  max-width: 450px;
  margin-left: auto;
}

/* Keep Projects box a fixed width to prevent resizing during typewriter animation */
.slider .list .content .projects-action-box {
  width: 100% !important;
  max-width: 450px;
}

/* Clean text overrides so they don't double-box inside the panel */
.slider .list .content .about-action-box p1,
.slider .list .content .projects-action-box p1 {
  background: none;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: auto;
  align-self: flex-end;
}

.slider .list .content .projects-action-box p1 {
  text-align: center;
  width: 100%;
}

.slider .list .content .about-action-box p1:hover,
.slider .list .content .projects-action-box p1:hover {
  transform: none;
  background: none;
  box-shadow: none;
  color: #fff;
}

.slider .list .content .about-action-box p2 {
  margin: 0;
  padding: 0;
  font-size: 1.3em;
}

.about-action-box .social-links {
  gap: 15px;
}

.about-action-box .social-links a,
.contact-action-box .social-links a {
  width: 40px;
  height: 40px;
}

.about-action-box .action-buttons,
.projects-action-box .action-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-top: 20px;
}

.projects-action-box .action-buttons {
  width: 100%;
}

/* TYPEWRITER TEXT */
.typewriter-text {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.1rem;
  color: rgba(140, 170, 110, 1); /* Matches Olive Projects theme */
  min-height: 1.5em;
  text-align: right;
  font-weight: bold;
  white-space: nowrap;
  width: 100%;
  transform: translateZ(
    0
  ); /* Forces GPU layer to stop parent blur rendering glitches */
  backface-visibility: hidden;
}

.typewriter-text::after {
  content: "|";
  animation: blink 1s step-end infinite;
}

/* Glassmorphism panel styling for the Contact section */
.slider .list .content .contact-action-box {
  flex-direction: column;
  align-items: stretch;
  gap: 25px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 4px solid #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: clamp(20px, 4vw, 35px) clamp(20px, 4vw, 40px);
  z-index: 3 !important; /* Brings the box in front of me.png */
  width: 100% !important;
  max-width: 450px;
  margin-left: auto;
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.contact-form label {
  font-family: Poppins, sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.3s,
    color 0.5s ease,
    text-shadow 0.5s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Contact Info Left Styling */
.contact-info-left {
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 2vw, 25px);
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  position: relative;
  z-index: 3;
  opacity: 0;
  transition: opacity 1s;
}

.slider .list .item.active .contact-info-left {
  opacity: 1;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  color: #eee;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.icon-circle svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

/* Dissolve text animation */
.contact-form input.dissolve,
.contact-form textarea.dissolve {
  color: transparent !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Success Popup Animation */
.success-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  background: rgba(0, 0, 0, 0.65);
  color: #eee;
  padding: 12px 25px;
  border-radius: 30px; /* Sleek pill shape */
  font-family: Poppins, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.success-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.contact-form textarea {
  resize: none;
}

.contact-form .btn {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
}

.slider .list .item.active .content .action-box {
  opacity: 1;
}

.action-box .btn {
  padding: 12px 28px;
  font-family: Poppins, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-shadow: none;
}

.action-box .btn:hover {
  background: #f8f8f8;
  color: #333;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Styling for p2: Positioned in front of the background image */
.slider .list .content p2 {
  font-family: "Bebas Neue";
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 2px;
  display: inline-block;
  text-align: right;
  height: fit-content;
  align-self: center;
  margin-left: auto;

  /* Layering logic */
  position: relative;
  z-index: 3; /* Higher index to sit "forward" or on top of the background */
  opacity: 0;
  transition: opacity 1s;
}

/* SLIDER IMAGE ITEM CLASS*/
.slider .list .image {
  flex-shrink: 0;
  width: var(--diameter);
  height: var(--diameter);
  background-image: var(--url);
  background-position: center;
  background-size: var(--diameter) var(--diameter);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.slider .list .item .image::before,
.slider .list .item .image::after {
  position: absolute;
  width: 70%;
  height: 70%;
  content: "";
  border-radius: 50%;
  background-image: linear-gradient(to right, #0004, #0004), var(--url);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-position: center;
  background-size: var(--diameter) var(--diameter);
}

.slider .list .item .image::after {
  width: 30%;
  height: 30%;
  background-image: var(--url);
}

/* ANIMATED MINIMALIST WALL BACKGROUNDS */
.slider .list .item .image.animated-bg {
  background-image: none;
  overflow: hidden;
}

/* Restored the rotating circles with a minimalist shadow effect */
.slider .list .item .image.animated-bg::before {
  background: transparent;
  border: none;
  box-shadow:
    15px 15px 50px rgba(0, 0, 0, 0.5),
    inset 10px 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.slider .list .item .image.animated-bg::after {
  background: transparent;
  border: none;
  box-shadow:
    -15px -15px 50px rgba(0, 0, 0, 0.4),
    inset -10px -10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* HOME (Charcoal Blobs) */
.bg-home {
  background: radial-gradient(circle at 30% 30%, #333333, #1f1f1f 70%, #0a0a0a);
  box-shadow:
    inset -20px -20px 60px rgba(0, 0, 0, 0.6),
    inset 20px 20px 60px rgba(255, 255, 255, 0.05);
}

.bg-home .blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  animation: float-blob 15s infinite alternate ease-in-out;
  will-change: transform;
}

.bg-home .blob-1 {
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(120, 120, 120, 0.15) 0%,
    transparent 70%
  );
  top: -10%;
  left: -10%;
}

.bg-home .blob-2 {
  width: 50%;
  height: 50%;
  background: radial-gradient(
    circle,
    rgba(60, 60, 60, 0.3) 0%,
    transparent 70%
  );
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

.bg-home .blob-3 {
  width: 40%;
  height: 40%;
  background: radial-gradient(
    circle,
    rgba(180, 180, 180, 0.15) 0%,
    transparent 70%
  );
  top: 40%;
  left: 30%;
  animation-delay: -10s;
}

/* ABOUT (Muted Rust/Clay Nodes) */
.bg-about {
  background: radial-gradient(circle at 70% 30%, #422b22, #291a14 70%, #140d0a);
  box-shadow:
    inset -20px -20px 60px rgba(0, 0, 0, 0.6),
    inset 20px 20px 60px rgba(255, 255, 255, 0.05);
}
.bg-about .node {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  animation: pulse-node 8s infinite alternate ease-in-out;
  will-change: transform, opacity;
}
.bg-about .node-1 {
  width: 50%;
  height: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 130, 90, 0.15) 0%,
    transparent 70%
  );
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.bg-about .node-2 {
  width: 40%;
  height: 40%;
  background: radial-gradient(
    circle,
    rgba(200, 130, 90, 0.15) 0%,
    transparent 70%
  );
  bottom: 10%;
  right: 10%;
  animation-delay: -3s;
}
.bg-about .node-3 {
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(200, 130, 90, 0.15) 0%,
    transparent 70%
  );
  top: 40%;
  left: 30%;
  animation-delay: -6s;
}

/* PROJECTS (Muted Olive Waves) */
.bg-projects {
  background: radial-gradient(circle at 50% 50%, #303b28, #1e2618 70%, #0e120b);
  box-shadow:
    inset -20px -20px 60px rgba(0, 0, 0, 0.6),
    inset 20px 20px 60px rgba(255, 255, 255, 0.05);
}
.bg-projects .wave {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(140, 170, 110, 0.15),
    transparent
  );
  width: 250%;
  height: 25%;
  filter: blur(15px);
  z-index: 0;
  animation: slide-wave 12s infinite alternate ease-in-out;
  will-change: transform, filter;
}
.bg-projects .wave-1 {
  top: 10%;
  left: -50%;
  animation-duration: 10s;
}
.bg-projects .wave-2 {
  top: 40%;
  left: -50%;
  animation-duration: 15s;
  animation-direction: alternate-reverse;
}
.bg-projects .wave-3 {
  top: 70%;
  left: -50%;
  animation-duration: 12s;
}

/* CONTACT (Muted Deep Wine Sparks) */
.bg-contact {
  background: radial-gradient(circle at 30% 70%, #3d232c, #26151b 70%, #12090d);
  box-shadow:
    inset -20px -20px 60px rgba(0, 0, 0, 0.7),
    inset 20px 20px 60px rgba(255, 255, 255, 0.05);
}
.bg-contact .spark {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(180, 90, 110, 0.3) 0%,
    transparent 70%
  );
  z-index: 0;
  animation: drift-spark 10s infinite alternate ease-in-out;
  will-change: transform, opacity;
}
.bg-contact .spark-1 {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
}
.bg-contact .spark-2 {
  width: 40%;
  height: 40%;
  bottom: 10%;
  right: 20%;
  animation-delay: -4s;
}
.bg-contact .spark-3 {
  width: 50%;
  height: 50%;
  top: 50%;
  right: 40%;
  animation-delay: -7s;
}

/* ANIMATION */
/* item comes before item active */
.slider .list .content h2 {
  transform: translateY(-100%);
  transition:
    transform 1s,
    opacity 1s;
}

.slider .list .item .image {
  transform: rotate(-60deg);
  filter: blur(30px);
  opacity: 0;
  transition:
    transform 1s,
    filter 1s,
    opacity 1s;
}

.slider .list .item .image::before {
  transform: translate(-50%, -50%) rotate(-120deg);
  transition: transform 1s;
}

.slider .list .item .image::after {
  transform: translate(-50%, -50%) rotate(-170deg);
  transition: transform 1s;
}

.slider .list .item {
  pointer-events: none;
}

/* SLIDE ITEM ACTIVE CLASS*/
.slider .list .item.active {
  pointer-events: auto;
}

.slider .list .item.active .content h2 {
  transform: translateY(0);
}

.slider .list .item.active .content h2,
.slider .list .item.active .content p1,
.slider .list .item.active .content p2 {
  opacity: 1;
}

.slider .list .item.active .image {
  transform: rotate(0);
  filter: blur(0);
  opacity: 1;
}

.slider .list .item.active .image::before,
.slider .list .item.active .image::after {
  transform: translate(-50%, -50%) rotate(0);
}

/* ITEM AFTER ACTIVE ITEM */

.slider .list .item.active ~ .item .content h2 {
  transform: translateY(100%);
}

.slider .list .item.active ~ .item .image {
  transform: rotate(60deg);
  filter: blur(30px);
}

.slider .list .item.active ~ .item .image::before {
  transform: translate(-50%, -50%) rotate(120deg);
}

.slider .list .item.active ~ .item .image::after {
  transform: translate(-50%, -50%) rotate(170deg);
}

/* BOUNCING SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #eee;
  font-family: Poppins, sans-serif;
  font-size: 0.9em;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transition:
    opacity 1s,
    color 0.3s;
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  color: #fff;
}

.slider .list .item.active .scroll-indicator {
  opacity: 1;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-indicator.inline-bounce {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  animation: inline-bounce 2s infinite;
}

@keyframes inline-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

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

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(10%, -15%) scale(1.1);
  }
  66% {
    transform: translate(-10%, 10%) scale(0.9);
  }
  100% {
    transform: translate(15%, 15%) scale(1.05);
  }
}

@keyframes pulse-node {
  0% {
    transform: scale(0.8) rotate(0deg);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.3) rotate(45deg);
    opacity: 1;
  }
}

@keyframes slide-wave {
  0% {
    transform: translateX(-10%) translateY(-20px) rotate(-25deg);
  }
  100% {
    transform: translateX(10%) translateY(20px) rotate(-25deg);
  }
}

@keyframes drift-spark {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(20%, -30%) scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: translate(-10%, -10%) scale(0.9);
    opacity: 0.4;
  }
}

/* BOTTOM NAVIGATION */
.bottom-nav {
  --indicator-left: 0px;
  --indicator-top: calc(100% + 8px);
  --indicator-width: 0px;
  position: absolute;
  left: 50%;
  font-size: 1.3em;
  transform: translateX(-50%);
  bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  z-index: 100; /* Brings the buttons to the very front */
  width: min(var(--width-df), calc(100% - 30px));
}

.bottom-nav::after {
  content: "";
  position: absolute;
  left: 0;
  top: var(--indicator-top);
  width: var(--indicator-width);
  height: 2px;
  border-radius: 999px;
  background: #fff;
  pointer-events: none;
  transform: translateX(var(--indicator-left));
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.bottom-nav button {
  all: unset;
  cursor: pointer;
  color: #eee;
  font-family: Poppins, sans-serif;
  font-size: 1.2em;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.bottom-nav button:hover,
.bottom-nav button:focus-visible,
.bottom-nav button.active {
  color: #fff;
  opacity: 1;
}

.bottom-nav button:hover,
.bottom-nav button:focus-visible {
  transform: translateY(-4px);
}

.slider .list::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 100vw);
  background-image: url(Media/me-readable.webp);
  height: 70%;
  background-size: cover;
  background-position: top;
  pointer-events: none;
  animation: showModel 1s ease-in-out 1 forwards;
  z-index: 2;
}

@keyframes showModel {
  from {
    transform: translateX(-50%) scale(1.5) translateY(88px);
  }
}

/* DETAILS SECTION (BELOW SLIDER) */
.details-section {
  width: 100%;
  background-color: #121212;
  color: #eee;
}

.details-section .detail-item {
  display: none; /* Hide inactive details */
  padding: 100px 20px 100px 20px;
  position: relative;
  overflow: hidden;
}

/* Remove padding from the empty Home and Contact details items so they don't scroll */
.details-section .detail-item:first-child,
.details-section .detail-item:last-child {
  padding: 0;
}

.details-section .detail-item.active {
  display: block; /* Show details for active slide */
}

.divider {
  width: 80%;
  max-width: var(--width-df);
  height: 2px;
  background-color: #eee;
  margin: 0 auto 50px auto;
  opacity: 0.2;
  position: relative;
  z-index: 1;
}

.details-content {
  max-width: var(--width-df);
  margin: 0 auto;
  font-family: Poppins, sans-serif;
  position: relative;
  z-index: 1;
}

/* SUBTLE NODES BACKGROUND ANIMATION */
.nodes-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5; /* Keeping it subtle and dark */
}

#nodes-canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(1.5px); /* Adds a soft out-of-focus void effect */
  transform: scale(1.05); /* Hides any hard edges caused by the blur */
}

/* PROJECTS INTERACTIVE BACKGROUND */
.projects-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

#projects-canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: blur(2px); /* Reduced blur to make particles more visible */
  transform: scale(1.05) translateZ(0); /* Hide blurred edges and force GPU acceleration */
  will-change: filter, transform;
}

.details-content h3 {
  font-size: 3em;
  font-family: "Bebas Neue", sans-serif;
  margin-bottom: 20px;
}

/* ABOUT SECTION STYLING */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  margin-top: 20px;
}

.about-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: translateY(-10px);
}

.about-content {
  flex: 2 1 400px;
}

.about-content p {
  line-height: 1.8;
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #ccc;
}

.about-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-list li {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 10px;
  border-left: 4px solid #eee;
  font-size: 1.05em;
  color: #ccc;
}

.about-list li strong {
  color: #fff;
  margin-right: 10px;
}

/* EDUCATION SECTION */
.education-section {
  margin-top: 80px;
}

.education-section h3 {
  text-align: center;
}

.education-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 800px;
  margin: 30px auto 0 auto;
  text-align: center;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.education-content:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.education-content h4 {
  font-size: 1.5em;
  color: #fff;
  font-family: Poppins, sans-serif;
  margin-bottom: 5px;
}

.education-content .latin {
  font-size: 1.1em;
  color: #eee;
  margin-bottom: 5px;
  font-weight: regular;
  font-style: italic;
}

.education-content .degree {
  font-size: 1.1em;
  color: #eee;
  margin-bottom: 20px;
  font-weight: bold;
}

.education-content .degree span {
  color: #ccc;
  font-weight: normal;
}

.education-content ul {
  list-style: none;
  padding: 0;
  color: #ccc;
}

.education-content ul li {
  font-size: 1.05em;
  line-height: 1.6;
}

.education-content ul li strong {
  color: #fff;
}

/* WORK EXPERIENCE TIMELINE */
.experience-section {
  margin-top: 80px;
}

.experience-section h3 {
  text-align: center;
  margin-bottom: 50px;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

/* The Stem */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background: #333;
  border: 4px solid #fff;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: #fff;
}

.timeline-item.left .timeline-dot {
  right: -10px;
}

.timeline-item.right .timeline-dot {
  left: -10px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
  font-size: 1.4em;
  color: #fff;
  font-family: Poppins, sans-serif;
  margin-bottom: 5px;
}

.timeline-company {
  font-size: 1.1em;
  color: #eee;
  font-weight: bold;
  margin-bottom: 5px;
}

.timeline-company a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease;
}

.timeline-company a:hover {
  color: #fff;
  text-decoration: underline;
}

.timeline-date {
  font-size: 0.9em;
  color: #ccc;
  margin-bottom: 15px;
  font-style: italic;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  color: #ccc;
}

.timeline-content ul li {
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* SKILLS / WHAT I DO SECTION */
.skills-section {
  margin-top: 80px;
}

.skills-section h3 {
  text-align: center;
}

.skills-section p {
  text-align: center;
  color: #ccc;
  margin-top: 10px;
  margin-bottom: 30px;
  font-size: 1.1em;
  max-width: 800px;
  margin: 10px auto 30px auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.skill-category {
  align-items: stretch;
  flex-direction: column;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.skill-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.skill-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  text-shadow: none;
}

.skill-info {
  flex: 1;
}

.skill-name {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #fff;
  font-family: Poppins, sans-serif;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  color: #ddd;
  font-family: Poppins, sans-serif;
  font-size: 0.9rem;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.skill-tag-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.skill-tag-logo.skill-logo-placeholder {
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.55rem;
}

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

.progress {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), #fff);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* SOCIAL FOOTER */
.social-footer {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.social-footer p {
  font-family: Poppins, sans-serif;
  font-size: 1.2em;
  color: #fff;
  font-weight: bold;
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-links a {
  color: #eee;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: #fff;
  color: #111;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* SCROLL ANIMATION CLASSES */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* TIMELINE SPECIFIC ANIMATIONS */
.timeline-item.left.fade-in {
  transform: translateX(-50px);
}

.timeline-item.right.fade-in {
  transform: translateX(50px);
}

.timeline-item.left.fade-in.appear,
.timeline-item.right.fade-in.appear {
  opacity: 1;
  transform: translateX(0);
}

/* PROJECTS CAROUSEL */
.projects-carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 50px);
  padding: clamp(20px, 4vw, 50px) clamp(20px, 5vw, 80px) clamp(70px, 8vw, 100px);
  align-items: center;
  justify-content: center;
}

.project-image {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 15px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s ease;
}

.project-image img:hover {
  transform: scale(1.05);
}

.project-details {
  flex: 2 1 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.project-details h4 {
  font-size: 2.2rem;
  font-family: Poppins, sans-serif;
  color: #fff;
  margin: 0;
}

.certification {
  font-size: 0.8rem;
  color: #ccc;
  line-height: 1.1;
  font-style: italic;
}

.project-desc {
  font-size: 1.05rem;
  color: #ccc;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-tech span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #fff;
}

.project-authors {
  font-size: 0.95rem;
  color: #aaa;
}

.project-authors strong {
  color: #fff;
}

.project-details .btn {
  margin-top: 10px;
  padding: 12px 28px;
  font-family: Poppins, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-details .btn:hover {
  background: #f8f8f8;
  color: #333;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Carousel Controls */
.proj-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 10;
}

.proj-ctrl:hover {
  background: #fff;
  color: #111;
  transform: translateY(-50%) scale(1.1);
}

.proj-ctrl svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.proj-ctrl.prev {
  left: 15px;
}

.proj-ctrl.next {
  right: 15px;
}

/* Carousel Indicators */
.proj-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.proj-indicators .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.proj-indicators .dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* BACK TO TOP BUTTON */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #eee;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  transform: translateY(-5px);
}

#back-to-top svg {
  color: #111;
}

/* RESPONSIVE */
/* For tablet screens*/
@media all and (max-width: 1024px) {
  .slider .list .item .content {
    gap: 30px;
  }
  .slider .list .item .content h2 {
    font-size: clamp(5em, 8vw, 7em);
  }
  .slider .list .content p1 {
    max-width: 350px;
  }
  .slider .list .content .projects-action-box,
  .slider .list .content .contact-action-box,
  .slider .list .content .about-action-box {
    max-width: 350px !important;
    right: 0; /* Resets the offset on smaller screens */
  }
  .slider .list::after {
    height: 60%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* For mobile screens*/
@media all and (max-width: 767px) {
  /* Disable extremely expensive GPU blur and rotation animations during slide transitions */
  .slider .list .item .image,
  .slider .list .item.active ~ .item .image {
    filter: none !important;
    transform: none !important; /* Stops the heavy rotation of complex box-shadows */
  }
  .slider .list .item .image::before,
  .slider .list .item .image::after,
  .slider .list .item.active ~ .item .image::before,
  .slider .list .item.active ~ .item .image::after {
    transform: translate(
      -50%,
      -50%
    ) !important; /* Keeps abstract rings centered but stops rotation */
  }
  .slider .list .item .image.animated-bg::after {
    backdrop-filter: none !important; /* Prevents layer tearing on abstract shapes */
  }

  .slider .list .item .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 120px 15px 0 15px; /* Centers the text perfectly between header and model */
    gap: 15px;
    top: 0; /* Anchors the container to the true top */
    left: 0; /* Resets the desktop centering */
    right: auto;
    bottom: auto;
    margin: 0;
    height: 100%; /* Spans the exact full height of the screen */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8); /* Optimize massive text-shadow */
  }
  /* Pre-allocates GPU memory to ensure the text sliding animation hits a smooth 60fps */
  .slider .list .item .content h2,
  .slider .list .item .content p1,
  .slider .list .item .content p2 {
    will-change: transform, opacity;
  }
  .slider .list .item .content h2 {
    font-size: clamp(3rem, 12vw, 4.5rem);
    line-height: 1;
    text-align: center;
  }

  /* Resets the About title to spread across a single line naturally on mobile */
  .slider .list .item:nth-child(2) .content h2 {
    width: 100%;
  }
  .slider .list .item .content p1,
  .slider .list .item .content p2 {
    font-size: 0.95rem;
    text-align: center;
    transform: translateY(0);
    margin: 0;
    width: 100%;
  }
  .slider .list .item .content p2 {
    font-size: 1.5rem;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
  .bottom-nav {
    bottom: 24px;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .bottom-nav button {
    font-size: 0.85rem;
    line-height: 1.1;
  }
  .slider .list .item .content p1 {
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: none !important; /* Disable expensive blur */
    border-right: none;
    border-bottom: 3px solid #fff;
    margin: 0 auto 15px auto;
    padding: 15px;
  }
  /* Remove inner box for p1 inside action boxes */
  .slider .list .item .content .about-action-box p1,
  .slider .list .item .content .projects-action-box p1 {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 0 15px 0;
  }
  .slider .list .content .action-box {
    justify-content: center;
    width: 100%;
    transform: none !important; /* Removes the containing block trap */
    will-change: opacity; /* Pre-allocates GPU layer to stop transition glitches */
  }
  /* Prevents browser from destroying the GPU layer when the fade completes, stopping the "blink" */
  .slider .list .item.active .content .action-box {
    opacity: 0.99;
  }
  .slider .list .content .about-action-box,
  .slider .list .content .contact-action-box,
  .slider .list .content .projects-action-box {
    align-items: center;
    border-right: none;
    border-bottom: 3px solid #fff;
    padding: 20px 15px;
    width: 100% !important;
    max-width: 100% !important;
    right: 0;
    backdrop-filter: none !important; /* Disable blur to stop lag and z-index blinking */
    background: rgba(0, 0, 0, 0.4); /* Solid fallback background */
  }
  .slider .list .content .about-action-box,
  .slider .list .content .projects-action-box {
    position: static !important;
    transform: none !important;
    z-index: 10 !important; /* Elevates the box so it stays in front of me.png even during fade transitions */
  }
  .slider .list .content .about-action-box p1,
  .slider .list .content .about-action-box p2,
  .slider .list .content .projects-action-box p1,
  .slider .list .content .projects-action-box .typewriter-text {
    text-align: center;
    align-self: center;
  }
  .slider .list .content .projects-action-box .typewriter-text {
    font-size: clamp(
      0.7rem,
      4vw,
      0.9rem
    ); /* Responsive size keeps the text safely on one line */
    white-space: nowrap; /* Stops words from abruptly jumping to the next line */
    height: 1.5em; /* Locks container height perfectly to stop layout thrashing */
    line-height: 1.5em;
    transform: none; /* Stops the GPU layer from causing a flickering/blinking visual glitch */
    backface-visibility: visible;
  }
  /* Position action buttons at the bottom of the screen, over me.png */
  .slider .list .content .about-action-box .action-buttons,
  .slider .list .content .projects-action-box .action-buttons {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* Guarantees they sit in front of the model and are fully clickable */
    width: 100%;
    gap: 15px;
  }
  /* Make buttons and text smaller */
  .slider .list .content .about-action-box .btn,
  .slider .list .content .projects-action-box .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
  }
  .slider .list .content .scroll-indicator {
    font-size: 0.8rem;
  }
  .slider .list .content .scroll-indicator svg {
    width: 20px;
    height: 20px;
  }
  /* Hide contact info side-panel on mobile devices */
  .contact-info-left {
    display: none !important;
  }
  .slider .list .content .contact-action-box {
    gap: 15px;
    padding: 15px !important;
  }
  .contact-form {
    gap: 8px;
  }
  .contact-form label {
    font-size: 0.8rem;
  }
  .contact-form input,
  .contact-form textarea {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  .contact-form .btn {
    padding: 10px;
    font-size: 0.9rem;
  }
  .contact-action-box .social-links a {
    width: 35px;
    height: 35px;
  }
  /* Prevent me.png from overlapping content above it */
  .slider .list::after {
    height: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
  }
  /* Hide the me.png model on the Contact slide to prevent blocking the form */
  .slider.contact-slide-active .list::after {
    opacity: 0;
    visibility: hidden;
  }
  .details-section .detail-item {
    padding: 60px 15px;
  }
  .details-content h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  .about-container {
    text-align: center;
    gap: 30px;
  }
  .about-image img {
    max-height: 250px;
    max-width: 220px;
  }
  .about-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .about-list li {
    text-align: left;
    font-size: 0.9rem;
    padding: 10px 15px;
  }
  .education-section,
  .experience-section,
  .skills-section,
  .social-footer {
    margin-top: 50px;
  }
  .education-content,
  .timeline-content {
    padding: 15px;
  }
  .education-content h4,
  .timeline-content h4 {
    font-size: 1.2rem;
  }
  .education-content .degree,
  .timeline-company {
    font-size: 0.95rem;
  }
  .education-content ul li,
  .timeline-content ul li {
    font-size: 0.9rem;
  }
  .timeline::before {
    left: 15px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 40px;
    padding-right: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }
  .timeline-dot {
    width: 16px;
    height: 16px;
    top: 15px;
  }
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 7px;
    right: auto;
  }
  .timeline-item.left.fade-in,
  .timeline-item.right.fade-in {
    transform: translateY(40px);
  }
  .timeline-item.left.fade-in.appear,
  .timeline-item.right.fade-in.appear {
    transform: translateY(0);
  }
  .skills-section p {
    font-size: 0.95rem;
  }
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  .skill-item {
    padding: 12px;
    gap: 12px;
  }
  .skill-logo {
    width: 30px;
    height: 30px;
  }
  .skill-name {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  .skill-category-header {
    gap: 10px;
  }
  .skill-tags {
    gap: 8px;
  }
  .skill-tag {
    padding: 6px 9px;
    font-size: 0.78rem;
  }
  .skill-tag-logo,
  .skill-tag-logo.skill-logo-placeholder {
    width: 18px;
    min-width: 18px;
    height: 18px;
  }
  .projects-carousel {
    margin: 15px auto; /* Reduces outer margin to help the box fit vertically */
  }
  .carousel-slide {
    flex-direction: column;
    text-align: center;
    padding: 15px 10px 70px 10px; /* Increased bottom padding to keep content away from dots */
    gap: 5px;
  }
  .project-image {
    width: 100%;
  }
  .project-image img {
    max-width: 220px;
  }
  .project-image img[src*="rpc.svg"] {
    max-width: 280px;
    margin-top: -40px; /* Adjusted to absorb scaled-up top padding */
    margin-bottom: -80px; /* Adjusted to keep the bottom gap exactly the same */
  }
  .project-details {
    align-items: center;
    padding: 0 23px; /* Creates a safe zone so the buttons can't cover the content */
    gap: 10px; /* Tighter vertical spacing between the title, text, and buttons */
  }
  .project-details h4 {
    font-size: 1.3rem;
  }
  .project-desc {
    font-size: 0.85rem;
    max-width: 95%;
  }
  .project-tech {
    justify-content: center;
  }
  .project-tech span {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
  .project-authors {
    font-size: 0.85rem;
  }
  .project-details .btn {
    padding: 8px 18px;
    font-size: 0.8rem;
  }
  .proj-ctrl {
    width: 35px;
    height: 35px;
  }
  .proj-ctrl svg {
    width: 18px;
    height: 18px;
  }
  .proj-ctrl.prev {
    left: 5px;
  }
  .proj-ctrl.next {
    right: 5px;
  }
  .social-footer p {
    font-size: 1rem;
  }
  .social-links a {
    width: 40px;
    height: 40px;
  }
}
