/* ========================================
   INFINITE MENU WebGL INTEGRATION
======================================== */
#infinite-grid-menu-canvas {
  cursor: grab;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  outline: none;
}

#infinite-grid-menu-canvas:active {
  cursor: grabbing;
}

.infinite-menu-container {
  position: relative;
  width: 100%;
  height: 700px;
  min-height: 500px;
  background: transparent;
  overflow: hidden;
  border-radius: 16px;
  margin: 2rem 0;
}

/* Action Button */
.action-button {
  position: absolute;
  left: 50%;
  z-index: 10;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff6f00, #fb922b);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  border: 4px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 16px rgba(251, 146, 43, 0.5);
  transition: all 0.3s ease;
}

.action-button:hover {
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 6px 24px rgba(251, 146, 43, 0.7);
}

.action-button-icon {
  user-select: none;
  position: relative;
  color: #fff;
  top: 2px;
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

.action-button.active {
  bottom: 4em;
  transform: translateX(-50%) scale(1);
  opacity: 1;
  pointer-events: auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-button.inactive {
  bottom: -100px;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

/* Project Title */
.face-title {
  user-select: none;
  position: absolute;
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 5rem);
  left: 5%;
  top: 50%;
  color: var(--primary-color-light, #fff);
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.5);
  max-width: 45%;
  line-height: 1.1;
  z-index: 10;
}

.face-title.active {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.face-title.inactive {
  pointer-events: none;
  opacity: 0;
  transform: translate(-30%, -50%);
  transition: all 0.2s ease;
}

/* Project Description */
.face-description {
  user-select: none;
  position: absolute;
  max-width: 28ch;
  top: 50%;
  font-size: clamp(1rem, 1.8vw, 1.8rem);
  right: 5%;
  color: var(--primary-color, #fff);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
  z-index: 10;
}

.face-description.active {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.face-description.inactive {
  pointer-events: none;
  transform: translate(30%, -50%);
  opacity: 0;
  transition: all 0.2s ease;
}

/* PROJECT SECTION STYLING */
#projects-section .heading {
  margin-bottom: 2rem;
}

#projects-section .projects-container .project-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1.5rem 1rem;
  margin-bottom: 0.5rem;
  column-gap: 1rem;
  cursor: pointer;
  border-radius: 16px;
  transition: 0.4s;
  opacity: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #ffffff10;
  min-height: fit-content;
  overflow: hidden;
}

#projects-section .projects-container .project-card:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
  background: linear-gradient(
    135deg,
    rgba(255, 0, 150, 0.1),
    rgba(0, 150, 255, 0.1)
  );
}

#projects-section .projects-container .project-card .project-icon {
  width: clamp(5rem, 15vw, 10rem);
  flex-shrink: 0;
  border-radius: 8px;
}

.title-description-container {
  flex: 1;
  min-width: 0;
}

#projects-section .projects-container .project-card .project-title {
  font-size: calc(var(--medium-Fsize) + 2px);
  font-weight: bold;
  color: var(--primary-color-light);
  line-height: 1.2em;
  margin-bottom: 0.5rem;
}

#projects-section .projects-container .project-card .project-description {
  font-size: calc(var(--XS-Fsize) + 1px);
  color: var(--primary-color);
  line-height: 1.5;
  opacity: 0.8;
}

#projects-section .projects-container .project-card .arrow-icon {
  position: absolute;
  max-width: 0.9rem;
  right: 20px;
  top: 30px;
  transition: 0.4s;
}

#projects-section .projects-container .project-card:hover > .arrow-icon {
  transform: translate(-5px, -5px) scale(1.2) rotate(45deg);
}

/* ENTRY ANIMATION FOR PROJECT CARDS */
@keyframes cards-entry {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#projects-section .projects-container .project-card {
  animation: cards-entry 1s ease forwards;
  animation-delay: var(--animation-delay, 0s); /* Staggered effect */
}

/* PROJECT LINK STYLING */
#projects-section .project-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

#projects-section .project-link:hover .project-card {
  background-color: rgba(0, 0, 0, 0.2); /* Optional hover effect */
}

/* RESPONSIVE DESIGN FOR PROJECT SECTION */
@media (max-width: 768px) {
  #projects-section .projects-container {
    flex-direction: column; /* Stack cards vertically */
  }

  #projects-section .project-card {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }

  #projects-section .project-card .project-icon {
    width: clamp(4rem, 12vw, 8rem);
  }

  #projects-section .project-card .arrow-icon {
    position: static; /* Adjust for stacked layout */
    margin-top: 0.5rem;
  }
}

