:root {
  --text-color: #e0e0e0;
  --main-color: #00ffee;
  --muted-text: #a0a0a0;
  --bg-color: #080808;
  /* Missing button colors added below */
  --cyan-bright: #00ffee;
  --cyan-mid: #0088ff;
  --cyan-dark: #3a86ff;
  --glow-shadow: rgba(0, 255, 238, 0.4);
}

/* Lenis: Disable native smooth scroll to prevent jitters */
html {
  scroll-behavior: auto !important;
}

#home {
  scroll-margin-top: 80px;
}

.home {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 4%;
  margin-top: 0;
  /* Guidance: Changed opacity to 1 and removed transform to show content immediately */
  opacity: 1 !important;
  transform: none !important;
}

.home.flow-active {
  opacity: 1;
  transform: translateY(0);
}

.home-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  /* UPDATED: Left 50%, Right 50% */
  grid-template-columns: 50% 50%;
  gap: 2rem;
  align-items: center;
  width: 100%;
  padding: 2rem 0;
}

.home-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2rem;
}

.cinematic-hidden-left {
  opacity: 0 !important;
  transform: translateX(-150px) !important;
  filter: blur(15px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease,
    filter 1.2s ease;
}

.home-left h3 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.home-left h3:first-child {
  font-size: 2rem;
  color: var(--text-color);
  margin-top: 0;
}

.home-left h3:first-child span {
  color: var(--main-color);
  font-weight: 800;
}

.text-animation {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--text-color);
  white-space: nowrap;
  overflow: visible;
}

@media (max-width: 992px) {
  .text-animation {
    font-size: 1.7rem;
    /* This allows the text to break into new lines */
    white-space: normal; 
    /* This ensures long words break if they exceed the container width */
    overflow-wrap: break-word;
    word-wrap: break-word; /* Legacy support */
    /* Ensure the height can expand to fit the new lines */
    height: auto; 
    /* If you were using a 'typing' animation, disable the fixed width */
    width: 100%; 
  }
}

@media (max-width: 768px) {
  .text-animation {
    font-size: 1.7rem;
    white-space: normal;
  }
}

.typing-text {
  color: var(--main-color);
}

.home-left p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted-text);
  margin-bottom: 2rem;
  max-width: 95%;
}

.home-left p strong {
  color: var(--main-color);
  font-weight: 600;
}


.cinematic-hidden-bottom {
  opacity: 0 !important;
  transform: translateY(100px) !important;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.4s ease;
}

#home.content-visible .cinematic-hidden-bottom {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

@keyframes top-wood-spin {
  0% {
    transform: rotateY(0deg);
  }
  30% {
    transform: rotateY(180deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  80% {
    transform: rotateY(360deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes top-wobble {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-10px) rotateX(2deg);
  }
}

  /* ----- unique stats block (prefix: ms-) ----- */
  .ms-stats-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ms-hidden-bottom {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .ms-stats-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    /* no global border/background – each item gets its own */
  }

  .ms-stat-item {
    text-align: center;
    min-width: 110px;
    padding: 1rem 1.2rem;
    background: rgba(0, 229, 255, 0.02);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transition: transform 0.2s ease;
  }

  .ms-stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 18px 30px rgba(0, 229, 255, 0.1);
  }

  .ms-stat-number {
    font-size: 2rem;        /* reduced from 2.8rem */
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  }

  .ms-stat-label {
    font-size: 0.85rem;      /* reduced from 1rem */
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #b0d0e8;
    font-weight: 400;
    margin-top: 6px;
  }

  /* optional responsive adjustment */
  @media (max-width: 700px) {
    .ms-stats-grid {
      gap: 1.2rem;
    }
    .ms-stat-item {
      min-width: 90px;
      padding: 0.8rem 1rem;
    }
    .ms-stat-number {
      font-size: 1.6rem;
    }
    .ms-stat-label {
      font-size: 0.7rem;
      letter-spacing: 1.5px;
    }
  }


.profile-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(15%) contrast(110%) brightness(1.05);
  transition: all 0.5s ease;
  background: transparent !important;
  display: block;
  position: relative;
  z-index: 1;
  object-position: top;
}

.cv-buttons-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  margin-bottom: 6px;
  padding: 0;
  width: 100%;
  flex-wrap: nowrap;
}

