:root {
  --gold-primary: #D4A843;
  --gold-light: #F0D060;
  --gold-dark: #B8922E;
  --gold-glow: rgba(212, 168, 67, 0.3);
  --cyan-accent: #00D4FF;
  --cyan-glow: rgba(0, 212, 255, 0.2);
  --bg-primary: #0A0E1A;
  --bg-secondary: #111827;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

::selection {
  background: var(--gold-primary);
  color: var(--bg-primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
  border-radius: 4px;
}

/* ===== NAVIGATION ===== */
#navbar.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-link {
  position: relative;
  color: #94A3B8;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  padding: 4px 0;
  cursor: pointer;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--gold-primary);
}

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

/* Mobile Menu */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}

.mobile-menu-panel.open {
  transform: translateX(0);
}

.mobile-nav-link {
  display: block;
  color: #94A3B8;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.3s, padding-left 0.3s;
  cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--gold-primary);
  padding-left: 8px;
}

.hamburger-line { display: block; }
#menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
#menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== HERO ===== */
#hero {
  background: radial-gradient(ellipse at 50% 50%, #0f1629 0%, #0A0E1A 70%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-orb-gold {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,168,67,0.15) 0%, transparent 70%);
  top: 10%;
  left: -10%;
  animation: floatOrb 20s ease-in-out infinite;
}

.hero-orb-cyan {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
  animation: floatOrb 25s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -40px); }
  50% { transform: translate(-20px, 30px); }
  75% { transform: translate(40px, 20px); }
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(212,168,67,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-title-line {
  display: inline-block;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
}

.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
}

.scroll-indicator {
  opacity: 0;
  animation: fadeInUp 1s 2s forwards;
}

/* ===== BUTTONS ===== */
.btn-gold-filled {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: var(--bg-primary);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-gold-filled::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-gold-filled:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px var(--gold-glow);
}

.btn-gold-filled:hover::before {
  left: 100%;
}

.btn-gold-outline {
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
  background: transparent;
  font-weight: 700;
  transition: all 0.3s;
}

.btn-gold-outline:hover {
  background: rgba(212, 168, 67, 0.1);
  transform: scale(1.02);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* ===== SECTION TITLES ===== */
.section-title-wrapper {
  position: relative;
}

.section-title-line-gold {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-primary), var(--cyan-accent));
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-item.visible .section-title-line-gold,
.section-title-wrapper.visible .section-title-line-gold {
  transform: scaleX(1);
}

/* ===== SECTION GLOW EFFECTS ===== */
.section-glow-left::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section-glow-right::before {
  content: '';
  position: absolute;
  top: 30%;
  right: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== STAT CARDS ===== */
.stat-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.4s;
}

.stat-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 25px var(--gold-glow);
  transform: translateY(-4px);
}

.stat-icon {
  color: var(--gold-primary);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ===== QUALIFICATION BADGES ===== */
.qual-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 999px;
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.qual-badge:hover {
  background: rgba(212, 168, 67, 0.15);
  border-color: var(--gold-primary);
}

/* ===== TIMELINE ===== */
.timeline-container {
  position: relative;
}

.timeline-track {
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--cyan-accent), transparent);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  text-align: center;
}

.timeline-year {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--bg-primary);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 6px 20px;
  border-radius: 999px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.timeline-content {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s;
}

.timeline-content:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 4px 20px var(--gold-glow);
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--cyan-accent));
  transform: scaleX(0);
  transition: transform 0.4s;
}

.product-card:hover {
  border-color: rgba(212, 168, 67, 0.4);
  background: rgba(17, 24, 39, 0.8);
  transform: translateY(-6px);
  box-shadow: 0 8px 40px var(--gold-glow);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(0,212,255,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 18px;
  transition: all 0.3s;
}

.product-card:hover .product-icon {
  background: linear-gradient(135deg, rgba(212,168,67,0.25), rgba(0,212,255,0.15));
  box-shadow: 0 0 20px var(--gold-glow);
}

/* ===== TECH SECTION ===== */
.tech-group {
  background: rgba(17, 24, 39, 0.4);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.04);
}

.tech-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.tech-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  transition: all 0.3s;
}

.tech-tag:hover {
  background: rgba(212, 168, 67, 0.15);
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.tech-bar {
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.tech-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-primary), var(--cyan-accent));
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-bar-fill.animated {
  width: var(--fill-width);
}

.tech-metric-card {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.tech-metric-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px var(--gold-glow);
}

.tech-metric-number {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tech-metric-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Code Window */
.code-window {
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 67, 0.1);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot-red { background: #ff5f57; }
.code-dot-yellow { background: #febc2e; }
.code-dot-green { background: #28c840; }

.code-filename {
  margin-left: 8px;
  color: #64748B;
  font-size: 0.8rem;
}

.code-body {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #94A3B8;
  min-height: 200px;
}

.code-body .code-keyword { color: #c792ea; }
.code-body .code-string { color: #c3e88d; }
.code-body .code-comment { color: #546e7a; }
.code-body .code-type { color: #ffcb6b; }
.code-body .code-method { color: #82aaff; }
.code-body .code-number { color: #f78c6c; }
.code-body .code-annotation { color: #ffcb6b; }

.code-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--gold-primary);
  animation: cursorBlink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== HONOR CARDS ===== */
.honor-card {
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.honor-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 8px 30px var(--gold-glow);
  transform: translateY(-6px);
}

.honor-icon {
  color: var(--gold-primary);
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.honor-card:hover .honor-icon {
  transform: scale(1.1);
}

.honor-gold-line {
  width: 40px;
  height: 2px;
  background: var(--gold-primary);
  margin: 16px auto 0;
  border-radius: 1px;
  opacity: 0.6;
  transition: all 0.3s;
}

.honor-card:hover .honor-gold-line {
  width: 60px;
  opacity: 1;
}

/* Marquee */
.honor-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}

.honor-marquee-inner {
  display: inline-flex;
  gap: 16px;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-item {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.marquee-sep {
  color: var(--gold-primary);
  font-size: 0.6rem;
  opacity: 0.4;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== CONTACT ===== */
.contact-input {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}

.contact-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

.contact-input::placeholder {
  color: var(--text-muted);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  transition: all 0.3s;
}

.contact-info-card:hover {
  border-color: rgba(212, 168, 67, 0.2);
  background: rgba(17, 24, 39, 0.6);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 168, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s, padding-left 0.3s;
  display: block;
  padding: 2px 0;
}

.footer-link:hover {
  color: var(--gold-primary);
  padding-left: 6px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50% { box-shadow: 0 0 20px 5px var(--gold-glow); }
}

@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.anim-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .timeline-track { display: none; }
  .hero-orb-gold { width: 300px; height: 300px; }
  .hero-orb-cyan { width: 250px; height: 250px; }
}

@media (max-width: 767px) {
  .stat-number { font-size: 1.5rem; }
  .tech-metric-number { font-size: 1.5rem; }
  .honor-card { padding: 20px 16px; }
  .product-card { padding: 22px 18px; }
  .hero-orb-gold { width: 200px; height: 200px; filter: blur(60px); }
  .hero-orb-cyan { width: 180px; height: 180px; filter: blur(60px); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-orb { animation: none; }
  .honor-marquee-inner { animation: none; }
  .anim-item { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .code-cursor { animation: none; opacity: 1; }
}
