/* ============================================================
   RBLD Audio — style.css
   Dark Amber / Vintage theme  |  Orbitron · Inter · JetBrains Mono
   ============================================================ */

/* ==============================
   CSS CUSTOM PROPERTIES
   ============================== */
:root {
  --bg:           #0d0a07;
  --bg-card:      #131009;
  --bg-card-hover:#181310;
  --amber:        #ffaa00;
  --rust:         #ff6200;
  --gold:         #d4920a;
  --price-free:   #7ecf3a;
  --text:         #e8dcc8;
  --text-muted:   #8a7a65;
  --border:       rgba(255, 165, 0, 0.11);
  --border-hover: rgba(255, 165, 0, 0.36);
  --font-title:   'Orbitron', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --nav-h:        68px;
  --max-w:        1100px;
  --radius:       12px;
  --t:            0.28s ease;
}

/* ==============================
   RESET & BASE
   ============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
a     { color: inherit; text-decoration: none; }
img   { display: block; max-width: 100%; }

/* Custom scrollbar */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 3px; }

/* ==============================
   NAVBAR
   ============================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  transition: background var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(13, 10, 7, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo img {
  height: 36px;
  transition: filter var(--t);
}
.nav-logo:hover img {
  filter: drop-shadow(0 0 10px rgba(255,165,0,0.5));
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t), text-shadow var(--t);
}
.nav-links a:hover {
  color: var(--amber);
  text-shadow: 0 0 10px rgba(255,170,0,0.55);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Language toggle */
.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  transition: border-color var(--t);
}
.lang-toggle:hover { border-color: rgba(255,165,0,0.4); }

.lang-option {
  color: var(--text-muted);
  transition: color var(--t), text-shadow var(--t);
  cursor: pointer;
  padding: 1px 2px;
}
.lang-option.active {
  color: var(--amber);
  text-shadow: 0 0 8px rgba(255,170,0,0.55);
}
.lang-sep { color: rgba(255,255,255,0.12); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background var(--t);
}
.hamburger:hover span { background: var(--amber); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(13,10,7,0.97);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: color var(--t), background var(--t);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--amber); background: rgba(255,165,0,0.04); }

/* ==============================
   HERO
   ============================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem;
  overflow: hidden;
}

/* Warm amber glow + dot grid */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 65% 50% at 50% 42%, rgba(255,140,0,0.06) 0%, transparent 100%),
    radial-gradient(ellipse 45% 35% at 78% 82%, rgba(200,80,0,0.04) 0%, transparent 100%),
    radial-gradient(rgba(255,165,0,0.07) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.hero-logo {
  height: 200px;
  animation: logoPulse 4.5s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { filter: brightness(1.05) drop-shadow(0 0 18px rgba(255,140,0,0.25)); }
  50%      { filter: brightness(1.18) drop-shadow(0 0 34px rgba(255,140,0,0.48)); }
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-tagline {
  font-family: var(--font-title);
  font-size: clamp(1.55rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 640px;
  background: linear-gradient(135deg, #f0e6cc 40%, var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.72rem 2.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255,170,0,0.45);
  color: var(--amber);
  border-radius: 8px;
  transition: background var(--t), box-shadow var(--t), color var(--t), border-color var(--t);
}
.btn-primary:hover {
  background: var(--amber);
  color: #0d0a07;
  border-color: var(--amber);
  box-shadow: 0 0 22px rgba(255,170,0,0.4), 0 0 48px rgba(255,170,0,0.18);
}

/* Animated scroll hint line */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,170,0,0.45));
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%,100% { opacity: 0.25; transform: translateX(-50%) scaleY(1); }
  50%      { opacity: 0.85; transform: translateX(-50%) scaleY(1.25); }
}

/* ==============================
   SHARED SECTION STYLES
   ============================== */
section { padding: 6rem 1.5rem; }

.section-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  display: inline-block;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 7px;
  background: linear-gradient(to right, var(--amber), var(--rust));
  border-radius: 1px;
  box-shadow: 0 0 7px rgba(255,140,0,0.4);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

/* Fade-in — JS adds .visible */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   ABOUT
   ============================== */
#about {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255,140,0,0.02) 50%, transparent);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  display: block;
}