.cv-portfolio-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  min-width: 140px;
  margin-bottom: 0;
  /* Added for filling effect */
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-portfolio-view-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--main-color);
  z-index: -1;
  /* Start hidden to the left */
  transform: scaleX(0);
  transform-origin: left;
  /* Slow start, fast finish animation */
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}

.cv-portfolio-view-btn i {
  margin-left: 8px;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.cv-portfolio-view-btn:hover {
  color: var(--bg-color); /* Contrast text color */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  /* background-color: var(--main-color) is removed to let the ::before layer handle it */
}

.cv-portfolio-view-btn:hover::before {
  transform: scaleX(1);
}

/* [UPDATED: Icon Interaction] */
.cv-portfolio-view-btn:hover i {
  transform: translateX(4px) translateY(-2px);
  color: var(--bg-color);
}

.cv-portfolio-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
  margin-bottom: 0;
  color: inherit;
  overflow: visible;
}

.download-icon-wrapper {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotating-border {
  width: 46px;
  height: 46px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gemini-loader {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: fullRotate 2s linear infinite;
  filter: drop-shadow(0 0 5px var(--glow-shadow));
}

.loader-path {
  stroke-linecap: round;
  stroke-width: 3;
  fill: none;
  animation: geminiChaser 1.5s ease-in-out infinite,
    cyanColorCycle 3s linear infinite;
}

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

@keyframes geminiChaser {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: -124;
  }
}

@keyframes cyanColorCycle {
  0%,
  100% {
    stroke: var(--cyan-bright);
  }
  33% {
    stroke: var(--cyan-mid);
  }
  66% {
    stroke: var(--cyan-dark);
  }
}

.rotating-border i {
  font-size: 1.2rem;
  color: var(--cyan-bright);
  z-index: 1;
  transition: all 0.3s ease;
}

.cv-portfolio-download-btn:hover .gemini-loader {
  animation-duration: 1s;
  filter: drop-shadow(0 0 8px var(--cyan-bright));
}

.cv-portfolio-download-btn:hover .loader-path {
  animation-duration: 0.75s;
}

.home-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Added for floating icons overlay */
  height: auto; /* Allows natural centering */
}

@media (max-width: 768px) {
  .home {
    padding: 0 1.5rem;
    margin-top: 70px;
    margin-bottom: 0;
  }

  .home-left h3 {
    font-size: 1.9rem;
  }

  .home-left h3:first-child {
    font-size: 1.7rem;
  }

  .home-left p {
    font-size: 1rem;
    max-width: 100%;
  }
  .carousel-container {
    max-width: 280px;
    max-height: 380px;
    perspective: 800px;
  }
}

@media (max-width: 480px) {
  .home {
    padding: 1rem 1.5rem;
    margin-top: 65px;
  }

  .home-right {
    border-radius: 15px;
    /* Height properties removed for natural centering */
  }

  .home-left h3 {
    font-size: 1.7rem;
  }

  .home-left p {
    font-size: 0.95rem;
  }

  .carousel-container {
    max-width: 220px;
    max-height: 320px;
  }
  .home {
    width: 100%;
    overflow-x: hidden;
    flex-wrap: wrap;
  }
}



#home.content-visible .cinematic-hidden-left,
#home.content-visible .cinematic-hidden-right {
  opacity: 1 !important;
  transform: translateX(0) !important;
  filter: blur(0);
}

.cinematic-hidden-left,
.cinematic-hidden-right,
.cinematic-hidden-bottom {
  /* Guidance: Set to visible defaults so content appears without JS triggers */
  opacity: 1 !important;
  transform: translate(0) !important;
  filter: blur(0) !important;
}

.carousel-container {
  width: 320px;
  height: 450px;
  perspective: 1500px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: top-wobble 4s infinite ease-in-out;
}

@media (max-width: 1200px) {
  .home-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .carousel-container {
    max-width: 350px;
    max-height: 450px;
  }
}

