body {
  background-color: #050505;
  color: #ffffff;
  margin: 0;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: none;
  scroll-behavior: smooth;
  -webkit-user-select: none; /* Chrome, Safari */
  -ms-user-select: none; /* Edge */
  user-select: none; /* Standard */
}

.nav-box {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Animation */
#mobile-menu.translate-x-0 {
  transform: translateX(0);
}

.mobile-link {
  color: white;
  transition: 0.3s ease;
}

.mobile-link:hover {
  letter-spacing: 4px;
  color: #3b82f6;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

#tsparticles {
  opacity: 0.6;
  pointer-events: all;
}

/* Custom Scrollbar for Dark Theme */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}
/* --- Skill Section Fixes --- */

.skill-card {
  padding: 2rem; /* p-8 */
  border-radius: 1.5rem; /* rounded-3xl */
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.5s ease;
}

.skill-card:hover {
  border-color: rgba(59, 130, 246, 0.4); /* blue-500/40 */
  background-color: rgba(255, 255, 255, 0.04);
}

.icon-box {
  width: 2.5rem; /* w-10 */
  height: 2.5rem; /* h-10 */
  border-radius: 0.75rem; /* rounded-xl */
  background-color: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  transition: all 0.3s ease;
}

/* This targets the icon box when the WHOLE card is hovered */
.skill-card:hover .icon-box {
  background-color: #2563eb; /* blue-600 */
  color: #ffffff;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem; /* p-3 */
  border-radius: 1rem; /* rounded-2xl */
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  gap: 0.5rem; /* gap-2 */
}

.skill-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
}

.skill-item img {
  width: 2rem; /* w-8 */
  height: 2rem; /* h-8 */
  object-fit: contain;
  transition: transform 0.3s ease;
}

.skill-item:hover img {
  transform: scale(1.1);
}

.skill-item span {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280; /* gray-500 */
  text-transform: uppercase;
  letter-spacing: -0.025em;
  text-align: center;
  transition: color 0.3s ease;
}

.skill-item:hover span {
  color: #60a5fa; /* blue-400 */
}

/* --- Projects Styling --- */

.project-card {
  position: relative;
  width: 100%;
}

.project-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  filter: grayscale(20%);
}

.project-card:hover .project-img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: #3b82f6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.project-btn:hover {
  transform: scale(1.1);
  background-color: #2563eb;
}

.tech-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

/* --- Collaborate Marquee Animation --- */

.scroll-left {
  animation: scroll-left 7s linear infinite;
}

.scroll-right {
  animation: scroll-right 7s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Ensure the background text stays behind everything */
.absolute.inset-0 {
  z-index: 0;
}

/* Make sure the text is large and bold */
.font-black {
  font-weight: 900;
}
/* --- Footer Styling --- */

.social-icon-link {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #9ca3af; /* gray-400 */
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon-link:hover {
  background-color: #3b82f6;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  border-color: #3b82f6;
}

footer {
  /* Subtle mesh gradient for the footer floor */
  background-image: radial-gradient(
    circle at top,
    rgba(59, 130, 246, 0.03) 0%,
    transparent 70%
  );
}

/* --- About Section Specifics --- */

/* Floating animation for the coffee card */
.bottom-6.right-6 {
  animation: float-mini 4s ease-in-out infinite;
}

@keyframes float-mini {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* CUSTOM CURSOR */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Dot */
#cursor-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
}

/* Ring */
#cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid #ffffff;
  transition:
    transform 0.15s ease-out,
    width 0.15s,
    height 0.15s;
}

/* Hover effect */
.cursor-hover #cursor-ring {
  width: 56px;
  height: 56px;
  border-width: 3px;
}

/* Hide cursor on mobile */
@media (max-width: 768px) {
  #cursor-dot,
  #cursor-ring {
    display: none;
  }
}