/* ROUND PROGRESS BAR STYLING */
#projects-section .progress-container {
  position: absolute;
  bottom: 20px; /* Positioned at the bottom */
  right: 20px; /* Positioned on the right */
  width: clamp(40px, 5vw, 80px); /* Responsive width */
  height: clamp(40px, 5vw, 80px); /* Responsive height */
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 2; /* Ensure it stays above the background but below other elements */
}

#projects-section .progress-bar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#f44336 0%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

#projects-section .progress-text {
  position: absolute;
  font-size: clamp(12px, 1.5vw, 18px); /* Responsive font size */
  color: #fff;
  font-weight: bold;
  z-index: 3;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

/* Hover Effects */
#projects-section .progress-container:hover {
  transform: scale(1.1); /* Slight zoom effect */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

#projects-section .progress-container:hover .progress-bar {
  background: conic-gradient(#f44336 0%, rgba(0, 0, 0, 0.2) 100%);
}

#projects-section .progress-container:hover .progress-text {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  #projects-section .progress-container {
    bottom: 15px; /* Adjusted for smaller screens */
    right: 15px; /* Adjusted for smaller screens */
  }

  #projects-section .progress-text {
    font-size: 12px;
  }
}

@media (min-width: 1200px) {
  #projects-section .progress-container {
    bottom: 30px; /* Increased spacing for larger screens */
    right: 30px; /* Increased spacing for larger screens */
    width: 60px; /* Limit max width */
    height: 60px; /* Limit max height */
  }

  #projects-section .progress-text {
    font-size: 16px;
  }

  #projects-section .project-card {
    padding-bottom: 80px; /* Increase padding to avoid overlap */
  }
}

@media (min-width: 1024px) {
  #projects-section .project-card {
    padding-bottom: 100px; /* Ensure sufficient space between the card and the progress bar */
  }
}

/* PROJECT LIBRARY TABS - MATCH SKILLS BUTTONS */
.project-library-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: none;
  border-bottom: none;
}
.project-tab-btn {
  color: var(--primary-color);
  opacity: 0.9;
  padding: 0.5rem 1rem;
  font-size: calc(var(--XS-Fsize) - 0.1rem);
  border-radius: 8px;
  border: 2px solid transparent;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 150, 0.2),
    rgba(0, 150, 255, 0.2)
  );
  margin-bottom: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.project-tab-btn.selected,
.project-tab-btn.active {
  opacity: 1;
  color: var(--accent-color);
  background: linear-gradient(
    135deg,
    rgba(255, 0, 150, 0.4),
    rgba(0, 150, 255, 0.4)
  );
  font-size: calc(var(--XS-Fsize));
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.project-tab-btn:hover {
  border-color: var(--accent-color);
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* DOWNLOAD APK BUTTON - MATCH SKILLS BUTTONS */
.download-apk-btn {
  color: var(--primary-color);
  opacity: 0.9;
  padding: 0.5rem 1rem;
  font-size: calc(var(--XS-Fsize) - 0.1rem);
  border-radius: 8px;
  border: 2px solid transparent;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 150, 0.2),
    rgba(0, 150, 255, 0.2)
  );
  margin-bottom: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.download-apk-btn:hover,
.download-apk-btn:focus {
  color: var(--accent-color);
  background: linear-gradient(
    135deg,
    rgba(255, 0, 150, 0.4),
    rgba(0, 150, 255, 0.4)
  );
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

/* DEMO VIDEO STYLING - RESPONSIVE & MOBILE FRIENDLY */
.demo-video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
}
.demo-video {
  width: 100%;
  max-width: 420px;
  max-height: 480px;
  aspect-ratio: 9/16;
  min-height: 320px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  background: #000;
  margin-bottom: 1.2rem;
  display: block;
}
@media (max-width: 600px) {
  .demo-video {
    max-width: 100vw;
    min-width: 0;
    min-height: 220px;
    max-height: 320px;
    aspect-ratio: 9/18;
  }
}
@media (max-width: 400px) {
  .demo-video {
    min-height: 160px;
    max-height: 200px;
    aspect-ratio: 9/20;
  }
}

/* Center the download APK button and its text */
.download-apk-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 600px) {
  .download-apk-btn {
    max-width: 100%;
    font-size: var(--mobile-small-Fsize);
  }
}

