/* ═══════════════════════════════════════════
   SANKALPMODZ PORTFOLIO — STYLES
   ═══════════════════════════════════════════ */

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  background: #06060e;
  color: #e0e0e0;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ═══════════════════════════════════════════
   PARTICLE CANVAS
   ═══════════════════════════════════════════ */
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   ROOT CONTAINER
   ═══════════════════════════════════════════ */
.portfolio-root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(6, 6, 14, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(123, 47, 247, 0.1);
  transition: all 0.3s ease;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.logo-bracket {
  color: #7b2ff7;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  color: #a0a0b0;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  border: none;
  background: none;
  font-family: inherit;
}

.nav-link:hover {
  color: #fff;
  background: rgba(123, 47, 247, 0.15);
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 2rem 2rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 247, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* ─── AVATAR ─── */
.avatar-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  padding: 4px;
  background: linear-gradient(135deg, #7b2ff7, #00f5d4, #f72585);
  animation: avatarSpin 8s linear infinite;
  position: relative;
}

@keyframes avatarSpin {
  0%   { background: linear-gradient(0deg,   #7b2ff7, #00f5d4, #f72585); }
  25%  { background: linear-gradient(90deg,  #7b2ff7, #00f5d4, #f72585); }
  50%  { background: linear-gradient(180deg, #7b2ff7, #00f5d4, #f72585); }
  75%  { background: linear-gradient(270deg, #7b2ff7, #00f5d4, #f72585); }
  100% { background: linear-gradient(360deg, #7b2ff7, #00f5d4, #f72585); }
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0c0c18;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
}

/* ─── HERO NAME (SHIMMER) ─── */
.hero-name {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 0%, #7b2ff7 40%, #00f5d4 70%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
  margin-bottom: 1rem;
  line-height: 1.1;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  50%  { background-position: 200% center; }
  100% { background-position: 0% center; }
}

/* ─── HERO TAGLINE ─── */
.hero-tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: #a0a0b8;
  margin-bottom: 1rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.typed-text {
  color: #00f5d4;
  font-weight: 700;
  min-width: 2ch;
  display: inline-block;
}

.cursor {
  color: #7b2ff7;
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
  font-size: 1.2em;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ─── HERO DESCRIPTION ─── */
.hero-desc {
  font-size: 1rem;
  color: #6a6a80;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ─── HERO CTA BUTTONS ─── */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  background: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #7b2ff7, #5a1fd4);
  color: #fff;
  box-shadow: 0 4px 24px rgba(123, 47, 247, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(123, 47, 247, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #c0c0d0;
  border: 1px solid rgba(123, 47, 247, 0.3);
}

.btn-secondary:hover {
  background: rgba(123, 47, 247, 0.1);
  color: #fff;
  border-color: rgba(123, 47, 247, 0.6);
  transform: translateY(-2px);
}

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: #4a4a60;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid #4a4a60;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: #7b2ff7;
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ═══════════════════════════════════════════
   SECTIONS (GENERIC)
   ═══════════════════════════════════════════ */
.section {
  padding: 5rem 2rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.section-icon {
  font-size: 1.5rem;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0;
}

.title-underline {
  flex: 1;
  height: 1px;
  min-width: 60px;
  background: linear-gradient(90deg, rgba(123, 47, 247, 0.5), transparent);
  margin-left: 0.5rem;
}

/* ═══════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════ */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(123, 47, 247, 0.05);
  border-color: rgba(123, 47, 247, 0.15);
  transform: translateX(4px);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.skill-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #e0e0f0;
}

.skill-percent {
  font-weight: 800;
  font-size: 0.95rem;
  font-family: 'Courier New', Courier, monospace;
}

.skill-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  border-radius: 100px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: inherit;
  filter: blur(4px);
  opacity: 0.8;
}

.skill-fill.animated {
  /* width set via JS data-percent attribute */
}

/* ═══════════════════════════════════════════
   BOTS GRID
   ═══════════════════════════════════════════ */
.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.bot-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.bot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.08), rgba(0, 245, 212, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bot-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 47, 247, 0.3);
  box-shadow: 0 20px 60px rgba(123, 47, 247, 0.15), 0 0 0 1px rgba(123, 47, 247, 0.1);
}

.bot-card:hover::before {
  opacity: 1;
}

.bot-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.2), rgba(0, 245, 212, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b2ff7;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.bot-card:hover .bot-icon-wrap {
  color: #00f5d4;
}

.bot-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  position: relative;
  z-index: 1;
}

.bot-desc {
  font-size: 0.875rem;
  color: #6a6a80;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}

.bot-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7b2ff7;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.bot-card:hover .bot-link {
  color: #00f5d4;
}

/* ═══════════════════════════════════════════
   COMMUNITY
   ═══════════════════════════════════════════ */
.community-wrapper {
  display: flex;
  flex-direction: column;
}

.community-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: #a0a0b8;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.community-subtitle::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.community-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.community-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.channel-card:hover {
  background: rgba(0, 245, 212, 0.05);
  border-color: rgba(0, 245, 212, 0.2);
  transform: translateX(6px);
}

.group-card:hover {
  background: rgba(247, 37, 133, 0.05);
  border-color: rgba(247, 37, 133, 0.2);
  transform: translateX(6px);
}

.community-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-card .community-icon {
  background: rgba(0, 245, 212, 0.1);
  color: #00f5d4;
}

.group-card .community-icon {
  background: rgba(247, 37, 133, 0.1);
  color: #f72585;
}

.community-info {
  flex: 1;
  min-width: 0;
}

.community-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
}

.community-info p {
  font-size: 0.85rem;
  color: #6a6a80;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-arrow {
  color: #4a4a60;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.channel-card:hover .community-arrow { color: #00f5d4; transform: translateX(4px); }
.group-card:hover  .community-arrow { color: #f72585; transform: translateX(4px); }

/* ═══════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════ */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(123, 47, 247, 0.15);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 180deg, transparent, rgba(123, 47, 247, 0.08), transparent 40%);
  animation: contactRotate 12s linear infinite;
}

@keyframes contactRotate {
  100% { transform: rotate(360deg); }
}

.contact-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b2ff7, #00f5d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.contact-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0.5rem 0 0;
  position: relative;
  z-index: 1;
}

.contact-desc {
  font-size: 0.9rem;
  color: #6a6a80;
  margin: 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #0088cc, #00aaee);
  color: #fff;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.3);
  position: relative;
  z-index: 1;
}

.contact-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 136, 204, 0.5);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  margin-top: auto;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 6, 14, 0.9);
  backdrop-filter: blur(10px);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.footer-text {
  font-size: 0.8rem;
  color: #4a4a60;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #6a6a80;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: #00f5d4;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #06060e;
}

::-webkit-scrollbar-thumb {
  background: rgba(123, 47, 247, 0.3);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(123, 47, 247, 0.5);
}

/* ═══════════════════════════════════════════
   SELECTION
   ═══════════════════════════════════════════ */
::selection {
  background: rgba(123, 47, 247, 0.3);
  color: #fff;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {
  .nav-bar {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    gap: 0;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .hero-section {
    padding: 5rem 1.25rem 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .bots-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }

  .community-card {
    flex-wrap: wrap;
  }

  .community-arrow {
    display: none;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .avatar-ring {
    width: 90px;
    height: 90px;
  }

  .avatar-inner {
    font-size: 1.5rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .bots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
