/* Figma Design Styles */
.projects-page-figma {
  min-height: 100vh;
  color: white;
  position: relative;
  overflow-x: hidden;
  padding: 5rem 1.5rem 3rem;
  background: transparent;
}

.projects-container {
  max-width: 80rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Title Section */
.title-section {
  text-align: center;
  margin-bottom: 4rem;
}

.main-title {
  font-size: 2.75rem;
  font-weight: 700;
  background: linear-gradient(to right, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1;
}

/* Skills Section - Figma */
.skills-section-figma {
  max-width: 56rem;
  margin: 0 auto 2rem;
}

.skills-category-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.skill-category-label-figma {
  font-size: 0.75rem;
  color: rgba(96, 165, 250, 0.7);
  font-weight: 500;
  min-width: 90px;
  text-align: right;
  margin-right: 0.25rem;
}

.skills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-badge {
  position: relative;
  padding: 0.25rem 0.625rem;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(51, 65, 85, 0.3);
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  transition: border-color 0.3s ease;
}

.skill-badge:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.skill-badge.self-learned {
  padding-right: 1.25rem;
}

.skill-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(55%) sepia(96%) saturate(1352%) hue-rotate(195deg) brightness(101%) contrast(101%);
  opacity: 1;
  vertical-align: middle;
}

.skill-badge img.skill-icon {
  object-fit: contain;
}

.skill-badge .fa-brands.skill-icon,
.skill-badge .fa-solid.skill-icon {
  font-size: 14px;
  width: auto;
  height: auto;
  filter: none;
  opacity: 1;
  margin-right: 0;
  color: #60a5fa;
}

.star-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  color: #fbbf24;
  font-size: 0.625rem;
  line-height: 1;
}