.about-name {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.about-photo {
  width: 158px;
  height: 158px;
  border-radius: 50%;
  border: 2px solid var(--border);
  margin-bottom: 1.4rem;
  flex-shrink: 0;
  background-image: url('/audio/img/profile.jpg');
  background-size: 95% auto;
  background-repeat: no-repeat;
  background-position: calc(50% - 3px) -13px;
  background-color: var(--bg-card);
  filter: grayscale(15%);
  transition: filter var(--t), border-color var(--t), box-shadow var(--t);
}
.about-photo:hover {
  filter: grayscale(0%);
  border-color: rgba(255,170,0,0.45);
  box-shadow: 0 0 22px rgba(255,140,0,0.2);
}

.about-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-text strong {
  color: var(--text);
  font-weight: 500;
}

/* ==============================
   PRODUCTS
   ============================== */
#products {
  background: linear-gradient(180deg, transparent 0%, rgba(255,140,0,0.015) 50%, transparent 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(255,140,0,0.07);
  background: var(--bg-card-hover);
}

.card-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid;
}
.badge-plugdata { color: var(--amber);       border-color: rgba(255,170,0,0.35);  background: rgba(255,170,0,0.07); }
.badge-m4l      { color: var(--rust);        border-color: rgba(255,100,0,0.35);  background: rgba(255,100,0,0.07); }
.badge-python   { color: #d4c464;            border-color: rgba(200,190,80,0.35); background: rgba(200,190,80,0.06); }
.badge-vst3     { color: #a0c8ff;            border-color: rgba(140,190,255,0.35);background: rgba(140,190,255,0.07); }
.badge-free     { color: var(--price-free);  border-color: rgba(126,207,58,0.35); background: rgba(126,207,58,0.07); }
.badge-paid     { color: var(--amber);       border-color: rgba(255,170,0,0.35);  background: rgba(255,170,0,0.07); }
.badge-new      { color: #fff;               border-color: rgba(255,255,255,0.25);background: rgba(255,255,255,0.07); letter-spacing: 0.15em; }

.card-title {
  font-family: var(--font-title);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.68;
  flex: 1;
}

.btn-gumroad {
  display: block;
  margin-top: 0.25rem;
  padding: 0.58rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,170,0,0.28);
  color: var(--amber);
  border-radius: 7px;
  text-align: center;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
}
.btn-gumroad:hover {
  background: rgba(255,170,0,0.09);
  border-color: var(--amber);
  box-shadow: 0 0 14px rgba(255,170,0,0.22);
}
.btn-gumroad-paid {
  border-color: rgba(255,100,0,0.28);
  color: var(--rust);
}
.btn-gumroad-paid:hover {
  background: rgba(255,100,0,0.09);
  border-color: var(--rust);
  box-shadow: 0 0 14px rgba(255,100,0,0.22);
}
.btn-gumroad--disabled {
  border-color: rgba(255,255,255,0.1);
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
  font-style: italic;
}

/* Featured product card */
.product-card--featured {
  grid-column: 1 / -1;
  border-color: rgba(255,170,0,0.22);
  background: linear-gradient(135deg, #161108 0%, #0f0d09 100%);
}
.product-card--featured:hover {
  border-color: rgba(255,170,0,0.45);
  box-shadow: 0 0 32px rgba(255,140,0,0.1);
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.card-product-logo {
  height: 70px;
  width: auto;
  flex-shrink: 0;
  mix-blend-mode: screen;
  opacity: 0.9;
  filter: drop-shadow(0 0 14px rgba(0,210,255,0.35));
  transition: opacity var(--t), filter var(--t);
}
.product-card--featured:hover .card-product-logo {
  opacity: 1;
  filter: drop-shadow(0 0 22px rgba(0,220,255,0.55));
}
@media (max-width: 500px) {
  .card-top { flex-direction: column; }
  .card-product-logo { height: 50px; }
}

/* ==============================
   TIMELINE
   ============================== */
#research {
  background: linear-gradient(180deg, transparent, rgba(200,80,0,0.02) 50%, transparent);
}

.timeline {
  position: relative;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--amber) 20%, var(--rust) 80%, transparent 100%);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2.25rem);
  margin-bottom: 3rem;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2.25rem);
}

