/* File: assets/css/style.css */

:root {
  --bg-primary: #08080a;
  --bg-secondary: #101014;
  --gold-primary: #e5c158;
  --gold-light: #fff0b3;
  --gold-dark: #b38f2b;
  --text-white: #ffffff;
  --text-gray: #9ca3af;
  --glass-bg: rgba(16, 16, 20, 0.7);
  --glass-border: rgba(229, 193, 88, 0.18);
  --radius-premium: 18px;
  --font-primary: "Inter", sans-serif;
  --font-heading: "Poppins", sans-serif;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Optimization & CSS Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Custom Rules */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
h4 {
  font-size: 1.2rem;
}

p {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--transition-smooth);
}

/* Accessibility Skip Navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--gold-primary);
  color: #000;
  padding: 10px 20px;
  font-weight: bold;
  z-index: 9999;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 20px;
}

/* Global Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.alt-bg {
  background-color: var(--bg-secondary);
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.items-center {
  align-items: center;
}
.text-center {
  text-align: center;
}
.max-w-700 {
  max-width: 700px;
}
.max-w-600 {
  max-width: 600px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}
.row-gap-3 {
  row-gap: 30px;
}

/* Custom Badge & Components */
.section-tag {
  display: inline-block;
  color: var(--gold-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-block;
  background: rgba(229, 193, 88, 0.1);
  border: 1px solid rgba(229, 193, 88, 0.3);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--text-white) 30%,
    var(--gold-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Structural Definition */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-premium);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 35px;
  transition:
    transform 0.4s var(--transition-smooth),
    border-color 0.4s var(--transition-smooth),
    box-shadow 0.4s var(--transition-smooth);
}

/* Performance Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary));
  width: 0%;
  z-index: 10000;
}

/* Header UI Elements */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 20px 0;
  transition:
    background 0.3s ease,
    padding 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 8, 10, 0.95);
  padding: 14px 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-logo {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.text-gold {
  color: var(--gold-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-gray);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width 0.3s var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Buttons UI Layout */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--transition-smooth);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
  color: #000000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 193, 88, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-white);
}

/* Hero Section Structural UI */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 10, 0.3) 0%,
    var(--bg-primary) 98%
  );
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  max-width: 950px;
  margin: 0 auto 1.5rem auto;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Mouse Scroll Component */
.scroll-indicator {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-gray);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--gold-primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouse-scroll-anim 1.6s infinite;
}

.scroll-text {
  font-size: 0.75rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* SEO Content & About Rules */
.seo-text-block a {
  color: #ffd700;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.35);
  transition: 0.25s ease;
}

.seo-text-block a:hover {
  color: #fff176;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.img-responsive {
  width: 100%;
  height: auto;
  display: block;
}

.rounded-img {
  border-radius: 12px;
}

.visual-card {
  position: relative;
  padding: 12px;
}

.absolute-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: var(--bg-primary);
  color: var(--gold-primary);
  font-weight: bold;
  padding: 10px 24px;
  border-radius: 8px;
}

/* Timeline Layout */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--glass-border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 40px;
}

.timeline-item.left {
  left: 0;
  padding-right: 40px;
}
.timeline-item.right {
  left: 50%;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 25px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 4px solid var(--bg-primary);
  z-index: 10;
}

.timeline-item.left .timeline-dot {
  right: -8px;
}
.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-year {
  display: inline-block;
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Technology List Components */
.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tech-list li {
  display: flex;
  gap: 20px;
}

.tech-icon-box {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(229, 193, 88, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}

/* Features Grid Interaction */
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 193, 88, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.feature-icon {
  width: 65px;
  height: 65px;
  background: linear-gradient(
    135deg,
    rgba(229, 193, 88, 0.05),
    rgba(229, 193, 88, 0.15)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--gold-primary);
}

/* Advantages Custom Grid System */
.adv-card {
  padding: 25px;
}

.adv-card:hover {
  border-color: rgba(229, 193, 88, 0.3);
}

.adv-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(229, 193, 88, 0.15);
  margin-bottom: 0.25rem;
}

/* Dashboard Statistics Style */
.stats-dashboard {
  background: linear-gradient(
    135deg,
    rgba(16, 16, 20, 0.9) 0%,
    rgba(24, 24, 30, 0.9) 100%
  );
  border-color: rgba(229, 193, 88, 0.25);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-top: 4px;
}

/* FAQ Accordion Interactive Rules */
.sticky-faq-visual {
  position: sticky;
  top: 120px;
}

.faq-accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion-header:focus {
  outline: 2px solid var(--gold-primary);
  outline-offset: -2px;
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--gold-primary);
  transition: transform 0.3s ease;
}

.accordion-content {
  padding: 0 10px 20px 10px;
  animation: slideDown 0.3s ease-out;
}

/* CTA Structural Framework */
.cta-banner {
  background:
    linear-gradient(
      135deg,
      rgba(16, 16, 20, 0.95) 0%,
      rgba(8, 8, 10, 0.95) 100%
    ),
    url("../images/cta.webp");
  background-size: cover;
  background-position: center;
  border-color: rgba(229, 193, 88, 0.2);
  padding: 60px 40px;
}

/* Footer Section Grid Definition */
.site-footer {
  background-color: #040406;
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-desc {
  font-size: 0.9rem;
  margin-top: 15px;
}

.site-footer h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 8px;
}

.site-footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--gold-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-size: 0.85rem;
}

/* Accessibility Back To Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--gold-primary);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 998;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

#back-to-top:hover {
  transform: translateY(-3px);
}

.hidden-btn {
  opacity: 0;
  pointer-events: none;
}

.visible-btn {
  opacity: 1;
  pointer-events: auto;
}

button:focus-visible,
a:focus-visible {
  outline: 3px dashed var(--gold-primary);
  outline-offset: 4px;
}
