/* =========================================================
   Ameera Khan — Shared Portfolio Styles
   Used across all portfolio pages
   ========================================================= */

:root {
  --cyan: #00d4ff;
  --violet: #7c3aed;
  --pink: #f472b6;
  --amber: #f59e0b;
  --green: #10b981;
  --bg: #0a0a0f;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
}

* {
  font-family: 'Sora', sans-serif;
  box-sizing: border-box;
}

.mono {
  font-family: 'DM Mono', monospace;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: #fff;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  border-radius: 4px;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(5deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: .4; transform: scale(1); }
  50%       { opacity: .8; transform: scale(1.05); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-float        { animation: float 6s ease-in-out infinite; }
.animate-float-delay  { animation: float 6s ease-in-out infinite 2s; }
.animate-pulse-glow   { animation: pulse-glow 4s ease-in-out infinite; }
.animate-slide-up     { animation: slide-up 0.8s ease-out forwards; }
.animate-fade-in      { animation: fade-in 0.6s ease-out forwards; }

/* ── Gradient text ──────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f472b6 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* ── Glass card ─────────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* ── Navigation ─────────────────────────────────────────── */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Buttons ─────────────────────────────────────────────── */
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
}
.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
.cta-button:hover::before { left: 100%; }

.btn-primary {
  background: linear-gradient(to right, var(--cyan), var(--violet));
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  color: #fff;
  font-size: 0.875rem;
}
.btn-primary:hover {
  box-shadow: 0 10px 30px -5px rgba(0, 212, 255, 0.3);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  color: #d1d5db;
  font-size: 0.875rem;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Cards ───────────────────────────────────────────────── */
.project-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 212, 255, 0.15);
}

.stat-card { transition: all 0.3s ease; }
.stat-card:hover { transform: translateY(-4px); }

/* ── Skill bars ─────────────────────────────────────────── */
.skill-bar { transition: width 1s ease-out; }

/* ── Tag pills ──────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  transition: all 0.2s;
}
.tag:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--cyan);
}

/* ── Award badge ────────────────────────────────────────── */
.award-badge {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
}

/* ── Background shapes ──────────────────────────────────── */
.geometric-shape {
  position: absolute;
  border-radius: 20%;
  opacity: 0.1;
}

/* ── Ticker ─────────────────────────────────────────────── */
.ticker-wrap { overflow: hidden; white-space: nowrap; }
.ticker-inner {
  display: inline-block;
  animation: ticker 30s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }

/* ── Section headings ───────────────────────────────────── */
.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: 'DM Mono', monospace;
}

/* ── Portfolio hub card (on main landing page) ──────────── */
.portfolio-hub-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: block;
}
.portfolio-hub-card:hover {
  transform: translateY(-10px);
}
.portfolio-hub-card:hover .hub-glow { opacity: 1; }
.hub-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* ── Responsive nav toggle ──────────────────────────────── */
#mobile-menu { transition: all 0.3s ease; }

/* ── Cert badge ─────────────────────────────────────────── */
.cert-badge {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.cert-badge:hover {
  border-color: rgba(0, 212, 255, 0.5);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
  transform: translateY(-2px);
}

/* ── Timeline ───────────────────────────────────────────── */
.timeline-item { position: relative; padding-left: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.375rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1.125rem;
  width: 2px;
  height: calc(100% + 1.5rem);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.3), transparent);
}
.timeline-item:last-child::after { display: none; }

/* ── Insight card ───────────────────────────────────────── */
.insight-card {
  transition: all 0.3s ease;
}
.insight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.3);
}
