@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700&display=swap');

:root {
  --bg-deep: #050a14;
  --bg-dark: #0d1b2a;
  --bg-glass: rgba(13, 27, 42, 0.7);
  --primary: #00f2ff;
  --primary-glow: rgba(0, 242, 255, 0.3);
  --secondary: #70a1ff;
  --text-bright: #ffffff;
  --text-main: #e0e6ed;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  /* Offset for the compact floating navbar */
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Glassmorphism Utility */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 100px 0;
}

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

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Components */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-deep);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: var(--transition-smooth);
}

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

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
  background: rgba(5, 10, 20, 0.4);
  /* Added background for better legibility before scrolling */
  backdrop-filter: blur(2px);
}

nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.logo img {
  height: clamp(140px, 20vh, 220px);
  /* Increased size for better readability */
  width: auto;
  transition: var(--transition-smooth);
}

nav.scrolled .logo img {
  height: 80px;
  /* Increased compact height */
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  background: linear-gradient(rgba(5, 10, 20, 0.6), rgba(5, 10, 20, 0.9)), url('/public/product-hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* Grid Layouts */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

/* Grid Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: block;
}

.card h3 {
  margin-bottom: 1rem;
}

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

/* Brand Marquee */
.brands-section {
  background: var(--bg-dark);
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.brand-slider {
  display: flex;
  overflow: hidden;
  gap: 4rem;
  user-select: none;
}

.brand-track {
  display: flex;
  gap: 4rem;
  animation: scrollMarquee 30s linear infinite;
}

@keyframes scrollMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.brand-item {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.5rem;
  white-space: nowrap;
  opacity: 0.6;
  text-shadow: 0 0 10px rgba(0, 242, 255, 0);
  transition: var(--transition-smooth);
}

.brand-item:hover {
  opacity: 1;
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
  transform: scale(1.1);
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-bright);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* Product Page Specific */
.product-header {
  padding: 160px 0 60px;
  background: linear-gradient(rgba(5, 10, 20, 0.8), rgba(5, 10, 20, 0.95)), url('/public/product-hero.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 5px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.search-box i {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-box input {
  background: none;
  border: none;
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  padding: 10px 0;
  outline: none;
}

#clear-search {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px;
  display: none;
  transition: var(--transition-smooth);
}

#clear-search:hover {
  color: var(--primary);
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 1px solid var(--glass-border);
  background: var(--bg-glass);
  color: var(--text-main);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-heading);
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 242, 255, 0.05);
}

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

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.product-card:hover .product-img {
  border-color: var(--primary);
  transform: scale(1.02);
}

.product-category {
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

.product-card .btn-outline {
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding-top: 220px;
    /* Increased to clear the larger logo */
    height: auto;
    min-height: 100vh;
    padding-bottom: 60px;
    display: flex;
    align-items: flex-start;
    /* Better for long content on small screens */
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  /* Grid Stacking for Mobile */
  .about-grid,
  .contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .nav-links a {
    font-size: 1.4rem;
  }

  .logo img {
    height: 120px;
    width: auto;
    max-width: 80vw;
    /* Prevent logo from overflowing screen width */
  }

  nav.scrolled .logo img {
    height: 60px;
  }
}

/* Floating WhatsApp Icon */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: white;
}