@tailwind base;
@tailwind components;
@tailwind utilities;

/* === Custom theme colors === */
.bg-dark-blue {
  background-color: #24252b;
}

.bg-dark-blue-light {
  background-color: #2f3138; 
}

.text-white {
  color: #ffffff;
}

.text-teal {
  color: #0ea5e9;
}

.border-teal {
  border-color: #0ea5e9;
}

.hover\:text-teal:hover {
  color: #0ea5e9;
}

.hover\:bg-teal:hover {
  background-color: #0ea5e9;
}

.hover\:text-dark-blue:hover {
  color: #0f172a;
}

.custom-hover-bg {
  background-color: #0ea5e9; /* solid teal for skill/experience cards */
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.transition-opacity {
  transition: opacity 0.3s ease;
}

.click {
  color: #0f172a;
  text-align: center;
  font-weight: bold;
}

/* === Navbar highlight and underline === */

/* Full column highlight with extra width */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 6rem; 
  justify-content: center; /* center link inside */
}


.nav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -0.5rem;   
  right: -0.5rem;  
  height: 100%;
  background-color: rgba(14, 165, 233, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  border-radius: 0.25rem; 
}

.nav-item:hover::before {
  opacity: 1;
}

.nav-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  overflow: hidden;
  padding: 0.25rem 0.5rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0ea5e9;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

.text-yellow {
  color: #facc15; 
}

.project-button {
  background-color: #3b82f6; /* Solid blue (Tailwind's blue-500) */
  color: black;              /* Black text */
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.project-button:hover {
  background-color: #2563eb; /* Slightly darker blue on hover */
}

.profile-container {
  position: relative;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.static-profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 3px solid #0ea5e9;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.animated-bg {
  position: absolute;
  width: 150%;
  height: 150%;
  transform-origin: center;
  animation: slow-rotate 20s linear infinite;
  opacity: 0.2;  /* Increased from 0.08 */
  z-index: 1;
}

@keyframes slow-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes glowPulse {
  0% {
    stroke: #0ea5e9;
    filter: drop-shadow(0 0 0px #0ea5e9);
    opacity: 0.25;
  }
  50% {
    stroke: #3b82f6;
    filter: drop-shadow(0 0 8px #3b82f6);
    opacity: 0.6;
  }
  100% {
    stroke: #0ea5e9;
    filter: drop-shadow(0 0 0px #0ea5e9);
    opacity: 0.25;
  }
}

.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}
