/* Portfolio Styles - Extracted from index.html */

html,
body {
  overflow-x: hidden !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--nav-height, 70px); /* Fallback for nav height */
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select: none;
}

/* section:not(#hero) {
      height: calc(100vh - var(--nav-height, 70px));
  } */

a,
button,
.card-hover {
  cursor: none !important;
}

/* Hide or theme the scrollbar */
#snap-scroll-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #a78bfa #18181b;
  scroll-behavior: smooth;
}

#snap-scroll-wrapper::-webkit-scrollbar {
  width: 8px;
}

#snap-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #a78bfa;
  border-radius: 8px;
  transition: background 0.3s, height 0.3s;
}

#snap-scroll-wrapper::-webkit-scrollbar-track {
  background: #18181b;
}

/* Skills Filter Button Styles */
.skills-filter-btn {
  padding: 0.6rem 2.1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(168, 139, 250, 0.1);
  margin: 0 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  z-index: 1;
}

.skills-filter-btn.active {
  background: rgba(168, 139, 250, 0.22) !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px #a78bfa,
    0 4px 24px 0 rgba(168, 139, 250, 0.18);
  border: none;
}

.skills-filter-btn:not(.active):hover {
  background: rgba(168, 139, 250, 0.13);
  color: #c4b5fd;
  box-shadow: 0 0 0 2px #a78bfa33,
    0 2px 16px 0 rgba(168, 139, 250, 0.12);
}

.skills-filter-btn:after {
  display: none;
}

/* Skills Card Styles */
.skills-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(24, 24, 27, 0.22) 60%,
    rgba(168, 139, 250, 0.08)
  );
  box-shadow: 0 2px 16px 0 rgba(168, 139, 250, 0.08),
    0 1.5px 8px 0 rgba(0, 0, 0, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  width: 8.2rem;
  height: 8.2rem;
  min-width: 8.2rem;
  min-height: 8.2rem;
  aspect-ratio: 1/1;
  margin: 0 0.5rem;
  padding: 0.5rem;
  position: relative;
}

.skills-card:hover {
  border: 0.8px solid #b49ff3;
  box-shadow: 0 0 0 4px #a78bfa22,
    0 4px 32px 0 rgba(168, 139, 250, 0.18);
  transform: scale(1.025);
}

.skills-card .icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  border-width: 1.75px;
  border-style: solid;
  box-shadow: 0 2px 12px 0 rgba(168, 139, 250, 0.08);
  width: 5.5rem;
  height: 5.5rem;
  min-width: 5.5rem;
  min-height: 5.5rem;
  aspect-ratio: 1/1;
  margin-bottom: 0;
  position: relative;
  background: rgba(24, 24, 27, 0.18);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.skills-card img {
  width: 3.7rem;
  height: 3.7rem;
  object-fit: contain;
  border-radius: 0.85rem;
  z-index: 1;
}

.skills-tooltip {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -120%);
  top: -0.7rem;
  padding: 0.35rem 0.9rem;
  border-radius: 0.7rem;
  background: rgba(24, 24, 27, 0.92);
  color: #e0e7ff;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.13);
  opacity: 0;
  pointer-events: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  z-index: 20;
  backdrop-filter: blur(6px);
}

.skills-card:hover .skills-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -160%) scale(1.04);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  scrollbar-width: none;
}

#skills-grid.flex {
  gap: 1.1rem !important;
  padding-bottom: 0.5rem;
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Loading states */
.loading-skeleton {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* responsive.css: Extra tweaks for mobile/tablet */
@media (max-width: 640px) {
  .skills-tooltip {
    display: none !important;
  }
  .skills-card, .card-hover {
    box-shadow: none !important;
    transform: none !important;
  }
  .scroll-down-arrow {
    bottom: 2rem !important;
  }
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  section {
    min-height: 100vh !important;
    height: auto !important;
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
  }
  #about .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  #about h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  #about p {
    font-size: 0.95rem !important;
    text-align: center !important;
  }
  #about .flex-row, #about .flex {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #about .mt-8 {
    margin-top: 1.5rem !important;
  }
  #about .gap-6 {
    gap: 1.25rem !important;
  }
  #about .text-center {
    text-align: center !important;
  }
  /* Ensure social icons row is always horizontal and centered */
  #about .mt-8.flex-row {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

@media (max-width: 900px) {
  .cert-card, .project-card {
    min-height: 18rem !important;
    height: auto !important;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .skills-card:hover {
    transform: none;
  }
  
  .card-hover:hover {
    transform: none;
  }
  
  .skills-tooltip {
    display: none !important;
  }
} 