/* ===========================
   ✨ Nuvira – Optimized Luxury
   =========================== */

/* Reset + Smooth Scroll */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom, #0b0b0b, #111 40%, #000);
  color: #f8f8f8;
  overflow-x: hidden;
  scroll-padding-top: 60px;
}

/* === Hero Section === */
.hero {
  height: 100vh;
  background: url("assets/bg.jpg") center center / cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-attachment: scroll; /* 🔧 Makes background adapt better on mobile */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 50px 40px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.08);
  text-align: center;
}
.logo {
  width: 120px;
  max-width: 60%;
  margin-bottom: 25px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  color: gold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.tagline {
  font-size: 1.2rem;
  color: #e0e0e0;
}
.hero h2 {
  margin-top: 20px;
  font-weight: 300;
  font-style: italic;
  color: #ccc;
}
.hero h2 span {
  color: gold;
  font-weight: 600;
}

/* === Ventures Section === */
.ventures {
  padding: 90px 40px;
  background: #000;
  border-top: 1px solid rgba(255, 215, 0, 0.05);
}
.section-title {
  text-align: center;
  font-size: 2.6rem;
  color: gold;
  font-family: 'Playfair Display', serif;
  margin-bottom: 50px;
}

/* === Grid and Cards === */
.venture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 215, 0, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, opacity;
  transform: translateY(60px);
  opacity: 0;
}
.card.visible {
  transform: translateY(0);
  opacity: 1;
}
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 0 25px hsla(51, 100%, 60%, 0.994),
    0 0 40px rgba(255, 215, 0, 0.08),
    inset 0 0 30px rgba(255, 215, 0, 0.2); /* ✨ inner glow */
  background: rgba(255, 255, 255, 0.06);   /* subtle glow background */
  transition: all 0.5s ease;
}

@keyframes pulseGold {
  0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.3; transform: translate(-50%, -50%) scale(1.03); }
}

.card h3 {
  color: gold;
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.card p {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === Scroll Fade Optimized === */
.scroll-fade {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
.venture-grid .card:nth-child(1) { transition-delay: 0.1s; }
.venture-grid .card:nth-child(2) { transition-delay: 0.2s; }
.venture-grid .card:nth-child(3) { transition-delay: 0.3s; }
.venture-grid .card:nth-child(4) { transition-delay: 0.4s; }
/* add more delays if needed */

footer {
  text-align: center;
  padding: 40px 20px;
  background: #0a0a0a;
  color: #888;
  font-size: 0.9rem;
  font-family: 'Playfair Display', serif;
  border-top: 1px solid rgba(255, 215, 0, 0.05);
}
footer strong {
  color: gold;
  font-weight: 600;
}

/* === Ripple Click Effect (Optional) === */
#click-effect {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent 70%);
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#click-effect.active {
  opacity: 1;
  transform: scale(1.5);
  animation: sparkle 0.8s ease-out forwards;
}
@keyframes sparkle {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}
/* === HERO ENTRY ANIMATION === */
.hero-overlay {
  opacity: 0;
  transform: scale(0.9);
  animation: heroReveal 1.8s ease-out 0.4s forwards;
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    filter: blur(8px);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.02) translateY(0);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}
/* ✨ Hero Entrance Animation */
.hero-overlay {
  animation: heroEntrance 2.2s ease-out forwards;
  opacity: 0;
  transform: scale(0.95) translateY(30px);
}

@keyframes heroEntrance {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.card .desc {
  margin-top: 10px;
  color: #bbb;
  font-size: 0.88rem;
  line-height: 1.6;
  font-style: italic;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.card:hover .desc {
  color: #eee;
  opacity: 1;
}
@media (max-width: 768px) {
  .hero-overlay {
    padding: 30px 20px;
  }
  h1 {
    font-size: 2.2rem;
  }
  .tagline {
    font-size: 1rem;
  }
  .hero h2 {
    font-size: 1.1rem;
  }
  .venture-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .hero-overlay {
    padding: 24px 16px;
  }
  h1 {
    font-size: 1.8rem;
  }
  .tagline {
    font-size: 0.95rem;
  }
  .hero h2 {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .logo {
    width: 90px;
    margin-bottom: 20px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .hero h2 {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .hero h2 {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
@media (max-width: 768px) {
  .hero {
    background-position: center top;
    background-attachment: scroll;
    background-size: cover;
  }

  .hero::before {
    backdrop-filter: blur(8px);
  }

  .hero-overlay {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    background-position: center top;
    background-attachment: scroll;
    background-size: cover;
  }

  .hero-overlay {
    padding: 25px 15px;
  }
}
