#about {
  background-image: linear-gradient(360deg, #faaca8 10%, #ddd6f3 90%);
  position: relative;
  border-radius: 12px 12px 0 0;
  overflow: visible;

  border-top: none;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-radius: 12px 12px 0 0;

    /* Two-color remix gradient */
    background: linear-gradient(
      90deg,
      rgb(255, 0, 0),
      /* Red */ rgb(0, 0, 255),
      /* Blue */ rgb(255, 0, 0) /* Back to Red for looping */
    );

    background-size: 200% 100%;
    animation: runningGradient 1.5s linear infinite;
    box-shadow: inset 0 8px 15px -10px rgba(255, 215, 0, 0.6);
  }

  @keyframes runningGradient {
    0% {
      background-position: 0% 0%;
    }
    100% {
      background-position: 100% 0%;
    }
  }

  margin-top: -15px;
}
#experience {
  background-image: linear-gradient(360deg, #faaca8 10%, #ddd6f3 90%);
  border-top: 6px solid;
  border-image: linear-gradient(90deg, #ffd700, #ff8c00, #ff4500) 1;

  /* Soft shadow for subtle depth */
  box-shadow: inset 0 8px 15px -10px rgba(255, 215, 0, 0.6);

  position: relative;
  overflow: visible;
  border-radius: 12px 12px 0 0; /* rounded top corners */
}
#work {
  background-image: linear-gradient(360deg, #faaca8 10%, #ddd6f3 90%);

  border-top: 6px solid;
  border-image: linear-gradient(90deg, #ffd700, #ff8c00, #ff4500) 1;

  /* Soft shadow for subtle depth */
  box-shadow: inset 0 8px 15px -10px rgba(255, 215, 0, 0.6);

  position: relative;
  overflow: visible;
  border-radius: 12px 12px 0 0; /* rounded top corners */
}

.footer {
  background-image: linear-gradient(360deg, #7950f2 5%, #f783ac 95%);
  color: #e0e7ff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 12px 20px;
  font-size: 14px;
  text-align: center;
  border-top: 6px solid #facc15;
  overflow: hidden;
}

.wave-top svg {
  display: none;
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap; /* allow wrapping on small screens */
}

.footer-logo {
  height: 28px; /* larger on desktop */
  filter: brightness(0) invert(1);
}

.footer-text a {
  color: #facc15;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-text a:hover {
  color: #fde68a;
}

/* Tablet */
@media (max-width: 768px) {
  .footer {
    font-size: 12px;
    padding: 10px 16px;
  }
  .footer-content {
    flex-direction: column;
    gap: 6px;
  }
  .footer-logo {
    height: 22px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .footer {
    font-size: 11px;
    padding: 8px 12px;
  }
  .footer-logo {
    height: 18px;
  }
}


.slideshow-wrapper {
  position: relative;
  max-width: 600px;
  margin: 30px auto;
  overflow: visible; /* allow prev/next peeking */
  padding: 0 20px; /* add some horizontal padding on small screens */
}

.slideshow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  gap: 20px;
  scroll-behavior: smooth; /* optional for smooth scroll on overflow */
}

/* On desktop: show slides in flex, on mobile allow horizontal scroll */
@media (max-width: 767px) {
  .slideshow-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    gap: 15px;
  }

  .slide {
    flex: 0 0 140px; /* smaller slide width on phone */
    height: 90px;
    opacity: 0.6;
  }

  .slide.active {
    flex: 0 0 200px;
    height: 130px;
    opacity: 1;
  }

  /* Hide arrows on small screens because scrolling is better */
  .arrow {
    display: none;
  }
}

.slide {
  flex: 0 0 200px;
  height: 130px;
  opacity: 0.5;
  transition: all 0.5s ease;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transform-origin: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Big active (center) slides */
.slide.active {
  flex: 0 0 320px;
  height: 210px;
  opacity: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: default;
  transform: scale(1);
}

/* Smaller side slides */
.slide.side-left,
.slide.side-right {
  flex: 0 0 200px;
  height: 130px;
  opacity: 0.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transform: scale(0.85);
  filter: brightness(0.85);
}

.slide.side-left {
  transform: translateX(-20%) scale(0.85);
}

.slide.side-right {
  transform: translateX(20%) scale(0.85);
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 28px;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  z-index: 10;
}

.arrow.left {
  left: -10px;
}
.arrow.right {
  right: -10px;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.navbar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: #007bff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 0;
}

/* 🔥 This line hides the button on desktop! */
@media (min-width: 992px) {
  .navbar-toggle {
    display: none;
  }
}

.navbar-toggle:hover {
  background-color: #0056b3;
}

.toggle-icon {
  position: relative;
  width: 30px;
  height: 22px;
  display: block;
}

/* Hamburger bars */
.toggle-icon::before,
.toggle-icon::after,
.toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.toggle-icon::before {
  top: 0;
}

.toggle-icon span {
  top: 9px;
}

.toggle-icon::after {
  bottom: 0;
}
/* Hide toggle on desktop, show only on screens <= 991px */
@media (min-width: 992px) {
  .navbar-toggle {
    display: none;
  }
}
#snowCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* Container styling - responsive center */
.intro-section {
  text-align: center;
  padding: 20px;
}

/* Stylish image wrapper with animated RGB border */
.intro-image-wrapper {
  display: inline-block;
  overflow: hidden;
  border-radius: 20px;
  padding: 5px; /* Glow frame padding */
  background: linear-gradient(
    270deg,
    red,
    orange,
    yellow,
    green,
    cyan,
    blue,
    violet,
    red
  );
  background-size: 1500% 1500%;
  animation: rgbBorder 10s linear infinite;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* RGB animation keyframes */
@keyframes rgbBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Image styling */
.intro-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.4s ease;
}

/* Hover animation */
.intro-image-wrapper:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.intro-image-wrapper:hover .intro-image {
  transform: scale(1.08);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .intro-section {
    padding: 10px;
  }
  .intro-image-wrapper {
    width: 90%;
  }
}

.section-bg {
  background: #f9f9f9;
  padding: 60px 0;
}

.section-title h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 5px;
}

.section-title .subtitle {
  color: #777;
  font-size: 14px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.placeholder-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.placeholder-card p {
  color: #666;
  font-size: 14px;
}

/* --- Responsive Layout --- */

/* Tablet (≤ 992px) */
@media (max-width: 992px) {
  .section-title h2 {
    font-size: 24px;
  }
  .card {
    padding: 20px;
  }
  .col-md-4 {
    width: 50%;
    float: left;
    margin-bottom: 20px;
  }
}

/* Mobile (≤ 576px) */
@media (max-width: 576px) {
  .section-title h2 {
    font-size: 20px;
    text-align: center;
  }
  .section-title .subtitle {
    text-align: center;
  }
  .col-md-4 {
    width: 100%;
    float: none;
  }
  .card {
    padding: 15px;
  }
  .card-icon {
    font-size: 35px;
  }
}

.promo-block-title {
  font-size: 45px;
  font-weight: bold;
  margin: 1px 0;
  white-space: normal; /* allow wrapping */
  min-height: 40px;
  letter-spacing: normal;
  line-height: 1.2;
  display: block; /* full width */
}

#title2 {
  font-size: 50px; /* Slightly bigger */
  color: aliceblue;
  font-weight: 800;
  margin-top: -20px;
}

.highlight {
  font-size: inherit; /* fix: inherit parent's font size */
  color: aliceblue;
  margin-left: 8px;
  font-weight: normal;
  vertical-align: baseline;
}

/* Responsive adjustments */

/* Phones */
@media (max-width: 480px) {
  .promo-block-title {
    font-size: 28px;
    min-height: auto;
  }

  #title2 {
    font-size: 32px;
    margin-top: -10px;
  }

  .highlight {
    font-size: inherit;
    margin-left: 5px;
  }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .promo-block-title {
    font-size: 36px;
  }

  #title2 {
    font-size: 40px;
  }

  .highlight {
    font-size: inherit;
    margin-left: 6px;
  }
}