/* Tablet View (992px) */
@media (max-width: 992px) {
  .home-container {
    grid-template-columns: 1fr; /* Stack content vertically */
    text-align: center;
    gap: 3rem;
  }

  .home-left {
    order: 2; /* Text moves below image */
    padding-right: 0;
    align-items: center;
  }

  .home-right {
    order: 1; /* Image moves to top */
    max-width: 400px;
    margin: 0 auto;
  }

  .text-animation {
    max-width: 100%;
    white-space: normal; /* Allow text to wrap on smaller screens */
  }

  .centered-stats, .centered-icons, .social2, .cv-buttons-wrapper {
    justify-content: center;
  }
}

/* Mobile View (480px) */
@media (max-width: 480px) {
  .home {
    padding: 0 1rem;
    margin-top: 60px;
  }

  .image-container {
    border-radius: 0 35px 0 35px; /* Softer corners for small screens */
    max-width: 280px;
  }

  .home-left h3 {
    font-size: 1.6rem;
  }

  .text-animation {
    font-size: 1.6rem;
  }

  .stats-grid {
    gap: 0.5rem;
    flex-wrap: wrap; /* Prevent stats from cutting off */
  }

  .stat-item {
    min-width: 45%; /* Show stats in a 2x2 grid on tiny phones */
  }
  .cv-buttons-wrapper {
    flex-wrap: wrap;
  }
}

.spinning-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: top-wood-spin 10s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 238, 0.05) 0%,
    rgba(0, 136, 255, 0.05) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Label that appears on hover - TOP POSITION */
.cv-portfolio-download-btn::after {
  content: attr(data-label);
  position: absolute;
  /* CHANGE THESE: Position above the button */
  bottom: 100%; /* Changed from left: 100% */
  left: 50%; /* Changed from top: 50% */
  transform: translateX(-50%) translateY(-10px) scale(0.95); /* Changed */
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--main-color);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border: 1px solid rgba(0, 255, 238, 0.3);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  letter-spacing: 0.3px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  min-width: 140px;
  text-align: center;
}

/* Arrow/triangle pointer pointing DOWN (toward button) */
/* Alternative simpler arrow pointing down */
.cv-portfolio-download-btn::before {
  content: '';
  position: absolute;
  bottom: 100%; /* Position above the button */
  left: 50%;
  transform: translateX(-50%) translateY(-18px);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(0, 255, 238, 0.3);
  border-bottom: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

/* Hover effects - UPDATED */
.cv-portfolio-download-btn:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-15px) scale(1); /* Changed */
}

.cv-portfolio-download-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-13px) rotate(0deg); /* Changed */
}

/* Optional: Keep the glow animation */
.cv-portfolio-download-btn:hover::after {
  animation: labelGlow 3s ease-in-out infinite;
}

