/* ============================================
   TR-EX GAMES — Premium Website Stylesheet
   ============================================ */

/* ── FONT DEFINITION: ABNES ── */
@font-face {
  font-family: 'Abnes';
  src: url('abnes.ttf') format('truetype'),
       url('abnes.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #C89F31;
  --gold-light:  #ECC859;
  --gold-mid:    #C89F31;
  --gold-dark:   #9B761B;
  --gold-glow:   rgba(200, 159, 49, 0.25);
  --brand-color: #8e8ea8;
  --black:       #060608;
  --black-1:     #0b0b0f;
  --black-2:     #111117;
  --black-3:     #181822;
  --black-4:     #222230;
  --white:       #ffffff;
  --gray-1:      #b0b0c2;
  --gray-2:      #8e8ea8;
  --font-brand:   'Abnes', 'Space Grotesk', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-ui:      'Rajdhani', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --nav-h:       74px;
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black-1); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── PARTICLE CANVAS ── */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}
#navbar.scrolled {
  background: rgba(6, 6, 8, 0.92);
  border-bottom-color: rgba(200, 159, 49, 0.18);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Top-Left Navbar Logo - Exact parallel center alignment */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  height: 100%;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(200, 159, 49, 0.35));
  transition: transform var(--transition);
}
.nav-logo:hover .nav-logo-img { transform: scale(1.06); }

.nav-brand {
  font-family: var(--font-brand);
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
  color: var(--brand-color);
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links { display: flex; list-style: none; gap: 36px; }
.nav-link {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray-1);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold-light); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; transition: var(--transition); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(6,6,8,0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(200, 159, 49, 0.18);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu ul { list-style: none; padding: 16px 0; }
.mobile-menu li a {
  display: block;
  padding: 14px 5%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gray-1);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 159, 49, 0.07);
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-menu li a:hover { color: var(--gold); padding-left: calc(5% + 12px); }

/* ── HERO SECTION ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 10px) 5% 70px;
  overflow: hidden;
  z-index: 1;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 40%, rgba(200,159,49,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 10%, rgba(200,159,49,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  z-index: 1;
}

/* Logo Wrapper & Snug Spacing */
.logo-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 0px;
}

/* 100% Perfect Center Container for trexgamespence-03.png */
.hero-emblem-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: emblemEntrance 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0 auto;
  isolation: isolate;
}

@keyframes emblemEntrance {
  0%   { opacity: 0; transform: scale(0.4) translateY(30px); }
  60%  { opacity: 1; transform: scale(1.06) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* All atmospheric FX live strictly behind the logo */
.emblem-fx-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  animation: fxBackdropGlow 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes fxBackdropGlow {
  0%   { opacity: 0; }
  60%  { opacity: 1; }
  100% { opacity: 1; }
}

/* Deep ground shadow beneath emblem */
.emblem-shadow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 36px;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 40%, transparent 72%);
  filter: blur(12px);
  z-index: 1;
  pointer-events: none;
  animation: shadowPulse 4.5s ease-in-out infinite alternate;
}

@keyframes shadowPulse {
  0%   { opacity: 0.7; transform: translateX(-50%) scale(0.9); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Atmospheric fog / mist — positioned around logo, not over it */
.emblem-mist {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.emblem-mist--1 {
  width: 320px;
  height: 170px;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 80% 55% at 50% 50%, rgba(180,175,160,0.14) 0%, rgba(120,115,100,0.06) 42%, transparent 70%);
  filter: blur(26px);
  animation: mistDrift1 9s ease-in-out infinite;
}

@keyframes mistDrift1 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50%      { transform: translate(-46%, -48%) scale(1.08); opacity: 0.85; }
}

.hero-emblem-img {
  width: 152px;
  height: 152px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  filter: contrast(1.2) brightness(1.02) saturate(1.1);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  transition: transform 0.5s ease, filter 0.45s ease;
}

/* Hover glow — gold radiance behind logo */
.emblem-hover-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 210px;
  height: 210px;
  transform: translate(-50%, -50%) scale(0.85);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 220, 120, 0.55) 0%,
    rgba(200, 159, 49, 0.32) 32%,
    rgba(200, 159, 49, 0.1) 55%,
    transparent 72%
  );
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hero-emblem-container:hover .emblem-hover-glow {
  opacity: 1;
  animation: emblemGlowPulse 2s ease-in-out infinite;
}

@keyframes emblemGlowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.65;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

/* Shine sweep across logo on hover */
.emblem-shine-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 158px;
  height: 158px;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.emblem-shine-sweep::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 235, 160, 0.15) 44%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 235, 160, 0.15) 56%,
    transparent 62%
  );
  transform: translateX(-130%) skewX(-14deg);
}

