/*
 * Luxury Stone Export - Custom CSS
 * Theme: Dark Luxury
 */

:root {
  /* Design Tokens */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --gold-primary: #c9a94e;
  --gold-light: #e8d48b;
  --gold-gradient: linear-gradient(135deg, #c9a94e, #e8d48b, #c9a94e);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  
  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --trans-fast: 0.3s ease;
  --trans-normal: 0.4s ease;
  --trans-slow: 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* ==========================================================================
   1. GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-top: 0;
}

a {
  text-decoration: none;
}

::selection {
  background-color: var(--gold-primary);
  color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* ==========================================================================
   2. PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(201, 169, 78, 0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   3. NAVBAR
   ========================================================================== */
.navbar-luxury {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background-color: transparent;
  transition: all var(--trans-normal);
}

.navbar-luxury.scrolled {
  padding: 12px 0;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-luxury .navbar-brand img {
  max-height: 45px;
  transition: all var(--trans-normal);
}

.navbar-luxury .nav-link {
  font-family: var(--font-body);
  color: var(--text-primary) !important;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 10px 15px;
  position: relative;
  transition: color var(--trans-normal);
}

.navbar-luxury .nav-link:hover {
  color: var(--gold-primary) !important;
}

.navbar-luxury .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  width: 0;
  height: 2px;
  background-color: var(--gold-primary);
  transition: width var(--trans-normal);
}

.navbar-luxury .nav-link:hover::after {
  width: calc(100% - 30px);
}

/* Dropdown */
.navbar-luxury .dropdown-menu {
  background-color: var(--bg-card);
  border: none;
  border-radius: 0;
  padding: 10px 0;
  margin-top: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--trans-normal);
}

.navbar-luxury .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-luxury .dropdown-item {
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 25px;
  border-left: 3px solid transparent;
  transition: all var(--trans-fast);
}

.navbar-luxury .dropdown-item:hover {
  background-color: transparent;
  color: var(--gold-primary);
  border-left-color: var(--gold-primary);
}

/* Nav CTA */
.nav-cta {
  margin-left: 15px;
}

.nav-cta .nav-btn {
  padding: 8px 20px !important;
  font-size: 12px;
  letter-spacing: 1.5px;
}

.nav-cta::after {
  display: none;
}

/* Mobile Nav Overlay */
@media (max-width: 991px) {
  .navbar-luxury .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform var(--trans-normal);
  }
  
  .navbar-luxury .navbar-collapse.show {
    transform: translateX(0);
  }

  .navbar-luxury .navbar-nav {
    align-items: center;
  }
  
  .navbar-luxury .nav-item {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUpItem 0.4s forwards;
  }
  
  @keyframes fadeUpItem {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particles::before, .particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: float 15s linear infinite;
  box-shadow: 
    100px 200px var(--gold-primary), 
    300px 400px var(--gold-light),
    500px 100px var(--gold-primary),
    700px 500px var(--gold-light),
    900px 200px var(--gold-primary);
}

.particles::after {
  width: 6px;
  height: 6px;
  opacity: 0.2;
  animation-duration: 20s;
  animation-direction: reverse;
  box-shadow: 
    150px 300px var(--gold-light), 
    400px 100px var(--gold-primary),
    600px 400px var(--gold-light),
    800px 200px var(--gold-primary);
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-1000px); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  color: var(--gold-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--gold-primary);
  margin-right: 15px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text-primary);
  line-height: 1.15;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  margin-bottom: 25px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  z-index: 1;
}

/* L-shaped gold corners */
.hero-image-wrapper::before,
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid var(--gold-primary);
  z-index: 2;
  pointer-events: none;
}

.hero-image-wrapper::before {
  top: 15px;
  right: 15px;
  border-bottom: none;
  border-left: none;
}

.hero-image-wrapper::after {
  bottom: 15px;
  left: 15px;
  border-top: none;
  border-right: none;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--trans-slow);
}

.hero-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Buttons */
.btn-gold {
  background: var(--gold-gradient);
  color: var(--bg-primary);
  padding: 14px 36px;
  border-radius: 0;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  transition: all var(--trans-fast);
  display: inline-block;
}

.btn-gold:hover {
  color: var(--bg-primary);
  box-shadow: 0 10px 20px rgba(201, 169, 78, 0.3);
  transform: translateY(-2px);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
  padding: 12px 34px;
  border-radius: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  transition: all var(--trans-fast);
  display: inline-block;
  margin-left: 15px;
}

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

/* ==========================================================================
   5. COMMON SECTION STYLES
   ========================================================================== */
.section-padding {
  padding: 100px 0;
}

.bg-secondary-section {
  background-color: var(--bg-secondary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
}

/* ==========================================================================
   6. WHO WE ARE (ABOUT)
   ========================================================================== */
.about-section {
  background-color: var(--bg-secondary);
}

.feature-card {
  background-color: var(--bg-card);
  padding: 40px 30px;
  text-align: center;
  border-radius: 4px;
  border-bottom: 3px solid transparent;
  transition: all var(--trans-normal);
  height: 100%;
}

.feature-card:hover {
  border-bottom-color: var(--gold-primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(201, 169, 78, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold-primary);
  fill: none;
  stroke-width: 1.5;
}

.feature-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* ==========================================================================
   7. PRODUCTS
   ========================================================================== */
.product-row {
  margin-bottom: 80px;
  align-items: center;
}

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

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.product-image-wrapper::before,
.product-image-wrapper::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--gold-primary);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--trans-normal);
}

