/* ═══════════════════════════════════════════════ */
/* SENDHUR PORTFOLIO — Website Styles              */
/* ═══════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.2); border-radius: 3px; }

/* ─── HERO GRADIENT ─── */
.hero-gradient {
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(99,102,241,0.06), transparent),
    radial-gradient(ellipse 50% 60% at 70% 60%, rgba(139,92,246,0.04), transparent);
}

/* ─── ENTRANCE ANIMATIONS ─── */
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp { from { opacity:0; transform:translateY(40px) } to { opacity:1; transform:translateY(0) } }
@keyframes scaleIn { from { opacity:0; transform:scale(0.85) } to { opacity:1; transform:scale(1) } }

.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-slide-up { animation: slideUp 0.8s ease forwards; }
.animate-scale-in { animation: scaleIn 0.8s ease forwards; }
.delay-1 { animation-delay: 0.15s; opacity: 0; }
.delay-2 { animation-delay: 0.3s; opacity: 0; }
.delay-3 { animation-delay: 0.5s; opacity: 0; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.35s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* ─── SCROLL INDICATOR ─── */
.scroll-indicator { animation: fadeIn 1.5s ease 1s forwards; opacity: 0; }

/* ─── SECTION HEADING ─── */
.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ─── NAV ─── */
#navbar.visible {
  transform: translateY(0);
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31,31,38,0.5);
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: #a3a3a3;
  transition: color 0.2s;
}
.nav-link:hover { color: #fff; }
.dock-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: #737373; transition: all 0.2s;
}
.dock-btn:hover { color: #6366f1; background: rgba(99,102,241,0.1); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.5rem; font-size: 0.85rem; font-weight: 600;
  color: #fff; background: #6366f1; border-radius: 0.5rem;
  transition: all 0.2s;
}
.btn-primary:hover { background: #4f46e5; box-shadow: 0 8px 24px rgba(99,102,241,0.25); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.5rem; font-size: 0.85rem; font-weight: 500;
  color: #d4d4d4; border: 1px solid #1f1f26; border-radius: 0.5rem;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(99,102,241,0.4); color: #fff; transform: translateY(-1px); }

/* ─── SOCIAL ICONS ─── */
.social-icon {
  color: #525252; transition: all 0.2s;
}
.social-icon:hover { color: #6366f1; transform: translateY(-2px); }

.social-icon-lg {
  color: #525252; transition: all 0.25s;
}
.social-icon-lg:hover { color: #6366f1; transform: scale(1.15); }

/* ─── INFO TILES ─── */
.info-tile {
  padding: 1.25rem;
  background: #111114;
  border: 1px solid #1f1f26;
  border-radius: 0.75rem;
  transition: all 0.3s;
}
.info-tile:hover { border-color: rgba(99,102,241,0.25); transform: translateY(-2px); }

/* ─── SKILL CARDS ─── */
.skill-card {
  padding: 1.5rem;
  background: #111114;
  border: 1px solid #1f1f26;
  border-radius: 0.75rem;
  transition: all 0.3s;
}
.skill-card:hover { border-color: rgba(99,102,241,0.2); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.skill-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; }

.badge {
  display: inline-flex; padding: 0.2rem 0.6rem;
  font-size: 0.7rem; font-weight: 500; border-radius: 9999px;
}
.badge-violet { color: #c4b5fd; background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.12); }
.badge-blue { color: #93c5fd; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.12); }
.badge-emerald { color: #6ee7b7; background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.12); }
.badge-amber { color: #fcd34d; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.12); }

/* ─── PROJECT CARDS ─── */
.project-card {
  background: #111114;
  border: 1px solid #1f1f26;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
.project-card:hover {
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(99,102,241,0.06);
}
.project-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--tw-gradient-from), var(--tw-gradient-to));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-status-active {
  position: absolute; top: 0.5rem; right: 0.5rem;
  font-size: 0.6rem; font-weight: 600;
  padding: 0.15rem 0.5rem; border-radius: 9999px;
  color: #34d399; background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2);
}
.project-status-done {
  position: absolute; top: 0.5rem; right: 0.5rem;
  font-size: 0.6rem; font-weight: 600;
  padding: 0.15rem 0.5rem; border-radius: 9999px;
  color: #a3a3a3; background: rgba(163,163,163,0.05); border: 1px solid rgba(163,163,163,0.15);
}
.project-tag {
  display: inline-flex; padding: 0.125rem 0.45rem;
  font-size: 0.6rem; font-weight: 500;
  color: #a3a3a3; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 0.3rem;
}
.project-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; font-weight: 500;
  transition: opacity 0.2s;
}
.project-link:hover { opacity: 0.7; }

/* ─── TIMELINE CARDS ─── */
.timeline-card {
  padding: 1rem;
  border: 1px solid #1f1f26;
  border-radius: 0.75rem;
  transition: all 0.3s;
}
.timeline-card:hover { border-color: rgba(99,102,241,0.2); background: rgba(99,102,241,0.02); }

/* ─── CERT CARDS ─── */
.cert-card {
  padding: 1.25rem;
  background: #111114;
  border: 1px solid #1f1f26;
  border-radius: 0.75rem;
  transition: all 0.3s;
}
.cert-card:hover { border-color: rgba(99,102,241,0.25); transform: translateY(-3px); }

/* ═══════ LIGHT MODE ═══════ */
html:not(.dark) body { background: #fafafa; color: #111; }
html:not(.dark) .hero-gradient { background: radial-gradient(ellipse 60% 50% at 30% 40%, rgba(99,102,241,0.04), transparent); }
html:not(.dark) #navbar.visible { background: rgba(250,250,250,0.9); border-color: #e5e5e5; }
html:not(.dark) .nav-link { color: #737373; }
html:not(.dark) .nav-link:hover { color: #111; }
html:not(.dark) .btn-outline { border-color: #e5e5e5; color: #404040; }
html:not(.dark) .btn-outline:hover { border-color: rgba(99,102,241,0.4); color: #111; }
html:not(.dark) .info-tile,
html:not(.dark) .skill-card,
html:not(.dark) .project-card,
html:not(.dark) .timeline-card,
html:not(.dark) .cert-card { background: #fff; border-color: #e5e5e5; }
html:not(.dark) .project-tag { color: #666; background: #f5f5f5; border-color: #e5e5e5; }
html:not(.dark) .dock-btn { color: #a3a3a3; }
html:not(.dark) #mobile-dock > div { background: rgba(255,255,255,0.9); border-color: #e5e5e5; }
html:not(.dark) .social-icon, html:not(.dark) .social-icon-lg { color: #a3a3a3; }
html:not(.dark) .social-icon:hover, html:not(.dark) .social-icon-lg:hover { color: #6366f1; }
</style>
