/* ====== Custom Variables ====== */
:root {
  --primary: #06b6d4;  /* Cyan */
  --primary-dark: #0891b2;
  --secondary: #3b82f6; /* Blue */
  --accent: #f59e0b;
  --bg-color: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
}

/* ====== Reset & Basics ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ====== Typography ====== */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  color: var(--primary-dark);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* ====== Layout Components ====== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: 6rem 0;
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  box-shadow: 0 10px 20px -10px rgba(6, 182, 212, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -10px rgba(6, 182, 212, 0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ====== Navbar ====== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

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

.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, .nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ====== Hero Section ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  background: radial-gradient(circle at top left, rgba(6,182,212,0.1) 0%, transparent 40%),
              radial-gradient(circle at bottom right, rgba(59,130,246,0.1) 0%, transparent 40%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  z-index: 2;
  background-color: #fff;
}

.hero-slider img.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 5s linear;
  transform: scale(1.05); /* Slow zoom back out */
  padding: 1rem;
}

.hero-slider img.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-blob {
  position: absolute;
  width: 120%;
  height: 120%;
  background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(59,130,246,0.2));
  filter: blur(40px);
  border-radius: 50%;
  top: -10%;
  left: -10%;
  z-index: 1;
  animation: float 6s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -20px) scale(1.05); }
}

/* ====== Products Section ====== */
.products-bg {
  background: linear-gradient(to bottom, var(--surface) 0%, var(--bg-color) 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.product-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(6,182,212,0.3);
}

.product-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
  padding: 1rem;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
  mix-blend-mode: multiply;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border-top: 1px solid var(--border);
}

/* Specifications Table addition for products page */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  text-align: left;
}

.specs-table th, .specs-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  color: var(--text-muted);
  font-weight: 500;
  width: 45%;
}

.specs-table td {
  color: var(--text);
  font-weight: 600;
}

.expanded-card {
  /* No hover zoom applied to the whole card on this page to let users read text */
  transition: box-shadow 0.3s ease;
}

.expanded-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  line-height: 1.3;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-price {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.product-action {
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  background: rgba(6,182,212,0.05);
  color: var(--primary-dark);
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.product-card:hover .product-action {
  background: var(--primary);
  color: white;
}

/* ====== Features / About ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(59,130,246,0.1));
  color: var(--primary-dark);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ====== Footer ====== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Custom Image Logos */
.nav-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-top: 4px;
}

.loader-logo-img {
  width: 280px;
  height: auto;
  object-fit: contain;
  animation: pulse-logo 1.5s infinite ease-in-out;
}

@keyframes pulse-logo {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 15px rgba(0, 163, 224, 0.4)); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.footer-logo {
  height: 85px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.footer-contact-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  align-items: flex-start;
  line-height: 1.4;
}

.footer-contact-list i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
  display: block;
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .hero-content {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text p {
    margin: 0 auto 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Scroll Reveal Animations ====== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for child elements if needed */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ====== Stats Showcase Layout ====== */
.stats-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-box {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(240,249,255,0.5) 100%);
}

.stat-box p {
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.5rem;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .stats-showcase {
    grid-template-columns: 1fr;
  }
}

/* ====== Product Carousel Layout ====== */
.product-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  padding-top: 1rem;
  /* Custom thin scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--border);
}

.product-carousel::-webkit-scrollbar {
  height: 8px;
}
.product-carousel::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 10px;
}
.product-carousel::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.product-carousel .product-card {
  min-width: 290px;
  max-width: 310px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.product-carousel .product-img-wrapper {
  height: 220px;
}

@media (max-width: 768px) {
  .product-carousel .product-card {
    min-width: 80vw;
    max-width: 80vw;
  }
  .product-carousel .product-img-wrapper {
    height: 180px;
  }
}

/* ====== Preloader ====== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  animation: pulse 1.5s infinite;
}

.loader-logo span {
  color: var(--primary);
}

.loader-text {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ====== Accessory Grid Re-Design ====== */
.accessory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.accessory-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.accessory-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.1);
}

.acc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.acc-header h4 {
  font-size: 1.1rem;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.4;
  margin: 0;
}

.acc-price {
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.acc-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ====== Contact Section ====== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info-panel,
.contact-form-panel {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-info-panel h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-info-panel ul {
  list-style: none;
}

.contact-info-panel ul li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.contact-info-panel ul li i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 3px;
}

.contact-form-panel form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-panel input,
.contact-form-panel textarea,
.captcha-box input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  transition: all 0.3s;
  background: var(--bg-color);
  color: var(--text);
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus,
.captcha-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-color);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.captcha-box span {
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;
  color: var(--text);
}

.captcha-box input {
  max-width: 100px;
  padding: 0.5rem;
  margin: 0;
}

.w-100 {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

#form-message {
  margin-top: 1rem;
  font-weight: 500;
  text-align: center;
}
.success-msg { color: #10b981; }
.error-msg { color: #ef4444; }

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