.product-image-wrapper::before {
  top: 15px;
  right: 15px;
  border-bottom: none;
  border-left: none;
}

.product-image-wrapper::after {
  bottom: 15px;
  left: 15px;
  border-top: none;
  border-right: none;
}

.product-image-wrapper:hover::before,
.product-image-wrapper:hover::after {
  opacity: 1;
}

.product-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(20%);
  transition: all var(--trans-slow);
}

.product-image-wrapper:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.product-image-wrapper:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.product-content {
  padding: 0 40px;
}

.product-tag {
  color: var(--gold-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 15px;
  display: inline-block;
}

.product-content h3 {
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.product-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

.btn-explore i, .btn-explore svg {
  margin-left: 10px;
  transition: transform var(--trans-fast);
}

.btn-explore::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-primary);
  transition: width var(--trans-normal);
}

.btn-explore:hover {
  color: var(--gold-light);
}

.btn-explore:hover i, .btn-explore:hover svg {
  transform: translateX(5px);
}

.btn-explore:hover::after {
  width: 100%;
}

@media (min-width: 992px) {
  .product-row:nth-child(even) {
    flex-direction: row-reverse;
  }
}

/* ==========================================================================
   8. STONELOVE BANNER
   ========================================================================== */
.stonelove-section {
  width: 100%;
  min-height: 450px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stonelove-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
}

.stonelove-content {
  position: relative;
  padding: 40px;
}

.stonelove-logo {
  max-width: 350px;
  filter: brightness(1.2);
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.stonelove-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--gold-primary);
  font-size: 1.5rem;
  letter-spacing: 3px;
  margin: 0;
}

/* ==========================================================================
   9. TESTIMONIALS
   ========================================================================== */
.testimonials-section {
  background-color: var(--bg-secondary);
}

.testimonial-card {
  background-color: var(--bg-card);
  padding: 50px;
  border-radius: 8px;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.quote-mark {
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--gold-primary);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 30px;
  line-height: 1;
  z-index: -1;
}

.testimonial-text {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-author {
  color: var(--gold-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonial-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.testimonial-controls button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.testimonial-controls button:hover {
  background-color: var(--gold-primary);
  color: var(--bg-primary);
}

.testimonial-slide-transition {
  animation: fadeSlide 0.5s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   10. FEATURED IN
   ========================================================================== */
.logo-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 0;
  position: relative;
}

.logo-marquee::before,
.logo-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

.logo-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.logo-track img {
  height: 90px;
  margin: 0 40px;
  filter: grayscale(100%) brightness(0.7);
  opacity: 0.5;
  transition: all var(--trans-normal);
}

.logo-track img:hover {
  filter: none;
  opacity: 1;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   11. GLOBAL REACH
   ========================================================================== */
.country-card {
  text-align: center;
  padding: 25px;
}

.country-flag {
  width: 70px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 auto 12px auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all var(--trans-fast);
}

.country-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-card:hover .country-flag {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(201, 169, 78, 0.4);
}

.country-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

/* ==========================================================================
   11b. WORLD MAP
   ========================================================================== */
.worldmap-section {
  background-color: var(--bg-secondary);
}

.worldmap-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid rgba(201, 169, 78, 0.25);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

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

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.footer-luxury {
  background-color: #080808;
  padding-top: 80px;
}

.footer-logo {
  max-height: 50px;
  margin-bottom: 20px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-title {
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links li a {
  color: var(--text-secondary);
  transition: all var(--trans-fast);
  display: inline-block;
}

.footer-links li a:hover {
  color: var(--gold-primary);
  transform: translateX(5px);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--trans-fast);
}

.footer-social a:hover {
  border-color: var(--gold-primary);
  background-color: var(--gold-primary);
  color: var(--bg-primary);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  margin: 40px 0;
  opacity: 0.3;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   13. SCROLL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--trans-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all var(--trans-slow);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all var(--trans-slow);
}

.reveal-left.active, 
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   14. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1199px) {
  .section-padding {
    padding: 80px 0;
  }
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 50px;
  }
  
  .hero-label {
    justify-content: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .product-row {
    flex-direction: column !important;
    text-align: center;
  }
  
  .product-image-wrapper {
    margin-bottom: 30px;
  }
  
  .product-content {
    padding: 0 15px;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .feature-card {
    margin-bottom: 30px;
  }
  
  .footer-luxury {
    text-align: center;
  }
  
  .footer-text {
    margin: 0 auto 20px auto;
  }
  
  .footer-social {
    justify-content: center;
    margin-bottom: 30px;
  }
  
  .footer-title {
    margin-top: 20px;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .btn-gold-outline {
    margin-left: 0;
    margin-top: 15px;
    display: block;
    width: 100%;
  }
  
  .btn-gold {
    display: block;
    width: 100%;
  }
  
  .testimonial-card {
    padding: 30px 20px;
  }
  
  .quote-mark {
    font-size: 5rem;
    top: 5px;
    left: 10px;
  }
}

/* ==========================================================================
   15. BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--trans-fast);
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--gold-light);
  color: var(--bg-primary);
  box-shadow: 0 0 15px rgba(201, 169, 78, 0.5);
  transform: translateY(-3px);
}
