/* Base Variables */
:root {
  --color-stone-dark: #2a2c2b;
  --color-stone-grey: #5c605d;
  --color-stone-light: #e4e2dd;
  --color-sand: #d5cabd;
  --color-beige: #f4f1ea;
  --color-white: #ffffff;
  --color-accent: #8b7355;

  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;

  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s ease;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--color-stone-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23e4e2dd" fill-opacity="0.2" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Ccircle cx="13" cy="13" r="3"/%3E%3C/g%3E%3C/svg%3E');
  /* Subtle texture */
}

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

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

ul {
  list-style: none;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 1rem auto 0;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-stone-grey);
  margin-top: -2rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-stone-dark);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all var(--transition-smooth);
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 1) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 0.8rem 0 !important;
  backdrop-filter: blur(10px) !important;
}

.header.scrolled .nav-links a,
.header.scrolled .lang-btn {
  color: var(--color-stone-dark) !important;
}

.header.scrolled .mobile-menu-btn span {
  background-color: var(--color-stone-dark) !important;
}

.nav-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.logo {
  display: flex !important;
  align-items: center !important;
  height: 40px !important;
  order: 10 !important;
  z-index: 1001 !important;
  transition: var(--transition-smooth) !important;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

.header.scrolled .logo img {
  filter: invert(1) !important;
}

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

.nav-links a {
  color: var(--color-white);
  font-weight: 500;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000; /* Higher than nav-links (1500) */
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-white);
  margin: 5px 0;
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: var(--color-white) !important;
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background-color: var(--color-white) !important;
}


.header.scrolled .mobile-menu-btn span {
  background-color: var(--color-stone-dark);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(42, 44, 43, 0.5), rgba(42, 44, 43, 0.7)), url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
  transform: scale(1.05);
  /* For load animation */
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero h1 {
  font-size: 4rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Stats Section */
.bg-light {
  background-color: var(--color-beige);
}

.text-center {
  text-align: center;
}

.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-subtitle {
  max-width: 800px;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  color: var(--color-stone-grey);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.stats-image-wrapper {
  height: 100%;
}

.stats-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.stat-card {
  background: var(--color-white);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1;
  white-space: nowrap;
}

.stat-text {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-stone-dark);
}

/* Featured Sections */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.feature-card:hover img {
  transform: scale(1.05);
}

.feature-content {
  padding: 1.5rem;
  text-align: center;
}

.feature-content h3 {
  margin-bottom: 0.5rem;
}

/* Page Headers */
.page-header {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-stone-dark);
  color: var(--color-white);
  padding-top: 80px;
  position: relative;
}

.page-header h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 0;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.values-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.value-item::before {
  content: '\2713';
  color: var(--color-accent);
  font-weight: bold;
}

.about-image {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

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

.product-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 350px;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--color-white);
  transition: background 0.6s ease;
}

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

.product-card:hover .product-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
}

.product-overlay h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.product-overlay p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-card:hover .product-overlay h3 {
  transform: translateY(0);
}

.product-card:hover .product-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* Application Areas */
.areas-section {
  background-color: var(--color-beige);
}

.area-row {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  gap: 3rem;
}

.area-row:nth-child(even) {
  flex-direction: row-reverse;
}

.area-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.area-content {
  flex: 1;
}

.area-content p {
  font-size: 1.1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.contact-info {
  background: var(--color-beige);
  padding: 3rem 2rem;
  border-radius: 8px;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Product Showcase Zig-Zag */
.product-showcase {
  padding: 0 0 8rem 0;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 6rem;
  margin-bottom: 10rem;
}

.product-row:last-child {
  margin-bottom: 0;
}

.product-row:nth-child(even) {
  flex-direction: row-reverse;
}

.product-showcase-image {
  flex: 1.3;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 550px;
  position: relative;
}

.product-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.product-row:hover .product-showcase-image img {
  transform: scale(1.08);
}

.product-showcase-content {
  flex: 1;
}

.product-tag {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--color-beige);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.product-showcase-content h3 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--color-stone-dark);
  font-family: 'Playfair Display', serif;
}

.product-showcase-content p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--color-stone-grey);
  margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
  .product-row,
  .product-row:nth-child(even) {
    flex-direction: column !important;
    gap: 3rem;
    margin-bottom: 8rem;
  }

  .product-showcase-image {
    width: 100%;
    height: 450px;
  }

  .product-showcase-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .product-showcase-content h3 {
    font-size: 2.2rem !important;
  }
  
  .product-showcase-image {
    height: 350px;
  }
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--color-stone-grey);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-control {
  padding: 1rem;
  border: 1px solid var(--color-stone-light);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Legal text formatting */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--color-stone-dark);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col p {
  color: var(--color-stone-light);
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--color-stone-light);
  opacity: 0.8;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-stone-light);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

  .about-grid,
  .area-row,
  .stats-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .area-row:nth-child(even) {
    flex-direction: column;
  }

  .area-row {
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex !important;
    gap: 2rem !important;
    order: 1 !important;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--color-stone-dark);
    font-size: 1.2rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--color-stone-dark);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--color-stone-dark);
  }

  .header .logo {
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
    order: 10 !important;
    z-index: 1001 !important;
    transition: var(--transition-smooth) !important;
  }

  .header:not(.scrolled) .mobile-menu-btn:not(.active) span {
    background-color: var(--color-white);
  }

  .header:not(.scrolled) .logo {
    display: flex !important;
    align-items: center !important;
    height: 40px !important;
    order: 10 !important;
    z-index: 1001 !important;
    transition: var(--transition-smooth) !important;
  }

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

  .hero-btns {
    flex-direction: column;
  }

  .section {
    padding: 3rem 0;
  }
}

