/* ═══════════════════════════════════════════════════
   Brain O' Clock — Premium Shared Stylesheet
   style.css  ·  Loaded by all pages
   ═══════════════════════════════════════════════════ */

/* ── Custom Cursor ───────────────────────────────── */
.cursor-dot,
.cursor-ring {
  display: none;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  will-change: left, top;
  top: 0;
  left: 0;
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: none !important; }
  a, button, [class*="btn"], label, select, input, textarea,
  .service-card, .card-glass, .card-glass-hover, .project-card,
  .pricing-card, .filter-btn, .tab-btn, .accordion-btn {
    cursor: none !important;
  }

  .cursor-dot {
    display: block;
    width: 8px;
    height: 8px;
    background: #10B981;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, transform 0.15s ease;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(16,185,129,0.6);
  }

  .cursor-ring {
    display: block;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(16,185,129,0.45);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.16,1,0.3,1),
                height 0.4s cubic-bezier(0.16,1,0.3,1),
                border-color 0.3s ease,
                opacity 0.3s ease;
    will-change: left, top;
  }

  /* Cursor expanded on interactive elements */
  body.cursor-hover .cursor-dot {
    width: 14px;
    height: 14px;
    background: #D4A853;
    box-shadow: 0 0 14px rgba(212,168,83,0.6);
  }
  body.cursor-hover .cursor-ring {
    width: 56px;
    height: 56px;
    border-color: rgba(212,168,83,0.4);
  }
}

/* ── Scroll Progress Bar ─────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #10B981, #D4A853, #10B981);
  background-size: 200% 100%;
  z-index: 10000;
  border-radius: 0 2px 2px 0;
  transition: width 0.06s linear;
  box-shadow: 0 0 10px rgba(16,185,129,0.5), 0 0 20px rgba(16,185,129,0.2);
  animation: progressShimmer 2s linear infinite;
}

@keyframes progressShimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ── Particle Canvas ─────────────────────────────── */
.hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ── Shine Button Effect ─────────────────────────── */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}
.btn-shine:hover::before { left: 130%; }

/* ── Animated Gradient Text ─────────────────────── */
.gradient-text-animated {
  background: linear-gradient(-45deg, #10B981, #4ADE80, #D4A853, #FBBF24, #10B981);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 6s ease infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ── Card Premium Hover ──────────────────────────── */
.card-glass-hover {
  background: rgba(10,22,40,0.7);
  border: 1px solid rgba(16,185,129,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-glass-hover:hover {
  background: rgba(10,22,40,0.85);
  border-color: rgba(16,185,129,0.35);
  transform: translateY(-8px);
  box-shadow: 0 24px 70px rgba(16,185,129,0.12),
              0 8px 20px rgba(0,0,0,0.3),
              0 0 0 1px rgba(16,185,129,0.1) inset;
}

/* Service card 3D hover */
.service-card-premium {
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center bottom;
}
.service-card-premium:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 32px 80px rgba(16,185,129,0.15),
              0 0 40px rgba(16,185,129,0.08);
}

/* ── Icon Animations ─────────────────────────────── */
@keyframes iconPop {
  0%   { transform: scale(1) rotate(0deg); }
  40%  { transform: scale(1.18) rotate(-5deg); }
  70%  { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.icon-box-premium {
  transition: all 0.3s ease;
}
.icon-box-premium:hover {
  animation: iconPop 0.5s ease;
}

/* Icon glow pulse */
@keyframes iconGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(16,185,129,0.2); }
  50%       { box-shadow: 0 0 28px rgba(16,185,129,0.45), 0 0 50px rgba(16,185,129,0.15); }
}
.icon-glow-anim { animation: iconGlow 3s ease-in-out infinite; }

/* ── Section Reveal Enhancements ─────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1) translateY(0); }

/* ── Glow Pulse Elements ─────────────────────────── */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(16,185,129,0.15); }
  50%       { box-shadow: 0 0 45px rgba(16,185,129,0.35), 0 0 80px rgba(16,185,129,0.1); }
}
.glow-pulse-anim { animation: glowPulse 3.5s ease-in-out infinite; }

@keyframes glowPulseGold {
  0%, 100% { box-shadow: 0 0 20px rgba(212,168,83,0.12); }
  50%       { box-shadow: 0 0 45px rgba(212,168,83,0.3), 0 0 70px rgba(212,168,83,0.1); }
}
.glow-pulse-gold { animation: glowPulseGold 3.5s ease-in-out infinite; }

/* ── Animated Border ─────────────────────────────── */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(16,185,129,0.15); }
  50%       { border-color: rgba(16,185,129,0.4); }
}
.border-glow-anim { animation: borderGlow 3s ease-in-out infinite; }

