:root {
  --primary-bg: #000000;
  --secondary-bg: #111111;
  --accent-color: #FF6A00;
  --accent-hover: #E55F00;
  --text-main: #FFFFFF;
  --text-muted: #D1D1D1;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --product-image-ratio: 3 / 2;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--accent-hover);
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--accent-color);
  color: #fff;
}

/* Header */
header {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

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

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

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,106,0,0.1) 0%, rgba(0,0,0,1) 100%);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--accent-color);
}

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

.hero .cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Section Styling */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 48px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--secondary-bg);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 106, 0, 0.3);
}

.feature-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background-color: var(--secondary-bg);
  padding: 32px;
  border-radius: 16px;
  position: relative;
}

.testimonial-content {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
}

.faq-icon {
  color: var(--accent-color);
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  margin-top: 16px;
  max-height: 500px; /* arbitrary large value for transition */
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.product-card {
  background-color: var(--secondary-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.product-img {
  width: 100%;
  aspect-ratio: var(--product-image-ratio);
  object-fit: cover;
  background-color: #222;
}

.product-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  margin-bottom: 8px;
}

.product-info p {
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-meta {
  font-size: 0.875rem;
  color: #aaa;
  margin-bottom: 24px;
}

.product-meta span {
  display: block;
  margin-bottom: 4px;
}

/* About Page */
.about-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--secondary-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
}

/* Footer */
footer {
  background-color: var(--secondary-bg);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #777;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
  }
  
  .nav-links.active {
    left: 0;
  }

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

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

  .hero .cta-group {
    flex-direction: column;
  }

  .about-content {
    grid-template-columns: 1fr;
  }
}

/* Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background-color: var(--secondary-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 11;
}

.modal-close:hover {
  background: var(--accent-color);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
}

.modal-img-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #050505;
}

.modal-img-container img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--product-image-ratio);
  object-fit: cover;
}

.modal-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-info h2 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.2;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-meta-list {
  margin-bottom: 32px;
}

.modal-meta-list span {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #ccc;
}

.modal-meta-list span::before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
  top: -2px;
}

/* Card hover effect & cursor pointer */
.product-card {
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: 0 10px 25px rgba(255, 106, 0, 0.1);
}

/* Hide description, meta, and button on the catalog page card */
.product-card .product-info p,
.product-card .product-info .product-meta,
.product-card .product-info .btn {
  display: none;
}

.product-card .product-info {
  text-align: center;
  padding: 20px;
}

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

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
    padding-top: 48px;
  }
  .modal-content {
    width: 95%;
    max-height: 85vh;
  }
  .modal-info h2 {
    font-size: 1.5rem;
  }
}
