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

body {
  font-family: 'Cormorant Garamond', serif;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

p, li, span {
  font-weight: 400;
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  color: white;
  background: transparent;

  transition: transform 0.4s ease, background-color 0.4s ease,
    box-shadow 0.4s ease;
  transform: translateY(0);
}

.navbar.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  background-color: black;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transform: translateY(-100%);
  animation: slideDown 0.4s ease forwards;
}

.navbar ul {
  display: flex;
  gap: 2rem;
  z-index: 1;
}

.navbar ul li a {
  display: inline-block;
  font-size: 1.5rem;
  color: #b7b7b7;
  padding: 0.5rem 0.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image: url(imgs/Black_Marble.jpg); */
  background-color: black;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: -1;
}

.navbar.scrolled::before {
  opacity: 1;
}

.navbar ul li a:hover {
  color: #ffffff;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #b7b7b7;
  font-size: 1rem;
}

.lang-btn {
  background: none;
  border: none;
  color: #b7b7b7;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  color: #767575;
}

.contact-dropdown {
  position: relative;
}

.contact-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1002;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.contact-dropdown:hover .dropdown-menu {
  max-height: 200px;
  opacity: 1;
}

.contact-dropdown .dropdown-menu a {
  color: black;
  font-size: 1.2rem;
  display: inline-block;
}

.logo-img {
  max-height: 5rem;
  width: auto;
  display: block;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding: 12rem 2rem;
}

.hero .btn {
  display: inline-block;
  background: white;
  color: black;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  border-radius: 2px;
  font-weight: bold;
}

.hero-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.products {
  padding: 6rem 2rem;
  padding-top: 10rem;
  background: #f4f4f4;
  text-align: center;
  /* background-image: url(imgs/Mrable.jpg); */
}

.products h2 {
  padding-bottom: 3rem;
}

.product-grid {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 1rem;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}

