/* High-End Visual Design - Atelier Architecture */
@layer base {
  html, body {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #1A1816;
    border-radius: 10px;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Modal specific overrides */
#fabricationModal.opacity-100 {
    opacity: 1;
}

/* Custom table styling for modal */
table {
    border-collapse: separate;
    border-spacing: 0;
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Reveal Animations */
.stagger-reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  filter: blur(10px);
  transition: all 1s cubic-bezier(0.32, 0.72, 0, 1);
}

.stagger-reveal.appear {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* Fluid Island Navigation Overlay */
#mobileMenu.active {
  opacity: 1;
  pointer-events: auto;
}

#menuTrigger.active .line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
  background: #FDFBF7;
}

#menuTrigger.active .line:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
  background: #FDFBF7;
}

/* Glassmorphism Refinement */
.glass-pill {
  box-shadow: 0 1px 1px rgba(255,255,255,0.8) inset, 0 20px 40px -20px rgba(0,0,0,0.1);
}

/* Magnetic Hover Tension - CTA Buttons */
.btn-main:active {
  transform: scale(0.96);
}

.btn-main:hover div {
  transform: rotate(45deg) scale(1.1);
}

/* Image Hover Distortion (Simulation) */
.project-card:hover img {
  transform: scale(1.05);
}

/* Staggered Delay Generator */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }

/* Desktop Hover Navigation */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #C2410C;
  transition: width 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

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

/* Section Transitions */
section {
  position: relative;
  z-index: 10;
}

/* Horizontal Scroll Container Snapping */
.horizontal-scroll-container {
  scroll-snap-type: x mandatory;
}

.project-card {
  scroll-snap-align: center;
}

/* Custom Typography Weights */
h1, h2, h3 {
  font-weight: 400; /* For Serif fonts to look light and elegant */
}

/* Form refinement */
#premiumForm input, #premiumForm textarea {
  transition: border-color 0.4s ease;
}

#premiumForm input:focus, #premiumForm textarea:focus {
  border-bottom-color: #C2410C;
}

/* Mobile Specific Refinements */
@media (max-width: 768px) {
    .stagger-reveal {
        transform: translateY(20px) scale(1); /* Less aggressive on mobile */
    }
    
    section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    h1 {
        line-height: 1.0;
        margin-bottom: 2rem;
    }
    
    h2 {
      font-size: 3rem;
    }

    .menu-item {
        font-size: 2.5rem;
    }
}
