:root {
  --primary-dark: #0a0a0a;
  --secondary-dark: #141414;
  --gold-1: #D1AA5B;
  --gold-2: #d8a955;
  --gold-3: #C0923B;
  --text-main: #e0e0e0;
  --text-white: #ffffff;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link, .btn, .tag {
  font-family: 'Manrope', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
}

/* Overriding Bootstrap Light/Dark Utilities for Dark Theme */
.bg-light, .bg-white { background-color: var(--secondary-dark) !important; color: var(--text-main); }
.bg-dark { background-color: #000000 !important; }
.text-dark { color: var(--text-white) !important; }
.text-muted { color: #999 !important; }
.form-control { background-color: #1f1f1f !important; color: #fff !important; border: 1px solid #333 !important; }
.form-control:focus { background-color: #2a2a2a !important; color: #fff !important; border-color: var(--gold-2) !important; box-shadow: none !important;}

/* Utilities */
.text-gold {
  background: linear-gradient(to right, var(--gold-1), var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.bg-gold {
  background: linear-gradient(to right, var(--gold-1), var(--gold-2), var(--gold-3));
  color: white;
  border: none;
  transition: opacity 0.3s ease;
}

.bg-gold:hover {
  opacity: 0.9;
  color: white;
}

.btn-outline-dark {
  border: 1px solid var(--text-white);
  color: var(--text-white);
  transition: all 0.3s ease;
}

.btn-outline-dark:hover {
  background-color: var(--text-white);
  color: var(--primary-dark);
}

.btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Typography & Layout Replacements for Inline CSS */
.logo-text-primary { font-size: 1.1rem !important; }
.logo-text-secondary { font-size: 0.9rem !important; }
.footer-logo-secondary { font-size: 0.7rem !important; }

.about-short-text {
  max-width: 800px; 
  color: #ccc; 
  margin: 0 auto;
}

.hh-logo {
  font-size: 4rem; 
  color: #e0e0e0;
}

.footer-start-btn { letter-spacing: 1px; }
.footer-heading { font-size: 0.9rem; font-weight:500; letter-spacing: 1px; color: var(--text-white) !important;}
.footer-link-text { font-size: 0.75rem; font-weight: 500; }

.founder-img { 
  object-fit: cover; 
  height: 500px; 
  width: 100%; 
}

.social-icon-btn { 
  width: 40px; 
  height: 40px; 
}

/* Navbar */
.navbar {
  padding: 5px 0;
  transition: all 0.3s ease;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.navbar-brand img {
  width: 200px;
  height: auto;
  object-fit: contain; /* Prevents stretching */
}
@media (max-width: 598px) {
  .navbar-brand img {
    width: 180px;
  }
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main) !important;
  text-transform: uppercase;
  margin: 0 15px;
  position: relative;
  letter-spacing: 1px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--gold-2);
  bottom: -4px;
  left: 0;
  transition: width 0.3s;
}

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

.navbar-toggler {
  border-color: rgba(255,255,255,0.1);
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px; 
}

.hero-bg {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.6) 100%);
  z-index: 1;
}

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

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-white);
}

.hero-title strong {
  font-weight: 800;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #bbb;
  max-width: 700px;
  line-height: 1.6;
}

/* Upcoming Event Announcement */
.event-announcement {
  padding: 90px 0;
  background: #0d0d0d;
}

.event-popup {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.event-popup.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.event-popup-panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid rgba(209, 170, 91, 0.38);
  border-radius: 24px;
  background: #171717;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
}

.event-popup-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.event-popup-poster {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: top center;
}

.event-popup-content {
  display: flex;
  height: 100%;
  min-height: 540px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.event-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 10px;
  max-width: 460px;
  margin: 24px 0 8px;
}

.event-countdown div {
  display: flex;
  min-height: 70px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(209, 170, 91, 0.28);
  border-radius: 12px;
  background: #101010;
}

.event-countdown strong {
  color: var(--gold-2);
  font-family: 'Manrope', sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.event-countdown span {
  margin-top: 6px;
  color: #aaa;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-announcement-card {
  overflow: hidden;
  border: 1px solid rgba(209, 170, 91, 0.3);
  border-radius: 24px;
  background: #171717;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.event-poster {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
}

.event-content {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.event-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-2);
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-content h2 {
  margin: 0;
  color: var(--gold-2);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.event-subtitle {
  margin: 8px 0 22px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}

.event-content > p:not(.event-subtitle) {
  max-width: 560px;
  color: #bdbdbd;
  line-height: 1.65;
}

.event-details {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  color: #e5e5e5;
  font-size: 0.95rem;
}

.event-details i {
  width: 20px;
  color: var(--gold-2);
}

@media (max-width: 991px) {
  .event-poster {
    height: auto;
    min-height: 0;
    max-height: 520px;
    object-fit: cover;
    object-position: top;
  }

  .event-popup-poster {
    min-height: 0;
    max-height: 360px;
  }

  .event-popup-content {
    min-height: 0;
  }
}

/* Ecosystem Section */
.ecosystem-section {
  padding: 100px 0;
  background-color: var(--primary-dark);
}

.section-title {
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 50px;
}

.card-ecosystem {
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  text-decoration: none;
  color: var(--text-white);
  background-color: var(--secondary-dark);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  margin-bottom: 24px;
}

.card-ecosystem:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  color: var(--text-white);
}

.card-bg-img {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s ease;
}

.card-brand-logo {
  position: absolute;
  top: 50%;
  right: 28px;
  width: 100px;
  height: 100px;
  margin: 0;
  padding: 10px;
  border-radius: 18px;
  background: #050505;
  object-fit: contain;
  object-position: center;
  transform: translateY(-50%);
}

.card-brand-logo-global {
  object-fit: cover;
  object-position: center 42%;
}

.card-brand-logo-riyas {
  object-fit: contain;
}

.card-brand-logo-media {
  object-fit: contain;
}

.card-brand-logo-humans {
  object-fit: contain;
}

.humans-hub-initials {
  position: absolute;
  top: calc(50% - 56px);
  right: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--gold-2);
  color: #111;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-ecosystem:hover .card-bg-img {
  transform: scale(1.05);
}

.card-ecosystem-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.card-ecosystem .content-box {
  position: absolute;
  bottom: 20px;
  left: 20px;
  max-width: calc(100% - 40px);
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  padding: 30px 170px 30px 30px;
  border-radius: 1rem;
  transition: background 0.3s ease;
  z-index: 2;
}

.card-ecosystem:hover .content-box {
  background: #1f1f1f;
}

.card-ecosystem-light {
  padding: 40px;
  display: flex;
  flex-direction: column-reverse;
  background-color: #1a1a1a;
}

.card-ecosystem-light h4 {
  margin-top: 20px;
}

.card-ecosystem-light > .card-ecosystem-content {
  padding-right: 140px;
}

@media (max-width: 575px) {
  .card-ecosystem .content-box {
    padding-right: 145px;
  }

  .card-brand-logo {
    right: 20px;
    width: 96px;
    height: 96px;
  }

  .humans-hub-initials {
    top: calc(50% - 48px);
    right: 12px;
  }
}

.card-ecosystem-portrait {
  flex-direction: column;
}

.card-ecosystem-portrait .content-box {
  background: var(--secondary-dark);
  position: relative;
  bottom: 0;
  left: 0;
  max-width: 100%;
  margin: auto 20px 20px 20px;
  border-radius: 1rem;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--gold-2);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-white);
}

.card-text {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.5;
  margin-bottom: 0;
}

/* About Short Note Section */
.about-short {
  background-color: var(--secondary-dark);
  color: var(--text-white);
  padding: 100px 0;
}

.about-short h2 {
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.about-short .text-gold {
  font-weight: 700;
}

/* Inner Pages Header */
.inner-header {
  padding: 150px 0 80px;
  background: var(--primary-dark);
  text-align: center;
  position: relative;
  color: var(--text-white);
}

.inner-header .container {
  position: relative;
  z-index: 2;
}

.inner-header h1 {
  font-weight: 800;
  font-size: 3rem;
  color: var(--text-white);
}

.inner-header .lead {
  color: #ccc !important;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  padding: 80px 0 40px;
  border-top: 1px solid #222;
}

.footer-logo img {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.footer h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-white);
}

.footer-links a {
  color: var(--text-main);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-2);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #222;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1.1;
}

.footer-logo .logo-icon {
  font-size: 2rem;
  color: var(--gold-2);
  margin-right: 10px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--secondary-dark);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    margin-top: 15px;
  }
  .nav-link {
    margin: 10px 0;
    text-align: center;
    color: var(--text-white) !important;
  }
  .nav-link::after {
    display: none;
  }
}