.timeline-dot {
  position: absolute;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber), 0 0 18px rgba(255,170,0,0.4);
  z-index: 1;
  animation: dotPulseAmber 3s ease-in-out infinite;
}
.timeline-item:nth-child(even) .timeline-dot {
  background: var(--rust);
  box-shadow: 0 0 8px var(--rust), 0 0 18px rgba(255,100,0,0.4);
  animation: dotPulseRust 3s ease-in-out infinite;
}

@keyframes dotPulseAmber {
  0%,100% { box-shadow: 0 0 6px var(--amber), 0 0 14px rgba(255,170,0,0.35); }
  50%      { box-shadow: 0 0 12px var(--amber), 0 0 24px rgba(255,170,0,0.6); }
}
@keyframes dotPulseRust {
  0%,100% { box-shadow: 0 0 6px var(--rust), 0 0 14px rgba(255,100,0,0.35); }
  50%      { box-shadow: 0 0 12px var(--rust), 0 0 24px rgba(255,100,0,0.6); }
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  max-width: 440px;
  transition: border-color var(--t), box-shadow var(--t);
}
.timeline-card:hover {
  border-color: rgba(255,170,0,0.28);
  box-shadow: 0 0 18px rgba(255,140,0,0.06);
}
.timeline-item:nth-child(even) .timeline-card:hover {
  border-color: rgba(255,100,0,0.28);
  box-shadow: 0 0 18px rgba(255,100,0,0.06);
}

.timeline-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.55rem;
}
.timeline-item:nth-child(even) .timeline-date { color: var(--rust); }

.timeline-card h3 {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}
.timeline-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.68;
}

.timeline-img {
  display: block;
  margin: 1.4rem auto 0;
  max-width: 160px;
  width: 100%;
  mix-blend-mode: screen;
  opacity: 0.9;
  filter: drop-shadow(0 0 14px rgba(0, 210, 255, 0.38));
  transition: opacity var(--t), filter var(--t);
}
.timeline-img:hover {
  opacity: 1;
  filter: drop-shadow(0 0 22px rgba(0, 220, 255, 0.58));
}

/* ==============================
   CONTACT
   ============================== */
#contact { text-align: center; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
  color: var(--text-muted);
  transition: border-color var(--t), box-shadow var(--t), color var(--t);
}
.contact-card:hover {
  border-color: rgba(255,170,0,0.3);
  box-shadow: 0 0 16px rgba(255,140,0,0.07);
  color: var(--amber);
}
.contact-card svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.contact-card span {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==============================
   FOOTER
   ============================== */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}
.footer-container img  { height: 28px; opacity: 0.6; }
.footer-container p    { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }
.footer-container a    { font-size: 0.78rem; color: var(--amber); font-family: var(--font-mono); transition: text-shadow var(--t); }
.footer-container a:hover { text-shadow: 0 0 8px rgba(255,170,0,0.55); }

/* ==============================
   RESPONSIVE — TABLET
   ============================== */
@media (max-width: 860px) {
  .products-grid  { grid-template-columns: 1fr; }
  .about-inner    { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==============================
   RESPONSIVE — MOBILE
   ============================== */
@media (max-width: 680px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  #hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero-logo    { height: 64px; }
  .hero-tagline { font-size: 1.45rem; }

  .timeline::before { left: 18px; transform: none; }

  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 3.5rem;
    padding-right: 0;
  }
  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 18px;
    transform: none;
  }
  .timeline-card  { max-width: 100%; }
  .contact-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .section-title    { font-size: 1.2rem; }
  .contact-card span { font-size: 0.73rem; }
}
