/* ==========================================================================
   AVIVA SMART - PREMIUM DESIGN SYSTEM (Stripe / Apple / Linear Inspired)
   ========================================================================== */

:root {
  /* Colors - Premium Monochrome / Gold */
  --primary: #111111;
  --primary-hover: #1a1c23;
  --secondary: #dfb163;
  --bg-white: #FFFFFF;
  --bg-gray-50: #F8FAFC;
  --bg-gray-100: #F1F5F9;
  --bg-gray-200: #E2E8F0;
  --bg-dark: #0A0F1C;
  
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #111111 0%, #1a1c23 100%);
  --grad-soft: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 100%);
  
  /* Shadows - Smooth, Large, Premium */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.08);
  --shadow-blue: 0 15px 35px rgba(17, 17, 17, 0.25);
  
  /* Border & Radii */
  --border: rgba(15, 23, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  
  /* Spacing */
  --max-width: 1320px;
  --section-pad: 120px;
}

/* Base Reset & Typography */
* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 50% 0%, #FFFFFF 0%, #E9EDF2 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-dark);
}

p { color: var(--text-muted); font-size: 1.125rem; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; border-radius: var(--radius-md); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad) 0; }
.section-pad { padding: var(--section-pad) 0; }
.bg-gray { background-color: var(--bg-gray-50); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.section-header {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(223, 177, 99, 0.1);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-title { font-size: 3rem; margin-bottom: 24px; text-wrap: balance; }
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  text-wrap: balance;
}
.section-desc { font-size: 1.25rem; }

/* Buttons (Magnetic & Ripple inspired) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.35);
}
.btn-gold {
  background: var(--accent-gold);
  color: #111111;
  border: 1.5px solid var(--primary);
  box-shadow: 0 10px 20px rgba(223, 177, 99, 0.2);
  font-weight: 700;
}
.btn-gold:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(223, 177, 99, 0.4);
  background: #e6bd76;
}
.btn-outline {
  background: white;
  color: var(--text-dark);
  border: 1.5px solid var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Navbar - Glassmorphism */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 5px 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo i { font-size: 2rem; color: var(--secondary); }
.logo img { border-radius: 0; }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 1rem;
  position: relative;
}
.nav-link:hover { color: var(--primary); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; width: 0%; height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* DROPDOWN NAVIGATION */
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-item { position: relative; list-style: none; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 210px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1100;
  pointer-events: none;
}
.nav-dropdown::before {
  content: ''; position: absolute; top: -14px; left: 0; width: 100%; height: 14px;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s ease;
  gap: 12px;
  text-decoration: none;
}
.nav-dropdown a:hover { background: rgba(223, 177, 99,0.06); color: #dfb163; padding-left: 18px; }
.nav-dropdown a i { font-size: 15px; color: #dfb163; opacity: 0.75; flex-shrink: 0; }
.nav-link > i.ph-caret-down { transition: transform 0.3s ease; display: inline-block; vertical-align: middle; margin-left: 2px; }
.has-dropdown:hover .nav-link > i.ph-caret-down { transform: rotate(180deg); }
@media (max-width: 768px) {
  .nav-dropdown { position: static; transform: none !important; box-shadow: none; border: none; padding: 0 16px; background: transparent; opacity: 1; visibility: visible; pointer-events: auto; display: none; margin-top: 10px; }
  .has-dropdown.open .nav-dropdown { display: block; }
  .nav-dropdown::before { display: none; }
  .nav-dropdown a { color: #0F172A; font-size: 1rem; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  overflow: hidden;
  background: #050510;
}
/* Cinematic background wrapper */
.hero-cinematic-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1; overflow: hidden;
}
/* 4 crossfading scene layers */
.scene {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; background-size: cover; background-position: center;
  transition: opacity 2s ease;
}
.scene-1 {
  background: linear-gradient(160deg,rgba(3,8,30,.7) 0%,rgba(0,20,60,.5) 100%),
    url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2000&q=80') center/cover;
  animation: sceneLoop 32s 0s infinite;
}
.scene-2 {
  background: linear-gradient(160deg,rgba(5,5,20,.6) 0%,rgba(0,30,80,.45) 100%),
    url('https://images.unsplash.com/photo-1558002038-1055907df827?auto=format&fit=crop&w=2000&q=80') center/cover;
  animation: sceneLoop 32s 8s infinite;
}
.scene-3 {
  background: linear-gradient(160deg,rgba(0,5,25,.65) 0%,rgba(0,20,50,.5) 100%),
    url('smart_home_float.png') center/cover;
  animation: sceneLoop 32s 16s infinite;
}
.scene-4 {
  background: linear-gradient(160deg,rgba(3,5,20,.6) 0%,rgba(0,15,45,.5) 100%),
    url('smart_home_main.png') center/cover;
  animation: sceneLoop 32s 24s infinite;
}
@keyframes sceneLoop {
  0%   { opacity:0; transform:scale(1.08); }
  25%  { opacity:1; transform:scale(1.04); }
  50%  { opacity:1; transform:scale(1.0); }
  75%  { opacity:0; transform:scale(0.96); }
  100% { opacity:0; transform:scale(1.08); }
}
.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.stars i { color: #FBBF24; font-size: 1.1rem; }
.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 28px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}
.author-info h5 { font-size: 1rem; margin-bottom: 2px; }
.author-info span { font-size: 0.875rem; color: var(--text-muted); }

/* ================================================================
   PAGE HERO (Inner Pages)
   ================================================================ */
.page-hero {
  padding: 160px 0 80px;
  background: var(--bg-gray-50);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(223, 177, 99,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-tag { margin-bottom: 16px; }
.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-dark) 20%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
.page-hero-desc {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 32px;
  text-wrap: balance;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }

/* ================================================================
   PRODUCT DETAIL / INNER PAGE LAYOUT
   ================================================================ */
.product-detail-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.product-detail-split.reverse { direction: rtl; }
.product-detail-split.reverse > * { direction: ltr; }
.product-detail-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.product-detail-img img {
  width: 100%; height: 400px;
  object-fit: cover;
  border-radius: 0;
}
.product-detail-content h2 { font-size: 2.5rem; margin-bottom: 20px; }
.product-detail-content p { margin-bottom: 24px; }
.feature-list { margin-top: 24px; }
.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.feature-list-item:last-child { border-bottom: none; }
.feature-list-icon {
  width: 40px; height: 40px;
  background: rgba(223, 177, 99,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}
.feature-list-text h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-list-text p { font-size: 0.9rem; margin: 0; }

/* ================================================================
   SPEC CARDS / QUICK FEATURES
   ================================================================ */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.spec-card {
  background: var(--bg-gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}
.spec-card:hover {
  background: white;
  box-shadow: var(--shadow-md);
  border-color: rgba(223, 177, 99,0.15);
  transform: translateY(-4px);
}
.spec-card i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; display: block; }
.spec-card h4 { font-size: 1.1rem; margin-bottom: 6px; }
.spec-card p { font-size: 0.9rem; }

/* ================================================================
   CONTACT FORM
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { font-size: 2.5rem; margin-bottom: 20px; }
.contact-info p { margin-bottom: 32px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(223, 177, 99,0.08);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-detail h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-detail p { font-size: 0.95rem; margin: 0; }
.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-gray-50);
  transition: all 0.3s ease;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(223, 177, 99,0.08);
}
.form-textarea { resize: vertical; min-height: 120px; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .product-detail-split { grid-template-columns: 1fr; }
  .product-detail-split.reverse { direction: ltr; }
}

/* ================================================================
   BRAND LOGOS TICKER (Clients)
   ================================================================ */
.clients-section { padding: 60px 0; background: var(--bg-gray-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients-label { text-align: center; margin-bottom: 32px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.875rem; }
.ticker-outer { overflow: hidden; }
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}
.ticker-item i { color: var(--primary); font-size: 1.2rem; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 80px 0;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.cta-banner h2 { font-size: 2.8rem; color: white; margin-bottom: 20px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.2rem; max-width: 600px; margin: 0 auto 36px; }
.cta-banner .btn-outline {
  background: white;
  color: var(--primary);
  border: none;
}
.cta-banner .btn-outline:hover {
  background: var(--bg-gray-50);
  transform: translateY(-4px);
}
@media (max-width: 768px) {
  .cta-banner { padding: 48px 24px; }
  .cta-banner h2 { font-size: 2rem; }
}

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: white;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  transition: background 0.2s ease;
}
.faq-question:hover { background: var(--bg-gray-50); }
.faq-question.active { background: rgba(223, 177, 99,0.04); }
.faq-icon { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; transition: transform 0.3s ease; }
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: white;
}
.faq-answer.open { max-height: 500px; }
.faq-answer-inner {
  padding: 0 28px 24px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* ================================================================
   BLOG CARDS
   ================================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(223, 177, 99,0.12);
}
.blog-thumb {
  height: 220px;
  overflow: hidden;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.6s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-body { padding: 28px; }
.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(223, 177, 99,0.08);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.blog-body h3 { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.4; }
.blog-body p { font-size: 0.95rem; }
.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.blog-read-more { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.blog-read-more:hover { gap: 10px; }

/* ================================================================
   WHATSAPP FLOATING BUTTON
   ================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 32px rgba(37,211,102,0.5);
  color: white;
}

/* ================================================================
   EXPERIENCE CENTRES MAP
   ================================================================ */
.ec-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ec-card-info { padding: 48px; }
.ec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(34,197,94,0.1);
  color: #16a34a;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.ec-badge::before { content: '●'; font-size: 0.5rem; }
.ec-card-info h3 { font-size: 1.8rem; margin-bottom: 16px; }
.ec-card-info p { margin-bottom: 28px; }
.ec-hours {
  background: var(--bg-gray-50);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.ec-map {
  background: var(--bg-gray-100);
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.ec-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 768px) {
  .ec-card { grid-template-columns: 1fr; }
  .ec-map { min-height: 250px; }
}

/* ================================================================
   SMART FACTORY SECTION
   ================================================================ */
.factory-highlight {
  background: var(--text-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.factory-content {
  padding: 64px 48px;
  color: white;
}
.factory-content h2 { color: white; font-size: 2.5rem; margin-bottom: 24px; }
.factory-content p { color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.factory-content .btn-primary { margin-top: 16px; }
.factory-img { min-height: 400px; overflow: hidden; }
.factory-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
@media (max-width: 768px) {
  .factory-highlight { grid-template-columns: 1fr; }
  .factory-content { padding: 40px 28px; }
}

/* ================================================================
   SMOOTH SCROLL + SELECTION
   ================================================================ */
html { scroll-behavior: smooth; }
::selection { background: rgba(223, 177, 99,0.15); color: var(--primary); }
/* ================================================================
   DROPDOWN NAVIGATION
   ================================================================ */
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-item { position: relative; list-style: none; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 210px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1100;
  pointer-events: none;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  background: #fff;
  border-left: 1px solid rgba(15,23,42,0.08);
  border-top: 1px solid rgba(15,23,42,0.08);
  transform: translateX(-50%) rotate(45deg);
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0F172A;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.nav-dropdown a:hover { background: rgba(223, 177, 99,0.06); color: #dfb163; padding-left: 18px; }
.nav-dropdown a i { font-size: 15px; color: #dfb163; opacity: 0.75; flex-shrink: 0; }
.nav-link > i.ph-caret-down { transition: transform 0.3s ease; display: inline-block; vertical-align: middle; margin-left: 2px; }
.has-dropdown:hover .nav-link > i.ph-caret-down { transform: rotate(180deg); }
@media (max-width: 768px) {
  .nav-dropdown { position: static; transform: none !important; box-shadow: none; border: none; padding: 0 16px; background: transparent; opacity: 1; visibility: visible; pointer-events: auto; display: none; margin-top: 10px; }
  .has-dropdown.open .nav-dropdown { display: block; }
  .nav-dropdown::before { display: none; }
  .nav-dropdown a { color: #0F172A; font-size: 1rem; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
}

/* ================================================================
   PREMIUM DARK & GOLD THEME (Alternating Sections)
   ================================================================ */
.bg-premium-dark {
  background-color: #111111 !important;
  color: white !important;
}
.bg-premium-dark .section-title, .bg-premium-dark h2, .bg-premium-dark h3, .bg-premium-dark h4 {
  color: #ffffff !important;
}
.bg-premium-dark .section-desc, .bg-premium-dark p {
  color: #9ca3af !important;
}
.bg-premium-dark .section-tag {
  color: #dfb163 !important;
}
.bg-premium-dark .feature-card, .bg-premium-dark .hub-card {
  background: #1a1c23 !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
.bg-premium-dark .feature-card:hover, .bg-premium-dark .hub-card:hover {
  border-color: rgba(223, 177, 99, 0.3) !important;
}
.bg-premium-dark .feature-icon, .bg-premium-dark .hub-icon {
  background: rgba(223, 177, 99, 0.1) !important;
  color: #dfb163 !important;
}
.bg-premium-dark .feature-card:hover .feature-icon, .bg-premium-dark .hub-card:hover .hub-icon {
  background: #dfb163 !important;
  color: #111111 !important;
}
.bg-premium-dark .hub-card::before {
  display: none !important;
}

/* ================================================================
   DARK PAGE HERO OVERRIDE (For product pages)
   ================================================================ */
.page-hero-dark .page-hero-title {
  background: none;
  -webkit-text-fill-color: initial;
  color: #ffffff;
}
.page-hero-dark .page-hero-desc, 
.page-hero-dark .section-subtitle {
  color: #9ca3af !important;
}
.page-hero-dark .breadcrumb {
  color: #9ca3af;
}
.page-hero-dark .breadcrumb a {
  color: #dfb163;
}
.page-hero-dark .breadcrumb span {
  color: #4b5563;
}

/* ================================================================
   MODAL POPUP
   ================================================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}
.modal-icon {
  width: 60px; height: 60px;
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

/* ================================================================
   RESTORED CSS SECTIONS (Hero to Testimonials)
   ================================================================ */

/* Hero Content */
.hero-gradient-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
  background: rgba(5,5,20,0.5);
}
.hero-content {
  position: relative; z-index: 10; max-width: 800px; color: white;
  margin: 0 auto; text-align: center;
}
.hero-content .section-tag {
  background: rgba(223, 177, 99, 0.15); color: var(--secondary); border: 1px solid rgba(223,177,99,0.3);
}
.hero-title { font-size: 4rem; color: white; margin-bottom: 24px; line-height: 1.1; }
.hero-desc { font-size: 1.2rem; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 64px; flex-wrap: wrap; justify-content: center; }
.hero-actions .btn-outline { color: white; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); }
.hero-actions .btn-outline:hover { background: white; color: var(--primary); }
.hero-stats { display: flex; gap: 48px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; justify-content: center; }
.stat-item h4 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 8px; }
.stat-item p { color: rgba(255,255,255,0.7); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-stats { gap: 24px; flex-direction: column; }
}

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-images { position: relative; padding-right: 40px; padding-bottom: 40px; }
.about-img-main { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; height: 500px; object-fit: cover; }
.about-img-float { position: absolute; bottom: 0; right: 0; width: 50%; border-radius: var(--radius-lg); border: 8px solid white; box-shadow: var(--shadow-lg); }
.about-content h2 { font-size: 2.5rem; margin-bottom: 24px; }
.about-content p { margin-bottom: 16px; }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-images { padding-right: 20px; padding-bottom: 20px; }
  .about-img-main { height: 350px; }
}

/* Products Section */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.product-card { background: white; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.4s ease; border: 1px solid var(--border); }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(223, 177, 99, 0.2); }
.product-img-box { height: 240px; overflow: hidden; }
.product-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; border-radius: 0; }
.product-card:hover .product-img-box img { transform: scale(1.08); }
.product-content { padding: 32px; }
.product-content h3 { font-size: 1.4rem; margin-bottom: 12px; }
.product-content p { font-size: 0.95rem; margin-bottom: 24px; min-height: 44px; }
.product-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); transition: gap 0.3s ease; }
.product-link i { color: var(--secondary); transition: transform 0.3s ease; }
.product-link:hover { gap: 12px; }

/* Features Section */
.bg-premium-dark { background: var(--primary); color: white; }
.bg-premium-dark .section-title, .bg-premium-dark h2, .bg-premium-dark h3 { color: white; }
.bg-premium-dark p { color: rgba(255,255,255,0.7); }
.bg-premium-dark .section-tag { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.feature-card { padding: 40px 32px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); transition: all 0.3s ease; }
.feature-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-4px); border-color: rgba(223, 177, 99, 0.3); }
.feature-icon { width: 60px; height: 60px; background: rgba(223, 177, 99, 0.1); color: var(--secondary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 24px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 16px; }

/* Milestones Section */
.milestones-section { padding: 80px 0; background: var(--bg-gray-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.milestones-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.milestones-tag { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 16px; }
.milestones-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.milestones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.milestone-card { text-align: center; padding: 32px 24px; background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.milestone-num { font-size: 3rem; font-weight: 800; color: var(--primary); font-family: 'Plus Jakarta Sans', sans-serif; margin-bottom: 8px; line-height: 1; }
.milestone-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 992px) { .milestones-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .milestones-grid { grid-template-columns: 1fr; } }

/* Hubs Section */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.hub-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 40px 32px; text-align: center; transition: all 0.3s ease; }
.hub-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.06); border-color: rgba(223, 177, 99, 0.3); }
.hub-icon { width: 72px; height: 72px; background: linear-gradient(135deg, rgba(223,177,99,0.2), transparent); color: var(--secondary); border: 1px solid rgba(223,177,99,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 24px; }
.hub-card h3 { font-size: 1.4rem; margin-bottom: 16px; }

/* Testimonials Section */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.testimonial-card { background: var(--bg-gray-50); padding: 48px 40px; border-radius: var(--radius-xl); position: relative; z-index: 1; border: 1px solid var(--border); transition: transform 0.3s ease; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: white; }
.testimonial-card::before {
  content: '"';
  position: absolute; top: 24px; right: 32px; font-size: 5rem; line-height: 1; color: var(--primary); opacity: 0.1; font-family: Georgia, serif;
}

.hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0.8; }

/* Footer Restored */
.footer {
  background: var(--primary, #00102a);
  color: #fff;
  padding: 80px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer p {
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 24px;
  font-weight: 600;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 16px;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.footer-links a:hover {
  color: var(--secondary, #dfb163);
  transform: translateX(4px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}


/* Mobile Toggle Fix */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 40px 30px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: 0.4s ease;
  }
  .nav-links.open { right: 0; }
  .mobile-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-toggle.open span:nth-child(2) { opacity: 0; }
  .mobile-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
