/* SVR Chemicals - Ultra-Premium Design System (Linear/Stripe/Notion Inspired) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors - White + Blue + Orange Premium Theme */
  --primary: #2563EB;       /* Primary Blue */
  --primary-hover: #1D4ED8;
  --secondary: #F97316;     /* Accent Orange (CTA) */
  --secondary-hover: #EA580C;
  --accent: #60A5FA;        /* Light Blue */
  
  --text-primary: #0F172A;    /* Dark Slate */
  --text-secondary: #475569;  /* Slate 600 */
  --bg-body: #EEF2F7;         /* Cool Grey Background */
  --bg-card: #ffffff;    
  --border: #CBD5E1;          /* Slate 300 */

  /* Gradient Palette */
  --grad-body: linear-gradient(135deg, #EEF2F7 0%, #E8EEFE 40%, #F1F5F9 100%);
  --grad-section-alt: linear-gradient(160deg, #F0F4FF 0%, #E8F0FE 50%, #EEF2F7 100%);
  --grad-hero: linear-gradient(135deg, #F0F6FF 0%, #EEF2F7 50%, #FFF7F0 100%);
  --grad-card: linear-gradient(145deg, #ffffff 0%, #F8FAFC 100%);
  --grad-stats: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%);
  --grad-grey: linear-gradient(160deg, #F1F5F9 0%, #E2E8F0 100%);
  
  /* Spacing Scale (8px Strict) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  
  /* Radius */
  --radius-btn: 8px;       
  --radius-card: 12px;     /* Rounded XL approx */
  
  /* Shadows - Multi-layered Premium Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-premium: 
    0 5px 15px rgba(0,0,0,0.03),
    0 15px 35px rgba(0,0,0,0.03),
    0 50px 100px rgba(0,0,0,0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--grad-body);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Container System */
.container-custom {
  max-width: 80rem; /* 1280px - max-w-7xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .container-custom { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-custom { padding-left: 2rem; padding-right: 2rem; } }


/* Typography */
h1 { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; color: var(--text-primary); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; line-height: 1.2; color: var(--text-primary); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.4; color: var(--text-primary); }
p { font-size: 1rem; color: var(--text-secondary); line-height: 1.625; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Spacing Systems */
.section-padding { padding: var(--s-12) 0; }
@media (max-width: 768px) { .section-padding { padding: var(--s-8) 0; } }

/* Component Base */
.card-premium {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-premium {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-cta {
  background-color: var(--secondary);
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.btn-cta:hover {
  background-color: var(--secondary-hover);
}

.btn-outline {
  border: 1px solid var(--border);
  background: white;
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: var(--bg-body);
  border-color: #D1D5DB;
}

/* Nav Link */
.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

/* Glass Header Shadow on Scroll */
header.active {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}


.card-premium {
  background: linear-gradient(145deg, #ffffff 0%, #F8FAFC 60%, #F1F5F9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--s-6);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06), 0 1px 3px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

/* Subtle shine effect on top of cards */
.card-premium::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: var(--border-active);
}

.card-premium:hover::after {
  opacity: 1;
}

.btn-premium {
  padding: 12px 32px; /* Balanced padding */
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.btn-primary { 
  background-color: var(--primary); 
  color: white; 
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  background: var(--primary-dark);
}

.btn-outline { 
  border: 1px solid var(--border-active); 
  color: var(--primary); 
  background: transparent; 
}

.btn-outline:hover { 
  background: var(--bg-subtle); 
  transform: translateY(-1px);
}

/* Specific Blue Action Button */
.btn-action {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 97, 255, 0.15);
}

.btn-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
  background: var(--secondary-dark);
}

/* Navigation Refinement */
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 4px 0;
  display: inline-block;
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-link-active {
  color: var(--primary);
  font-weight: 600;
}

/* Hero Visuals */
.hero-gradient {
  background: var(--grad-hero);
}

.dot-pattern {
  background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Section Background Variants */
.section-grey {
  background: var(--grad-grey);
}

.section-blue-grey {
  background: var(--grad-section-alt);
}

.section-gradient-dark {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #1E3A8A 100%);
}

/* 3D Visual Effects */
.tilt-card { transform-style: preserve-3d; perspective: 1200px; }
.tilt-inner { transform: translateZ(30px); }

/* 3D Industrial Gallery Visuals */
.gallery-perspective {
  perspective: 2000px;
  transform-style: preserve-3d;
  height: 700px;
  width: 100%;
}

.industrial-gallery {
  transform-style: preserve-3d;
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
  background: white;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.main-card {
  width: 460px;
  height: 320px;
  z-index: 20;
  transform: translate(-50%, -50%) translateZ(0);
  box-shadow: 0 50px 100px rgba(15, 23, 42, 0.2);
  border: 4px solid #FFFFFF;
}

.side-card-top {
  width: 280px;
  height: 340px;
  z-index: 10;
  transform: translate(-50%, -50%) translateX(-220px) translateY(-100px) translateZ(-100px) rotate(-5deg);
}

.side-card-bottom {
  width: 240px;
  height: 180px;
  z-index: 30;
  transform: translate(-50%, -50%) translateX(220px) translateY(120px) translateZ(100px) rotate(5deg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}

.gallery-perspective:hover .main-card {
  transform: translate(-50%, -50%) translateZ(50px) scale(1.02);
}

.gallery-perspective:hover .side-card-top {
  transform: translate(-50%, -50%) translateX(-260px) translateY(-120px) translateZ(-50px) rotate(-2deg);
}

.gallery-perspective:hover .side-card-bottom {
  transform: translate(-50%, -50%) translateX(260px) translateY(140px) translateZ(150px) rotate(2deg);
}

.gallery-perspective:hover .industrial-gallery {
  transform: rotateY(-5deg) rotateX(2deg);
}

/* Product Catalog Standardized Overlays */
.product-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  background: #F8FAFC;
  transition: all 0.5s ease;
}

.product-overlay-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  padding: 2.5rem 1.5rem 1.5rem;
  color: white;
  text-align: center;
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-item:hover .product-overlay-title {
  padding-bottom: 2.5rem;
  background: linear-gradient(to top, rgba(37, 99, 235, 0.95), transparent);
}

.product-item:hover .product-image-container img {
  transform: scale(1.1) rotate(2deg);
}

/* Floating animation refined */
@keyframes float3d {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px) rotate(0deg); }
  50% { transform: translate(-50%, -50%) translateY(-30px) rotate(2deg); }
}

.warehouse-card {
  animation: float3d 12s ease-in-out infinite;
}

/* Scroll Progress */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; height: 2px;
  background: var(--secondary);
  z-index: 2000;
  transition: width 0.1s ease;
}

/* Animations Hub */
[data-aos="premium-fade"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos="premium-fade"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp Optimization */
.wa-floating {
  position: fixed;
  bottom: var(--s-6);
  right: var(--s-6);
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: white;
  border-radius: 20px; /* Squircle for modern feel */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.2);
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: scale(0);
}

.wa-floating:hover {
  transform: scale(1.1) translateY(-4px) !important;
}

/* Minimalist Divider */
.divider-minimal {
  height: 1px;
  background: var(--border);
  width: 100%;
}

/* Dashboard & Information Architecture */
.kpi-card {
  background: linear-gradient(145deg, #ffffff 0%, #F8FAFC 100%);
  padding: var(--s-4);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06), 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12), 0 4px 8px rgba(0,0,0,0.08);
  border-color: var(--primary);
  background: linear-gradient(145deg, #EEF4FF 0%, #F8FAFC 100%);
}

/* Table System */
.table-premium {
  width: 100%;
  background: white;
  border-collapse: collapse;
}

.table-premium th {
  background-color: #F9FAFB;
  color: #4B5563;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.table-premium td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: all 0.15s;
}

.table-premium tr:hover td {
  background-color: #F9FAFB;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-pending { background-color: #FFF7ED; color: #F97316; }   /* Orange-ish */
.badge-confirmed { background-color: #EFF6FF; color: #2563EB; } /* Blue */
.badge-completed { background-color: #F0FDF4; color: #16A34A; } /* Green */
.badge-cancelled { background-color: #FEF2F2; color: #DC2626; } /* Red */

/* -------------------------------------
   3D HERO GALLERY (industrial-gallery)
-------------------------------------- */
.gallery-perspective {
  perspective: 1200px;
}
.industrial-gallery {
  position: relative;
  width: 100%;
  height: 100%;
}
.gallery-card {
  position: absolute;
  border-radius: 1.5rem;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 4px solid #ffffff;
}
.main-card {
  width: 75%;
  height: 65%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.side-card-top {
  width: 60%;
  height: 45%;
  top: 5%;
  right: -5%;
  transform: translateZ(-50px);
}
.side-card-bottom {
  width: 60%;
  height: 40%;
  bottom: 0%;
  left: 5%;
  transform: translateZ(50px);
}

/* -------------------------------------
   FLOATING CIRCULAR ANIMATIONS
-------------------------------------- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.animate-float-1 { animation: float-slow 6s ease-in-out infinite; }
.animate-float-2 { animation: float-medium 5s ease-in-out infinite; }
.animate-float-3 { animation: float-fast 7s ease-in-out infinite; }

