/* ==========================================================================
   Homepage — Premium portfolio styles (scoped to .page-home)
   ========================================================================== */

.page-home {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .page-home .home-blob {
    animation: none !important;
  }
}

/* --- Loader --- */
.home-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-home.is-loaded .home-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Hide loader quickly if JS never runs */
.page-home:not(.is-loaded) .home-loader {
  animation: homeLoaderHide 0.6s ease 1.8s forwards;
}

@keyframes homeLoaderHide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.home-loader-logo {
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  color: #d4af37;
  display: block;
  margin-bottom: 1.25rem;
  text-align: center;
}

.home-loader-bar {
  display: block;
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.home-loader-bar::after {
  content: "";
  position: absolute;
  left: -40%;
  width: 40%;
  height: 100%;
  background: #d4af37;
  animation: homeLoaderBar 1.2s ease-in-out infinite;
}

@keyframes homeLoaderBar {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* --- Glass utility --- */
.home-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* --- Hero --- */
.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 85dvh;
  display: flex;
  align-items: center;
  padding: 1rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(165deg, #f8fffe 0%, #e7faf9 40%, #f5f5f7 100%);
  z-index: 1;
}

.home-hero > .container {
  position: relative;
  z-index: 2;
}

.min-vh-hero {
  min-height: calc(100vh - 120px);
  min-height: calc(100dvh - 120px);
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: homeBlobFloat 18s ease-in-out infinite;
}

.home-blob-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35), transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.home-blob-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 180, 200, 0.25), transparent 70%);
  bottom: 10%;
  left: -8%;
  animation-delay: -6s;
}

.home-blob-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(100, 100, 120, 0.12), transparent 70%);
  top: 40%;
  left: 35%;
  animation-delay: -12s;
}

@keyframes homeBlobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

.home-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1.25rem;
}

.home-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4af37;
  animation: homePulse 2s ease infinite;
}

@keyframes homePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.home-hero-title {
  font-family: "PT Serif", serif;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  color: #0a0a0f;
  margin-bottom: 1.25rem;
}

.home-title-line {
  display: block;
}

.home-title-accent {
  display: block;
  background: linear-gradient(135deg, #111 0%, #555 50%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-lead {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.home-trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.home-trust-list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
}

.home-trust-list i {
  color: #d4af37;
  margin-right: 0.35rem;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.home-btn:hover {
  transform: translateY(-3px);
  color: inherit;
}

.home-btn-primary {
  background: #0a0a0f;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.home-btn-primary:hover {
  background: #222;
  color: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.home-btn-outline {
  background: transparent;
  color: #111;
  border-color: rgba(0, 0, 0, 0.2);
}

.home-btn-outline:hover {
  border-color: #111;
  background: #fff;
  color: #111;
}

.home-btn-light {
  background: #fff;
  color: #111;
}

.home-btn-light:hover {
  background: #d4af37;
  color: #111;
}

.home-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.home-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Hero image */
.home-hero-visual {
  position: relative;
}

.home-hero-image-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
  will-change: transform;
}

.home-hero-image-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.2), transparent 60%);
  pointer-events: none;
}

.home-hero-image {
  width: 100%;
  display: block;
  border-radius: 24px;
}

.home-hero-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-hero-badge i {
  font-size: 1.25rem;
  color: #d4af37;
}

.home-hero-badge strong {
  display: block;
  font-size: 0.85rem;
  color: #111;
  line-height: 1.2;
}

.home-hero-badge span {
  font-size: 0.72rem;
  color: #666;
}

.home-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  text-decoration: none;
}

.home-scroll-line {
  width: 4px;
  height: 8px;
  background: #d4af37;
  border-radius: 2px;
  animation: homeScrollBounce 2s ease infinite;
}

@keyframes homeScrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.4; }
}

/* Hero — always visible (animations are optional enhancement) */
.home-hero .home-animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* --- Section shared --- */
.home-section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.home-section-tag-light {
  color: rgba(212, 175, 55, 0.95);
}

.home-section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: #111;
  margin-bottom: 1rem;
}

.home-section-lead {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.home-section-desc {
  max-width: 480px;
  color: #666;
  font-size: 0.98rem;
}

.home-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About --- */
.home-about {
  padding: 6rem 0;
  background: #fff;
}

.home-about-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.home-about-image {
  width: 100%;
  display: block;
}

.home-about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 3px solid #d4af37;
  border-radius: 16px;
  z-index: -1;
}

.home-about-text {
  color: #555;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.home-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-timeline-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgb(231, 250, 249);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-timeline-item:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.home-timeline-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  color: #d4af37;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.home-timeline-item h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: #111;
}

.home-timeline-item p {
  font-size: 0.88rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.home-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  font-size: 0.95rem;
  transition: gap 0.25s ease, color 0.25s ease;
}

.home-link-arrow:hover {
  color: #d4af37;
  gap: 0.75rem;
}

/* --- Stats --- */
.home-stats {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
}

.home-stat-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: 16px;
  height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.home-stat-num {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #d4af37;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.home-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Quote --- */
.home-quote {
  padding: 4rem 0;
  background: #000;
}

.home-quote-inner {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.home-quote-img {
  width: 100%;
  display: block;
}

/* --- Testimonials --- */
.home-testimonials {
  padding: 6rem 0;
  background: linear-gradient(180deg, #fafafa 0%, rgb(231, 250, 249) 100%);
}

.home-testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  margin: 0.5rem;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.home-testimonial-stars {
  color: #d4af37;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
}

.home-testimonial-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #444;
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.home-testimonial-author strong {
  display: block;
  color: #111;
  font-size: 0.95rem;
}

.home-testimonial-author span {
  font-size: 0.82rem;
  color: #888;
}

.home-testimonials-slider .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 1.1rem !important;
  margin: 0 !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.home-testimonials-slider .owl-nav button:hover {
  background: #d4af37 !important;
  color: #111 !important;
}

.home-testimonials-slider .owl-prev { left: -12px; }
.home-testimonials-slider .owl-next { right: -12px; }

.home-testimonials-slider .owl-dots {
  margin-top: 1.5rem !important;
}

.home-testimonials-slider .owl-dot span {
  background: #ccc !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.home-testimonials-slider .owl-dot.active span,
.home-testimonials-slider .owl-dot:hover span {
  background: #d4af37 !important;
  transform: scale(1.2);
}

/* --- Ventures preview --- */
.home-ventures-preview {
  padding: 4rem 0;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-ventures-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-venture-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: rgb(231, 250, 249);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, background 0.25s ease;
}

.home-venture-pill:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.home-venture-pill i {
  color: #d4af37;
}

/* --- CTA --- */
.home-cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.home-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 40%, #0d3d3d 100%);
}

.home-cta-bg::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
  top: -20%;
  right: -10%;
  animation: homeBlobFloat 20s ease-in-out infinite;
}

.home-cta-card {
  padding: 3rem 2.5rem;
  border-radius: 24px;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px);
}

.home-cta-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: #fff;
  margin-bottom: 1rem;
}

.home-cta-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Navbar enhancements on homepage */
.page-home .mainNavbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-home .mainNavbar.sticky-nav {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.page-home .nav-link {
  position: relative;
}

.page-home .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: #d4af37;
  transition: width 0.3s ease, left 0.3s ease;
}

.page-home .nav-link:hover::after,
.page-home .nav-link.active::after {
  width: 70%;
  left: 15%;
}
