/* AnDesign Interior - Clean Enhanced Animations */

:root {
  --gold: #C5A059;
  --dark: #1A1A1A;
  --gray: #2D2D2D;
  --cream: #F9F7F2;
  --ease-luxury: cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--dark);
  color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
.font-serif { font-family: 'Cormorant Garamond', serif; }
.font-sans { font-family: 'Montserrat', sans-serif; }

/* Colors */
.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }
.text-dark { color: var(--dark); }
.bg-dark { background-color: var(--dark); }
.bg-gray { background-color: var(--gray); }
.text-cream { color: var(--cream); }
.bg-cream { background-color: var(--cream); }

/* Custom Cursor */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 8px; height: 8px; background: var(--gold); }
.cursor-outline { width: 40px; height: 40px; border: 1px solid rgba(197, 160, 89, 0.6); transition: all 0.3s var(--ease-luxury); }

@media (pointer: fine) { body { cursor: none; } }
@media (pointer: coarse) { .cursor-dot, .cursor-outline { display: none !important; } body { cursor: auto; } }

/* Page Transition */
.page-transition {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--dark);
  z-index: 9998;
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 0.6s var(--ease-luxury);
}
.page-transition.active { transform: translateY(0); pointer-events: all; }

/* Language Switcher */
.lang-switcher { position: relative; z-index: 50; }
.lang-dropdown {
  position: absolute;
  top: 100%; right: 0;
  margin-top: 0.5rem;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s var(--ease-luxury);
  min-width: 120px;
}
.lang-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: block;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  cursor: pointer;
}
.lang-option:hover { background: rgba(197, 160, 89, 0.2); color: var(--gold); }
.lang-option.active { background: rgba(197, 160, 89, 0.3); color: var(--gold); }

/* Navigation */
.nav-link { position: relative; transition: color 0.3s ease; }
.nav-link::after {
  content: '';
  position: absolute;
  width: 0; height: 1px;
  bottom: -2px; left: 0;
  background: var(--gold);
  transition: width 0.3s var(--ease-luxury);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Mobile Menu */
#mobile-menu { transform: translateX(100%); transition: transform 0.5s var(--ease-luxury); }
#mobile-menu.open { transform: translateX(0); }

/* Feature Cards */
.feature-card { 
  transition: all 0.5s var(--ease-luxury);
}
.feature-card:hover { 
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Testimonials */
.testimonial-slide { 
  opacity: 0; 
  position: absolute; 
  top: 0; left: 0; right: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(20px);
}
.testimonial-slide.active { 
  opacity: 1; 
  position: relative;
  transform: translateY(0);
}

/* Team Cards */
.team-card { position: relative; overflow: hidden; transition: transform 0.4s var(--ease-luxury); }
.team-card:hover { transform: translateY(-5px); }
.team-card img { filter: grayscale(100%); transition: all 0.6s ease; }
.team-card:hover img { filter: grayscale(0%); transform: scale(1.05); }
.team-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.9), transparent);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-luxury);
}
.team-card:hover .team-info { transform: translateY(0); }

/* Timeline */
.timeline-line { 
  position: absolute; 
  left: 50%; 
  top: 0; 
  bottom: 0; 
  width: 2px; 
  background: rgba(197, 160, 89, 0.3);
  transform: translateX(-50%);
}
.timeline-dot { 
  position: absolute; 
  left: 50%; 
  width: 12px; 
  height: 12px; 
  background: var(--gold); 
  border-radius: 50%; 
  transform: translateX(-50%);
  border: 3px solid var(--dark);
}

/* Service Accordion */
.service-accordion { border-bottom: 1px solid rgba(255,255,255,0.1); }
.service-content { 
  max-height: 0; 
  overflow: hidden; 
  transition: max-height 0.5s var(--ease-luxury), opacity 0.3s ease;
  opacity: 0;
}
.service-accordion.active .service-content { max-height: 500px; opacity: 1; }
.service-accordion.active .service-icon { transform: rotate(45deg); }
.service-icon { transition: transform 0.3s var(--ease-luxury); }

/* Pricing Cards */
.pricing-card { transition: all 0.4s var(--ease-luxury); }
.pricing-card:hover { 
  transform: translateY(-10px); 
  border-color: var(--gold);
}
.pricing-card.featured { border-color: var(--gold); transform: scale(1.02); }

/* Project Filter */
.filter-btn { transition: all 0.3s var(--ease-luxury); position: relative; overflow: hidden; }
.filter-btn.active { color: var(--dark); background: var(--gold); border-color: var(--gold); }
.filter-btn:hover:not(.active) { border-color: var(--gold); color: var(--gold); }

.project-item { transition: all 0.5s var(--ease-luxury); }
.project-item.hidden { display: none !important; }
.project-item:hover .project-overlay { opacity: 1; }
.project-item:hover img { transform: scale(1.05); }
.project-overlay { transition: opacity 0.4s ease; opacity: 0; }
.project-item img { transition: transform 0.6s var(--ease-luxury); }

/* Process Steps */
.process-step { position: relative; }
.process-number {
  font-size: 6rem;
  font-family: 'Cormorant Garamond', serif;
  color: rgba(197, 160, 89, 0.1);
  position: absolute;
  top: -1rem; left: 0;
  z-index: 0;
  line-height: 1;
  font-weight: 600;
}
.process-content { position: relative; z-index: 1; }

/* Progress Bar */
.progress-bar { 
  position: fixed; 
  top: 0; left: 0; 
  height: 3px; 
  background: var(--gold); 
  z-index: 100; 
  width: 0%;
  transition: width 0.1s;
}

/* Form Styles */
.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding: 1rem 0;
  color: white;
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  transition: border-color 0.3s ease;
}
.form-input:focus { outline: none; border-bottom-color: var(--gold); border-bottom-width: 2px; }
.form-input::placeholder { color: rgba(255,255,255,0.5); }
.form-label {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Scroll Reveal */
.reveal-up, .scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-luxury), transform 0.6s var(--ease-luxury);
}
.reveal-up.active, .scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.3em;
}
.loading-logo span { color: #fff; }
.loading-line {
  width: 0;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem 0;
  animation: expandLine 1s ease 0.5s forwards;
}
@keyframes expandLine { to { width: 150px; } }

/* Utility */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s var(--ease-luxury);
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: white; transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); color: white; }
.btn-outline:hover { background: white; color: var(--dark); border-color: white; }

/* Masonry Grid */
.masonry-grid { position: relative; width: 100%; }
.project-item { position: absolute; width: calc(33.333% - 16px); }
@media (max-width: 1024px) { .project-item { width: calc(50% - 12px); } }
@media (max-width: 640px) { .project-item { position: relative; width: 100%; margin-bottom: 1.5rem; } }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}