/* Larger desktops */
@media (min-width: 1025px) {
  .promo-block-title {
    font-size: 45px;
  }

  #title2 {
    font-size: 50px;
  }

  .highlight {
    font-size: inherit;
    margin-left: 8px;
  }
}

/* Optional: Your rgbShift keyframe if needed elsewhere */
@keyframes rgbShift {
  0% {
    background-color: #ff0040;
    box-shadow: 0 4px 10px rgba(255, 0, 64, 0.6);
  }
  33% {
    background-color: #00ff80;
    box-shadow: 0 4px 10px rgba(0, 255, 128, 0.6);
  }
  66% {
    background-color: #0040ff;
    box-shadow: 0 4px 10px rgba(0, 64, 255, 0.6);
  }
  100% {
    background-color: #ff0040;
    box-shadow: 0 4px 10px rgba(255, 0, 64, 0.6);
  }
}

.btn-download-cv {
  display: inline-block;
  color: white;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  /* margin: 20px 0 30px 0; */
  font-size: 16px;
  white-space: nowrap;
  animation: rgbShift 6s linear infinite;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 0, 64, 0.6);
  border: none;
  cursor: pointer;
}

.btn-download-cv:hover {
  animation-play-state: paused;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-download-cv {
    padding: 8px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .btn-download-cv {
    padding: 6px 15px;
    font-size: 13px;
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 25px;
  }
}

.contact-section {
  padding: 60px 20px;

  color: white;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-image: linear-gradient(360deg, #faaca8 10%, #ddd6f3 90%);
  border-top: 6px solid;
  border-image: linear-gradient(90deg, #ffd700, #ff8c00, #ff4500) 1;

  /* Soft shadow for subtle depth */
  box-shadow: inset 0 8px 15px -10px rgba(255, 215, 0, 0.6);

  position: relative;
  overflow: visible;
  border-radius: 12px 12px 0 0; /* rounded top corners */
}

/* Add this wrapper around header + boxes */
.contact-row {
  display: flex;
  align-items: flex-start; /* align top edges */
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap; /* wrap on small screens */
}

.contact-header {
  text-align: center;
  max-width: 300px; /* optional width */
  flex-shrink: 0;
  margin-left: 9%; /* prevent shrinking */
  color: #515769;
}

.contact-title {
  font-size: 30px;
  font-weight: 700;
  margin: 0;
  color: #515769;
}

.contact-name {
  font-size: 18px;
  color: #bbb;
  margin-top: 8px;
}

.contact-boxes {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  width: max-content; /* shrink to content width */
  margin-left: auto; /* push boxes to right */
}

.contact-box {
  background: whitesmoke;
  padding: 25px 20px;
  border-radius: 15px;
  width: 250px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
  color: white;
  text-align: left;
  flex-shrink: 0; /* prevent shrinking */
}

.contact-box h5 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-box a {
  color: #aaddff;
  font-size: 16px;
  text-decoration: none;
  word-break: break-word;
}

.contact-box a:hover {
  text-decoration: underline;
}

.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* RGB border animation */
.rgb-border {
  border: 3px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  position: relative;
  z-index: 0;
}
.rgb-border::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 18px;
  background: linear-gradient(
    270deg,
    #ff004c,
    #ff7700,
    #ffee00,
    #22ff00,
    #00ffee,
    #2200ff,
    #ff00ee,
    #ff004c
  );
  background-size: 1600% 1600%;
  animation: rgbAnimation 12s ease infinite;
  z-index: -1;
}

@keyframes rgbAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .contact-row {
    flex-direction: column;
  }
  .contact-header {
    margin-bottom: 5px;
    max-width: 100%;
    margin-left: 120px;
  }
  .contact-boxes {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .contact-box {
    width: 250px;
  }
}

/* Responsive fix: center contact-header text on small phones */
@media (max-width: 600px) {
  .contact-header {
    text-align: center;
    margin-left: 120px;
  }
}

.music-wrap {
  position: fixed;
  width: 300px; /* default width */
  right: -14%; /* hide about half the player */
  bottom: 45px;
  z-index: 2;
  transition: right 0.3s ease;
}

.music-wrap:hover {
  right: 0; /* slide fully into view on hover */
}

.music-wrap audio {
  width: 100%; /* fill container width */
  display: block;
  border-radius: 8px;
}

/* Small screens: mobile phones */
@media (max-width: 480px) {
  .music-wrap {
    width: 90vw; /* almost full viewport width */
    right: -70vw; /* hide about half of width */
    bottom: 50px;
  }
  .music-wrap:hover {
    right: 0;
  }
}

/* Medium screens: tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .music-wrap {
    width: 250px; /* smaller width */
    right: -12.5%; /* hide about half */
    bottom: 40px;
  }
  .music-wrap:hover {
    right: 0;
  }
}

