@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --off-white: #F5F7FA;
  --pure-white: #FFFFFF;
  --charcoal: #1A1D24;
  --slate: #4A5568;
  --light-slate: #94A3B8;
  --border-light: #E5E7EB;
  --metallic-gold: #A66A0E;
  --gold-light: #B87A1E;
  --gold-dark: #8A5808;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Manrope', system-ui, sans-serif;
  background-color: var(--off-white);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--metallic-gold);
  color: var(--pure-white);
}

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

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--slate);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--metallic-gold);
}

/* Page Transition Overlay */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--pure-white);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

/* Typography */
.font-display {
  font-family: 'Manrope', sans-serif;
}

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

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

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

/* Premium Cards */
.premium-card {
  background: var(--pure-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.premium-card:hover {
  border-color: rgba(200, 164, 93, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--pure-white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
  color: var(--charcoal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--metallic-gold);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

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

.nav-link:hover {
  color: var(--metallic-gold);
}

/* Hero Section */
.hero-section {
  position: relative;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(200, 164, 93, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 93, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
}

.hero-geometric {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-geometric-shape {
  position: absolute;
  border: 1px solid rgba(200, 164, 93, 0.15);
  border-radius: 50%;
  animation: floatGentle 20s ease-in-out infinite;
}

.hero-geometric-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.hero-geometric-shape:nth-child(2) {
  width: 300px;
  height: 300px;
  top: 50%;
  right: -3%;
  animation-delay: -5s;
}

.hero-geometric-shape:nth-child(3) {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 20%;
  animation-delay: -10s;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
  50% { transform: translateY(-20px) rotate(5deg); opacity: 0.8; }
}

.hero-line-accent {
  position: absolute;
  width: 1px;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--metallic-gold), transparent);
  animation: lineFloat 8s ease-in-out infinite;
}

.hero-line-accent:nth-child(1) { left: 15%; animation-delay: 0s; }
.hero-line-accent:nth-child(2) { right: 20%; animation-delay: -3s; }

@keyframes lineFloat {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-30px); }
}

/* Section Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
}

/* Gold Accent Line */
.gold-accent-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--metallic-gold), transparent);
}

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--pure-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--metallic-gold), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery-container {
  position: relative;
}

.gallery-fade-left,
.gallery-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

.gallery-fade-left {
  left: 0;
  background: linear-gradient(90deg, var(--off-white), transparent);
}

.gallery-fade-right {
  right: 0;
  background: linear-gradient(-90deg, var(--off-white), transparent);
}

.gallery-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 350px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover img {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pure-white);
  border: 1px solid rgba(200, 164, 93, 0.3);
  color: var(--metallic-gold);
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn:hover {
  background: var(--metallic-gold);
  color: var(--pure-white);
  transform: translateY(-50%) scale(1.05);
}

.gallery-nav-btn.prev { left: 20px; }
.gallery-nav-btn.next { right: 20px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(245, 247, 250, 0.98);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.lightbox-caption {
  text-align: center;
  margin-top: 20px;
}

.lightbox-caption h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.lightbox-caption p {
  color: var(--slate);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--pure-white);
  border: 1px solid rgba(200, 164, 93, 0.3);
  border-radius: 50%;
  color: var(--charcoal);
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.lightbox-close:hover {
  background: var(--metallic-gold);
  color: var(--pure-white);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: var(--pure-white);
  border: 1px solid rgba(200, 164, 93, 0.3);
  border-radius: 50%;
  color: var(--metallic-gold);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.lightbox-nav:hover {
  background: var(--metallic-gold);
  color: var(--pure-white);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--slate);
  font-size: 0.875rem;
  letter-spacing: 2px;
}

/* Timeline - Vertical Alternating Layout */
.timeline-item {
  position: relative;
}

.timeline-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.6;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--metallic-gold);
  color: var(--pure-white);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.5px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--metallic-gold);
}

.btn-primary:hover {
  background: transparent;
  color: var(--metallic-gold);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.5px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid rgba(26, 29, 36, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  border-color: var(--metallic-gold);
  color: var(--metallic-gold);
  transform: translateY(-2px);
}

/* Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 100px 0;
}

/* Stats Counter */
.stat-number {
  font-family: 'Manrope', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--metallic-gold);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--slate);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Image Overlay */
.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.image-overlay img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Footer */
.footer {
  background: var(--pure-white);
  border-top: 1px solid var(--border-light);
}

.footer-link {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9375rem;
}

.footer-link:hover {
  color: var(--metallic-gold);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--pure-white);
  z-index: 9998;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 40px;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 29, 36, 0.5);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  padding: 16px 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--metallic-gold);
  padding-left: 10px;
}

/* Gallery Filter Buttons */
.gallery-filter-btn {
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.gallery-filter-btn.active {
  background: var(--metallic-gold) !important;
  color: var(--pure-white) !important;
  border-color: var(--metallic-gold);
}

/* Background Sections */
.bg-light-section {
  background: var(--pure-white);
}

.bg-subtle-section {
  background: var(--off-white);
}

/* Text Colors */
.text-primary {
  color: var(--charcoal);
}

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

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

/* Border Colors */
.border-light {
  border-color: var(--border-light);
}

/* Responsive */
@media (max-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }
  
  .gallery-item {
    flex: 0 0 280px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .timeline-item {
    flex: 0 0 220px;
  }
  
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}