.product-card {
  flex: 0 0 auto;
  width: 50rem;
  height: 45rem;
  scroll-snap-align: center;
  background: white;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  text-align: left;
  overflow: hidden;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  margin: 0 auto;

  /*Fade system*/
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card img {
  width: 100%;
  height: auto;
}

.product-card:hover {
  transform: scale(1.03);
}

.product-grid::-webkit-scrollbar {
  display: none;
}

.product-grid {
  scrollbar-width: none; /* Firefox */
}

.about {
  padding: 4rem 2rem;
  background: #fff;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.footer-contacts {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-contacts a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-contacts a:hover {
  color: #ccc;
}

.featured-product {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 2rem;
  align-items: center;
  background-color: #f9f9f9;
}

.featured-product-image img {
  width: 100%;
  margin-left: 10rem;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured-product-info {
  max-width: 600px;
  text-align: left;
}

.featured-product-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #111;
}

.featured-product-info p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.contact-section {
  position: relative;
  background: linear-gradient(145deg, #f8f8f8, #e6e6e6, #dcdcdc);
  color: #111;
  text-align: center;
  padding: 6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

.contact-content {
  max-width: 600px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.contact-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contact-icon {
  font-size: 3rem;
  color: #111;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.5);
}

.contact-email {
  font-size: 1.3rem;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.contact-email:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .contact-section {
    padding: 4rem 1.5rem;
  }

  .contact-content {
    padding: 2rem 1.5rem;
  }

  .contact-section h2 {
    font-size: 1.8rem;
  }

  .contact-email {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
  }
}

.find-out-more {
  margin-left: auto;
  margin-right: auto;
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: black;
  color: white;
  text-align: center;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.find-out-more:hover {
  background-color: #333;
}

.parallax-section.split {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 70vh;
  padding: 0 5%;
  overflow: hidden;
  color: white;
  background-image: url("imgs/Black_Marble.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.parallax-section.split::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.parallax-content {
  position: relative;
  z-index: 2;
  width: 45%;
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem 3rem;
  border-radius: 8px;
  text-align: left;
  backdrop-filter: blur(4px);
}

.parallax-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.parallax-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.parallax-side-image {
  position: relative;
  z-index: 2;
  width: 45%;
  height: 80%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 1s ease-out;
}

.parallax-section.split:hover .parallax-side-image {
  transform: scale(1.05);
}

/* TEXT-ONLY VERSION */
.parallax-section {
  position: relative;
  background-image: url("imgs/Black_Marble.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.parallax-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.parallax-section:not(.split) .parallax-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.parallax-section:not(.split) .parallax-content h2,
.parallax-section:not(.split) .parallax-content p {
  text-align: center;
}

@media (max-width: 900px) {
  .parallax-section.split {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: auto;
    padding: 4rem 1rem;
  }

  .parallax-content,
  .parallax-side-image {
    width: 100%;
    margin-bottom: 2rem;
  }
}

.faq-section {
  background-color: #fff;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: #111;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
}

.faq-question {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: left;
  width: 100%;
  padding: 1rem 0;
  cursor: pointer;
  color: #111;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px; /* Adjust if needed */
}

.mosaic-gallery {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.mosaic-gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #111;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: 200px;
}

.gallery-item.span‑2‑cols {
  grid-column: span 2;
}
.gallery-item.span‑2-rows {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.small {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item.wide {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-item.tall {
  grid-column: span 1;
  grid-row: span 2;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.image-modal img.modal-content {
  margin: auto;
  display: block;
  max-width: 98%;
  max-height: 95%;
  animation: zoom 0.3s ease-in-out;
}

.image-modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.zoomable-table {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.zoomable-table:hover {
  transform: scale(1.02);
}

#scrollToTop {
  position: fixed;
  bottom: 60px;
  right: 60px;
  width: 52px;
  height: 52px;
  border-radius: 50%;

  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

  display: flex;
  justify-content: center;
  align-items: center;

  color: black;
  font-size: 1.25rem;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;

  z-index: 1003;
}

#scrollToTop:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#scrollToTop.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 480px) {
  #scrollToTop {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

@media (max-width: 600px) {
  #scrollToTop {
    bottom: 25px;
    right: 25px;
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  #scrollToTop {
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }
}

@media (max-width: 1024px) {
  #scrollToTop {
    bottom: 40px;
    right: 40px;
  }
}

@media (min-width: 1440px) {
  #scrollToTop {
    bottom: 70px;
    right: 70px;
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
  }
}

@media (min-width: 1920px) {
  #scrollToTop {
    bottom: 85px;
    right: 85px;
    width: 60px;
    height: 60px;
    font-size: 1.45rem;
  }
}

/*Anims*/
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes zoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/*Media query(phone, tablet, small resolution displays)*/

@media (min-width: 768px) {
  .product-detail-content {
    flex-direction: row;
  }

  .product-detail img {
    flex: 1;
  }

  .product-info {
    flex: 1;
  }

  .featured-product {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }

  .featured-product-image,
  .featured-product-info {
    flex: 1;
  }
}

/* --- TABLETS (max-width: 1024px) --- */
@media (max-width: 1024px) {
  /* Navbar */
  .navbar {
    padding: 0.75rem 1.25rem;
  }

  .navbar ul {
    gap: 1rem;
  }

  .navbar ul li a {
    font-size: 1.25rem;
  }

  .logo-img {
    max-height: 3.5rem;
  }

  /* Products */
  .product-card {
    width: 90%;
    height: auto;
  }

  .product-grid {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  /* Featured product side-by-side becomes stacked */
  .featured-product {
    flex-direction: column;
    text-align: center;
  }

  .featured-product-image img {
    margin-left: 0;
    max-width: 100%;
  }

  /* Parallax split */
  .parallax-section.split {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 3rem 1rem;
  }

  .parallax-content,
  .parallax-side-image {
    width: 100%;
    margin: 0 auto 2rem;
  }

  .contact-content {
    width: 100%;
  }
}

/* --- MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {
  /* General */
  body {
    font-size: 0.95rem;
    overflow-x: hidden;
  }

  /* Hero */
  .hero-content {
    padding: 8rem 1rem;
  }

  .hero-logo {
    max-width: 300px;
  }

  /* Product grid becomes single column scroll */
  .product-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .product-card {
    width: 95%;
    height: auto;
  }

  /* Featured products */
  .featured-product {
    padding: 2rem 1rem;
  }

  .featured-product-info h2 {
    font-size: 1.6rem;
  }

  .featured-product-info p {
    font-size: 1rem;
  }

  /* Parallax simple text version on mobile */
  .parallax-section {
    height: auto;
    background-attachment: scroll;
    padding: 3rem 1rem;
  }

  .parallax-content {
    width: 100%;
    padding: 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }

  /* Contact section */
  .contact-content {
    padding: 1.5rem;
  }

  .contact-section h2 {
    font-size: 1.6rem;
  }

  /* FAQ */
  .faq-section {
    padding: 2rem 1rem;
  }
}

/* --- VERY SMALL DEVICES (max-width: 480px) --- */
@media (max-width: 480px) {
  .navbar ul li a {
    font-size: 1rem;
  }

  .hero-content {
    padding: 6rem 1rem;
  }

  .product-card {
    width: 100%;
    padding: 0.75rem;
  }

  .featured-product-info h2 {
    font-size: 1.4rem;
  }

  .contact-content {
    padding: 1rem;
  }

  .contact-email {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .footer-contacts a {
    font-size: 1.2rem;
  }
}

/* --- RESPONSIVE NAVBAR ONLY --- */
@media (max-width: 900px) {
  .navbar {
    padding: 0.6rem 1rem;
  }

  .logo-img {
    max-height: 3rem;
  }

  .navbar ul {
    gap: 1rem;
  }

  .navbar ul li a {
    font-size: 1.25rem;
    padding: 0.3rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem 0.8rem;
  }

  .logo-img {
    max-height: 2.2rem;
  }

  .navbar ul {
    gap: 0.6rem;
  }

  .navbar ul li a {
    font-size: 1.1rem;
  }

  .language-switch {
    font-size: 0.85rem;
    gap: 0.25rem;
  }

  .lang-btn {
    font-size: 0.85rem;
  }

  .contact-dropdown .dropdown-menu {
    top: 110%;
    left: auto;
    right: 0;
    transform: none;
  }
}

