/* Creative City — Custom Styles */

:root {
  --navy: #1a365d;
  --navy-light: #234681;
  --navy-dark: #0f2341;
  --turquoise: #14b8a6;
  --turquoise-light: #2dd4bf;
  --turquoise-dark: #0d9488;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --dark-text: #1e293b;
  --muted-text: #64748b;
  --border: #e2e8f0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  color: var(--dark-text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Hero gradient overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(26,54,93,0.88) 0%, rgba(15,35,65,0.75) 100%);
}

/* Gradient backgrounds */
.bg-gradient-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.bg-gradient-turquoise {
  background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-dark) 100%);
}

/* Subtle section separator */
.section-separator {
  position: relative;
}
.section-separator::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--turquoise);
  border-radius: 2px;
}

/* Card hover effect */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26,54,93,0.12);
}

/* ===== Premium Product Card (Apple/Tesla style) ===== */
.product-card-premium {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, box-shadow;
}
.product-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(26,54,93,0.15), 0 10px 20px rgba(26,54,93,0.08);
}

.product-card-premium .product-image-wrap {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-card-premium .product-image-wrap img {
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.product-card-premium:hover .product-image-wrap img {
  transform: scale(1.08);
}

.product-card-premium .product-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(20,184,166,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.product-card-premium:hover .product-image-wrap::after {
  opacity: 1;
}

.product-card-premium .product-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 2;
}
.product-card-premium:hover .product-shine {
  animation: cardShine 0.8s ease forwards;
}
@keyframes cardShine {
  to { left: 150%; }
}

/* ===== Product Detail Page ===== */
.product-gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #f8fafc, #f0fdfa);
}
.product-gallery-main img {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.product-gallery-main:hover img {
  transform: scale(1.05);
}

.product-gallery-thumb {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.active {
  border-color: var(--turquoise);
  opacity: 1;
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
}
.spec-table tr:last-child {
  border-bottom: none;
}
.spec-table td {
  padding: 12px 16px;
  font-size: 14px;
}
.spec-table td:first-child {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  width: 40%;
}

.sticky-quote-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 12px 0;
}

.customization-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.customization-option:hover {
  border-color: var(--turquoise);
  background: rgba(20,184,166,0.04);
}

/* ===== Sector Hero Images ===== */
.sector-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}
.sector-hero-card img {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.sector-hero-card:hover img {
  transform: scale(1.06);
}
.sector-hero-card .sector-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,54,93,0.85) 100%);
}

/* CTA button pulse animation */
.btn-pulse {
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20,184,166,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(20,184,166,0); }
}

/* Counter animation */
.counter-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.counter-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.9s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(n+11) { opacity: 1; transform: translateY(0); }

/* Sticky header transition */
.header-scrolled {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 2px 20px rgba(26,54,93,0.08);
  backdrop-filter: blur(10px);
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
[dir="rtl"] .whatsapp-float { left: 24px; }
[dir="ltr"] .whatsapp-float { right: 24px; }
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* Wizard step indicator */
.wizard-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}
.wizard-step.active {
  background: var(--turquoise);
  color: white;
}
.wizard-step.completed {
  background: var(--navy);
  color: white;
}
.wizard-step.pending {
  background: var(--border);
  color: var(--muted-text);
}

/* ROI Calculator chart container */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Phone/email LTR within RTL */
[dir="rtl"] .ltr-text {
  direction: ltr;
  unicode-bidi: embed;
  text-align: right;
}

/* Accordion smooth transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-content.open {
  max-height: 500px;
}

/* Mobile bottom sticky CTA */
@media (max-width: 768px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 12px 16px;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  }
}

/* Product category tabs */
.category-tab {
  padding: 8px 20px;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--border);
  background: white;
}
.category-tab.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* Sector card icon */
.sector-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(20,184,166,0.1), rgba(26,54,93,0.05));
}

/* Trust badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(20,184,166,0.08);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

/* Form focus ring */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--turquoise) !important;
  box-shadow: 0 0 0 3px rgba(20,184,166,0.15);
}

/* Sector page image cards */
.sector-page-card .sector-img-wrap {
  min-height: 160px;
}

/* Smooth image loading */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img.loaded, img[src=""], img[loading] { opacity: 1; }

/* Sector/hero images should always be visible */
.sector-hero-card img,
.sector-hero-card + div,
[class*="overflow-hidden"] > img {
  opacity: 1;
}
