*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #d4af37;
  --gold-light: #f5e6a3;
  --navy: #1e3a5f;
  --navy-deep: #0a1220;
  --navy-mid: #0f1a2a;
  --text: #f1f5f9;
  --gray: #94a3b8;
  --dark-overlay: rgba(10, 18, 32, 0.88);
}

html {
  scroll-behavior: auto;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--navy-deep);
  color: var(--text);
  overflow-x: hidden;
  cursor: default;
}

::selection {
  background: rgba(212, 175, 55, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--navy-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* ===== LOADING SCREEN ===== */
.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.loader-screen.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-right-color: rgba(212, 175, 55, 0.3);
  animation: loaderSpin 1s linear infinite;
}

.loader-text {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 1px;
  margin-top: 16px;
  overflow: hidden;
}

.loader-bar-inner {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 1px;
  transition: width 0.3s ease;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  transition:
    width 0.3s,
    height 0.3s,
    border-color 0.3s,
    background 0.3s;
}

.cursor-ring.hovering {
  width: 56px;
  height: 56px;
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.cursor-ring.clicking {
  width: 28px;
  height: 28px;
  border-color: var(--gold-light);
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* ===== THREE.JS CANVAS ===== */
#three-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* ===== AMBIENT GRADIENT ===== */
.ambient-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 600px 600px at 15% 30%,
      rgba(212, 175, 55, 0.06) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 800px 600px at 85% 70%,
      rgba(30, 58, 95, 0.3) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 400px 400px at 50% 50%,
      rgba(212, 175, 55, 0.03) 0%,
      transparent 70%
    );
  animation: ambientMove 15s ease-in-out infinite alternate;
}

@keyframes ambientMove {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-30px, -20px) scale(1.05);
  }
}

/* ===== FLOATING PARTICLES ===== */
.particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.4) 0%,
    transparent 70%
  );
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(110vh) rotate(0deg);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== MARQUEE ===== */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-track {
  animation: marqueeScroll 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* ===== CARD 3D TILT ===== */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.15s ease-out;
}

.tilt-card-inner {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(212, 175, 55, 0.12) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tilt-card:hover .tilt-glare {
  opacity: 1;
}

/* ===== ACCORDION ===== */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    padding 0.4s ease;
  opacity: 0;
}

.accordion-body.open {
  opacity: 1;
}

.accordion-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-icon.open {
  transform: rotate(180deg);
}

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonial-track {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-dot {
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: var(--gold);
  width: 24px;
}

/* ===== NAV ACTIVE UNDERLINE ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition:
    left 0.3s ease,
    right 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  left: 0;
  right: 0;
}

/* ===== HERO PULSE ===== */
@keyframes heroPulseGlow {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.08);
  }

  50% {
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.18);
  }
}

.hero-pulse {
  animation: heroPulseGlow 4s ease-in-out infinite;
}

/* ===== GLOW BUTTON ===== */
.glow-btn {
  position: relative;
  overflow: hidden;
}

.glow-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--gold), var(--navy), var(--gold));
  background-size: 200% 200%;
  border-radius: inherit;
  z-index: -1;
  animation: glowRotate 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-btn:hover::before {
  opacity: 1;
}

@keyframes glowRotate {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ===== TOAST ===== */
.toast {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== REVEAL CLASSES ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* ===== SECTION DIVIDER LINE ===== */
.section-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 0 auto 24px;
}

/* ===== PORTFOLIO CARD OVERLAY ===== */
.portfolio-card {
  position: relative;
  overflow: hidden;
}

.portfolio-card .portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 18, 32, 0.95) 0%,
    rgba(10, 18, 32, 0.3) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card .portfolio-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.08);
}

/* ===== PRICING POPULAR BADGE ===== */
.popular-badge {
  background: linear-gradient(135deg, var(--gold), #c49b2a);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

/* ===== STAT COUNTER SHINE ===== */
.stat-number {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== CHAT TYPING DOTS ===== */
.typing-indicator {
  display: none;
}

.typing-indicator.active {
  display: flex;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 2px;
  animation: typingBounce 0.6s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.1s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes typingBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}
/* ===== PROCESS SECTION - ADVANCED ===== */
/* Animated progress line */
@keyframes progressLine {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.animate-progress-line {
  animation: progressLine 2s ease-out forwards;
}

/* Step card hover effects */
#process .group {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#process .group .relative > div {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pulse animation for active step */
@keyframes stepPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

/* Hover detail card fade up */
#process .group .absolute.-bottom-2 {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stats cards */
#process .group .relative.z-10 {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gradient text animation */
#process .bg-gradient-to-r.from-\\[\\#D4AF37\\] {
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  #process .lg\\:block.absolute {
    display: none !important;
  }
}

@media (max-width: 768px) {
  #process .grid.md\\:grid-cols-2 {
    gap: 1.5rem;
  }

  #process .w-24.h-24 {
    width: 72px;
    height: 72px;
  }

  #process .text-3xl {
    font-size: 1.5rem;
  }
}
