/* premium.css - Advanced visual enhancements */

/* -------------------------------------------------- */
/* 1. Custom cursor */
/* -------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, background 0.2s ease;
  z-index: 9999;
}
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
}
/* -------------------------------------------------- */
/* 2. 3D tilt cards */
/* -------------------------------------------------- */
.tilt-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}
.tilt-card:hover {
  /* JS will inject transform */
}
/* Light glare overlay */
.tilt-glare {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.tilt-card:hover .tilt-glare {
  opacity: 0.4;
}
/* -------------------------------------------------- */
/* 3. Magnetic button */
/* -------------------------------------------------- */
.magnetic {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.magnetic::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  pointer-events: none;
  z-index: -1;
}
.magnetic:hover::before {
  width: 300px;
  height: 300px;
}
/* -------------------------------------------------- */
/* 4. Cyber grid background */
/* -------------------------------------------------- */
.cyber-grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
              linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -2;
  opacity: 0.4;
}
/* Animated scanning line */
.scan-line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: scan 6s infinite linear;
  pointer-events: none;
  z-index: -1;
}
@keyframes scan {
  0% { top: -100%; }
  100% { top: 110%; }
}
/* -------------------------------------------------- */
/* 5. Floating orbs (blurred) */
/* -------------------------------------------------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: orb-move 12s infinite alternate;
}
@keyframes orb-move {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(200px, -150px) scale(1.4); }
}
/* -------------------------------------------------- */
/* 6. Typing / text reveal */
/* -------------------------------------------------- */
.typing {
  border-right: .15em solid #fff;
  white-space: nowrap;
  overflow: hidden;
  animation: caret 0.7s steps(1) infinite;
}
@keyframes caret {
  50% { border-color: transparent; }
}

/* -------------------------------------------------- */
/* 7. Liquid Glass & Services Enhancement */
/* -------------------------------------------------- */
.liquid-glass-container {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 12px;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-inner-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: rgba(12, 13, 14, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-inner-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-inner-panel .tab-pane.active img {
  transform: scale(1.08);
}

.liquid-blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: liquid-float 20s infinite alternate ease-in-out;
  pointer-events: none;
}

.liquid-blob-1 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, #E36414 0%, rgba(227, 100, 20, 0) 70%);
  top: -20px;
  left: -20px;
}

.liquid-blob-2 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #ff8c42 0%, rgba(255, 140, 66, 0) 70%);
  bottom: -40px;
  right: -20px;
  animation-delay: -6s;
}

.liquid-blob-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #9d2f09 0%, rgba(157, 47, 9, 0) 70%);
  top: 35%;
  left: 15%;
  animation-delay: -12s;
}

@keyframes liquid-float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(40px, -60px) scale(1.2) rotate(120deg);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.85) rotate(240deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(360deg);
  }
}

/* Badge Liquid Glass Tags */
.badge-liquid-glass {
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  border-radius: 50px !important;
  padding: 6px 14px !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.badge-liquid-glass:hover {
  background: rgba(227, 100, 20, 0.15) !important;
  border-color: rgba(227, 100, 20, 0.4) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(227, 100, 20, 0.25) !important;
  transform: translateY(-2px) scale(1.03);
}

/* Services active list item custom layout */
.custom-services-list .nav-item {
  position: relative;
  border-radius: 20px;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-bottom: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid transparent !important;
  border-bottom: 1px solid transparent !important;
  cursor: pointer;
}

.custom-services-list .nav-item:hover {
  background: rgba(255, 255, 255, 0.015);
}

.custom-services-list .nav-item:has(.active) {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Hover style for button when container is hovered */
.custom-services-list .nav-item:hover .custom-service-btn {
  color: #E36414 !important;
  transform: translateX(12px);
}

/* Adjust active button spacing */
.custom-services-list .nav-item:has(.active) .custom-service-btn,
.custom-services-list .nav-item:has(.active):hover .custom-service-btn {
  transform: translateX(0) !important;
  color: #E36414 !important;
}

/* Card click overlay trigger */
.card-stretch-trigger {
  position: static !important;
}

.card-stretch-trigger::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
  cursor: pointer;
}

/* Ensure keyword tags badges are clickable and hoverable above the invisible overlay */
.keyword-tags {
  position: relative;
  z-index: 2;
}


