/* ========== CUSTOM STYLES ========== */

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .service-card,
  .reveal {
    transition: none;
    animation: none;
  }
  .geo-shape {
    animation: none;
  }
  img {
    transition: none;
  }
}

/* ========== NAVBAR ========== */
#navbar {
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(10, 31, 63, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ========== MOBILE MENU ========== */
#mobileMenu {
  transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobileMenu.open {
  max-height: 400px;
  padding-bottom: 1rem;
}

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
}

/* ========== HERO GEOMETRIC SHAPES ========== */
.geo-shape {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.geo-circle-1 {
  width: 400px;
  height: 400px;
  border: 2px solid #C99529;
  border-radius: 50%;
  top: -100px;
  right: -80px;
  animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
  width: 200px;
  height: 200px;
  background: #C99529;
  border-radius: 50%;
  bottom: 15%;
  left: 5%;
  animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 120px;
  height: 120px;
  border: 2px solid #E0BC5E;
  border-radius: 50%;
  top: 40%;
  right: 35%;
  animation: float 10s ease-in-out infinite;
}

.geo-rect-1 {
  width: 80px;
  height: 80px;
  background: #C99529;
  top: 25%;
  left: 15%;
  transform: rotate(45deg);
  animation: spin 15s linear infinite;
}

.geo-rect-2 {
  width: 60px;
  height: 60px;
  border: 2px solid #E0BC5E;
  bottom: 25%;
  right: 10%;
  transform: rotate(30deg);
  animation: spin 20s linear infinite reverse;
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C99529, #E0BC5E);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

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

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-active .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Staggered delays for children */
.js-active .reveal:nth-child(1) { transition-delay: 0.1s; }
.js-active .reveal:nth-child(2) { transition-delay: 0.2s; }
.js-active .reveal:nth-child(3) { transition-delay: 0.3s; }
.js-active .reveal:nth-child(4) { transition-delay: 0.4s; }

/* ========== BACK TO TOP ========== */
#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ========== GALLERY HOVER ========== */
.relative.group {
  overflow: hidden;
}

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

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

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

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

/* ========== FORM FOCUS STATES ========== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(201, 149, 41, 0.15);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 640px) {
  .geo-circle-1 {
    width: 250px;
    height: 250px;
  }

  .geo-circle-2 {
    width: 120px;
    height: 120px;
  }

  .geo-circle-3 {
    display: none;
  }

  .geo-rect-1 {
    width: 50px;
    height: 50px;
  }

  .geo-rect-2 {
    display: none;
  }
}