.hero-emblem-container:hover .emblem-shine-sweep {
  opacity: 1;
}

.hero-emblem-container:hover .emblem-shine-sweep::after {
  animation: emblemShineSweep 1.6s ease-in-out infinite;
}

@keyframes emblemShineSweep {
  0%   { transform: translateX(-130%) skewX(-14deg); }
  100% { transform: translateX(130%) skewX(-14deg); }
}

.hero-emblem-container:hover .hero-emblem-img {
  filter:
    contrast(1.28)
    brightness(1.1)
    saturate(1.15)
    drop-shadow(0 0 18px rgba(200, 159, 49, 0.55))
    drop-shadow(0 0 6px rgba(255, 230, 140, 0.45));
}

.hero-emblem-container:hover .logo-glow-ring.ring1 {
  border-color: rgba(200, 159, 49, 0.55);
  box-shadow: 0 0 50px rgba(200, 159, 49, 0.25);
  animation-duration: 2.2s;
}

.hero-emblem-container:hover .logo-glow-ring.ring2 {
  border-color: rgba(200, 159, 49, 0.28);
  animation-duration: 2.8s;
}

.hero-emblem-container:hover .logo-glow-ring.ring3 {
  border-color: rgba(200, 159, 49, 0.14);
  animation-duration: 3.4s;
}

/* Concentric Orbital Rings centered 100% DEAD-CENTER on emblem-container */
.logo-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(200,159,49,0.14);
  pointer-events: none;
  box-sizing: border-box;
}
.logo-glow-ring.ring1 {
  width: 200px; height: 200px;
  border-color: rgba(200,159,49,0.32);
  box-shadow: 0 0 35px rgba(200,159,49,0.1);
  animation: ringPulse 4.5s ease-in-out infinite;
}
.logo-glow-ring.ring2 {
  width: 285px; height: 285px;
  border-color: rgba(200,159,49,0.14);
  animation: ringPulse 4.5s ease-in-out infinite 1.5s;
}
.logo-glow-ring.ring3 {
  width: 370px; height: 370px;
  border-color: rgba(200,159,49,0.06);
  animation: ringPulse 4.5s ease-in-out infinite 3s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.04); }
}

/* Logo Text Wrap */
.logo-text-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  animation: fadeSlideUp 0.9s 1.3s ease forwards;
  opacity: 0;
  z-index: 2;
}
.logo-line {
  height: 1px;
  width: 65px;
  background: linear-gradient(90deg, transparent, rgba(200,159,49,0.5));
}
.logo-line:last-child { background: linear-gradient(90deg, rgba(200,159,49,0.5), transparent); }

.logo-title {
  font-family: var(--font-brand);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--brand-color);
  text-transform: uppercase;
}

.logo-tagline {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  color: var(--gray-2);
  animation: fadeSlideUp 0.9s 1.5s ease forwards;
  opacity: 0;
  text-transform: uppercase;
  margin-top: -2px;
}

@keyframes fadeSlideUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Subtitle */
.hero-subtitle { animation: fadeSlideUp 0.9s 1.7s ease forwards; opacity: 0; }
.hero-subtitle p {
  font-size: 1.15rem;
  color: var(--gray-1);
  font-weight: 400;
  letter-spacing: 0.01em;
  max-width: 540px;
}

.gold-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeSlideUp 0.9s 1.9s ease forwards;
  opacity: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(200,159,49,0.45); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary svg { width: 16px; height: 16px; transition: transform var(--transition); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 34px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1.5px solid var(--gold-dark);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,159,49,0.22);
}