.self-learned-legend {
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.self-learned-legend .star-indicator {
  position: static;
  color: #fbbf24;
  font-size: 0.75rem;
  top: auto;
  right: auto;
}

/* Project Card Container */
.project-card-container {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}

.carousel-track-container-figma {
  width: 100%;
  overflow: hidden;
}

.carousel-track-figma {
  display: flex;
  transition: transform 0.6s ease-in-out;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.project-card-figma {
  flex: 0 0 100%;
  max-width: 100%;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.project-header-figma {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.project-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-icon-figma {
  font-size: 2.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #60a5fa;
}

.project-title-figma {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

.github-link-figma {
  padding: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 9999px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Override global link colors for GitHub links - always white */
.github-link-figma:link,
.github-link-figma:visited,
.github-link-figma:hover,
.github-link-figma:active,
.github-link-figma:focus {
  color: rgba(255, 255, 255, 0.7) !important;
}

.github-link-figma:hover {
  background-color: rgba(51, 65, 85, 0.5);
  /* color stays white via rule above */
}

/* Ensure all interaction states keep white color */
.github-link-figma:link:hover,
.github-link-figma:visited:hover,
.github-link-figma:link:active,
.github-link-figma:visited:active,
.github-link-figma:link:focus,
.github-link-figma:visited:focus {
  color: rgba(255, 255, 255, 0.7) !important;
}

.github-link-figma i {
  font-size: 1.75rem;
  font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free";
  font-weight: 400;
  font-style: normal;
  display: inline-block;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Ensure icon stays white in all states */
.github-link-figma:hover i,
.github-link-figma:active i,
.github-link-figma:focus i,
.github-link-figma:link:hover i,
.github-link-figma:visited:hover i {
  color: rgba(255, 255, 255, 0.7) !important;
}

.project-description-figma {
  color: #cbd5e1;
  margin-bottom: 2rem;
  font-size: 1.125rem;
  line-height: 1.625;
}

.project-video-figma {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.project-section-figma {
  margin-bottom: 2rem;
}

.section-heading-figma {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.section-heading-figma .emoji {
  font-size: 1.5rem;
}

.features-list-figma {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list-figma li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.features-list-figma .bullet {
  color: #60a5fa;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.tech-stack-figma {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge-figma {
  padding: 0.5rem 1rem;
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 0.5rem;
  color: #cbd5e1;
  transition: border-color 0.3s ease;
}

.tech-badge-figma:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

/* Navigation Arrows */
.arrow-figma {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #ffffff !important;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  transition: color 0.3s ease;
  padding: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.arrow-figma:hover {
  color: #60a5fa !important;
}

.left-figma {
  left: -5rem;
}

.right-figma {
  right: -5rem;
}

/* Mobile Navigation */
.mobile-nav-figma {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.arrow-mobile {
  font-size: 2.25rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  transition: color 0.3s ease;
}

.arrow-mobile:hover {
  color: #60a5fa;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .left-figma {
    left: -3rem;
  }
  
  .right-figma {
    right: -3rem;
  }
}

@media (max-width: 1024px) {
  .arrow-figma {
    display: none;
  }
  
  .mobile-nav-figma {
    display: flex;
  }
  
  .project-card-container {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {
  .projects-page-figma {
    padding: 4.5rem 1.5rem 3rem;
  }

  .main-title {
    font-size: 2rem;
  }
  
  .project-card-figma {
    padding: 1.5rem;
  }
  
  .project-title-figma {
    font-size: 1.5rem;
  }
  
  .skill-category-label-figma {
    min-width: auto;
    text-align: left;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .skills-category-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .projects-page-figma {
    padding: 4rem 1rem 2rem;
  }
}

@media (min-width: 1025px) {
  .mobile-nav-figma {
    display: none;
  }
}

/* New Carousel Styles */
.carousel-container-new {
  position: relative;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
  min-height: 650px;
  max-width: 1400px;
}

/* Cards List Container */
.carousel-cards-list {
  position: relative;
  width: 100%;
  min-height: 650px;
}

/* Individual Card Item */
.carousel-card-item {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  width: 1000px;
  max-width: 90vw;
  left: 50%;
  will-change: transform, opacity, filter;
  transition: transform 800ms cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 800ms cubic-bezier(0.4, 0, 0.2, 1), 
              filter 800ms ease-out,
              z-index 0ms linear 400ms;
  pointer-events: auto;
}

.carousel-card-item[data-position="center"] {
  transform: translate(calc(-50% + 0px), 0) scale(1);
  opacity: 1;
  z-index: 10;
  cursor: default;
  filter: blur(0px) brightness(1);
  pointer-events: auto;
}

.carousel-card-item[data-position="left"] {
  transform: translate(calc(-50% + -750px), 0) scale(0.85);
  opacity: 0.4;
  z-index: 2;
  cursor: pointer;
  filter: blur(2px) brightness(0.9);
  pointer-events: auto;
}

.carousel-card-item[data-position="right"] {
  transform: translate(calc(-50% + 750px), 0) scale(0.85);
  opacity: 0.4;
  z-index: 2;
  cursor: pointer;
  filter: blur(2px) brightness(0.9);
  pointer-events: auto;
}

.carousel-card-item[data-position="hidden"] {
  display: none !important;
  pointer-events: none;
}

/* Card Content Wrapper */
.carousel-card-content {
  width: 100%;
  backdrop-filter: blur(24px);
  border-radius: 1rem;
  overflow-y: auto;
  max-height: 650px;
  min-height: 550px;
  transition: all 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-card-content[data-center="true"] {
  padding: 1.75rem 2.25rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(15, 23, 42, 0.95) 100%);
  border: 2px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 
              0 0 0 1px rgba(96, 165, 250, 0.2), 
              0 0 40px rgba(96, 165, 250, 0.15), 
              0 0 80px rgba(167, 139, 250, 0.1), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.carousel-card-content[data-center="false"] {
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.65) 50%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(96, 165, 250, 0.15);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 
              0 0 0 1px rgba(96, 165, 250, 0.1);
}

/* Project Header */
.carousel-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.carousel-project-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  background: linear-gradient(to right, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-color: transparent;
}

.carousel-project-title .project-date {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(203, 213, 225, 0.8) !important;
  margin-left: 0.5rem;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: rgba(203, 213, 225, 0.8) !important;
  background-clip: initial !important;
  background: none !important;
}

.carousel-card-item[data-position="center"] .carousel-project-title {
  background: linear-gradient(to right, #60a5fa, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

@media (min-width: 768px) {
  .carousel-project-title {
    font-size: 1.75rem;
  }
  
  .project-date {
    font-size: 1rem;
  }
}

/* GitHub Link */
.carousel-github-link {
  padding: 0.75rem;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 9999px;
  transition: background-color 300ms ease, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
}

/* Override global link colors for carousel GitHub links - always white */
.carousel-github-link:link,
.carousel-github-link:visited,
.carousel-github-link:hover,
.carousel-github-link:active,
.carousel-github-link:focus {
  color: #ffffff !important;
}

/* Smooth tilt animation on hover - desktop only */
@media (hover: hover) {
  .carousel-github-link:hover {
    background: rgba(51, 65, 85, 0.4);
    transform: rotate(15deg) scale(1.05);
    /* color stays white via rule above */
  }
}

/* Ensure all interaction states keep white color */
.carousel-github-link:link:hover,
.carousel-github-link:visited:hover,
.carousel-github-link:link:active,
.carousel-github-link:visited:active,
.carousel-github-link:link:focus,
.carousel-github-link:visited:focus {
  color: #ffffff !important;
}

.carousel-github-link i {
  font-size: 1.625rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
}

/* Ensure icon stays white in all states */
.carousel-github-link:hover i,
.carousel-github-link:active i,
.carousel-github-link:focus i,
.carousel-github-link:link:hover i,
.carousel-github-link:visited:hover i {
  color: #ffffff !important;
}

@media (min-width: 768px) {
  .carousel-github-link i {
    width: 2rem;
    height: 2rem;
  }
}

/* CS50 Course Indicator */
.carousel-cs50-indicator {
  padding: 0.75rem 1rem;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 9999px;
  transition: all 300ms;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #cbd5e1;
  cursor: default;
  font-size: 0.875rem;
  font-weight: 500;
}

.carousel-cs50-indicator:hover {
  background: rgba(51, 65, 85, 0.4);
  border-color: rgba(96, 165, 250, 0.3);
}

.carousel-cs50-indicator i {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-cs50-indicator .cs50-text {
  display: inline-block;
}

@media (min-width: 768px) {
  .carousel-cs50-indicator {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .carousel-cs50-indicator i {
    font-size: 1.375rem;
  }
}

/* Description and Video Section */
.carousel-description-section {
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .carousel-description-section {
    margin-bottom: 1.5rem;
  }
}

.carousel-description-text {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
  letter-spacing: 0.025em;
}

@media (min-width: 768px) {
  .carousel-description-text {
    font-size: 1rem;
  }
}

/* Description and Tech Stack Wrapper */
.carousel-desc-tech-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .carousel-desc-tech-wrapper {
    gap: 1.25rem;
  }
}

/* Tighten spacing between heading and tech stack in video cards */
.carousel-desc-tech-wrapper .carousel-tech-stack {
  margin-top: -0.625rem;
}

@media (min-width: 768px) {
  .carousel-desc-tech-wrapper .carousel-tech-stack {
    margin-top: -0.875rem;
  }
}

/* Video Grid Layout */
.carousel-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .carousel-video-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 1.25rem;
  }
}

.carousel-video-iframe {
  width: 100%;
  height: 300px;
  min-height: 300px;
  border-radius: 0.75rem;
  border: none;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6), 
              0 0 0 1px rgba(96, 165, 250, 0.2);
}

/* Key Features Section */
.carousel-features-section {
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .carousel-features-section {
    margin-bottom: 1.5rem;
  }
}

.carousel-section-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
  text-align: left;
  background: linear-gradient(to right, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .carousel-section-heading {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

.carousel-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  text-align: left;
}

.carousel-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .carousel-feature-item {
    font-size: 0.9rem;
  }
}

.carousel-feature-bullet {
  margin-top: 0.25rem;
  font-weight: bold;
  flex-shrink: 0;
  color: #60a5fa;
}

.carousel-feature-text {
  line-height: 1.75;
  flex: 1;
}

/* Tech Stack Section */
.carousel-desc-tech-wrapper .carousel-section-heading {
  margin-bottom: 0;
}

.carousel-description-section .carousel-section-heading:has(+ .carousel-tech-stack) {
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .carousel-desc-tech-wrapper .carousel-section-heading {
    margin-bottom: 0;
  }
  
  .carousel-description-section .carousel-section-heading:has(+ .carousel-tech-stack) {
    margin-bottom: 0.625rem;
  }
}

.carousel-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.carousel-tech-badge {
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  transition: all 300ms;
  font-size: 0.75rem;
  font-weight: 500;
  color: #e2e8f0;
  cursor: default;
}

@media (min-width: 768px) {
  .carousel-tech-badge {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

.carousel-tech-badge:hover {
  color: white;
  transform: scale(1.05);
}

.carousel-tech-badge[data-center="true"] {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.carousel-tech-badge[data-center="false"] {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.1);
}


/* Mobile Dot Indicators */
.carousel-dots-mobile {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .carousel-dots-mobile {
    display: none;
  }
}

.carousel-dot {
  height: 0.75rem;
  border-radius: 9999px;
  transition: all 500ms ease-out;
  background: rgba(96, 165, 250, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot[data-active="true"] {
  width: 2rem;
  background: linear-gradient(to right, #60a5fa, #a78bfa);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

.carousel-dot[data-active="false"] {
  width: 0.75rem;
}


