html { scroll-behavior: smooth; overflow-x: hidden; }

body { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
main { flex: 1; }

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

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes drift {
  0% { transform: translateX(-10%) translateY(0); }
  50% { transform: translateX(10%) translateY(-5%); }
  100% { transform: translateX(-10%) translateY(0); }
}

.animate-bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== Hero Background (legacy, kept for compatibility) ===== */
.hero-bg {
  position: relative;
  overflow: hidden;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #f59e0b, transparent);
  top: -200px;
  right: -150px;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #fff, transparent);
  bottom: -100px;
  left: -100px;
  animation: float 12s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #f59e0b, transparent);
  top: 40%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

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

/* ===== Page Hero / Section Headers ===== */
.page-hero {
  position: relative;
  overflow: hidden;
}

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

/* ===== Circuit Pattern ===== */
.circuit-pattern {
  position: relative;
}

.circuit-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 58, 95, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== Glow Cards ===== */
.glow-card {
  position: relative;
  transition: all 0.3s ease;
}

.glow-card:hover {
  box-shadow:
    0 10px 40px rgba(30, 58, 95, 0.1),
    0 0 0 1px rgba(245, 158, 11, 0.1);
}

/* ===== Service Icon Glow ===== */
.service-icon-wrap {
  position: relative;
  transition: all 0.3s ease;
}

/* ===== Stat Item ===== */
.stat-item {
  position: relative;
  transition: transform 0.3s ease;
}

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

/* ===== Location Grid Item ===== */
.location-item {
  position: relative;
  overflow: hidden;
}

.location-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05), rgba(245, 158, 11, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.location-item:hover::before {
  opacity: 1;
}

/* ===== Floating Shapes ===== */
.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border: 1px solid rgba(245, 158, 11, 0.06);
  border-radius: 50%;
}

.fs-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  right: -80px;
  animation: drift 15s ease-in-out infinite;
}

.fs-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: -60px;
  animation: drift 20s ease-in-out infinite reverse;
}

.fs-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 20%;
  animation: drift 12s ease-in-out infinite;
}

/* ===== Image Hover ===== */
.project-img-wrap {
  overflow: hidden;
  border-radius: 12px;
}

.project-img-wrap img {
  transition: transform 0.5s ease;
}

.project-img-wrap:hover img {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Video Poster Overlay ===== */
#video-poster {
  transition: opacity 0.3s ease;
}

/* ===== Uniform Image Grid ===== */
.project-gallery-img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ===== Lightbox Image ===== */
#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

/* ===== Cookie Consent ===== */
.cookie-map-placeholder iframe[loading] {
  width: 100%;
  display: block;
}

a.cookie-banner-active {
  bottom: 160px !important;
}

@media (min-width: 640px) {
  a.cookie-banner-active {
    bottom: 120px !important;
  }
}

/* ===== Lightbox Line Clamp ===== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