.full-width { width: 100%; justify-content: center; }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 52px;
  animation: fadeSlideUp 0.9s 2.1s ease forwards;
  opacity: 0;
  margin-top: 8px;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.76rem;
  color: var(--gray-2);
  letter-spacing: 0.07em;
  margin-top: 6px;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 500;
}
.stat-divider { width: 1px; height: 50px; background: linear-gradient(to bottom, transparent, var(--gold-dark), transparent); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeSlideUp 1s 2.5s ease forwards, scrollBounce 2s 3.6s ease-in-out infinite;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
}
.scroll-indicator span { font-size: 0.68rem; letter-spacing: 0.22em; color: var(--gray-2); text-transform: uppercase; font-family: var(--font-display); }
.scroll-arrow { width: 18px; height: 18px; border-right: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: rotate(45deg); }
@keyframes scrollBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ── SECTIONS ── */
.section { position: relative; padding: 110px 5%; z-index: 1; }
.section-dark { background: var(--black-1); }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 72px; }
.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 18px;
  text-transform: uppercase;
  font-weight: 600;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.section-desc { color: var(--gray-1); max-width: 580px; margin: 0 auto; font-size: 1.05rem; font-weight: 400; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ABOUT / HAKKIMIZDA CARDS ── */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.about-card {
  background: linear-gradient(145deg, var(--black-3), var(--black-2));
  border: 1px solid rgba(200,159,49,0.12);
  border-radius: 20px;
  padding: 42px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.about-card:nth-child(2) { transition-delay: 100ms; }
.about-card:nth-child(3) { transition-delay: 200ms; }
.about-card:hover {
  border-color: rgba(200,159,49,0.42);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(200,159,49,0.14);
}

.about-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, rgba(200,159,49,0.18), rgba(200,159,49,0.04));
  border: 1px solid rgba(200,159,49,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.about-card:hover .about-icon-box {
  border-color: var(--gold);
  background: radial-gradient(circle at 30% 30%, rgba(200,159,49,0.28), rgba(200,159,49,0.08));
  transform: scale(1.08);
}

.pro-svg-icon {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 10px rgba(200,159,49,0.4));
}

.about-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.04em; color: var(--gold-light); margin-bottom: 14px; }
.about-card p { color: var(--gray-1); font-size: 0.95rem; line-height: 1.75; }

/* ── APP CARDS ── */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 28px; }
.apps-grid.single-app { max-width: 640px; margin: 0 auto; }

.app-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--transition);
}
.app-card:hover { transform: translateY(-8px); }
.app-card:hover .app-card-glow { opacity: 1; }

.app-card-inner {
  background: linear-gradient(145deg, var(--black-3), var(--black-2));
  border: 1px solid rgba(200,159,49,0.18);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-card-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(200,159,49,0.35), transparent 50%, rgba(200,159,49,0.18));
  border-radius: 22px;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.app-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(200,159,49,0.12);
  border: 1px solid var(--gold-dark);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  border-radius: 5px;
}
.app-badge.live { background: rgba(61,220,132,0.12); border-color: rgba(61,220,132,0.4); color: #3DCC84; }

.app-card-top { display: flex; align-items: center; gap: 20px; }

.app-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px; height: 90px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--black-4);
  border: 1px solid rgba(200,159,49,0.22);
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.app-icon-img { width: 100%; height: 100%; object-fit: cover; }

.app-head-info { display: flex; flex-direction: column; gap: 4px; }

.platform-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.platform-badge.android { background: rgba(61,220,132,0.1); color: #3DCC84; border: 1px solid rgba(61,220,132,0.28); }
.platform-badge.ios { background: rgba(120,120,255,0.1); color: #7878FF; border: 1px solid rgba(120,120,255,0.28); }
.platform-badge.multi { background: rgba(200,159,49,0.12); color: var(--gold-light); border: 1px solid rgba(200,159,49,0.3); }

.app-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.03em; color: var(--white); }
.app-category { font-size: 0.8rem; color: var(--gray-2); font-weight: 500; }
.app-rating { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.app-rating .stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; }
.app-rating .rating-text { font-size: 0.76rem; color: var(--gray-1); font-weight: 500; }

.app-desc { color: var(--gray-1); font-size: 0.95rem; line-height: 1.75; }

.app-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 14px;
  background: rgba(200,159,49,0.07);
  border: 1px solid rgba(200,159,49,0.2);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.app-actions { margin-top: 4px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(200,159,49,0.09);
  border: 1px solid rgba(200,159,49,0.3);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.store-btn:hover { background: rgba(200,159,49,0.2); border-color: var(--gold); transform: translateY(-2px); }

/* ── DEV CARDS ── */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 28px; }

.dev-card {
  position: relative;
  border-radius: 20px;
  transition: transform var(--transition);
}
.dev-card:nth-child(2) { transition-delay: 150ms; }
.dev-card:hover { transform: translateY(-6px); }

.dev-card-inner {
  background: linear-gradient(145deg, var(--black-3), var(--black-2));
  border: 1px solid rgba(200,159,49,0.12);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
  transition: border-color var(--transition);
}
.dev-card:hover .dev-card-inner { border-color: rgba(200,159,49,0.35); }

.dev-card-border {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, transparent 40%, rgba(200,159,49,0.06) 100%);
  pointer-events: none;
}

