/* Custom CSS for Design Atlas Showroom */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --background: 40 25% 97%;
  --foreground: 30 15% 12%;
  --primary: 30 15% 15%;
  --primary-foreground: 40 25% 97%;
  --secondary: 38 18% 92%;
  --secondary-foreground: 30 15% 18%;
  --muted: 38 12% 88%;
  --muted-foreground: 30 8% 45%;
  --border: 38 15% 85%;
  --gold: 38 50% 45%;
  --gold-light: 38 40% 65%;
  --card: 40 20% 95%;
  --card-foreground: 30 15% 12%;
  --popover: 40 25% 97%;
  --popover-foreground: 30 15% 12%;
  --accent: 38 45% 45%;
  --accent-foreground: 40 25% 97%;
  --destructive: 0 65% 50%;
  --destructive-foreground: 0 0% 100%;
  --ring: 38 45% 45%;
  --input: 38 15% 85%;
  --radius: 0.25rem;
}

/* CSS Variables for direct use */
body {
  --bg-background: hsl(var(--background));
  --bg-foreground: hsl(var(--foreground));
  --bg-primary: hsl(var(--primary));
  --bg-primary-foreground: hsl(var(--primary-foreground));
  --bg-secondary: hsl(var(--secondary));
  --bg-secondary-foreground: hsl(var(--secondary-foreground));
  --bg-muted: hsl(var(--muted));
  --bg-muted-foreground: hsl(var(--muted-foreground));
  --bg-gold: hsl(var(--gold));
  --bg-gold-light: hsl(var(--gold-light));
  --bg-border: hsl(var(--border));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
}

.luxury-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .luxury-container {
    padding: 0 2rem;
  }
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Show fade-in elements immediately if JavaScript is disabled or not loaded */
.fade-in.visible,
.fade-in:not(.fade-in) {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: show all fade-in elements after page load */
body.loaded .fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure text content inside fade-in maintains color when visible */
.fade-in.visible,
body.loaded .fade-in {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.visible *,
body.loaded .fade-in * {
  color: inherit;
}

/* Utility classes - Color Classes */
.bg-background {
  background-color: hsl(var(--background));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.bg-primary {
  background-color: hsl(var(--primary));
}

.text-primary {
  color: hsl(var(--primary));
}

.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}

/* Primary Foreground with Opacity */
.text-primary-foreground\/70 {
  color: hsla(40, 25%, 97%, 0.7);
}

.text-primary-foreground\/60 {
  color: hsla(40, 25%, 97%, 0.6);
}

.text-primary-foreground\/80 {
  color: hsla(40, 25%, 97%, 0.8);
}

.border-primary-foreground\/20 {
  border-color: hsla(40, 25%, 97%, 0.2);
}

/* Footer specific styles */
footer {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
}

footer * {
  color: inherit;
}

footer h4,
footer .font-display {
  color: hsl(var(--primary-foreground));
}

footer a {
  color: inherit;
  transition: color 0.3s ease;
}

footer .hover\:text-primary-foreground:hover,
footer a:hover {
  color: hsl(var(--primary-foreground)) !important;
}

/* Ensure footer text colors work correctly */
footer .text-primary-foreground\/70 {
  color: hsla(40, 25%, 97%, 0.7) !important;
}

footer .text-primary-foreground\/60 {
  color: hsla(40, 25%, 97%, 0.6) !important;
}

footer .border-primary-foreground\/20 {
  border-color: hsla(40, 25%, 97%, 0.2) !important;
}

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

.text-secondary {
  color: hsl(var(--secondary));
}

.text-secondary-foreground {
  color: hsl(var(--secondary-foreground));
}

.bg-muted {
  background-color: hsl(var(--muted));
}

.text-muted {
  color: hsl(var(--muted));
}

.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}

.border-border {
  border-color: hsl(var(--border));
}

.border-primary {
  border-color: hsl(var(--primary));
}

.border-secondary {
  border-color: hsl(var(--secondary));
}

.border-muted {
  border-color: hsl(var(--muted));
}

.bg-card {
  background-color: hsl(var(--card));
}

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

.text-card-foreground {
  color: hsl(var(--card-foreground));
}

.text-gold {
  color: hsl(var(--gold));
}

.bg-gold {
  background-color: hsl(var(--gold));
}

.border-gold {
  border-color: hsl(var(--gold));
}

.bg-gold-light {
  background-color: hsl(var(--gold-light));
}

.text-gold-light {
  color: hsl(var(--gold-light));
}

/* Luxury link hover effect */
.luxury-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s;
}