@keyframes labelGlow {
  0%, 100% {
    box-shadow: 
      0 8px 25px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 10px rgba(0, 255, 238, 0.1);
  }
  50% {
    box-shadow: 
      0 8px 30px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 15px rgba(0, 255, 238, 0.2);
  }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* For tablets and smaller screens (below 768px) */
@media (max-width: 768px) {
  .cv-portfolio-download-btn::after {
    font-size: 0.8rem;
    padding: 8px 14px;
    min-width: 120px;
    transform: translateX(8px) translateY(-50%) scale(0.95);
  }
  
  .cv-portfolio-download-btn:hover::after {
    transform: translateX(12px) translateY(-50%) scale(1);
  }
  
  .cv-portfolio-download-btn::before {
    border-left: 6px solid rgba(0, 255, 238, 0.3);
    border-right: 6px solid transparent;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
  }
}

/* For mobile devices (below 480px) */
@media (max-width: 480px) {
  .cv-portfolio-download-btn::after {
    font-size: 0.75rem;
    padding: 7px 12px;
    min-width: 110px;
    transform: translateX(6px) translateY(-50%) scale(0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  .cv-portfolio-download-btn:hover::after {
    transform: translateX(10px) translateY(-50%) scale(1);
  }
  
  .cv-portfolio-download-btn::before {
    border-left: 5px solid rgba(0, 255, 238, 0.3);
    border-right: 5px solid transparent;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transform: translateX(-1px) translateY(-50%) rotate(180deg);
  }
  
  .cv-portfolio-download-btn:hover::before {
    transform: translateX(3px) translateY(-50%) rotate(180deg);
  }
  .cv-portfolio-download-btn,
  .cv-portfolio-view-btn{
    margin-bottom: 12px;
  }
}

/* For very small screens (300px - 360px) */
@media (max-width: 360px) {
  .cv-portfolio-download-btn {
    /* Option 1: Keep tooltip but make it more compact */
    position: static; /* Change to see parent boundaries */
  }
  
  .cv-portfolio-download-btn::after {
    position: fixed; /* Change to fixed for very small screens */
    left: 50%;
    top: auto;
    bottom: 20px;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    font-size: 0.7rem;
    padding: 6px 10px;
    min-width: 100px;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    z-index: 9999;
  }
  
  .cv-portfolio-download-btn:hover::after {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  
  /* Reposition arrow to point UP */
  .cv-portfolio-download-btn::before {
    left: 50%;
    top: auto;
    bottom: 20px;
    transform: translateX(-50%) translateY(10px) rotate(0deg);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 255, 238, 0.3);
    border-top: none;
  }
  
  .cv-portfolio-download-btn:hover::before {
    transform: translateX(-50%) translateY(4px) rotate(0deg);
  }
  
  /* Alternative: Show tooltip ABOVE on very small screens */
  .cv-portfolio-download-btn.alternate-position::after {
    bottom: auto;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.9);
  }
  
  .cv-portfolio-download-btn.alternate-position:hover::after {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  
  .cv-portfolio-download-btn.alternate-position::before {
    top: -15px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-10px) rotate(180deg);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 255, 238, 0.3);
    border-bottom: none;
  }
  
  .cv-portfolio-download-btn.alternate-position:hover::before {
    transform: translateX(-50%) translateY(-4px) rotate(180deg);
  }
}

/* For extreme small screens (300px and below) */
@media (max-width: 300px) {
  .cv-portfolio-download-btn::after {
    font-size: 0.65rem;
    padding: 5px 8px;
    min-width: 90px;
    bottom: 15px;
    border-radius: 6px;
  }
  
  .cv-portfolio-download-btn::before {
    bottom: 15px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 255, 238, 0.3);
  }
  
  /* Optional: Hide tooltip completely on very tiny screens */
  .cv-portfolio-download-btn.hide-on-mobile::after,
  .cv-portfolio-download-btn.hide-on-mobile::before {
    display: none;
  }
  
  /* Option: Make tooltip appear instantly without animation on tiny screens */
  .cv-portfolio-download-btn::after,
  .cv-portfolio-download-btn::before {
    transition-duration: 0.2s;
  }
}

/* Ensure button container doesn't cause overflow */
.cv-portfolio-download-btn-container {
  position: relative;
  display: inline-block;
}

/* Prevent horizontal scrolling caused by tooltip */
@media (max-width: 360px) {
  body {
    overflow-x: hidden;
  }
  
  .cv-portfolio-download-btn {
    max-width: 100%;
    overflow: visible;
  }
}




/* ==================================== img ================================== */

