/* ═══════════════════════════════════════════════════════════════
   VEDANG SOLASKAR — PORTFOLIO STYLESHEET
   ═══════════════════════════════════════════════════════════════ */

/* ── Base / Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background-color: rgba(167, 139, 250, 0.3);
  color: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navigation ── */
.nav-link {
  color: #a1a1aa; /* zinc-400 */
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #a78bfa;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  color: #a1a1aa;
  padding: 0.5rem 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
  color: #fff;
  padding-left: 0.5rem;
}

/* ── Section Heading ── */
.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: #a78bfa;
  border-radius: 999px;
  margin-top: 0.75rem;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #a78bfa;
  border-radius: 0.5rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: #8b5cf6;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #d4d4d8;
  background: transparent;
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-secondary:hover {
  border-color: #a78bfa;
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ── Social Icons ── */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #a1a1aa;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.social-icon:hover {
  color: #fff;
  border-color: #a78bfa;
  transform: translateY(-2px);
}

/* ── About ── */
.about-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 999px;
  color: #c4b5fd;
  font-size: 0.75rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  transition: border-color 0.2s ease;
}

.stat-card:hover {
  border-color: #3f3f46;
}

/* ── Projects ── */
.project-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #3f3f46;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.tech-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: #a1a1aa;
  background: #27272a;
  border-radius: 0.25rem;
  letter-spacing: 0.01em;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.project-btn-primary {
  color: #fff;
  background: #a78bfa;
}

.project-btn-primary:hover {
  background: #8b5cf6;
}

.project-btn-secondary {
  color: #d4d4d8;
  border: 1px solid #3f3f46;
}

.project-btn-secondary:hover {
  border-color: #a78bfa;
  color: #fff;
}

/* ── Skills ── */
.skill-group {
  padding: 1.5rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  transition: border-color 0.2s ease;
}

.skill-group:hover {
  border-color: #3f3f46;
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background: rgba(167, 139, 250, 0.1);
  font-size: 0.875rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #d4d4d8;
  background: #27272a;
  border-radius: 0.375rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.skill-tag:hover {
  background: #3f3f46;
  color: #fff;
}

/* ── Blog Placeholder ── */
.blog-placeholder {
  height: 8rem;
  border: 1px dashed #3f3f46;
  border-radius: 0.5rem;
  background: rgba(39, 39, 42, 0.3);
}

/* ── Form ── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #e4e4e7;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Inter', system-ui, sans-serif;
}

.form-input::placeholder {
  color: #52525b;
}

.form-input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

/* ── Fade-in Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scroll Bar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
