/* ============================================
   BuildEase Design - Custom Styles
   Dark | Bold | Futuristic | Elegant
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --gold: #d4a843;
  --gold-light: #f5d061;
  --gold-dark: #b8922e;
  --bg-primary: #0a0a0b;
  --bg-secondary: #111114;
  --bg-card: #16161a;
  --bg-elevated: #1c1c22;
  --text-primary: #f0f0f0;
  --text-secondary: #9a9a9a;
  --text-muted: #6a6a6a;
  --border-color: rgba(212, 168, 67, 0.15);
  --border-glow: rgba(212, 168, 67, 0.4);
  --gradient-gold: linear-gradient(135deg, #d4a843, #f5d061, #b8922e);
  --gradient-dark: linear-gradient(180deg, #1a1a1e, #0a0a0b);
  --gradient-card: linear-gradient(145deg, #16161a, #111114);
}

/* ---------- Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--bg-primary);
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--gold);
  color: var(--bg-primary);
}

/* ---------- Gold Gradient Text ---------- */
.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Glow Effects ---------- */
.glow-gold {
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.15), 0 0 60px rgba(212, 168, 67, 0.05);
}

.glow-gold-strong {
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.3), 0 0 80px rgba(212, 168, 67, 0.1);
}

.text-glow {
  text-shadow: 0 0 40px rgba(212, 168, 67, 0.3), 0 0 80px rgba(212, 168, 67, 0.1);
}

/* ---------- Navbar ---------- */
.navbar-docked {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1200px;
  background: rgba(22, 22, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-docked.scrolled {
  background: rgba(22, 22, 26, 0.95);
  border-color: var(--border-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 168, 67, 0.08);
  top: 10px;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

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

/* ---------- Logo ---------- */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a1a1e, #0d0d0f);
  border: 1px solid rgba(212, 168, 67, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(212, 168, 67, 0.1);
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 10, 11, 0.5) 0%,
    rgba(10, 10, 11, 0.7) 50%,
    rgba(10, 10, 11, 0.95) 100%
  );
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroBgZoom 25s ease-in-out infinite alternate;
}

@keyframes heroBgZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 168, 67, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 67, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---------- Section Styles ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label-line {
  width: 40px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.8;
}

/* ---------- Cards ---------- */
.card-dark {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-dark:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(212, 168, 67, 0.08);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.card-dark:hover .card-icon {
  background: rgba(212, 168, 67, 0.15);
  border-color: rgba(212, 168, 67, 0.3);
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.1);
}

/* ---------- Service Card Image ---------- */
.service-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 24px;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.service-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 11, 0.8) 100%);
}

/* ---------- Stats ---------- */
.stat-item {
  text-align: center;
  padding: 28px 20px;
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.4s ease;
}

.gallery-item:hover {
  border-color: var(--border-glow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 11, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 67, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-outline:hover {
  background: rgba(212, 168, 67, 0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.15);
}

/* ---------- Contact Form ---------- */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
.footer-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-link {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  text-decoration: none;
}

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

/* ---------- Page Header / Breadcrumb ---------- */
.page-header {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(212, 168, 67, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 67, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---------- Counter Animation ---------- */
.counter {
  display: inline-block;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 11, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

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

.mobile-menu a {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.05em;
}

.mobile-menu a:hover {
  color: var(--gold-light);
}

/* Mobile Services Submenu */
.mobile-services-submenu button {
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-services-submenu .mobile-services-links {
  display: none;
  flex-direction: column;
  gap: 2px;
}
.mobile-services-submenu.open .mobile-services-links {
  display: flex;
}
.mobile-services-submenu.open button svg {
  transform: rotate(180deg);
}
.mobile-services-submenu .mobile-services-links a {
  padding: 6px 0 6px 12px;
  font-size: 0.875rem;
  color: #9a9a9a;
}

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- Divider ---------- */
.divider-gold {
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 3px;
  margin: 16px 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

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

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.lightbox.open img {
  transform: scale(1);
}

/* ---------- Timeline ---------- */
.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: 40px;
  border-left: 2px solid var(--border-color);
}

.timeline-item:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.3);
}

/* ---------- Process Steps ---------- */
.process-step {
  position: relative;
  text-align: center;
}

.process-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(212, 168, 67, 0.15), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 4rem;
  font-family: serif;
  color: rgba(212, 168, 67, 0.12);
  line-height: 1;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(212, 168, 67, 0.15);
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.2);
}

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- Floating Elements ---------- */
.float-animation {
  animation: floatY 6s ease-in-out infinite;
}

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

.float-animation-delayed {
  animation: floatY 6s ease-in-out 2s infinite;
}

/* ---------- Pulse Ring ---------- */
.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--gold);
  opacity: 0;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}

/* ---------- Marquee ---------- */
.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .navbar-docked {
    width: calc(100% - 24px);
    padding: 10px 16px;
    top: 10px;
    border-radius: 12px;
  }

  .hamburger {
    display: flex;
  }

  .nav-desktop-links {
    display: none !important;
  }

  .hero-section {
    min-height: 100svh;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
}

/* ---------- Utility ---------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