/* Creative/Emotional Headings */
.creative-heading-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.creative-heading-wrapper .section-title {
  text-align: left;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.creative-heading-wrapper .section-title::after {
  display: none;
  /* Remove default underline */
}

/* The "Circle" / Blob Effect */
.creative-circle {
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  background-color: var(--color-sand);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 1;
  filter: blur(20px);
  animation: blob-pulse 8s infinite alternate;
}

html[dir="rtl"] .fa-heading-wrapper {
  justify-content: flex-end;
}

html[dir="rtl"] .fa-heading-wrapper .section-title {
  text-align: right;
}

html[dir="rtl"] .fa-creative-circle {
  left: auto;
  right: -20px;
}

@keyframes blob-pulse {
  0% {
    transform: translateY(-50%) scale(1);
    rotate: 0deg;
  }

  100% {
    transform: translateY(-50%) scale(1.2);
    rotate: 45deg;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
  }
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 2rem 0;
}

@media (max-width: 992px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
}

/* Emotional Gallery Styles */

.emotional-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

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

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
  filter: brightness(0.9) contrast(1.1);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1) contrast(1.1);
}

@media (max-width: 992px) {
  .emotional-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
}

@media (max-width: 600px) {
  .emotional-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

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

/* Interactive Stone Showcase - Premium Enhancement */
.interactive-showcase {
  background: radial-gradient(circle at center, #323433 0%, var(--color-stone-dark) 100%);
  padding: 5rem 2rem;
  border-radius: 20px;
  color: var(--color-white);
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.interactive-showcase::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(235, 226, 214, 0.05) 0%, transparent 70%);
  animation: rotate-bg 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate-bg {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.showcase-display {
  height: 450px;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 3rem;
  background-size: cover;
  background-position: center;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-display.animating {
  animation: ken-burns 10s ease infinite alternate;
}

@keyframes ken-burns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.showcase-overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 1.5rem 3rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease 0.3s;
}

.interactive-showcase:hover .showcase-overlay {
  transform: translateY(0);
  opacity: 1;
}

.showcase-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.control-btn {
  width: 90px;
  height: 90px;
  border-radius: 15px;
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
  transform: translateY(-10px) scale(1.1);
  border-color: var(--color-sand);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.control-btn.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px var(--color-accent);
  transform: translateY(-5px) scale(1.05);
}

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
}

/* Photo Square Grid (2x2) */
.photo-square-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.photo-square-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s ease;
}

.photo-square-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.photo-square-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.photo-square-item:hover img {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .photo-square-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Language Switcher & i18n
   ========================================================================== */


.lang-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
}

.lang-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-stone-dark);
  min-width: 140px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  overflow: hidden;
}

.lang-switcher:hover .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-white);
  text-decoration: none;
  transition: background 0.2s;
}

.lang-dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    background: var(--color-stone-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
  }
}

/* ==========================================================================
   RTL Global Support (Persian)
   ========================================================================== */
html[dir="rtl"] {
  /* Use a nice Persian font if available, falling back to reliable system fonts */
  font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
  text-align: right;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: 'Lalezar', 'Markazi Text', serif;
  /* Optional display fonts for Persian */
}

html[dir="rtl"] .logo {
  display: flex !important;
  align-items: center !important;
  height: 40px !important;
  order: 10 !important;
}

html[dir="rtl"] .hero-content h1,
html[dir="rtl"] .hero-content p,
html[dir="rtl"] .footer-col {
  text-align: right;
}

html[dir="rtl"] .nav-links {
  order: 1;
}

html[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .btn i {
  margin-left: 0;
  margin-right: 0.5rem;
  transform: rotate(180deg);
  /* Flip arrows */
}

html[dir="rtl"] .split-content,
html[dir="rtl"] .intro-section h2,
html[dir="rtl"] .collection-section h2,
html[dir="rtl"] .feature-card {
  text-align: right;
}

/* Adjust margins on specific components for RTL */
html[dir="rtl"] .feature-card i {
  margin-right: 0;
  margin-left: 1rem;
}

.lang-switcher {
  position: relative !important;
  order: 5 !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 1.5rem !important;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80% !important;
    max-width: 300px !important;
    height: 100vh !important;
    background-color: var(--color-stone-dark) !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 2rem !important;
    transition: var(--transition-smooth) !important;
    z-index: 1500 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: flex !important;
  }

  .nav-links.active {
    right: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html[dir="rtl"] .nav-links {
    right: auto !important;
    left: -100% !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
    align-items: center !important; /* Ensure items are centered in the drawer */
    text-align: center !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html[dir="rtl"] .nav-links.active {
    left: 0 !important;
    right: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .nav-links a {
    color: var(--color-white) !important;
    font-size: 1.2rem !important;
    margin: 1.5rem 0 !important;
  }
  
  /* Ensure mobile drawer links stay white even if header is scrolled */
  .header.scrolled .nav-links a {
    color: var(--color-white) !important;
  }

  .mobile-menu-btn {
    display: block !important;
    order: 2 !important;
  }
}

/* Missing Stats Section CSS */
.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.stats-content {
  display: flex;
  flex-direction: column;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-stone-dark);
  font-family: var(--font-heading);
}

.stat-text {
  color: var(--color-stone-grey);
  font-size: 0.95rem;
}

.stats-image-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.stats-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Specific Mobile Fixes for Large Containers */
@media (max-width: 992px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem !important;
  }

  .hero p {
    font-size: 1.1rem !important;
  }

  .page-header h1 {
    font-size: 2.2rem !important;
  }

  .section-title {
    font-size: 2rem !important;
    margin-bottom: 2rem !important;
  }

  .section-subtitle {
    font-size: 1rem !important;
    margin-top: -1.5rem !important;
    margin-bottom: 2rem !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .values-list {
    grid-template-columns: 1fr;
  }
}