.cinematic-hidden-right {
  opacity: 0 !important;
  transform: translateX(150px) !important;
  filter: blur(15px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease,
    filter 1.2s ease;
}

.image-wrapper[data-loading="true"] {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-container {
  position: relative; /* ← ADD THIS LINE */
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 450px;
  height: auto;
  overflow: hidden;
  border-radius: 0 55px 0 55px;
  transition: all 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  z-index: 3;
  pointer-events: none;
  animation: shine 6s infinite linear;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(30deg);
  }
}

/* ========== Floating CV Download Button ========== */
.floating-cv-btn {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 90px;
  height: 90px;
}

.floating-cv-btn.fixed {
  position: fixed;
  bottom: 30px;
  right: 30px;
  opacity: 1;
  pointer-events: auto;
}

/* Circular Text Arc */
.floating-cv-btn .circular-text {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.floating-cv-btn .circular-text text {
  fill: var(--main-color, #00ffee);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.floating-cv-btn .download-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.floating-cv-btn .progress-ring-container {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 255, 238, 0.1), rgba(0, 136, 255, 0.1));
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 255, 238, 0.3),
              0 0 40px rgba(0, 255, 238, 0.1);
  transition: all 0.3s ease;
}

.floating-cv-btn:hover .progress-ring-container {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 255, 238, 0.5),
              0 0 60px rgba(0, 255, 238, 0.2);
}

.floating-cv-btn:hover .circular-text text {
  fill: #fff;
  text-shadow: 0 0 10px var(--main-color, #00ffee);
}

.floating-cv-btn .scroll-progress-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  transition: opacity 0.3s ease;
}

.floating-cv-btn .progress-ring-circle {
  stroke: #ffffff;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s ease;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

/* Hide scroll progress on hover, show rotating ring */
.floating-cv-btn:hover .scroll-progress-ring {
  opacity: 0;
}

/* Hover Rotating Ring */
.floating-cv-btn .hover-rotating-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rotateRing 2s linear infinite;
}

.floating-cv-btn:hover .hover-rotating-ring {
  opacity: 1;
}

.floating-cv-btn .rotating-ring-circle {
  stroke: var(--main-color, #00ffee);
  stroke-linecap: round;
  stroke-dasharray: 80, 200;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px rgba(0, 255, 238, 0.8));
}

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

/* Download Progress Ring */
.floating-cv-btn .download-progress-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.floating-cv-btn.downloading .download-progress-ring {
  opacity: 1;
}

.floating-cv-btn.downloading .scroll-progress-ring,
.floating-cv-btn.downloading .hover-rotating-ring {
  opacity: 0;
}

.floating-cv-btn .download-ring-circle {
  stroke: #4ade80;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s ease;
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.8));
}

/* Icons */
.floating-cv-btn .floating-download-icon {
  color: var(--main-color, #00ffee);
  font-size: 1.2rem;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-cv-btn .floating-check-icon {
  position: absolute;
  color: #4ade80;
  font-size: 1.2rem;
  z-index: 1;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* NEW SOCIAL ICONS - Twitter/X and Email */
.social2 a.twitter {
  color: #ffffff;
  border-color: #ffffff;
  border-radius: 50%;
}

.social2 a.twitter:hover {
  color: #000000;
  background-color: #ffffff;
  border-color: #000000;
  text-shadow: 0 0 15px #000000;
  border-radius: 50%;
}

.social2 a.twitter:hover::after {
  color: #ffffff;
  border-color: #ffffff;
}

.social2 a.email {
  color: #00ffee;
  border-color: #00ffee;
  border-radius: 50%;
}

.social2 a.email:hover {
  color: #080808;
  background-color: #00ffee;
  border-color: #00ffee;
  text-shadow: 0 0 15px #00ffee;
  border-radius: 50%;
}

.social2 a.email:hover::after {
  color: #00ffee;
  border-color: #00ffee;
}

/* Completed state */
.floating-cv-btn.completed .floating-download-icon {
  opacity: 0;
  transform: scale(0);
}

.floating-cv-btn.completed .floating-check-icon {
  opacity: 1;
  transform: scale(1);
}

.floating-cv-btn.completed .scroll-progress-ring,
.floating-cv-btn.completed .hover-rotating-ring,
.floating-cv-btn.completed .download-progress-ring {
  opacity: 0;
}

.floating-cv-btn.completed .progress-ring-container {
  box-shadow: 0 4px 20px rgba(74, 222, 128, 0.5),
              0 0 40px rgba(74, 222, 128, 0.2);
}

/* Mobile responsiveness for floating CV button */
@media (max-width: 768px) {
  .floating-cv-btn {
    width: 80px;
    height: 80px;
  }

  .floating-cv-btn.fixed {
    bottom: 20px;
    right: 20px;
  }

  .floating-cv-btn .progress-ring-container {
    width: 42px;
    height: 42px;
  }

  .floating-cv-btn .circular-text text {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .floating-cv-btn {
    width: 70px;
    height: 70px;
  }

  .floating-cv-btn.fixed {
    bottom: 15px;
    right: 15px;
  }

  .floating-cv-btn .progress-ring-container {
    width: 38px;
    height: 38px;
  }

  .floating-cv-btn .circular-text text {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .floating-cv-btn .floating-download-icon,
  .floating-cv-btn .floating-check-icon {
    font-size: 1rem;
  }
}
