/* ============================================================
   BEAST.CSS — Advanced eye-catching layer (light theme)
   Mouse blob, 3D tilt, marquee, custom scrollbar, section accents,
   project bento, scroll-reveal animations.
   ============================================================ */

/* ── CUSTOM SCROLLBAR ───────────────────────────── */
*::-webkit-scrollbar      { width: 10px; height: 10px; }
*::-webkit-scrollbar-track {
  background: #f5f9ff;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #007bff, #00d4ff);
  border-radius: 10px;
  border: 2px solid #f5f9ff;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0066d9, #00b0e0);
}

/* ── MOUSE BLOB (giant soft cyan glow that follows cursor) ─── */
#beast-blob {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(0, 180, 255, 0.18), rgba(0, 120, 255, 0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  mix-blend-mode: multiply;
  transition: opacity 0.4s ease;
  will-change: transform;
}
@media (max-width: 860px), (hover: none) {
  #beast-blob { display: none; }
}

/* ── PAGE PROGRESS BAR (top of viewport) ────────── */
#beast-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  z-index: 100001;
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.6);
  transition: width 0.05s linear;
}

/* ── SECTION NUMBER (big light digits behind heading) ─ */
.fx-num {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: clamp(120px, 18vw, 240px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 120, 255, 0.08);
  pointer-events: none;
  z-index: 0;
  line-height: 0.85;
  user-select: none;
  letter-spacing: -0.05em;
}
.fx-num.tl { top: 20px;  left: 24px;  }
.fx-num.tr { top: 20px;  right: 24px; }

/* ── DECORATIVE CORNER BRACKETS ─────────────────── */
.fx-corner {
  position: absolute;
  width: 32px; height: 32px;
  pointer-events: none;
  z-index: 2;
}
.fx-corner::before, .fx-corner::after {
  content: ''; position: absolute;
  background: linear-gradient(90deg, #007bff, #00d4ff);
}
.fx-corner.tl::before { top: 0; left: 0; width: 18px; height: 2px; }
.fx-corner.tl::after  { top: 0; left: 0; width: 2px;  height: 18px; }
.fx-corner.tr::before { top: 0; right: 0; width: 18px; height: 2px; }
.fx-corner.tr::after  { top: 0; right: 0; width: 2px;  height: 18px; }
.fx-corner.bl::before { bottom: 0; left: 0; width: 18px; height: 2px; }
.fx-corner.bl::after  { bottom: 0; left: 0; width: 2px;  height: 18px; }
.fx-corner.br::before { bottom: 0; right: 0; width: 18px; height: 2px; }
.fx-corner.br::after  { bottom: 0; right: 0; width: 2px;  height: 18px; }

/* ── SCROLL REVEAL (stagger) ─────────────────────── */
.fx-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.fx-reveal.fx-visible {
  opacity: 1;
  transform: translateY(0);
}

/* User asked to remove vertical text effect on headings during scroll.
   Section headings + heading-meta pills now appear instantly with no
   translateY movement — no scramble, no slide. */
.colorlib-heading,
.heading-meta,
.intro-name,
.ck-manifesto-statement,
.ck-fact-quote,
.ck-skill3d-caption h3,
.colorlib-services .services h3 {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.colorlib-heading.fx-reveal,
.heading-meta.fx-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.fx-reveal.fx-d1 { transition-delay: 0.08s; }
.fx-reveal.fx-d2 { transition-delay: 0.16s; }
.fx-reveal.fx-d3 { transition-delay: 0.24s; }
.fx-reveal.fx-d4 { transition-delay: 0.32s; }

/* ── SKILL MARQUEE (infinite scrolling skill strip) ── */
.fx-marquee {
  width: 100%;
  overflow: hidden;
  padding: 28px 0;
  background:
    linear-gradient(135deg, rgba(0,120,255,0.05), rgba(0,212,255,0.04)),
    #ffffff;
  border-top: 1px solid rgba(0,120,255,0.10);
  border-bottom: 1px solid rgba(0,120,255,0.10);
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
}
.fx-marquee-track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: fxMarquee 40s linear infinite;
}
@keyframes fxMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.fx-marquee-item {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 800;
  color: #0a0a14;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.fx-marquee-item::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0, 180, 255, 0.7);
}
.fx-marquee-item.alt {
  color: transparent;
  -webkit-text-stroke: 1.5px #0a0a14;
}

/* ── 3D TILT CARD ───────────────────────────────── */
.fx-tilt {
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

/* ── PROJECT BENTO — major redesign for the work GIFs ── */
.colorlib-work .project {
  position: relative;
  min-height: 360px !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  margin-bottom: 28px !important;
  background-size: cover !important;
  background-position: center !important;
  cursor: pointer;
  box-shadow:
    0 12px 32px rgba(0, 30, 90, 0.10),
    0 4px 12px rgba(0, 120, 255, 0.06);
  transition: all 0.5s cubic-bezier(.2,.8,.2,1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  isolation: isolate;
}
/* Animated gradient border on hover */
.colorlib-work .project::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, #007bff, #00d4ff, #0066d9, #00aaff);
  background-size: 300% 300%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
  animation: fxBorderShift 4s linear infinite;
}
@keyframes fxBorderShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
.colorlib-work .project:hover::before { opacity: 1; }
.colorlib-work .project:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow:
    0 30px 70px rgba(0, 80, 200, 0.30),
    0 12px 28px rgba(0, 180, 255, 0.20);
  border-color: rgba(0, 180, 255, 0.5);
}
/* Bottom gradient veil */
.colorlib-work .project::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(10, 10, 20, 0.55) 70%, rgba(10, 10, 20, 0.92) 100%);
  z-index: 1;
  transition: background 0.4s;
}
.colorlib-work .project:hover::after {
  background:
    linear-gradient(180deg, rgba(0, 80, 200, 0.10) 0%, transparent 30%, rgba(10, 10, 20, 0.7) 70%, rgba(10, 10, 20, 0.95) 100%);
}
.colorlib-work .project .desc {
  position: absolute !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  padding: 28px 28px 22px !important;
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.colorlib-work .project:hover .desc { transform: translateY(0); }
.colorlib-work .project h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  margin: 0 0 4px !important;
  color: #fff !important;
  letter-spacing: -0.01em;
}
.colorlib-work .project h3 a {
  color: #fff !important;
  text-decoration: none !important;
}
/* "VIEW PROJECT →" button revealed on hover */
.colorlib-work .project .desc::after {
  content: 'VIEW →';
  position: absolute;
  top: -38px; right: 24px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 120, 255, 0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
}
.colorlib-work .project:hover .desc::after {
  opacity: 1;
  transform: translateY(0);
}

