/* ==========================================================
   geofluct — Custom CSS
   Only styles that cannot be expressed with Tailwind classes:
   keyframes, timeline, glassmorphism helpers, scrollbar, print
   ========================================================== */

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Hero entrance animations ──────────────────────────── */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Typewriter cursor ──────────────────────────────────── */
.typewriter-cursor {
  display: inline-block;
  color: #00d4b4;
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}

/* ── Gradient text utility ──────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #00d4b4 0%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section title accent line ──────────────────────────── */
.section-title {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00d4b4, #4ade80);
}

/* ── Glassmorphism card ─────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
}

.glass-card:hover {
  border-color: rgba(0, 212, 180, 0.25);
}

/* ── Sticky nav: frosted on scroll ──────────────────────── */
#topnav.scrolled {
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Active nav link ────────────────────────────────────── */
.nav-link.active {
  color: #00d4b4 !important;
}

/* ── Scroll-reveal animation ────────────────────────────── */
.scroll-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside scroll-animate containers */
.scroll-animate.visible > *:nth-child(1) { transition-delay: 0.05s; }
.scroll-animate.visible > *:nth-child(2) { transition-delay: 0.10s; }
.scroll-animate.visible > *:nth-child(3) { transition-delay: 0.15s; }

/* ── Timeline ───────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.4375rem; /* 7px — centres the 14px dot */
  top: 0.375rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #00d4b4 0%, rgba(74, 222, 128, 0.4) 80%, transparent 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.75rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5625rem; /* align with the line */
  top: 1.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00d4b4;
  border: 2px solid #0a0f1e;
  box-shadow: 0 0 0 3px rgba(0, 212, 180, 0.2);
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #0a0f1e; }
::-webkit-scrollbar-thumb { background: #00d4b4; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4ade80; }

/* ── Print ──────────────────────────────────────────────── */
@media print {
  .no-print { display: none !important; }
}
