/* style.css – Premium dark theme for Nexvory Electronics */

/* ------- Design Tokens ------- */
:root {
  --color-bg: #0a0a0a;               /* deep dark */
  --color-surface: rgba(255, 255, 255, 0.03); /* glass effect */
  --color-primary: #00b4d8;          /* electric blue accent */
  --color-text-primary: #e0e0e0;    /* light gray */
  --color-text-muted: #a0a0a0;
  --radius: 12px;
  --transition: 0.3s ease;
  --font-family: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
}

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

a:hover {
  opacity: 0.8;
}

.container {
  width: min(90%, 1200px);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ------- Header ------- */
.site-header {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 48px;
}
.nav a {
  margin-left: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ------- Hero ------- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  color: var(--color-text-primary);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(0,180,216,0.2), transparent 60%);
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.hero-tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.btn-primary:hover {
  background: #0099b3;
  transform: translateY(-2px);
}

/* ------- Sections ------- */
section {
  padding: 4rem 0;
}
section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--color-text-primary);
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
}

/* ------- Products Carousel ------- */
.products .carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}
.products .card {
  flex: 0 0 calc(33.333% - 1rem);
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
  scroll-snap-align: start;
  transition: var(--transition);
}
.products .card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.05);
}
.products .card img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.products .card h3 {
  margin: 0.5rem 0;
  color: var(--color-primary);
}
.products .card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ------- Contact ------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.map iframe {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  min-height: 300px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
form label {
  font-weight: 600;
  color: var(--color-text-primary);
}
form input,
form textarea {
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--color-text-primary);
  font-family: var(--font-family);
}
form input:focus,
form textarea:focus {
  outline: 2px solid var(--color-primary);
}

/* ------- Footer ------- */
.site-footer {
  background: #111;
  color: var(--color-text-muted);
  padding: 2rem 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.footer-col strong {
  display: block;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}
.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ------- Responsive Tweaks ------- */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  .nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
  .products .card {
    flex: 0 0 calc(50% - 1rem);
  }
}
@media (max-width: 480px) {
  .products .card {
    flex: 0 0 100%;
  }
}