.luxury-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s;
}

.luxury-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Header Navigation Links */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
    transition: transform 0.4s ease;
  z-index: 1;
}

.nav-link:hover::before {
  transform: translateX(0);
    background: linear-gradient(90deg, transparent, hsl(var(--gold)), transparent);

}

.nav-link.active {
  color: hsl(var(--gold));
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
    background: linear-gradient(90deg, transparent, hsl(var(--gold)), transparent);
    transition: transform 0.4s ease;
  z-index: 2;
}

/* Header Scroll Effect */
#main-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#main-header.scrolled .bg-primary {
  border-bottom-width: 3px;
  border-color: hsl(var(--gold));
}

/* Button styles */
.luxury-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid hsl(var(--primary));
  background-color: transparent;
  color: hsl(var(--primary));
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.luxury-button:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.luxury-button-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.luxury-button-filled:hover {
  background-color: hsl(30, 15%, 12%);
}

/* Animation delays */
.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

.animate-delay-400 {
  animation-delay: 0.4s;
}

.animate-delay-500 {
  animation-delay: 0.5s;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Form styles */
input, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-family: inherit;
  transition: border-color 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: hsl(var(--gold));
}

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

/* Contact Form Styles */
.iletisim-form {
  width: 100%;
}

.iletisim-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.iletisim-form input,
.iletisim-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-family: inherit;
  transition: border-color 0.3s;
  font-size: 0.95rem;
}

.iletisim-form input:focus,
.iletisim-form textarea:focus {
  outline: none;
  border-color: hsl(var(--gold));
}

.iletisim-form input::placeholder,
.iletisim-form textarea::placeholder {
  color: hsl(var(--muted-foreground));
  opacity: 0.7;
}

.iletisim-form .form-group {
  margin-top: 1.5rem;
}

.iletisim-form .captcha {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.5rem;
}

.iletisim-form .captcha_image {
  cursor: pointer;
  border: 1px solid hsl(var(--border));
  transition: border-color 0.3s;
  height: 48px;
  width: auto;
}

.iletisim-form .captcha_image:hover {
  border-color: hsl(var(--gold));
}

