/* ==========================================================================
   Vincent Polyplast Pvt. Ltd. (VPPL) - Master Stylesheet
   Tagline: "You Trust, We Deliver"®
   Built for high performance, zero-build deployment, and agency-grade polish.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@500;600;700;800&family=Poppins:wght@500;600;700;800&family=PT+Serif:ital,wght@0,400;0,700;1,400&family=Merriweather:wght@400;700;900&display=swap');

/* Header Brand Custom Font */
@font-face {
  font-family: 'Handel Gothic';
  src: url('../fonts/Handel_Gothic_Regular.woff2') format('woff2'),
       url('../fonts/Handel_Gothic_Regular.woff') format('woff'),
       url('../fonts/Handel_Gothic_Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --vppl-blue: #0EA5E9;
  --vppl-blue-dark: #0284C7;
  --vppl-blue-light: #E0F2FE;
  --vppl-navy: #0B1C2C;
  --vppl-navy-surface: #11283F;
  --vppl-navy-card: #153350;
  --vppl-accent: #FF7A1A;
  --vppl-accent-hover: #EA580C;
  --vppl-neutral-bg: #F8FAFC;
  --vppl-neutral-card: #FFFFFF;
  --vppl-text-main: #0F172A;
  --vppl-text-muted: #64748B;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--vppl-text-main);
  background-color: var(--vppl-neutral-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', 'Poppins', sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0B1C2C;
}
::-webkit-scrollbar-thumb {
  background: #0284C7;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0EA5E9;
}

/* Universal Button Polish & Micro-interactions */
button, .btn, a.btn-primary-glow, a.hero-cta-btn, button.product-tab-btn {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.25s ease, 
              color 0.25s ease !important;
  will-change: transform, box-shadow;
}

button:hover:not(:disabled), .btn:hover, a.btn-primary-glow:hover, a.hero-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

button:active:not(:disabled), .btn:active {
  transform: translateY(0) scale(0.98);
}

/* Glassmorphism Classes */
.glass-header {
  background: rgba(11, 28, 44, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-header.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: rgba(11, 28, 44, 0.96);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(14, 165, 233, 0.25);
}

.glass-card-dark {
  background: rgba(17, 40, 63, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.glass-card-dark:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.25);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

/* Card 3D Hover & Mouse Tracking */
.tilt-card {
  transition: transform 0.35s cubic-bezier(0.2, 0, 0.1, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card:hover {
  box-shadow: 0 25px 45px -12px rgba(14, 165, 233, 0.22);
}

/* Header Brand Typography (Handel Gothic - Header Only) */
.font-brand-header {
  font-family: 'Handel Gothic', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Brand Serif Typography (Footer & Preloader) */
.font-brand-serif {
  font-family: 'PT Serif', 'Times New Roman', Times, serif;
}

/* Subtle Watermark VPPL Background */
.vppl-watermark-bg {
  position: relative;
  overflow: hidden;
}
.vppl-watermark-bg::before {
  content: "";
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: 450px;
  height: 450px;
  background-image: url('../images/logo/vincent-blue.svg');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   HERO SLIDER CAROUSEL & KEN BURNS STYLES
   ========================================================================== */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  min-height: 92vh;
  overflow: hidden;
  background: #0B1C2C;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.85s;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 3;
}

.hero-slide.slide-leaving {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 2;
}

/* Ken Burns Effect on Background Images */
.hero-slide-bg-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-slide-bg {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  transform: scale(1.0) translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes kenBurns1 {
  0% {
    transform: scale(1.0) translate3d(0%, 0%, 0);
  }
  100% {
    transform: scale(1.09) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes kenBurns2 {
  0% {
    transform: scale(1.0) translate3d(0%, 0%, 0);
  }
  100% {
    transform: scale(1.09) translate3d(1.5%, -1%, 0);
  }
}

@keyframes kenBurns3 {
  0% {
    transform: scale(1.0) translate3d(0%, 0%, 0);
  }
  100% {
    transform: scale(1.09) translate3d(-1%, 1.2%, 0);
  }
}

/* Play Ken Burns while active and during the smooth fade-out */
.hero-slide[data-slide="0"].active .hero-slide-bg,
.hero-slide[data-slide="0"].slide-leaving .hero-slide-bg {
  animation: kenBurns1 7.5s linear forwards;
}

.hero-slide[data-slide="1"].active .hero-slide-bg,
.hero-slide[data-slide="1"].slide-leaving .hero-slide-bg {
  animation: kenBurns2 7.5s linear forwards;
}

.hero-slide[data-slide="2"].active .hero-slide-bg,
.hero-slide[data-slide="2"].slide-leaving .hero-slide-bg {
  animation: kenBurns3 7.5s linear forwards;
}

/* Slide Content Entrance Animation */
.hero-slide .slide-badge,
.hero-slide .slide-title,
.hero-slide .slide-sub,
.hero-slide .slide-ctas {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .slide-badge {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.hero-slide.active .slide-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.hero-slide.active .slide-sub {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.hero-slide.active .slide-ctas {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.65s;
}

/* Slider Navigation Dots & Controls */
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dot:hover {
  background: rgba(14, 165, 233, 0.8);
  transform: scale(1.2);
}

.slider-dot.active {
  width: 36px;
  background: #0EA5E9;
  border-color: #38BDF8;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.6);
}

.slider-arrow-btn {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: rgba(11, 28, 44, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.slider-arrow-btn:hover {
  background: #0EA5E9;
  border-color: #38BDF8;
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.6);
}

/* ==========================================================================
   MARQUEE FOR CLIENTELE
   ========================================================================== */
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  position: relative;
}
.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #0B1C2C 20%, transparent);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #0B1C2C 20%, transparent);
}
.marquee-content {
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
  gap: 1.75rem;
  animation: marquee 36s linear infinite;
  will-change: transform;
}
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Client Logo Card in Marquee */
.client-logo-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease;
  will-change: transform;
}
.client-logo-card:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 25px -4px rgba(14, 165, 233, 0.35);
  border-color: #38BDF8 !important;
}

/* Floating WhatsApp Pulse Button */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-pulse {
  animation: pulse-ring 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Timeline Process Line Drawing Animation */
.process-line {
  position: relative;
}
.process-line::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: 10%;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #0EA5E9 0%, #FF7A1A 100%);
  border-radius: 9999px;
  z-index: 0;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-line.line-drawn::after {
  width: 80%;
}

@media (max-width: 768px) {
  .process-line::after {
    display: none !important;
  }
}

/* Preloader animation */
#preloader {
  position: fixed;
  inset: 0;
  background: #0B1C2C;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Lightbox Modal */
.modal-overlay {
  background: rgba(11, 28, 44, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Button Glow Effect */
.btn-primary-glow {
  position: relative;
  overflow: hidden;
}
.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(45deg) translateY(-100%);
  transition: transform 0.6s ease;
}
.btn-primary-glow:hover::after {
  transform: rotate(45deg) translateY(100%);
}

/* Table styling for spec sheets */
.spec-table th {
  background: #0F2840;
  color: #38BDF8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
}
.spec-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}
.spec-table tr:hover td {
  background-color: #F0F9FF;
}

/* Scroll reveal fallback utility */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-slide-bg {
    animation: none !important;
    transform: scale(1) translate3d(0, 0, 0) !important;
  }
}
