/* ============================================================
   VJ Construction – Main Stylesheet
   Supplements Tailwind CDN with custom animations and utilities
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #1A1A1A; overflow-x: hidden; }

/* ── Alpine cloak ─────────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ── Nav link underline effect ────────────────────────────── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #F5A623;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── Hero swiper ──────────────────────────────────────────── */
.hero-swiper { height: 100vh; min-height: 600px; }
.hero-swiper .swiper-slide { overflow: hidden; }
.swiper-pagination-bullet-active { background: #F5A623 !important; }
.swiper-pagination-bullet { background: rgba(255,255,255,0.5); opacity: 1; }

/* ── Ken Burns hero ───────────────────────────────────────── */
.swiper-slide-active .slide-bg { animation: kenBurns 8s ease-in-out forwards; }
.slide-bg { transition: transform 0.6s ease; }
@keyframes kenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}

/* ── Reveal animation ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); }

/* ── Project card hover ───────────────────────────────────── */
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-img    { transform: scale(1.05); }
.project-card:hover .project-title  { transform: translateY(0); opacity: 1; }
.project-img { transition: transform 0.5s ease; }
.project-overlay { opacity: 0; transition: opacity 0.4s ease; }
.project-title {
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* ── Testimonial swiper ───────────────────────────────────── */
.testimonial-swiper .swiper-slide { height: auto; }

/* ── Badge shimmer ────────────────────────────────────────── */
@keyframes shimmer { 0%,100%{opacity:1} 50%{opacity:0.7} }
.badge-shimmer { animation: shimmer 3s ease-in-out infinite; }

/* ── Scroll-to-top button ─────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: #F5A623;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 40;
  border: none;
  outline: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover   { background: #e09400; }

/* ── WhatsApp floating button ─────────────────────────────── */
#wa-float {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  z-index: 40;
  transition: background 0.2s, transform 0.2s;
}
#wa-float:hover { background: #20b858; transform: scale(1.05); }

/* ── Blog content typography ──────────────────────────────── */
.blog-content { line-height: 1.8; color: #374151; }
.blog-content h2 { font-family: 'Anton', sans-serif; font-size: 1.5rem; text-transform: uppercase; margin: 2rem 0 1rem; color: #1A1A1A; }
.blog-content h3 { font-family: 'Anton', sans-serif; font-size: 1.2rem; text-transform: uppercase; margin: 1.5rem 0 0.75rem; }
.blog-content p  { margin-bottom: 1.25rem; }
.blog-content ul, .blog-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.blog-content li { margin-bottom: 0.5rem; }
.blog-content img { width: 100%; height: auto; margin: 1.5rem 0; }
.blog-content blockquote { border-left: 4px solid #F5A623; padding: 0.5rem 1.5rem; margin: 1.5rem 0; font-style: italic; color: #6B7280; background: #fef9ef; }
.blog-content a { color: #F5A623; text-decoration: underline; }
.blog-content strong { color: #1A1A1A; }

/* ── Utility: line clamp ──────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ── Page transitions ─────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fadeInUp 0.5s ease forwards;
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ── Responsive images ────────────────────────────────────── */
img { max-width: 100%; height: auto; }

/* ── Print reset ──────────────────────────────────────────── */
@media print {
  header, footer, #scroll-top, #wa-float { display: none !important; }
  body { color: #000; }
}
