/* ========== PREMIUM ENHANCEMENTS ========== */

/* PRELOADER */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 2.5rem; letter-spacing: 5px;
  text-transform: uppercase; color: var(--text-primary);
  display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.preloader-logo em { color: var(--accent); font-style: normal; }
.preloader-logo small {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 8px; color: var(--text-muted);
  margin-top: 6px;
}
.preloader-bar {
  width: 200px; height: 2px; background: var(--border-light);
  border-radius: 2px; overflow: hidden;
}
.preloader-bar-inner {
  width: 0%; height: 100%; background: var(--accent);
  animation: preloaderFill 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes preloaderFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* CUSTOM CURSOR */
.cursor-dot {
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; position: fixed; z-index: 9998;
  pointer-events: none; transition: transform 0.1s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(200,149,108,0.5);
  border-radius: 50%; position: fixed; z-index: 9997;
  pointer-events: none;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
}
.cursor-ring.hover {
  width: 60px; height: 60px;
  border-color: var(--accent);
  background: rgba(200,149,108,0.08);
}

/* GRAIN TEXTURE */
.grain {
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* MARQUEE */
.marquee {
  overflow: hidden; white-space: nowrap;
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-secondary);
}
.marquee-inner {
  display: inline-flex; gap: 0;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 3rem;
  padding: 0 3rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500; color: var(--text-muted);
  opacity: 0.4;
}
.marquee-item .marquee-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* PARALLAX IMAGE */
.about-image img {
  transition: transform 0.1s linear;
}

/* ENHANCED HERO */
.hero-fallback-img {
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* MAGNETIC BUTTON EFFECT */
.btn-primary, .btn-secondary, .nav-cta {
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 1; }

/* GLOW LINE DIVIDER */
.glow-line {
  width: 100%; height: 1px; border: none; margin: 0;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.3;
}

/* COUNTER ANIMATION */
.stat-number[data-count] {
  display: inline-block;
}

/* ENHANCED SERVICE CARDS - 3D tilt */
.service-card {
  transform-style: preserve-3d; perspective: 1000px;
}

/* FLOATING BADGE GLOW */
.hero-badge {
  background: rgba(200,149,108,0.05);
  box-shadow: 0 0 30px rgba(200,149,108,0.08);
}

/* ENHANCED PROCESS STEPS - connecting line */
.process-steps { position: relative; }
.process-steps::before {
  content: ''; position: absolute;
  top: 50%; left: 10%; right: 10%;
  height: 1px; background: var(--border-light);
  z-index: 0;
}
.process-step { z-index: 1; background: var(--bg-secondary); }
.process-step:hover .step-icon {
  background: rgba(200,149,108,0.2);
  transform: scale(1.1);
}
.step-icon { transition: var(--transition); }

/* ENHANCED TESTIMONIAL */
.testimonial-section {
  background: radial-gradient(ellipse at center, rgba(200,149,108,0.04) 0%, transparent 70%);
}
.testimonial-card {
  position: relative;
}
.testimonial-card::before {
  content: ''; position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,149,108,0.06) 0%, transparent 70%);
  top: -50px; left: 50%; transform: translateX(-50%);
}

/* ENHANCED CONTACT FORM */
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  box-shadow: 0 0 0 3px rgba(200,149,108,0.1);
}

/* ENHANCED FOOTER */
.footer-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(200,149,108,0.15);
}

/* SMOOTH IMAGE LOAD */
.gallery-item img, .gallery-video-thumb, .service-card img, .about-image img {
  opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-item img.loaded, .gallery-video-thumb.loaded, .service-card img.loaded, .about-image img.loaded {
  opacity: 1;
}

/* SCROLL PROGRESS BAR */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; background: var(--accent);
  z-index: 1001; width: 0%;
  transition: width 0.05s linear;
}

/* BACK TO TOP */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--accent); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 100;
  opacity: 0; visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.back-to-top.visible {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent); color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(200,149,108,0.3);
}

/* RESPONSIVE OVERRIDES */
@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
  .process-steps::before { display: none; }
  .marquee-item { font-size: 1.4rem; padding: 0 1.5rem; }
}
