/* =============================================
   ELITE HEXAGONE LLC — ANIMATIONS & ICONS
   Enhanced animation layer + icon styles
============================================= */

/* ─── SCROLL PROGRESS BAR ───────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--yellow));
  z-index: 10001;
  transition: width 0.08s linear;
}

/* ─── CUSTOM CURSOR ──────────────────────────── */
.cursor-dot {
  width: 10px; height: 10px;
  background: var(--purple-light);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.15s ease, background 0.25s ease, opacity 0.25s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(124, 58, 237, 0.55);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease, transform 0.08s linear;
}
.cursor-dot.hovered   { transform: translate(-50%, -50%) scale(0.4); background: var(--pink); }
.cursor-ring.hovered  { width: 60px; height: 60px; border-color: rgba(255, 110, 180, 0.5); }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ─── PAGE LOADER ────────────────────────────── */
.page-loader {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 100000;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2rem;
  transition: opacity 0.6s ease 0.2s, visibility 0.6s ease 0.2s;
}
.page-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-hex-wrap { position: relative; width: 70px; height: 70px; }
.loader-hex-outer {
  position: absolute; inset: 0;
  animation: spin-loader 1.2s linear infinite;
}
.loader-hex-inner {
  position: absolute; inset: 10px;
  animation: spin-loader 0.8s linear infinite reverse;
}
@keyframes spin-loader { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loader-bar-wrap {
  width: 180px; height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 2px;
  animation: loader-fill 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loader-fill { from { width: 0; } to { width: 100%; } }
.loader-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── CANVAS HERO BG ─────────────────────────── */
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ─── ANIMATED GRID ──────────────────────────── */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ─── TYPING TEXT ────────────────────────────── */
.typing-wrap { display: inline-flex; align-items: center; gap: 0; }
.typing-target {
  background: linear-gradient(135deg, var(--purple-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 2px;
}
.typing-cursor {
  display: inline-block;
  width: 3px; height: 0.85em;
  background: var(--pink);
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
  animation: cursor-blink 0.75s step-end infinite;
  flex-shrink: 0;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── SHIMMER BUTTONS ────────────────────────── */
.btn-primary, .btn-pink {
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.btn-primary::after, .btn-pink::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.18) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: shimmer-btn 3.5s ease infinite;
}
@keyframes shimmer-btn {
  0%   { transform: translateX(-100%); }
  40%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ─── RIPPLE ─────────────────────────────────── */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  transform: scale(0);
  animation: ripple-expand 0.65s ease-out forwards;
}
@keyframes ripple-expand {
  to { transform: scale(4.5); opacity: 0; }
}

/* ─── MAGNETIC BUTTON ────────────────────────── */
.magnetic { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ─── GLOW BORDER ON HOVER ───────────────────── */
.glow-on-hover {
  position: relative;
  z-index: 0;
}
.glow-on-hover::before {
  content: '';
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--yellow), var(--purple));
  background-size: 300% 300%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: glow-rotate 3s linear infinite;
}
.glow-on-hover:hover::before { opacity: 1; }
@keyframes glow-rotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── 3D CARD TILT ───────────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}

/* ─── FLOAT ANIMATION ────────────────────────── */
@keyframes float-bob {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.float-anim-1 { animation: float-bob 3.8s ease-in-out infinite; }
.float-anim-2 { animation: float-bob 4.8s ease-in-out infinite reverse; }
.float-anim-3 { animation: float-bob 5.5s ease-in-out infinite 1s; }

/* ─── PULSE GLOW ─────────────────────────────── */
@keyframes pulse-glow-purple {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.25), 0 0 40px rgba(124,58,237,0.1); }
  50%       { box-shadow: 0 0 40px rgba(124,58,237,0.55), 0 0 80px rgba(124,58,237,0.2); }
}
.pulse-glow { animation: pulse-glow-purple 2.5s ease-in-out infinite; }

/* ─── NAV HOVER UNDERLINE ────────────────────── */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ─── HEXAGONAL ICON BOX ─────────────────────── */
.hex-icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-bottom: 1.5rem;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  transition: transform 0.3s ease;
  color: var(--white);
}
.hex-icon-purple { background: linear-gradient(135deg, var(--purple-dark), var(--purple-light)); }
.hex-icon-pink   { background: linear-gradient(135deg, var(--pink-dark), var(--pink-light)); }
.hex-icon-yellow { background: linear-gradient(135deg, #6b5800, var(--yellow)); color: var(--black); }
.hex-icon-gray   { background: linear-gradient(135deg, #2a2a2a, #3a3a3a); }

.service-card:hover .hex-icon { transform: scale(1.12) rotate(5deg); }

/* ─── CONTACT ICON ───────────────────────────── */
.contact-detail-icon i {
  font-size: 1.05rem;
  color: var(--purple-light);
}

/* ─── STEP ICON ──────────────────────────────── */
.step-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.card:hover .step-icon { transform: scale(1.1) rotate(-5deg); }
.step-icon-1 { background: var(--purple-subtle); color: var(--purple-light); }
.step-icon-2 { background: var(--pink-subtle);   color: var(--pink-light); }
.step-icon-3 { background: var(--yellow-subtle); color: var(--yellow); }
.step-icon-4 { background: var(--purple-subtle); color: var(--purple-light); }

/* ─── SERVICE CHECK ITEM HOVER ───────────────── */
.service-item i {
  font-size: 0.65rem;
  color: var(--white);
}

/* ─── TECH PILL ICONS ────────────────────────── */
.tech-pill i, .tech-pill svg {
  font-size: 1rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.tech-pill:hover i { color: var(--white); }

/* ─── FLOAT CARD ICON ────────────────────────── */
.float-card i {
  font-size: 1.1rem;
  color: var(--purple-light);
}

/* ─── VALUE CARD ICON ────────────────────────── */
.value-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.value-card:hover .value-icon-wrap { transform: scale(1.15) rotate(-8deg); }
.icon-wrap-purple { background: var(--purple-subtle); color: var(--purple-light); }
.icon-wrap-pink   { background: var(--pink-subtle);   color: var(--pink-light); }
.icon-wrap-yellow { background: var(--yellow-subtle); color: var(--yellow); }
.icon-wrap-gray   { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

/* ─── PORTFOLIO THUMB ICON ───────────────────── */
.portfolio-thumb i {
  font-size: 3rem;
  opacity: 0.7;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s ease;
}
.portfolio-full-card:hover .portfolio-thumb i { opacity: 1; transform: scale(1.15); }

/* ─── SECTION LABEL DOT ──────────────────────── */
.label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ─── STAGGER CHILDREN ───────────────────────── */
.stagger-children > * { transition-delay: calc(var(--i, 0) * 0.08s); }

/* ─── PARALLAX ───────────────────────────────── */
.parallax-slow  { will-change: transform; }
.parallax-fast  { will-change: transform; }

/* ─── SECTION BORDER GLOW ────────────────────── */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
.cta-section {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* ─── HOVER LIFT ─────────────────────────────── */
.hover-lift { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-6px); }

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-soft); }
::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple-light); }
