/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #FDF8F0;
  color: #1F1D1B;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== GEOMETRIC BACKGROUND SHAPES ===== */
.geo-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}

.shape-circle-1 {
  width: 600px;
  height: 600px;
  background: #E8551A;
  border-radius: 50%;
  top: -200px;
  right: -200px;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 300px solid transparent;
  border-right: 300px solid transparent;
  border-bottom: 520px solid #D4AB4A;
  top: 40%;
  left: -150px;
  transform: rotate(-15deg);
}

.shape-circle-2 {
  width: 400px;
  height: 400px;
  background: #E8551A;
  border-radius: 50%;
  bottom: -100px;
  left: 30%;
}

.shape-rect {
  width: 200px;
  height: 500px;
  background: #D4AB4A;
  top: 30%;
  right: 5%;
  transform: rotate(25deg);
}

/* ===== GEO PATTERN ===== */
.geo-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, currentColor 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, currentColor 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.03;
}

.pattern-light {
  opacity: 0.08;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

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

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

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

@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

@keyframes heroTitleIn {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-60px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(60px); }
  100% { opacity: 1; transform: translateX(0); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 8s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 20s linear infinite; }
.animate-pulse-slow { animation: pulse-slow 4s ease-in-out infinite; }
.animate-scroll-line { animation: scroll-line 2s ease-in-out infinite; }

/* ===== HERO TITLE ANIMATION ===== */
.hero-title {
  animation: heroTitleIn 1s ease-out forwards;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal.slide-left {
  transform: translateX(-60px);
}

.reveal.slide-left.revealed {
  transform: translateX(0);
}

.reveal.slide-right {
  transform: translateX(60px);
}

.reveal.slide-right.revealed {
  transform: translateX(0);
}

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

#navbar.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
  padding: 0;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E8551A;
  transition: width 0.3s ease;
}

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

/* ===== MOBILE MENU ===== */
#mobileMenu {
  transition: opacity 0.5s ease, pointer-events 0.5s ease;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  transform: translateY(20px);
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #E8551A, #D4AB4A);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

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

/* ===== GALLERY ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 85, 26, 0.3), rgba(212, 171, 74, 0.2));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

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

::-webkit-scrollbar-track {
  background: #FDF8F0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #E8551A, #D4AB4A);
  border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
  background: #E8551A;
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .shape-circle-1 {
    width: 300px;
    height: 300px;
  }

  .shape-triangle {
    border-left-width: 150px;
    border-right-width: 150px;
    border-bottom-width: 260px;
  }

  .shape-circle-2 {
    width: 200px;
    height: 200px;
  }

  .shape-rect {
    width: 100px;
    height: 250px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}
