/* ========================================
   LIVING STAGE - Premium Global Styles
   ======================================== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background-color: #c9a962;
  color: #0a0a0a;
}

/* ========================================
   LOADING SCREEN
   ======================================== */
#loader {
  pointer-events: none;
}

#loader.hidden {
  opacity: 0;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  background: transparent;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Mobile menu toggle animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile menu state */
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-parallax {
  transition: transform 0.1s ease-out;
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.5);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Reveal animations */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  animation: revealText 1s ease forwards;
}

.reveal-text:nth-child(1) { animation-delay: 0.5s; }
.reveal-text:nth-child(2) { animation-delay: 0.7s; }
.reveal-text:nth-child(3) { animation-delay: 0.9s; }
.reveal-text:nth-child(4) { animation-delay: 1.1s; }
.reveal-text:nth-child(5) { animation-delay: 1.3s; }

.reveal-title {
  opacity: 0;
  animation: revealTitle 1.2s ease forwards;
  animation-delay: 0.3s;
}

@keyframes revealText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealTitle {
  0% {
    opacity: 0;
    transform: translateY(50px);
    letter-spacing: 0.5em;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.05em;
  }
}

/* ========================================
   FADE IN ANIMATION
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered fade-in */
.fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ========================================
   AREA ACCORDION
   ======================================== */
.area-accordion-item.active .area-accordion-icon {
  transform: rotate(180deg);
}

.area-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.area-accordion-item.active .area-accordion-content {
  max-height: 500px;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #c9a962;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4ba7a;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

/* ========================================
   FORM STYLES
   ======================================== */
input, textarea, select {
  background: #1a1a1a;
  border: 1px solid rgba(85, 85, 85, 0.3);
  color: #ffffff;
  padding: 1rem 1.25rem;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #c9a962;
  box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.2);
}

input::placeholder, textarea::placeholder {
  color: #555555;
}

/* ========================================
   BUTTON STYLES
   ======================================== */
.btn-gold {
  background: #c9a962;
  color: #0a0a0a;
  padding: 1rem 2.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: #d4ba7a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 169, 98, 0.3);
}

.btn-outline {
  border: 1px solid #c9a962;
  color: #c9a962;
  padding: 1rem 2.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #c9a962;
  color: #0a0a0a;
}

/* ========================================
   RESPONSIVE TABLE
   ======================================== */
@media (max-width: 640px) {
  table th,
  table td {
    display: block;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  table th {
    padding-bottom: 0.25rem !important;
  }
  
  table td {
    padding-top: 0.25rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* ========================================
   IMAGE HOVER EFFECTS
   ======================================== */
.img-hover-zoom {
  overflow: hidden;
}

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

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

/* ========================================
   MAGNETIC BUTTON EFFECT
   ======================================== */
.magnetic-btn {
  transition: transform 0.3s ease;
}

/* ========================================
   FOCUS STYLES
   ======================================== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #c9a962;
  outline-offset: 4px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .header,
  .mobile-menu,
  .menu-toggle,
  #loader {
    display: none !important;
  }
  
  section {
    page-break-inside: avoid;
    padding: 2rem 0 !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* ========================================
   WORKS PAGE STYLES
   ======================================== */
.works-grid-item {
  position: relative;
  overflow: hidden;
}

.works-grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.works-grid-item:hover::after {
  opacity: 1;
}

.works-grid-item .works-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 1;
}

.works-grid-item:hover .works-info {
  transform: translateY(0);
}

/* ========================================
   CONTACT FORM STYLES
   ======================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  color: #c9a962;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.form-label .required {
  color: #e53935;
  margin-left: 0.25rem;
}