.dev-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dev-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-1);
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3DCC84;
  box-shadow: 0 0 0 0 rgba(61,204,132,0.5);
  animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
  0%  { box-shadow: 0 0 0 0 rgba(61,204,132,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(61,204,132,0); }
  100%{ box-shadow: 0 0 0 0 rgba(61,204,132,0); }
}

.dev-icon-wrap {
  width: 80px; height: 80px;
  border-radius: 18px;
}

.dev-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.03em; color: var(--white); }
.dev-desc { color: var(--gray-1); font-size: 0.94rem; line-height: 1.74; }

.dev-progress-wrap { display: flex; flex-direction: column; gap: 9px; }
.dev-progress-label { display: flex; justify-content: space-between; align-items: center; }
.dev-progress-label span { font-family: var(--font-display); font-size: 0.76rem; color: var(--gray-2); letter-spacing: 0.04em; }
.progress-pct { color: var(--gold-light) !important; font-weight: 700 !important; }
.dev-progress-bar { height: 5px; background: var(--black-4); border-radius: 5px; overflow: hidden; }
.dev-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 5px;
  width: 0;
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── CONTACT ── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: 52px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; align-items: center; gap: 18px; }

/* Contact Vector Icon Box */
.contact-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(200,159,49,0.18), rgba(200,159,49,0.04));
  border: 1px solid rgba(200,159,49,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.contact-item:hover .contact-icon-box {
  border-color: var(--gold);
  background: radial-gradient(circle at 30% 30%, rgba(200,159,49,0.28), rgba(200,159,49,0.08));
  transform: scale(1.06);
}

.pro-svg-icon-sm {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 8px rgba(200,159,49,0.4));
}

.contact-item h4 { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--gray-2); text-transform: uppercase; margin-bottom: 4px; }
.contact-item a { color: var(--gold-light); text-decoration: none; font-size: 0.98rem; transition: color var(--transition); }
.contact-item a:hover { color: var(--gold); }

.social-links { display: flex; gap: 12px; margin-top: 4px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: rgba(200,159,49,0.06);
  border: 1px solid rgba(200,159,49,0.18);
  border-radius: 11px;
  color: var(--gold);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { background: rgba(200,159,49,0.16); border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }

.contact-brand-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px;
  background: rgba(200,159,49,0.04);
  border: 1px solid rgba(200,159,49,0.12);
  border-radius: 16px;
}
.contact-brand-logo { width: 85px; height: auto; object-fit: contain; filter: drop-shadow(0 0 14px rgba(200,159,49,0.45)); }
.brand-subtext {
  font-family: var(--font-brand);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--brand-color);
  text-transform: uppercase;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: linear-gradient(145deg, var(--black-3), var(--black-2));
  border: 1px solid rgba(200,159,49,0.14);
  border-radius: 20px;
  padding: 40px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--gray-2); text-transform: uppercase; }
.form-group input,
.form-group textarea {
  background: var(--black-4);
  border: 1px solid rgba(200,159,49,0.15);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 18px;
  border-radius: 10px;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-2); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(200,159,49,0.1); }

.form-msg {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  display: none;
}
.form-msg.success { background: rgba(61,204,132,0.1); color: #3DCC84; border: 1px solid rgba(61,204,132,0.28); display: block; }
.form-msg.error { background: rgba(255,80,80,0.1); color: #FF5050; border: 1px solid rgba(255,80,80,0.28); display: block; }

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(200,159,49,0.1);
  padding: 44px 5%;
  z-index: 1;
  position: relative;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo-img { height: 34px; width: auto; object-fit: contain; }
.footer-logo span {
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--brand-color);
  text-transform: uppercase;
}
.footer-copy { font-size: 0.82rem; color: var(--gray-2); }
.footer-links { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; }
.footer-links a { color: var(--gray-2); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-links span { color: var(--gold-dark); }
.footer-tagline { font-size: 0.78rem; color: var(--gray-2); opacity: 0.55; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-emblem-container { width: 170px; height: 170px; }
  .hero-emblem-img { width: 128px; height: 128px; }
  .emblem-shadow { width: 115px; height: 26px; }
  .emblem-mist--1 { width: 240px; height: 130px; }
  .logo-title { font-size: 1.25rem; letter-spacing: 0.22em; }
  .logo-tagline { font-size: 0.68rem; letter-spacing: 0.28em; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 80px; height: 1px; }
  .apps-grid, .dev-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { justify-content: center; }
  .logo-wrapper { padding: 10px 10px; }
  .logo-glow-ring.ring1 { width: 170px; height: 170px; }
  .logo-glow-ring.ring2 { width: 250px; height: 250px; }
  .logo-glow-ring.ring3 { display: none; }
}
