@import url("./fonts.css");

/***** HTML *****/
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
}

/* Ensure the footer sticks to the bottom */
body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
}

/***** End HTML *****/

/***** CSS - Index.html *****/
.animate-bounce-smooth {
  animation: bounce-smooth 2s ease-in-out infinite;
}

/* Tooltip bubble with tail */
.tooltip-speech {
  position: absolute;
  white-space: nowrap;
  background: #1a1a1a !important;
  font-size: 16px;
}

.tooltip-tail {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #1a1a1a;
}

/*
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

.box-card {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease;
  cursor: cell;
}

.box-card:hover {
  animation: rotate3d 8s infinite linear;
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  backface-visibility: visible;
  border-radius: 12px;
  background: linear-gradient(145deg, #2a2a2a, #383838);
  border: 2px solid #646cff;
  transition: all 0.3s ease;
  overflow: hidden;
}

.face::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  top: -100%;
  left: -100%;
  transition: all 0.5s ease;
  transform: translateZ(20px);
}

.face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      135deg,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 50%,
      transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.face:hover::before {
  top: 100%;
  left: 100%;
}

.face:hover::after {
  opacity: 1;
}

.front {
  transform: translateZ(100px);
  border-color: #646cff;
}

.back {
  transform: translateZ(-100px) rotateY(180deg);
  border-color: #00bcd4;
}

.right {
  transform: translateX(100px) rotateY(90deg);
  border-color: #4caf50;
}

.left {
  transform: translateX(-100px) rotateY(-90deg);
  border-color: #ff4081;
}

.top {
  transform: translateY(-100px) rotateX(90deg);
  border-color: #ffc107;
}

.bottom {
  transform: translateY(100px) rotateX(-90deg);
  border-color: #9c27b0;
}

@keyframes rotate3d {
  0% {
      transform: rotateX(0) rotateY(0);
  }
  25% {
      transform: rotateX(90deg) rotateY(90deg);
  }
  50% {
      transform: rotateX(180deg) rotateY(180deg);
  }
  75% {
      transform: rotateX(270deg) rotateY(270deg);
  }
  100% {
      transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.animate-pulse {
    animation: pulse 1.5s infinite;
}

@media (max-width: 768px) {
  .box-card {
      width: 150px;
      height: 150px;
  }
  
  .front { transform: translateZ(75px); }
  .back { transform: translateZ(-75px) rotateY(180deg); }
  .right { transform: translateX(75px) rotateY(90deg); }
  .left { transform: translateX(-75px) rotateY(-90deg); }
  .top { transform: translateY(-75px) rotateX(90deg); }
  .bottom { transform: translateY(75px) rotateX(-90deg); }
}*/

.project_card {
  flex-shrink: 0;
  width: 700px;
  height: auto;
  overflow-y: auto; /* Enable vertical scrolling for overflowing content */
  margin: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#projects {
  background: repeating-radial-gradient(#000 0 0.0001%, #fff 0 0.0002%) 50% 0/2500px
      2500px,
    repeating-conic-gradient(#000 0 0.0001%, #fff 0 0.0002%) 60% 60%/2500px
      2500px;
  background-blend-mode: difference;
  animation: b 0.2s infinite alternate;
  border: 12px solid #000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  border: 10px solid #111;
  border-radius: 20px;
  box-shadow: inset -10px -10px 30px rgba(255, 255, 255, 0.1),
    inset 10px 10px 30px rgba(0, 0, 0, 0.8);
  pointer-events: auto; /* Allow interaction with child elements */
  z-index: 1;
}

#projects .remote-control {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

#projects .remote-control div {
  background-color: #e5e7eb; /* Light gray for light mode */
  background-color: var(--tw-bg-opacity, 1) #374151; /* Dark gray for dark mode */
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 1rem;
}

#projects .remote-control button {
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
}

#tv-remote {
  background: linear-gradient(to bottom, #0d0d0d, #1a1a1a);
  border: 2px solid #333;
  border-radius: 20px;
  padding: 1rem 2rem;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05),
    0 5px 15px rgba(0, 0, 0, 0.4);
}

.remote-btn {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgb(194, 1, 1),
    rgb(104, 1, 1)
  );
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.remote-btn.green {
  background: radial-gradient(circle at 30% 30%, rgb(2, 197, 2), rgb(0, 68, 0));
}

.remote-btn::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  z-index: 1;
  pointer-events: none;
}

.remote-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8),
    inset 0 0 15px rgba(255, 255, 255, 0.5);
}

#remote-label {
  font-family: "Courier New", monospace;
  color: #00ffcc;
  text-shadow: 0 0 5px #00ffcc;
}

#carousel {
  overflow-x: auto;
  white-space: nowrap;
}
#carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar for WebKit browsers */
}
#carousel::-moz-scrollbar {
  display: none; /* Hide scrollbar for Firefox */
}
#carousel-items {
  display: inline-flex;
  transition: transform 0.5s ease-in-out;
}

@keyframes b {
  100% {
    background-position: 50% 0, 60% 50%;
  }
}

.backdrop-blur-md {
  backdrop-filter: blur(10px);
}

#toast {
  z-index: 9999; /* Ensure the toast appears above other elements */
}

/* SERVICES */

.service-card {
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  color: #4f46e5;
}

.dark .feature-icon {
  color: #818cf8;
}

.badge-popular {
  background-color: #dcfce7;
  color: #166534;
}

.dark .badge-popular {
  background-color: #166534;
  color: #dcfce7;
}

.badge-value {
  background-color: #fef9c3;
  color: #854d0e;
}

.dark .badge-value {
  background-color: #854d0e;
  color: #fef9c3;
}

/* Custom scrollbar for Skills Departure Board */
#skills-board-rows {
  scrollbar-color: #ca8a04 #111; /* yellow thumb, black track */
  scrollbar-width: thin;
}
#skills-board-rows::-webkit-scrollbar {
  width: 10px;
  background: #111;
}
#skills-board-rows::-webkit-scrollbar-thumb {
  background: #ca8a04;
  border-radius: 8px;
}
#skills-board-rows::-webkit-scrollbar-track {
  background: #111;
}

/* Mobile-first base styles */
html {
  -webkit-text-size-adjust: 100%;
}

/* Responsive typography */
@media (max-width: 640px) {
  #slide-2 h1 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .tech-icon i {
    font-size: 3rem !important;
  }

  .filter-btn {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

/* Touch target sizing */
button,
a {
  min-width: 44px;
}

/* Prevent horizontal overflow */
body {
  overflow-x: hidden;
  width: 100%;
}

/* Skills grid adjustment */
@media (max-width: 640px) {
  #animated-skillset {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .skill-item {
    padding: 0.5rem;
  }

  .skill-item i {
    font-size: 2.5rem !important;
  }
}