/* App Projects Card Styling - Separate Hover */
.app-projects-iframe-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  margin: 2.5rem auto;
  max-width: 700px;
}
.app-embed-card {
  background: #181818;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}
.app-embed-card:hover {
  box-shadow:
    0 8px 36px 0 rgba(251, 146, 43, 0.25),
    0 2px 8px 0 rgba(0, 0, 0, 0.18);
  transform: translateY(-6px) scale(1.025);
}

/* ========================================
   TECH STACK BADGES
======================================== */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.15), rgba(255, 61, 0, 0.10));
  border: 1px solid rgba(255, 111, 0, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "JetBrains Mono", monospace;
}

.tech-badge i {
  font-size: 0.85rem;
  color: var(--text-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-badge:hover {
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.25), rgba(255, 61, 0, 0.15));
  border-color: rgba(255, 111, 0, 0.6);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

.tech-badge:hover i {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Specific tech icon colors */
.tech-badge .fa-react {
  color: #61dafb;
}

.tech-badge .fa-node-js {
  color: #68a063;
}

.tech-badge .fa-js-square {
  color: #f7df1e;
}

.tech-badge .fa-html5 {
  color: #e34f26;
}

.tech-badge .fa-css3-alt {
  color: #1572b6;
}

.tech-badge .fa-bootstrap {
  color: #7952b3;
}

.tech-badge .fa-flutter {
  color: #02569b;
}

.tech-badge .fa-database {
  color: #3ecf8e;
}

.tech-badge .fa-gamepad {
  color: #ff6b6b;
}

.tech-badge .fa-paint-brush {
  color: #ff9500;
}

.tech-badge .fa-code {
  color: #4ade80;
}

.tech-badge .fa-cogs {
  color: #8b5cf6;
}

/* ========================================
   PROJECT STATUS INDICATORS
======================================== */
.project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-status.live {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(16, 185, 129, 0.8));
  color: #ffffff;
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.project-status.in-development {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.9), rgba(245, 158, 11, 0.8));
  color: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.project-status.complete {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.8));
  color: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* ========================================
   RESPONSIVE IMPROVEMENTS
======================================== */

/* Extra Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  #projects-section .projects-container .project-card {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0.75rem;
    margin-bottom: 1rem;
  }
  
  #projects-section .projects-container .project-card .project-icon {
    width: clamp(3rem, 12vw, 4rem);
    margin-bottom: 0.75rem;
    align-self: center;
  }
  
  .title-description-container {
    order: 2;
    width: 100%;
  }
  
  .project-title {
    font-size: 1rem !important;
    margin-bottom: 0.5rem;
  }
  
  .project-description {
    font-size: 0.85rem !important;
    line-height: 1.4;
    margin-bottom: 0.25rem;
  }
  
  .tech-stack {
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
  }
  
  .tech-badge {
    padding: 0.15rem 0.4rem;
    font-size: 0.6rem;
    gap: 0.25rem;
  }
  
  .tech-badge i {
    font-size: 0.7rem;
  }
  
  .project-status {
    position: static;
    align-self: center;
    margin-top: 0.5rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.6rem;
  }
  
  .progress-container {
    order: 3;
    width: 100%;
    margin-top: 0.75rem;
  }
  
  .arrow-icon {
    display: none;
  }
}

/* Small Mobile (481px - 576px) */
@media (max-width: 576px) and (min-width: 481px) {
  #projects-section .projects-container .project-card {
    padding: 1.25rem 1rem;
    flex-direction: column;
    text-align: center;
  }
  
  #projects-section .projects-container .project-card .project-icon {
    width: clamp(3.5rem, 13vw, 5rem);
    margin-bottom: 1rem;
    align-self: center;
  }
  
  .tech-stack {
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.75rem;
  }
  
  .tech-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    gap: 0.3rem;
  }
  
  .tech-badge i {
    font-size: 0.75rem;
  }
  
  .project-status {
    position: static;
    align-self: center;
    margin-top: 0.75rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
  }
  
  .arrow-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Medium Tablets (577px - 768px) */
@media (max-width: 768px) and (min-width: 577px) {
  #projects-section .projects-container .project-card {
    padding: 1.5rem 1.25rem;
  }
  
  .tech-stack {
    gap: 0.4rem;
    margin-top: 1rem;
  }
  
  .tech-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    gap: 0.35rem;
  }
  
  .tech-badge i {
    font-size: 0.8rem;
  }
  
  .project-status {
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
  }
}

