/* 
 * Silverback Electronics - Premium Theme 
 * Designed for High-End Tech Retail
 */

:root {
  /* Brand Palette */
  --color-brand-black: #050505;
  --color-brand-dark: #121212;
  --color-brand-silver: #e0e0e0;
  --color-brand-platinum: #f5f5f7;
  --color-accent-gold: #d4af37;
  /* Subtle accent for "Premium" feel */
  --color-accent-blue: #0071e3;
  /* Trust/Tech blue */

  /* Functional Colors */
  --text-main: #f5f5f7;
  --text-muted: #a1a1a6;
  --bg-body: #0e0e0e;
  --bg-card: rgba(28, 28, 30, 0.65);
  --bg-glass: rgba(20, 20, 20, 0.8);

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 100px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  /* Animation */
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.33, 1, 0.68, 1);
  --transition-base: 0.3s var(--ease-smooth);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-brand-platinum);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 4rem 0;
}

/* Navbar */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand span {
  color: var(--text-muted);
}

.brand-logo {
  height: 85px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.9)), url('hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Background Glow Effect */
.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

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

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

.eyebrow {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-brand-silver);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 1.5rem 0 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
  gap: 0.75rem;
}

.btn.btn-primary {
  background: black;
  color: white;
}

.btn.btn-primary:hover {
  background: white;
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  height: 500px;
  width: 100%;
}

.stat-card {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  transition: transform 0.4s var(--ease-elastic);
}

.stat-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.card-cooling {
  top: 20px;
  right: 20px;
  width: 200px;
}
.card-cooling i { color: #00bcd4; font-size: 2rem; margin-bottom: 0.5rem; }

.card-delivery {
  top: 140px;
  left: 0px;
  width: 220px;
  z-index: 2;
}
.card-delivery i { color: #4caf50; font-size: 2rem; margin-bottom: 0.5rem; }

.card-warranty {
  top: 240px;
  right: 40px;
  width: 180px;
}
.card-warranty i { color: #ffc107; font-size: 2rem; margin-bottom: 0.5rem; }

.stat-card h4 { margin: 0; }
.stat-card small { color: #aaa; }

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.product-card h3 {
  margin-bottom: 0.5rem;
}

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

/* Contact Specifics */
.contact-section {
  background: linear-gradient(180deg, var(--bg-body) 0%, #0a0a0a 100%);
}

.contact-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

input,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-base);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--text-muted);
  background: rgba(0, 0, 0, 0.5);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: block;
}

/* Floating WA */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: var(--transition-base);
}

.floating-wa:hover {
  transform: scale(1.1) rotate(10deg);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }


  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .nav-links {
    display: none;
    /* Add JS toggle logic */
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-body);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-card-stack {
    height: auto;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .stat-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 320px;
    transform: none;
  }

  /* Adjust header height for mobile */
  :root {
    --header-height: 80px;
  }

  .brand {
    font-size: 1.1rem;
  }

  .brand-logo {
    height: 60px;
  }
}