.lodding-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Use flexbox to center .loadding-div */
}

.loadding-div {
  position: relative;
  width: 15vw; /* responsive width */
  max-width: 100px; /* max size */
  min-width: 60px; /* min size */
  aspect-ratio: 1; /* keep square shape */
  transform: rotateZ(-13deg);
  animation: insect-fly 0.333s infinite alternate
    cubic-bezier(0.45, -0.43, 0.63, 1.94);
}

.loadding-div::after,
.loadding-div::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 50%;
  border: 1px solid #00c7ff;
  background-color: rgba(81, 0, 255, 0.723);
  border-radius: 40% 20% 50% 50%;
  animation: wings 0.333s infinite cubic-bezier(0.6, 0, 0.4, 1) alternate;
  transform: rotateX(60deg) rotateY(-60deg);
}

.loadding-div::after {
  left: 0;
  transform-origin: right center;
}

.loadding-div::before {
  right: 0;
  transform-origin: left center;
  animation-direction: alternate-reverse;
}

@keyframes insect-fly {
  from {
    margin-top: -0.3em;
  }
  to {
    margin-top: 0.3em;
  }
}

@keyframes wings {
  from {
    transform: rotateX(60deg) rotateY(-60deg);
  }
  to {
    transform: rotateX(60deg) rotateY(60deg);
  }
}

/* Optional: smaller screens tweak */
@media (max-width: 400px) {
  .loadding-div {
    width: 25vw;
    max-width: 80px;
    min-width: 40px;
  }
}
