/* ============================================
   ODALLO GUITARS - PREMIUM LUXURY WEBSITE
   Clean & Well-Organized CSS
   ============================================ */

/* -------------------------------------------
   BASE / GLOBAL STYLES
------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #0a0a0a;
  color: #F5EDE0;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

/* Selection & Scrollbar */
::selection {
  background: #C9A86C;
  color: #0a0a0a;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: #C9A86C;
  border-radius: 4px;
}

/* -------------------------------------------
   TYPOGRAPHY & GRADIENTS
------------------------------------------- */
.text-gold-gradient {
  background: linear-gradient(135deg, #E8C39E 0%, #C9A86C 50%, #A67C52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-tag {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
}


 /* Logo hidden by default – only appears after scroll */
#navbar a img {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

#navbar.nav-scrolled a img {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* -------------------------------------------
   NAVIGATION (Premium Version)
------------------------------------------- */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #C9A86C;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #C9A86C, #E8C39E);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
  width: 55%;
}

.nav-scrolled {
  background: rgba(10, 10, 10, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 108, 0.15);
}

/* -------------------------------------------
   HERO SECTION
------------------------------------------- */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.75) 40%,
    rgba(10, 10, 10, 0.85) 100%
  );
}

#home h1 {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.deco-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, #C9A86C, transparent);
}

/* -------------------------------------------
   CARDS & HOVER EFFECTS
------------------------------------------- */
.luxury-card {
  background: linear-gradient(145deg, #141414 0%, #0f0f0f 100%);
  border: 1px solid rgba(201, 168, 108, 0.15);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-card:hover {
  border-color: rgba(201, 168, 108, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(201, 168, 108, 0.15);
}

.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
  transform: scale(1.08);
}

/* -------------------------------------------
   BUTTONS
------------------------------------------- */
.btn-gold {
  background: linear-gradient(135deg, #C9A86C 0%, #A67C52 100%);
  color: #0a0a0a;
  font-weight: 500;
  letter-spacing: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #E8C39E 0%, #C9A86C 100%);
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 
              0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.btn-outline {
  border: 1px solid rgba(201, 168, 108, 0.5);
  color: #C9A86C;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(201, 168, 108, 0.1);
  border-color: #C9A86C;
}

/* -------------------------------------------
   SERVICES & LIST ITEMS
------------------------------------------- */
.service-item {
  border-bottom: 1px solid rgba(201, 168, 108, 0.1);
  transition: background 0.3s ease;
}

.service-item:hover {
  background: rgba(201, 168, 108, 0.04);
}

/* -------------------------------------------
   ANIMATIONS
------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Only animate after the loading screen is finished */
body.page-loaded .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------
   PREMIUM MOBILE MENU
------------------------------------------- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu.open .mobile-link {
  animation: mobileLinkIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.18s; }
.mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.26s; }
.mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.34s; }

@keyframes mobileLinkIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------
   SECTION DIVIDERS
------------------------------------------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 108, 0.4), transparent);
}

/* ============================================
   CAROUSEL – Shared base
============================================ */
.carousel-track {
  border-radius: 2px;
  overflow: hidden;
}

.carousel-track img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-track img.active {
  opacity: 1;
  z-index: 1;
  transform: scale(1.05);
}

.img-zoom.luxury-card {
  border: 1px solid rgba(201, 168, 108, 0.18);
  box-shadow: 
    0 0 0 1px rgba(201, 168, 108, 0.06),
    0 25px 50px -12px rgba(0, 0, 0, 0.55),
    inset 0 0 40px rgba(201, 168, 108, 0.025);
}

/* ============================================
   SERVICES CAROUSEL – Editorial / Workshop style
============================================ */
#carousel-dots .carousel-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(201, 168, 108, 0.35);
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

#carousel-dots .carousel-dot.active {
  width: 6px;
  height: 6px;
  background: #C9A86C;
  box-shadow: 0 0 10px rgba(201, 168, 108, 0.7);
  transform: scale(1.4);
}

/* Full-height minimal side arrows */
#carousel-prev,
#carousel-next {
  background: transparent !important;
  border: none !important;
  width: 3.5rem !important;
  height: auto !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  border-radius: 0 !important;
}

#carousel-prev:hover,
#carousel-next:hover {
  background: rgba(0, 0, 0, 0.35) !important;
  border: none !important;
  color: #E8C39E !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ============================================
   ACCESSORIES CAROUSEL – Classic luxury pills
============================================ */
#accessories-dots .carousel-dot {
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: rgba(201, 168, 108, 0.25);
  border: none;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

#accessories-dots .carousel-dot.active {
  width: 36px;
  background: linear-gradient(90deg, #C9A86C, #E8C39E);
  box-shadow: 0 0 12px rgba(201, 168, 108, 0.5);
  transform: none;
}

#accessories-prev,
#accessories-next {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 168, 108, 0.4);
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(12px);
  color: #C9A86C;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#accessories-prev:hover,
#accessories-next:hover {
  background: rgba(201, 168, 108, 0.15);
  border-color: #C9A86C;
  color: #F5EDE0;
  box-shadow: 0 0 20px rgba(201, 168, 108, 0.25);
  transform: translateY(-50%) scale(1.08);
}

