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

/*
 * Global variables for the colour palette and typography.  The palette uses
 * rich, dark backgrounds combined with warm golden highlights to convey
 * sophistication.  The fonts pair a serif headline with a clean sans‑serif
 * body text for a contemporary, high‑end feel.
 */
:root {
  --primary-color: #d4af37;      /* main gold accent */
  --background-color: #0f0f0f;   /* overall page background */
  --surface-color: #141414;      /* card and section backgrounds */
  --text-color: #e0e0e0;         /* default light text */
  --secondary-color: #b18b2b;    /* subtle gold for hover states */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Poppins', sans-serif;
}

/* reset margin, padding and box sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/*
 * Navigation styling.  The navigation is fixed to the top of the viewport
 * and uses a semi‑transparent black backdrop with blur to allow the
 * underlying hero image to subtly show through.
 */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

header .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  /* The logo can either be text or an image. When an image is used, the
   * surrounding anchor is still styled here. Remove any default
   * underlining and set the display so that it aligns nicely within the
   * flex container.
   */
  font-family: var(--heading-font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

/* Constrain the logo image height so that it fits comfortably in the
 * navigation bar. The width will scale automatically to preserve the
 * aspect ratio. */
header .logo img {
  height: 48px;
  width: auto;
}

header nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

header nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: var(--primary-color);
}

/* Language selector styles */
header .language-select {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
header .language-select img {
  width: 24px;
  height: auto;
  cursor: pointer;
}
/* Generic section styling to unify spacing across pages */
section {
  padding: 100px 30px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/*
 * Hero section.  A full viewport height background image with a gradient
 * overlay.  The overlay darkens the image so that text remains readable.
 */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--text-color);
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: var(--heading-font);
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-color);
}

.btn {
  display: inline-block;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 30px;
  border-radius: 50px;
  transition: background-color 0.3s, color 0.3s;
  font-weight: 500;
}

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

/* About section */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1 1 400px;
}

.about-text h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 15px;
  color: var(--text-color);
}

/* About media container holds either the decorative placeholder image or an
 * embedded video.  It mirrors the original .about-image styles for
 * consistent layout and scales to fit gracefully. */
.about-media {
  flex: 1 1 300px;
  text-align: center;
}
.about-media img {
  max-width: 100%;
  border-radius: 10px;
  opacity: 0.9;
}
/* Ensure embedded promo videos fill the container width and maintain
 * aspect ratio.  The border radius matches that of the images for
 * visual consistency. */
.about-media iframe {
  width: 100%;
  height: 315px;
  border: none;
  border-radius: 10px;
}

/* Services */
.services-heading {
  text-align: center;
  margin-bottom: 60px;
}

.services-heading h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  color: var(--primary-color);
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid #2c2c2c;
  padding: 30px;
  border-radius: 10px;
  flex: 1 1 calc(33.333% - 40px);
  min-width: 280px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.service-card svg {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.service-card h3 {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

/*
 * Highlight selected category and brand cards.  When a card has the
 * `selected` class, emphasise it with a golden border and subtle shadow.
 */
.service-card.selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Portfolio */
.portfolio-heading {
  text-align: center;
  margin-bottom: 60px;
}

.portfolio-heading h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  color: var(--primary-color);
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #2c2c2c;

  /*
   * Ensure a consistent aspect ratio for all gallery items. Without
   * explicitly defining a ratio the height of each cell is driven
   * entirely by the intrinsic dimensions of the loaded image, which
   * can lead to oversized items when an image happens to be very
   * tall or wide.  By setting the aspect ratio here we guarantee
   * that every thumbnail has the same shape regardless of the source
   * image dimensions.  A 4:3 ratio provides a balanced rectangle
   * suitable for most product photos.
   */
  aspect-ratio: 4 / 3;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: var(--text-color);
  padding: 15px;
  opacity: 0;
  transition: opacity 0.4s;
  font-family: var(--body-font);
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

/* Contact */
.contact-heading {
  text-align: center;
  margin-bottom: 60px;
}

.contact-heading h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  color: var(--primary-color);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info h3 {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-info p, .contact-info a {
  margin-bottom: 10px;
  color: var(--text-color);
}

.contact-form {
  flex: 1 1 400px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid #444;
  padding: 12px 15px;
  margin-bottom: 20px;
  color: var(--text-color);
  border-radius: 5px;
  font-family: var(--body-font);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form button {
  align-self: flex-start;
}

/* Footer */
footer {
  background: #0d0d0d;
  border-top: 1px solid #222;
  padding: 30px 0;
  text-align: center;
}

footer .social-icons {
  margin-bottom: 10px;
}

footer .social-icons a {
  margin: 0 8px;
  color: var(--primary-color);
  transition: color 0.3s;
}

footer .social-icons a:hover {
  color: var(--secondary-color);
}

footer p {
  font-size: 0.9rem;
  color: #777;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about, .services-container, .contact-container {
    flex-direction: column;
  }

  .service-card {
    flex: 1 1 100%;
  }

  .contact-form, .contact-info, .about-image, .about-text {
    flex: 1 1 100%;
  }

  header .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }
}

/* Modal overlay used in the product catalogue to display product details
 * in a pop‑up.  The overlay covers the entire viewport with a semi‑
 * transparent backdrop.  The modal box sits in the centre with
 * scrollable content if necessary. */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal {
  background: var(--surface-color);
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  color: var(--text-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}
.modal img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}
.modal .close-btn {
  display: block;
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
}