/* ── HOVER GLOW ON ALL GLASS CARDS ──────────────── */
.fx-glow-hover {
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.fx-glow-hover::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,180,255,0.25), rgba(0,120,255,0.15));
  opacity: 0; z-index: -1;
  filter: blur(20px);
  transition: opacity 0.4s;
}
.fx-glow-hover:hover::before { opacity: 1; }

/* ── DECORATIVE SECTION DIVIDER (more elegant than line) ─── */
.fx-divider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  gap: 14px;
}
.fx-divider .dash {
  height: 1px;
  flex: 1;
  max-width: 200px;
  background: linear-gradient(90deg, transparent, rgba(0,120,255,0.35), transparent);
}
.fx-divider .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.6);
}

/* ── INTRO SECTION: floating decorative shapes ──── */
.colorlib-intro {
  position: relative;
  overflow: hidden;
}
.colorlib-intro::after {
  content: '';
  position: absolute;
  top: 15%; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(closest-side, rgba(0, 180, 255, 0.10), transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: fxFloat 8s ease-in-out infinite;
}
.colorlib-intro .intro-inner { position: relative; z-index: 2; }
@keyframes fxFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.08); }
}

/* ── ABOUT SECTION: subtle floating accent ──────── */
.colorlib-about {
  position: relative;
  overflow: hidden;
}
.colorlib-about::after {
  content: '';
  position: absolute;
  bottom: 10%; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(0, 120, 255, 0.07), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: fxFloat 10s ease-in-out infinite reverse;
}
.colorlib-about .colorlib-narrow-content { position: relative; z-index: 2; }

/* ── HEADING ENHANCEMENTS — bracket accents ──── */
.colorlib-heading {
  position: relative;
  display: inline-block;
}
.colorlib-heading::after {
  content: '';
  display: block;
  width: 68px; height: 4px;
  margin-top: 14px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(0, 180, 255, 0.45);
}

/* ── BUTTON RIPPLE GLOW ──────────────────────────── */
.btn-primary-pill, .nav-cv-btn, .btn-send-message, .btn-hire, .btn-load-more {
  position: relative;
  overflow: hidden;
}
.btn-primary-pill::after, .nav-cv-btn::after,
.btn-send-message::after, .btn-hire::after,
.btn-load-more::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}
.btn-primary-pill:hover::after, .nav-cv-btn:hover::after,
.btn-send-message:hover::after, .btn-hire:hover::after,
.btn-load-more:hover::after {
  width: 400px; height: 400px;
}

/* ── COUNTER: scan-line tech accent (over the dark overlay) ── */
#colorlib-counter::after {
  background:
    linear-gradient(rgba(0,180,255,0.06) 1px, transparent 1px) 0 0/56px 56px,
    linear-gradient(90deg, rgba(0,180,255,0.06) 1px, transparent 1px) 0 0/56px 56px,
    repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(255,255,255,0.02) 3px, rgba(255,255,255,0.02) 4px) !important;
  animation: fxScanlines 8s linear infinite;
}
@keyframes fxScanlines { 0% { background-position: 0 0, 0 0, 0 0; } 100% { background-position: 56px 56px, 56px 56px, 0 100px; } }

/* ── MAGNETIC HOVER LIFT (applied via JS to .fx-magnet) ── */
.fx-magnet {
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

/* ── KINETIC TEXT (intro name letter-by-letter) ── */
.intro-name {
  position: relative;
  z-index: 2;
}

/* ── SKILL CHIPS in services section: animated glow underline ── */
.colorlib-services .services {
  position: relative;
  isolation: isolate;
}
.colorlib-services .services .icon2 {
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.colorlib-services .services:hover .icon2 {
  transform: translateY(-4px) scale(1.08) rotate(-3deg);
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .fx-num { font-size: clamp(80px, 14vw, 140px); }
  .fx-marquee { padding: 18px 0; }
  .fx-marquee-track { gap: 36px; animation-duration: 28s; }
  .fx-marquee-item { font-size: clamp(24px, 7vw, 40px); gap: 36px; }
  .colorlib-work .project { min-height: 280px !important; }
}
