/* NinjaTech AI Overlay Software - Main Stylesheet */

/* Base Variables */
:root {
  --dark-bg: #0e0e18;
  --card-bg: #1a1a2e;
  --card-bg-coming-soon: #1a1a2e;
  --accent-color: #ee257d;
  --accent-hover: #ff3385;
  --text-primary: #ffffff;
  --text-secondary: #b3b3cc;
  --gradient-bg: linear-gradient(135deg, rgba(14, 14, 24, 0.9), rgba(26, 26, 46, 0.9));
  --card-border: 1px solid rgba(255, 0, 102, 0.3);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --header-height: 80px;
  --transition-speed: 0.3s;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url('../images/bg-pattern.png');
  background-size: cover;
  background-attachment: fixed;
    user-select: none;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-color);
}

#home > div {
  justify-content: center !important;
  display: flex !important;
  align-items: center !important;
}

.container {
  width: 80%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;




}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 0, 102, 0.3);
  color:white;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 12px 28px;
  font-size: 16px;
  min-width: 0;
  box-sizing: border-box;
  
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.btn-icon {
  margin-right: 8px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(14, 14, 24, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.logo img {
  height: 40px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  margin-left: 10px;
  background: linear-gradient(to right, #ffffff, #ee257d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

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

/* Nav icons alignment */
.btn-icon {
  margin-right: 8px;
  width: 18px;
  text-align: center;
}

/* Changelogs Section */
.changelogs {
  padding: 80px 0px;
  padding-top: 130px !important;
  background-color: rgba(14,14,24,0.6);
  height: fit-content !important;
}

.changelogs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Make changelogs list scrollable within a fixed-height viewport */
.changelogs .container {
  display: flex;
  flex-direction: column;
}

.changelog-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.changelog-tabs {
  display: inline-flex;
  gap: 8px;
}

.changelog-tab {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.changelog-tab.active {
  background: linear-gradient(90deg, rgba(238,37,125,0.12), rgba(255,51,133,0.08));
  border-color: var(--accent-color);
}

/* Scroll container: limit height and allow vertical scroll */
.changelogs-list {
  /* no internal scrolling: use page scrolling + pagination controls */
  padding-right: 0;
}

/* Pagination controls */
.changelog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.changelog-page-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.changelog-page-btn.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.changelog-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.changelog-item {
  background-color: var(--card-bg);
  border: var(--card-border);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.changelog-item h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

.changelog-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.changelog-body ul {
  list-style: disc inside;
  color: var(--text-secondary);
}

.changelog-placeholder {
  color: var(--text-secondary);
}

.changelog-preview {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.changelog-preview br { line-height: 1.4; }

.changelog-full {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.changelog-toggle {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-bg);
  z-index: -1;
}

      .hero h1 {
        font-size: clamp(32px, 5.6vw, 56px);
        font-weight: 800;
        margin-bottom: 12px;
        line-height: 1.05;
        letter-spacing: -0.02em;
      }
    
      .hero p {
        font-size: clamp(14px, 1.6vw, 18px);
        color: var(--text-secondary);
        margin-bottom: 20px;
        max-width: 60ch;
        opacity: 0.95;
      }
    
      .hero-buttons {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
      }
    
      .hero-buttons .btn { min-width: 140px; padding: 12px 20px; border-radius: 15px; font-weight:700; height: 60px; }
      .hero-buttons .btn-primary { box-shadow: 0 12px 30px rgba(238,37,125,0.12); }
      .hero-buttons .btn-secondary { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  position: relative;
  width: 48%;
  max-width: 520px;
  margin-top: 0;
}



.hero-media {

  width: 490px;


  opacity: 1;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  will-change: opacity, transform;

}

.hero-video {
  width: 100%;
  border-radius: 18px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  display: block;




}

.video-sound-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.video-sound-btn.hidden { opacity:0; visibility:hidden; pointer-events:none; transition: opacity 0.35s ease; }

/* Games Section */
.games {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.game-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease;
}

.game-card-coming-soon {
  filter: grayscale(100%);
  opacity: 0.6;       /* facultatif pour accentuer l’effet */
  cursor: not-allowed; /* montre à l’utilisateur que ce n’est pas cliquable */
}

.game-card:hover {
  transform: translateY(-10px) !important;
  cursor: pointer;
}

.game-card-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 0, 102, 0.2);
}

.game-card-content {
  padding: 20px;
}

.game-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.game-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 14px;
}

.game-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-tag {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.status-available {
  background-color: rgba(0, 255, 0, 0.2);
  color: #00ff00;
}

.status-coming-soon {
  background-color: rgba(255, 0, 102, 0.2);
  color: var(--accent-color);
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: rgba(20, 20, 35, 0.7);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 0, 102, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon i {
  font-size: 24px;
  color: var(--accent-color);
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Screenshots Section */
.screenshots {
  padding: 100px 0;
}

.screenshots-slider {
  margin-top: 50px;
  position: relative;
}

.screenshot-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 0, 102, 0.2);
}

/* Download Section */
.download {
  padding: 100px 0;
  background-color: rgba(20, 20, 35, 0.7);
  text-align: center;
}

.download-content {
  max-width: 600px;
  margin: 0 auto;
}

.download h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.download p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.download-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 15px;
  background-color: var(--card-bg);
  border: var(--card-border);
  transition: all var(--transition-speed) ease;
  width: 180px;
}

.download-button:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.download-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.download-platform {
  font-weight: 600;
  font-size: 18px;
}

.download-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* About Section */
.about {
  padding: 100px 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;

}

.about-image img {
  width: 60%;
  height: auto;
  margin-left:140px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: rgba(10, 10, 20, 0.9);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-secondary);
  transition: all var(--transition-speed) ease;
}

.footer-column ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top:20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
}

.social-link:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.social-link i {
  font-size: 18px;
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

/* Background video that covers the #home > div area */
.bg-video {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: cover; /* cover the area while preserving aspect ratio */
  object-position: center center; /* center the visible area of the video */
  z-index: -2; /* behind hero overlay and gradient */
  pointer-events: none; /* allow clicks through the video */
  opacity: 0.95;
}

/* Ensure hero overlays (content and gradient) appear above the video */
.hero::before { z-index: -1; }
/* .hero-content  { z-index: 1; position: relative; } */


/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 42px;
  }
  
  .hero-image {
    width: 45%;
    opacity: 0.7;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image, .about-text {
    width: 100%;
  }
}

/* Hide promo video under 1254px and make hero content full-width */
@media (max-width: 1254px) {
  .hero-media {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    visibility: hidden !important;
    pointer-events: none !important;

  }
  .video-sound-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 1000px) {
  .hero-media {
    display: none !important;
}
}

@media (max-width: 1177px) {
  .changelogs {
    padding: 80px 0 60px;
  }
  /* Hide Font Awesome icons in the top navigation under 1177px width */
  nav .btn-icon {
    display: none !important;
    width: auto !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 20px 0;
  }
  
  header {
    height: auto;
  }
  
  nav ul {
    margin-top: 20px;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .hero {
    padding-top: 120px;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    display: none;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 32px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 5px 10px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 0.8s ease-in-out !important;
}

.slide-right {
  animation: slideRight 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}