/* 
   Nitro Sloth Games - Stylesheet
   Design Theme: Dark first, high contrast orange/yellow accents, glassmorphic UI.
*/

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

:root {
  /* Color System */
  --bg-color: #0b0d19;
  --bg-gradient: radial-gradient(circle at top, #181d36 0%, #080a12 70%);
  --panel-bg: rgba(22, 28, 51, 0.45);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-hover: rgba(255, 122, 0, 0.3);
  
  --accent-orange: #ff7a00;
  --accent-orange-glow: rgba(255, 122, 0, 0.5);
  --accent-yellow: #ffd400;
  --accent-yellow-glow: rgba(255, 212, 0, 0.4);
  
  --text-main: #f3f5fa;
  --text-muted: #a4adcb;
  --text-dark: #12141c;
  
  --success: #00e676;
  --error: #ff1744;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: 6rem 0;
  position: relative;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--panel-border-hover);
  box-shadow: 0 12px 40px 0 rgba(255, 122, 0, 0.1);
}

/* Header & Navigation */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 13, 25, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.logo-link img {
  height: 42px;
  width: auto;
}

.logo-highlight {
  color: var(--accent-orange);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-item a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--text-main);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
  transition: var(--transition-smooth);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
  color: var(--text-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-orange-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  border-color: var(--accent-orange);
  background: rgba(255, 122, 0, 0.05);
  transform: translateY(-2px);
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Hero Section */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  min-height: 100vh;
  padding-top: 80px;
  gap: 4rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tag {
  color: var(--accent-yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-graphic img {
  max-width: 100%;
  height: auto;
  border-radius: 32px;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

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

/* Featured Game card layout */
.game-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem;
  margin-top: 3rem;
}

.game-gallery {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
}

.game-gallery img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition-smooth);
}

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

.game-gallery .featured-image {
  grid-row: span 2;
  align-self: center;
}

.game-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 122, 0, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 122, 0, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
  text-transform: uppercase;
}

.game-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.game-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.game-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

.store-badges {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.store-badge img {
  height: 48px;
  transition: var(--transition-smooth);
}

.store-badge img:hover {
  transform: translateY(-2px);
}

/* General Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.game-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
}

.game-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
}

.game-card-status {
  font-size: 0.8rem;
  color: var(--accent-yellow);
  font-weight: 600;
  text-transform: uppercase;
}

/* Roadmap timeline */
.roadmap-timeline {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 1;
}

.roadmap-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.roadmap-node {
  width: 32px;
  height: 32px;
  background: var(--bg-color);
  border: 3px solid var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent-orange);
  box-shadow: 0 0 15px var(--accent-orange-glow);
}

.roadmap-step.active .roadmap-node {
  background: var(--accent-orange);
  color: var(--text-dark);
}

.roadmap-step.future .roadmap-node {
  border-color: var(--text-muted);
  box-shadow: none;
  color: var(--text-muted);
}

.roadmap-step-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.roadmap-step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 200px;
}

/* Timeline vertical layout for smaller screens */
@media (max-width: 900px) {
  .roadmap-timeline {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .roadmap-timeline::before {
    top: 2rem;
    bottom: 2rem;
    left: 16px;
    width: 2px;
    height: auto;
  }
  .roadmap-step {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .roadmap-node {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* Latest News / Devlogs Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.news-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--panel-border);
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--accent-yellow);
}

.news-link {
  color: var(--accent-orange);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-link:hover {
  color: var(--accent-yellow);
}

/* Press Kit Section */
.press-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-top: 3rem;
}

.factsheet-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.factsheet-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.factsheet-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 40%;
}

.press-assets-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.asset-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.asset-card {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.asset-preview-box {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.asset-preview-box img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.asset-preview-box.watermark-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-download-btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* B2B Services Styles */
.b2b-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.b2b-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.b2b-icon {
  font-size: 2.5rem;
  color: var(--accent-orange);
}

/* Process Timeline (Horizontal) */
.process-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-number {
  width: 48px;
  height: 48px;
  background: var(--panel-bg);
  border: 2px solid var(--accent-yellow);
  color: var(--accent-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.process-step-title {
  font-size: 0.95rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .process-list {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
  }
}

/* Team layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.team-card {
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-orange);
  box-shadow: 0 0 20px var(--accent-orange-glow);
  margin-bottom: 1rem;
}

.team-role {
  color: var(--accent-yellow);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Contact form styling */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 122, 0, 0.2);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-details h4 {
  font-size: 1.1rem;
}

.contact-details p {
  font-size: 0.95rem;
}

.contact-form {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  background: rgba(11, 13, 25, 0.6);
  border: 1px solid var(--panel-border);
  padding: 1rem;
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 15px var(--accent-orange-glow);
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

/* FAQ layout */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  padding: 1.5rem 2rem;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--accent-orange);
  transition: var(--transition-smooth);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
  margin-top: 0;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 1rem;
}

/* Footer Section */
footer.site-footer {
  background: #06070e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.footer-brand-title span {
  color: var(--accent-orange);
}

.footer-brand p {
  font-size: 0.85rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-links a:hover {
  color: var(--accent-orange);
  padding-left: 4px;
}

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

.klyph-tag {
  color: var(--accent-yellow);
  font-weight: 600;
}

/* Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
    gap: 2.5rem;
  }
  .hero-graphic {
    max-width: 400px;
    margin: 0 auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .game-featured-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .press-grid {
    grid-template-columns: 1fr;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(11, 13, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 3rem 0;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(-120%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
  }
  
  .nav-menu.mobile-open {
    transform: translateY(0);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
}
