/* Variables */
:root {
  --primary-color: #d4af37; /* Premium Gold */
  --primary-dark: #aa7c11;
  --primary-light: #f3d582;
  --accent-red: #8b1c1c; /* Derived from logo */
  --accent-green: #1a4a2b; /* Derived from logo */

  --bg-dark: #0a0a0c;
  --bg-darker: #050506;
  --bg-glass: rgba(20, 20, 25, 0.6);
  --bg-glass-hover: rgba(30, 30, 35, 0.8);

  --text-main: #f0f0f0;
  --text-muted: #a0a0a5;

  --border-glass: rgba(212, 175, 55, 0.2);
  --border-light: rgba(255, 255, 255, 0.05);

  --font-heading: "Cinzel", serif;
  --font-body: "Inter", sans-serif;

  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-darker);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.cinzel {
  font-family: var(--font-heading);
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-uppercase {
  text-transform: uppercase;
}
.highlight-text {
  color: var(--primary-color);
  font-weight: 600;
}
.small-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mt-5 {
  margin-top: 3rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.max-w-700 {
  max-width: 700px;
}

/* Grid Layouts */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.align-center {
  align-items: center;
}

@media (max-width: 992px) {
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-5 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .grid-5 {
    grid-template-columns: 1fr;
  }
}

/* Sections */
.section {
  padding: 6rem 0;
}

.dark-bg {
  background-color: var(--bg-dark);
}
.dark-bg-alt {
  background-color: var(--bg-darker);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.divider {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  margin: 1rem 0 1.5rem 0;
}

/* Glass & Card Design */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
}

.glass:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}

.glass-panel {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2.5rem;
}

.gold-border {
  border-color: var(--border-glass);
  box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--bg-darker);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-color)
  );
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Header & Nav */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(5, 5, 6, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.8rem 0;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 50px;
}

.main-nav {
  position: absolute;
  left: 0;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: top center;
  margin-top: 30px; /* Big initially */
}

.navbar.scrolled .logo-wrapper {
  margin-top: 0;
}

.logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.text-img {
  height: 25px; /* Adjust based on the actual image aspect ratio */
  width: auto;
  margin-top: 15px;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 1;
}

.navbar.scrolled .logo-img {
  height: 45px;
}

.navbar.scrolled .text-img {
  height: 0;
  margin-top: 0;
  opacity: 0;
  pointer-events: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-block;
}

.lang-menu-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-menu-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

@media (hover: hover) {
  .lang-menu:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.lang-menu.mobile-open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu.force-close .lang-dropdown {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-10px) !important;
}

.lang-dropdown .lang-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 0.8rem 1rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light);
}

.lang-dropdown .lang-btn:last-child {
  border-bottom: none;
}

.lang-dropdown .lang-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary-color);
}

.lang-dropdown .lang-btn.active {
  color: var(--primary-dark);
  font-weight: 600;
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background: url("assets/bg.png") no-repeat center center/cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 6, 0.8) 0%,
    rgba(5, 5, 6, 0.6) 50%,
    rgba(10, 10, 12, 1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero .subtitle {
  color: var(--primary-color);
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero .title {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero .title span {
  font-size: 2.5rem;
  color: var(--text-muted);
}

.hero .slogan {
  color: var(--primary-light);
  font-size: 1.4rem;
  letter-spacing: 3px;
  margin-bottom: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero .description {
  font-size: 1.25rem;
  color: #cecece;
  margin-bottom: 2.5rem;
  max-width: 650px;
}

@media (max-width: 768px) {
  .hero .title {
    display: none;
  }
  .hero .title span {
    display: none;
  }
  
  .hero-content {
    margin-top: 150px;
  }

  .logo-img {
    height: 140px;
  }
  .logo-wrapper {
    margin-top: 20px;
  }
  .text-img {
    height: 35px;
    margin-top: 10px;
  }
}

/* Lists and Icons */
.card-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.card-icon-lg {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.feature-list i {
  color: var(--primary-color);
  margin-top: 0.3rem;
}

.clean-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.clean-list li:last-child {
  border-bottom: none;
}
.clean-list .accent {
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

/* Icon Box for Principles */
.icon-box {
  padding: 2rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: var(--transition);
}

.icon-box i {
  font-size: 2.5rem;
  background: -webkit-linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.icon-box h4 {
  font-size: 1rem;
  color: var(--text-main);
}

.icon-box:hover {
  border-color: var(--border-glass);
  transform: translateY(-5px);
}

/* Model Diagram */
.role-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-glass);
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border-light);
  transition: var(--transition);
}

.role-card:hover::before {
  background: var(--primary-color);
}

.role-card.highlight {
  border-color: var(--border-glass);
  background: rgba(20, 20, 25, 0.8);
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.role-card.highlight::before {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  height: 4px;
}

@media (max-width: 768px) {
  .role-card.highlight {
    transform: scale(1);
  }
}

.role-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.role-card.highlight .role-icon {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--bg-darker);
}

/* SPV Architecture */
.spv-architecture {
  padding: 3rem;
}

.step-list {
  counter-reset: custom-counter;
  list-style: none;
  margin-top: 1.5rem;
}

.step-list li {
  counter-increment: custom-counter;
  margin-bottom: 1rem;
  padding-left: 3rem;
  position: relative;
}

.step-list li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 0;
  top: -2px;
  width: 25px;
  height: 25px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Roles Sequence */
.role-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: var(--bg-glass);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.role-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(212, 175, 55, 0.2);
  line-height: 1;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 2px solid var(--primary-color);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.timeline-content {
  background: var(--bg-glass);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-light);
}

.footer-logo-img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-conclusion {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
