@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;900&family=Orbitron:wght@500;700;900&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #050811;
  --bg-card: rgba(10, 17, 32, 0.7);
  --bg-card-hover: rgba(16, 28, 54, 0.85);
  
  --color-fire-start: #ff2a00;
  --color-fire-mid: #ff6a00;
  --color-fire-end: #ffa600;
  
  --color-cyber-green: #00ff80;
  --color-cyber-blue: #00f0ff;
  --color-cyber-red: #ff3838;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9eaec4;
  --text-muted: #64748b;
  
  --border-fire: rgba(255, 106, 0, 0.2);
  --border-fire-hover: rgba(255, 106, 0, 0.5);
  --border-cyber: rgba(0, 240, 255, 0.2);
  --border-cyber-hover: rgba(0, 240, 255, 0.5);
  
  /* Gradients */
  --grad-fire: linear-gradient(135deg, var(--color-fire-start) 0%, var(--color-fire-mid) 50%, var(--color-fire-end) 100%);
  --grad-cyber: linear-gradient(135deg, var(--color-cyber-green) 0%, var(--color-cyber-blue) 100%);
  --grad-patriot: linear-gradient(135deg, var(--color-cyber-blue) 0%, var(--color-cyber-red) 100%);
  --grad-dark-overlay: linear-gradient(180deg, rgba(5, 8, 17, 0.3) 0%, rgba(5, 8, 17, 0.95) 100%);
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background animated elements */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-glow-fire {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.12) 0%, rgba(255, 42, 0, 0.03) 50%, transparent 100%);
  filter: blur(80px);
  animation: floatGlow 12s ease-in-out infinite alternate;
}

.bg-glow-cyber {
  position: absolute;
  bottom: -10%;
  right: 15%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(0, 255, 128, 0.02) 60%, transparent 100%);
  filter: blur(100px);
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -50px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #1b2640;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-fire-mid);
}

/* --- Container & Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Header Section --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 8, 17, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(3, 5, 11, 0.9);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 106, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height 0.3s ease;
}

header.scrolled .container {
  height: 60px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.logo-img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--color-fire-mid));
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
  transform: rotate(5deg) scale(1.08);
}

.logo-text span {
  background: var(--grad-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  padding: 4px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-fire);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 106, 0, 0.4);
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid rgba(255, 106, 0, 0.25);
  border-radius: 100px;
  color: var(--color-fire-mid);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 5px rgba(255, 106, 0, 0.1); }
  100% { box-shadow: 0 0 15px rgba(255, 106, 0, 0.3); }
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
}

.hero-title span {
  background: var(--grad-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-descr {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--grad-fire);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(255, 42, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 42, 0, 0.5), 0 0 15px rgba(255, 166, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero graphic/visual representation */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.15) 0%, transparent 70%);
  z-index: -1;
}

.hero-logo-large {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 35px rgba(255, 106, 0, 0.35));
  animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* --- Global Section Settings --- */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-subtitle {
  color: var(--color-fire-mid);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
}

/* --- Games Section --- */
.games-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.game-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-fire);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--grad-fire);
}

.game-card.hacker {
  grid-template-columns: 0.9fr 1.1fr;
  border-color: var(--border-cyber);
}

.game-card.hacker::before {
  background: var(--grad-cyber);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.game-card.patriot:hover {
  border-color: var(--border-fire-hover);
  box-shadow: 0 30px 60px rgba(255, 106, 0, 0.08), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.game-card.hacker:hover {
  border-color: var(--border-cyber-hover);
  box-shadow: 0 30px 60px rgba(0, 240, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Media Side */
.game-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 9;
}

.game-promo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .game-promo-img {
  transform: scale(1.05);
}

.game-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid var(--color-fire-mid);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-fire-mid);
  backdrop-filter: blur(8px);
}

.game-card.hacker .game-badge {
  border-color: var(--color-cyber-blue);
  color: var(--color-cyber-blue);
}

/* Info Side */
.game-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.game-card.patriot .game-title {
  text-shadow: 0 0 15px rgba(255, 42, 0, 0.2);
}

.game-card.hacker .game-title {
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.game-genre {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-fire-mid);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.game-card.hacker .game-genre {
  color: var(--color-cyber-green);
}

.game-description {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
}

.game-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.game-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 106, 0, 0.15);
  border-radius: 50%;
  color: var(--color-fire-mid);
  font-size: 11px;
  font-weight: bold;
}

.game-card.hacker .game-features li::before {
  background: rgba(0, 255, 128, 0.15);
  color: var(--color-cyber-green);
}

/* Store Buttons */
.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #0b1220;
  border: 1px solid #1c2a47;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.store-btn:hover {
  background: #111a2f;
  border-color: var(--color-fire-mid);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 106, 0, 0.15);
}

.game-card.hacker .store-btn:hover {
  border-color: var(--color-cyber-blue);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.15);
}

.store-icon {
  font-size: 24px;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
}

.store-btn-subtitle {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.store-btn-title {
  font-size: 14px;
  font-weight: 700;
}

/* --- About Company Section --- */
.about {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(10, 17, 32, 0.3) 50%, var(--bg-dark) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content h3 {
  font-size: 28px;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: var(--border-fire);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 900;
  background: var(--grad-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* --- Contact Section --- */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-descr {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 20px 32px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-fire);
  box-shadow: 0 10px 25px rgba(255, 106, 0, 0.05);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid var(--border-fire);
  border-radius: 12px;
  color: var(--color-fire-mid);
  font-size: 20px;
}

.contact-item-text {
  text-align: left;
}

.contact-item-text span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item-text a, .contact-item-text p {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-item-text a:hover {
  color: var(--color-fire-mid);
}

/* --- Footer --- */
footer {
  background: #020409;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0b1220;
  border: 1px solid #1c2a47;
  color: var(--text-secondary);
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--color-fire-mid);
  color: #fff;
  border-color: var(--color-fire-mid);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 106, 0, 0.3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* --- Responsive Adaptability --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }
  
  .game-card, .game-card.hacker {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px;
  }
  
  .game-card.hacker .game-info {
    order: -1;
  }
  
  .about-grid, .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-descr {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
}