/* Large Tablets (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .tech-stack {
    gap: 0.45rem;
    margin-top: 1rem;
  }
  
  .tech-badge {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }
  
  .tech-badge i {
    font-size: 0.85rem;
  }
  
  .project-status {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Project Library Tabs Responsive */
@media (max-width: 480px) {
  .project-library-tabs {
    margin-bottom: 1.5rem !important;
  }
  
  .project-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin: 0 0.25rem;
  }
}

@media (max-width: 576px) and (min-width: 481px) {
  .project-tab-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    margin: 0 0.3rem;
  }
}

/* Hover effects adjustments for mobile */
@media (max-width: 768px) {
  #projects-section .projects-container .project-card:hover {
    transform: translateY(-2px);
  }
  
  .tech-badge:hover {
    transform: scale(1.02);
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  #projects-section .projects-container .project-card {
    flex-direction: row;
    text-align: left;
  }
  
  #projects-section .projects-container .project-card .project-icon {
    width: clamp(4rem, 15vw, 6rem);
    margin-bottom: 0;
    align-self: flex-start;
  }
  
  .tech-stack {
    justify-content: flex-start;
  }
  
  .project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin-top: 0;
  }
}

/* ========================================
   INFINITE MENU RESPONSIVE DESIGN
======================================== */

/* Tablets and smaller desktops */
@media (max-width: 1500px) {
  .face-title {
    font-size: clamp(1.2rem, 3.5vw, 2.5rem);
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 80%;
    top: 12%;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  .face-title.active {
    transform: translate(-50%, 0);
  }
  
  .face-title.inactive {
    transform: translate(-50%, -20px);
  }
  
  .face-description {
    font-size: clamp(0.85rem, 1.2vw, 1.2rem);
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 70%;
    top: auto;
    bottom: 22%;
    right: auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  
  .face-description.active {
    transform: translate(-50%, 0);
  }
  
  .face-description.inactive {
    transform: translate(-50%, 20px);
  }
}

@media (max-width: 768px) {
  .infinite-menu-container {
    height: 550px;
    min-height: 450px;
  }
  
  .face-title {
    font-size: clamp(1rem, 4vw, 1.8rem);
    top: 8%;
    max-width: 85%;
    padding: 0.4rem 0.8rem;
  }
  
  .face-description {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    bottom: 18%;
    max-width: 80%;
    max-width: 35ch;
    padding: 0.4rem 0.8rem;
  }
  
  .action-button {
    width: 55px;
    height: 55px;
  }
  
  .action-button-icon {
    font-size: 24px;
  }
  
  .action-button.active {
    bottom: 3em;
  }
}

@media (max-width: 480px) {
  .infinite-menu-container {
    height: 450px;
    min-height: 350px;
  }
  
  .face-title {
    font-size: clamp(0.85rem, 4.5vw, 1.3rem);
    top: 5%;
    max-width: 90%;
    padding: 0.3rem 0.6rem;
    line-height: 1.3;
  }
  
  .face-description {
    font-size: clamp(0.65rem, 2.5vw, 0.85rem);
    bottom: 15%;
    max-width: 90%;
    max-width: 28ch;
    padding: 0.3rem 0.6rem;
    line-height: 1.4;
  }
  
  .action-button {
    width: 50px;
    height: 50px;
  }
  
  .action-button-icon {
    font-size: 22px;
  }
  
  .action-button.active {
    bottom: 2em;
  }
}

/* Large Screens Enhancement */
@media (min-width: 1920px) {
  .infinite-menu-container {
    height: 900px;
  }
  
  .face-title {
    font-size: 6rem;
    left: 8%;
  }
  
  .face-description {
    font-size: 2.2rem;
    max-width: 32ch;
    right: 8%;
  }
  
  .action-button {
    width: 90px;
    height: 90px;
  }
  
  .action-button-icon {
    font-size: 36px;
  }
  
  .action-button.active {
    bottom: 5.5em;
  }
}

/* Extra Large Screens (4K) */
@media (min-width: 2560px) {
  .infinite-menu-container {
    height: 1200px;
  }
  
  .face-title {
    font-size: 8rem;
    left: 10%;
  }
  
  .face-description {
    font-size: 3rem;
    max-width: 40ch;
    right: 10%;
  }
  
  .action-button {
    width: 120px;
    height: 120px;
  }
  
  .action-button-icon {
    font-size: 48px;
  }
  
  .action-button.active {
    bottom: 7em;
  }
}

/* Landscape Mode Adjustments */
@media (max-width: 900px) and (orientation: landscape) {
  .infinite-menu-container {
    height: 500px;
  }
}
