/* ============ BASE ============ */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

::selection { background: rgba(108,92,231,0.4); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0B0F19; }
::-webkit-scrollbar-thumb { background: #6C5CE7; border-radius: 8px; }

/* ============ PRELOADER ============ */
#preloader { transition: opacity 0.5s ease, visibility 0.5s ease; }
#preloader.hidden { opacity: 0; visibility: hidden; }

/* ============ NAVBAR ============ */
#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1E293B;
}
.nav-link { position: relative; transition: color 0.25s ease; }
.nav-link:hover { color: #6C5CE7; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: #6C5CE7; transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #6C5CE7; }
.nav-link.active::after { width: 100%; }
.mobile-link { display: block; padding: 0.5rem 0; color: #cbd5e1; }
.mobile-link:hover { color: #6C5CE7; }

/* ============ HERO ============ */
.hero-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(108,92,231,0.18), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(0,210,160,0.12), transparent 45%);
}
.social-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid #1E293B; color: #94a3b8;
  transition: all 0.25s ease;
}
.social-icon:hover {
  color: #fff; background: #6C5CE7; border-color: #6C5CE7;
  transform: translateY(-3px);
}

/* ============ SECTION HEADERS ============ */
.section-wrap { padding: 6rem 0; position: relative; }
.section-eyebrow {
  color: #6C5CE7; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* ============ ABOUT ============ */
.info-row { font-size: 0.9rem; color: #e2e8f0; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; color: #6C5CE7; }
.stat-label { font-size: 0.8rem; color: #64748b; }

/* ============ EXPERIENCE TIMELINE ============ */
.timeline { padding-left: 2rem; border-left: 2px solid #1E293B; }
.timeline-item { position: relative; padding-bottom: 2.5rem; padding-left: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -2.5rem; top: 0.35rem;
  width: 14px; height: 14px; border-radius: 999px;
  background: #6C5CE7; box-shadow: 0 0 0 4px rgba(108,92,231,0.25);
}
.timeline-card {
  background: #131A2A; border: 1px solid #1E293B; border-radius: 1rem; padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.timeline-card:hover { transform: translateX(4px); border-color: #6C5CE7; }
.timeline-date {
  font-size: 0.75rem; font-weight: 600; color: #00D2A0;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ============ SKILLS ============ */
.skill-card {
  background: #131A2A; border: 1px solid #1E293B; border-radius: 1rem; padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.skill-card:hover { transform: translateY(-6px); border-color: #6C5CE7; }

.progress-row { margin-bottom: 1.25rem; position: relative; }
.progress-row::before {
  content: attr(data-skill);
  display: block; font-size: 0.875rem; font-weight: 500; color: #e2e8f0; margin-bottom: 0.4rem;
}
.progress-row::after {
  content: attr(data-level) '%';
  position: absolute; right: 0; top: 0; font-size: 0.75rem; color: #64748b;
}
.progress-row .bar-track { width: 100%; height: 8px; border-radius: 999px; background: #1E293B; overflow: hidden; }
.progress-row .bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg,#6C5CE7,#00D2A0); transition: width 1.2s ease; }

/* ============ PROJECTS ============ */
.filter-btn {
  padding: 0.5rem 1.25rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid #1E293B; color: #94a3b8; transition: all 0.25s ease;
}
.filter-btn:hover { color: #fff; border-color: #6C5CE7; }
.filter-btn.active { background: #6C5CE7; color: #fff; border-color: #6C5CE7; }

.project-card {
  background: #131A2A; border: 1px solid #1E293B; border-radius: 1rem; overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: #6C5CE7; }
.project-card.hide { display: none; }

.project-img-wrap { position: relative; overflow: hidden; height: 200px; }
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-img-wrap img { transform: scale(1.08); }

.project-overlay {
  position: absolute; inset: 0; background: rgba(11,15,25,0.75);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay { opacity: 1; }
.overlay-btn {
  width: 42px; height: 42px; border-radius: 999px; background: #6C5CE7; color: #fff;
  display: flex; align-items: center; justify-content: center; transition: transform 0.25s ease;
}
.overlay-btn:hover { transform: scale(1.1); }

.tag {
  font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: rgba(108,92,231,0.12); color: #a78bfa; border: 1px solid rgba(108,92,231,0.25);
}

/* ============ CERTIFICATIONS ============ */
.cert-card {
  background: #131A2A; border: 1px solid #1E293B; border-radius: 1rem; padding: 1.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.cert-card:hover { transform: translateY(-6px); border-color: #00D2A0; }
.cert-icon {
  width: 48px; height: 48px; border-radius: 0.75rem; margin-bottom: 1rem;
  background: rgba(0,210,160,0.12); color: #00D2A0;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}

/* ============ CONTACT ============ */
.contact-info-item { display: flex; align-items: center; gap: 1rem; }
.contact-info-item i {
  width: 44px; height: 44px; border-radius: 0.75rem; background: rgba(108,92,231,0.12);
  color: #6C5CE7; display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: #94a3b8; margin-bottom: 0.4rem; }
.form-input {
  width: 100%; background: #131A2A; border: 1px solid #1E293B; border-radius: 0.75rem;
  padding: 0.75rem 1rem; color: #e2e8f0; font-size: 0.9rem; transition: border-color 0.25s ease;
}
.form-input:focus { outline: none; border-color: #6C5CE7; }
.form-input::placeholder { color: #475569; }

/* ============ BACK TO TOP ============ */
#backToTop.show { opacity: 1; pointer-events: auto; }

/* ============ AOS override for reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  [data-aos] { transition: none !important; transform: none !important; opacity: 1 !important; }
}