/* -------------------------------------------
   HERO PARALLAX / TILT EFFECT  .hero-parallax-img.parallax-active {
  animation: none !important;
}
------------------------------------------- */
.hero-parallax-img {
  transform: scale(1.12);
  transform-origin: center center;
  object-position: center center;
  will-change: transform;
  transition: transform 0.12s ease-out;
  animation: heroKenBurns 32s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0%   { transform: scale(1.12) translate(0%, 0%); }
  100% { transform: scale(1.18) translate(-0.8%, -0.4%); }
}

.hero-parallax-img.parallax-active {
  animation: none;
}

@media (max-width: 768px) {
  .hero-parallax-img {
    transform: scale(1.20);
    object-position: center center;
  }
  @keyframes heroKenBurns {
    0%   { transform: scale(1.20) translate(0%, 0%); }
    100% { transform: scale(1.26) translate(-0.8%, -0.5%); }
  }
}

/* -------------------------------------------
   HERO – Strong Mobile Fixes
------------------------------------------- */
@media (max-width: 430px) {
  .hero-label {
    font-size: 12px !important;
    letter-spacing: 0.18em !important;
    font-weight: 400 !important;
  }

  .hero-title {
    font-size: 2.2rem !important;
    line-height: 1.05 !important;
    margin-bottom: 0.9rem !important;
    font-weight: 400 !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    margin-top: 1.4rem !important;
  }

  .hero-buttons {
    margin-top: 4rem !important;
    gap: 0.6rem !important;
  }

  .hero-buttons .btn-gold,
  .hero-buttons .btn-outline {
    padding: 0.75rem 1.35rem !important;
    font-size: 0.68rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: 2rem !important;
  }

  .hero-label {
    font-size: 9px !important;
  }
}

/* Warm color tint on hero image – mobile only  

@media (max-width: 768px) {
  #home .absolute.inset-0::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      rgba(201, 168, 108, 0.18) 0%,
      rgba(139, 69, 19, 0.12) 50%,
      rgba(10, 10, 10, 0.25) 100%
    );
    pointer-events: none;
    z-index: 1;
  }
}*/


/* -------------------------------------------
   ELEGANT LOADING SCREEN
------------------------------------------- */
#loader {
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loader-logo {
  transition: opacity 1s ease 0.2s;
}

#loader-logo.show {
  opacity: 1;
}

#loader-line {
  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#loader-line.animate {
  transform: scaleX(1);
}

/* -------------------------------------------
   HERO WORD-BY-WORD REVEAL (slower)
------------------------------------------- */
.hero-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(32px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              filter 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  margin-right: 0.28em;
}

.hero-word:last-child {
  margin-right: 0;
}

.hero-title.animate .hero-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Slower stagger */
.hero-title.animate .hero-word:nth-child(1) { transition-delay: 0.3s; }
.hero-title.animate .hero-word:nth-child(2) { transition-delay: 0.6s; }
.hero-title.animate .hero-word:nth-child(3) { transition-delay: 1.0s; }
.hero-title.animate .hero-word:nth-child(4) { transition-delay: 1.4s; }


/* -------------------------------------------
   GOLD LINE DRAWING (slower)
------------------------------------------- */
.deco-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, #C9A86C, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.deco-line.drawn {
  transform: scaleX(1);
}

/* -------------------------------------------
   TYPEWRITER EFFECT
------------------------------------------- */
#typewriter {
  display: inline;
}

.type-cursor {
  display: inline-block;
  color: #C9A86C;
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* -------------------------------------------
   FLOATING SCROLL INDICATOR
------------------------------------------- */
.scroll-indicator {
  animation: floatY 2.8s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, #C9A86C, transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: #E8C39E;
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

@keyframes scrollPulse {
  0%   { transform: translateY(-100%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(250%); opacity: 0; }
}

/* -------------------------------------------
   STAGGERED SERVICE ITEMS
------------------------------------------- */
.service-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-item.show {
  opacity: 1;
  transform: translateX(0);
}

/* -------------------------------------------
   IMAGE REVEAL – Soft scale from center
------------------------------------------- */
.img-reveal img {
  transform: scale(1.18);
  opacity: 0;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
  will-change: transform, opacity;
}

.img-reveal.revealed img {
  transform: scale(1);
  opacity: 1;
}

/* -------------------------------------------
   RESTORATION CARD CAROUSELS
------------------------------------------- */
#restore-card-dots .carousel-dot,
#refinish-card-dots .carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(201, 168, 108, 0.35);
  border: none;
  transition: all 0.4s ease;
  cursor: pointer;
}

#restore-card-dots .carousel-dot.active,
#refinish-card-dots .carousel-dot.active {
  background: #C9A86C;
  box-shadow: 0 0 8px rgba(201, 168, 108, 0.6);
  transform: scale(1.3);
}

/* Hamburger lines – appear one by one */
.ham-line {
  display: block;
  opacity: 0;
  transform: scaleX(0);
  transition: none;
}

.page-loaded .ham-line-1 {
  animation: hamIn 0.5s ease forwards 0.6s;
}
.page-loaded .ham-line-2 {
  animation: hamIn 0.5s ease forwards 0.8s;
}
.page-loaded .ham-line-3 {
  animation: hamIn 0.5s ease forwards 1.0s;
}

@keyframes hamIn {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Gentle shake every few seconds */
.page-loaded #menu-btn {
  animation: hamShake 5s ease-in-out 2.5s infinite;
}

@keyframes hamShake {
  0%, 88%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(8deg); }
  92% { transform: rotate(-8deg); }
  94% { transform: rotate(6deg); }
  96% { transform: rotate(-4deg); }
  98% { transform: rotate(2deg); }
}