.iletisim-form small {
  display: block;
  margin-top: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.cmt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.cmt-btn:hover {
  background-color: hsl(30, 15%, 12%);
  transform: translateY(-1px);
}

.cmt-btn:active {
  transform: translateY(0);
}

/* ============================================
   Tailwind Utility Classes
   ============================================ */

/* Additional Color Variables (using existing :root variables) */
:root {
  --color-background: hsl(var(--background));
  --color-foreground: hsl(var(--foreground));
  --color-primary: hsl(var(--primary));
  --color-primary-foreground: hsl(var(--primary-foreground));
  --color-secondary: hsl(var(--secondary));
  --color-secondary-foreground: hsl(var(--secondary-foreground));
  --color-muted: hsl(var(--muted));
  --color-muted-foreground: hsl(var(--muted-foreground));
  --color-border: hsl(var(--border));
  --color-gold: hsl(var(--gold));
  --color-gold-light: hsl(var(--gold-light));
  --color-card: hsl(var(--card));
  --color-card-foreground: hsl(var(--card-foreground));
}

/* Font Families */
.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.font-body {
  font-family: Inter, system-ui, sans-serif;
}

/* Ensure text visibility for body with text-foreground class */
body.text-foreground {
  color: hsl(var(--foreground));
}

body.text-foreground > * {
  color: inherit;
}

/* Gradient Utilities */
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-primary {
  --tw-gradient-from: hsl(30, 15%, 15%);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.from-primary\/60 {
  --tw-gradient-from: hsla(30, 15%, 15%, 0.6);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.from-primary\/80 {
  --tw-gradient-from: hsla(30, 15%, 15%, 0.8);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-primary {
  --tw-gradient-to: hsl(30, 15%, 15%);
  --tw-gradient-stops: var(--tw-gradient-from), hsl(30, 15%, 15%), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-primary\/40 {
  --tw-gradient-to: hsla(30, 15%, 15%, 0.4);
  --tw-gradient-stops: var(--tw-gradient-from), hsla(30, 15%, 15%, 0.4), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-primary\/20 {
  --tw-gradient-to: hsla(30, 15%, 15%, 0.2);
  --tw-gradient-stops: var(--tw-gradient-from), hsla(30, 15%, 15%, 0.2), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-primary\/60 {
  --tw-gradient-to: hsla(30, 15%, 15%, 0.6);
  --tw-gradient-stops: var(--tw-gradient-from), hsla(30, 15%, 15%, 0.6), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.to-primary {
  --tw-gradient-to: hsl(30, 15%, 15%);
}

.to-transparent {
  --tw-gradient-to: transparent;
}

.to-background {
  --tw-gradient-to: hsl(40, 25%, 97%);
}

/* Opacity Utilities */
.opacity-60 {
  opacity: 0.6;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-40 {
  opacity: 0.4;
}

/* Border with Opacity */
.border-gold\/20 {
  border-color: hsla(38, 50%, 45%, 0.2);
}

.border-gold\/30 {
  border-color: hsla(38, 50%, 45%, 0.3);
}

.border-white\/50 {
  border-color: rgba(255, 255, 255, 0.5);
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Text Colors */
.text-white {
  color: #ffffff;
}

.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-white\/60 {
  color: rgba(255, 255, 255, 0.6);
}

.text-white\/50 {
  color: rgba(255, 255, 255, 0.5);
}

.text-white\/40 {
  color: rgba(255, 255, 255, 0.4);
}

.text-white\/70 {
  color: rgba(255, 255, 255, 0.7);
}

.text-white\/90 {
  color: rgba(255, 255, 255, 0.9);
}

/* Background Colors */
.bg-white {
  background-color: #ffffff;
}

.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05);
}

.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hover States */
.hover\:bg-primary:hover {
  background-color: hsl(30, 15%, 15%);
}

.hover\:bg-primary\/90:hover {
  background-color: hsla(30, 15%, 15%, 0.9);
}

.hover\:bg-gold:hover {
  background-color: hsl(38, 50%, 45%);
  color: #ffffff;
}

.hover\:bg-gold\/90:hover {
  background-color: hsla(38, 50%, 45%, 0.9);
}

.hover\:bg-foreground:hover {
  background-color: hsl(30, 15%, 12%);
}

.hover\:bg-white:hover {
  background-color: #ffffff;
}

.hover\:bg-white\/10:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hover\:text-primary:hover {
  color: hsl(30, 15%, 15%);
}

.hover\:text-gold:hover {
  color: hsl(38, 50%, 45%);
}

.hover\:text-white:hover {
  color: #ffffff;
}

.hover\:text-white\/90:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hover\:opacity-80:hover {
  opacity: 0.8;
}

.hover\:border-gold\/30:hover {
  border-color: hsla(38, 50%, 45%, 0.3);
}

/* Group Hover */
.group:hover .group-hover\:text-gold {
  color: hsl(38, 50%, 45%);
}


.group:hover .group-hover\:opacity-80 {
  opacity: 0.8;
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

.group:hover .group-hover\:-translate-y-1 {
  transform: translateY(-0.25rem);
}

/* Preloader Styles */
#page-preloader {
  transition: opacity 0.5s ease-in-out;
}

#page-preloader.hidden {
  display: none;
}

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px);
    opacity: 0.7;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-bounce {
  animation: bounce 1.4s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.infinite-slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.infinite-slider-track {
  display: flex;
  width: max-content;
  animation: infiniteScroll 30s linear infinite;
}

.slider-item {
  flex-shrink: 0;
  width: 200px; /* عرض ثابت */
}

@keyframes infiniteScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.slider-item {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.slider-item:hover {
  transform: scale(1.05);
}

/* Navigation Dropdown Styles */
header ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

header ul li.group:hover ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

header ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* Dropdown menu items hover effect */
header ul li ul li {
  position: relative;
}

header ul li ul li a {
  position: relative;
  overflow: hidden;
}

header ul li ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, hsl(var(--gold)), transparent);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

header ul li ul li a:hover::before {
  transform: translateY(0);
}

header ul li ul li a:hover {
  background-color: hsla(38, 50%, 45%, 0.15) !important;
}

.text-white-title-collections{
    color: hsl(38, 50%, 45%) !important;

}
.texiinslider {
    justify-content: flex-start;
    display: flex;
    align-items: end;
    transform: translateY(112%);

}