/* ── Floating Elements ───────────────────────────── */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(0.5deg); }
  66%       { transform: translateY(-6px) rotate(-0.5deg); }
}
.float-slow { animation: floatSlow 8s ease-in-out infinite; }
.float-slow-delay { animation: floatSlow 8s ease-in-out infinite 3s; }

/* ── Typewriter Cursor ───────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.cursor-blink { animation: blink 1.1s step-end infinite; }

/* ── Stats Row Highlight ─────────────────────────── */
.stat-card-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.stat-card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.04), rgba(212,168,83,0.04));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stat-card-premium:hover::before { opacity: 1; }
.stat-card-premium:hover { transform: translateY(-4px); border-color: rgba(16,185,129,0.3) !important; }

/* ── Testimonial Quote ───────────────────────────── */
.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 20px;
  font-size: 5rem;
  line-height: 1;
  font-family: Georgia, serif;
  background: linear-gradient(135deg, #10B981, #D4A853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  pointer-events: none;
}

/* ── Process Step Connector ──────────────────────── */
.process-step { position: relative; }
.process-arrow {
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 50%;
  z-index: 1;
}

/* ── Hero Badge Pulse ────────────────────────────── */
.availability-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  position: relative;
}
.availability-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(16,185,129,0.3);
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── CTA Banner ──────────────────────────────────── */
.cta-banner-glow {
  position: relative;
}
.cta-banner-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, #10B981, #D4A853, #10B981);
  background-size: 200% 200%;
  animation: borderRotate 4s linear infinite;
  z-index: -1;
  opacity: 0.7;
}
@keyframes borderRotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Nav Logo Animation ──────────────────────────── */
.logo-mark {
  position: relative;
  overflow: visible;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: linear-gradient(135deg,#10B981,#D4A853);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(6px);
}
.logo-mark:hover::after { opacity: 0.5; }

/* ── Page Load Animation ─────────────────────────── */
@keyframes pageReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-reveal-body { animation: pageReveal 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }

/* ── Ticker Upgrade ──────────────────────────────── */
.ticker-item {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: #64748b;
  transition: color 0.3s ease;
}
.ticker-item:hover { color: #94a3b8; }

/* ── Form Input Focus Upgrade ────────────────────── */
.form-input-premium {
  background: rgba(10,22,40,0.8);
  border: 1px solid rgba(16,185,129,0.2);
  color: #fff;
  border-radius: 0.875rem;
  padding: 0.9rem 1.125rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.form-input-premium:focus {
  border-color: rgba(16,185,129,0.55);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1), 0 0 20px rgba(16,185,129,0.06);
  background: rgba(10,22,40,0.95);
}
.form-input-premium::placeholder { color: #475569; }

/* ── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #050B15; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #10B981, #D4A853);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #34D399, #E8C97A); }

/* ── Selection ───────────────────────────────────── */
::selection {
  background: rgba(16,185,129,0.25);
  color: #fff;
}

/* ── Focus visible fix ───────────────────────────── */
:focus-visible {
  outline: 2px solid rgba(16,185,129,0.5);
  outline-offset: 2px;
}

/* ── Smooth hover transitions on all links ───────── */
a { transition: color 0.25s ease, opacity 0.25s ease; }

/* ── Portfolio card overlay ──────────────────────── */
.project-overlay-premium {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,11,21,0.97) 0%, rgba(5,11,21,0.6) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
}
.project-card:hover .project-overlay-premium { opacity: 1; }

/* ── Tag badge ───────────────────────────────────── */
.tag-premium {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Mobile menu fade ────────────────────────────── */
.mobile-menu-premium {
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
}

/* ── Gradient separator ──────────────────────────── */
.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.3), rgba(212,168,83,0.2), transparent);
}

/* ── Hero visual rings ───────────────────────────── */
@keyframes ringExpand {
  0%   { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 0; }
}
.ring-pulse { animation: ringExpand 3s ease-out infinite; }
.ring-pulse-delay { animation: ringExpand 3s ease-out infinite 1.5s; }
