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

/* ===================================================================
   CRYSIS DEMO — Nanosuit Theme
   Optimized & consolidated stylesheet
   =================================================================== */

/* --- CSS Variables --- */
:root {
  /* Nanosuit palette */
  --bg-dark: #05070a;
  --bg-panel: rgba(15, 20, 28, 0.7);
  --neon-green: #39ff14;
  --neon-teal: #00e5a0;
  --text-main: #e0e5ec;
  --text-muted: #8b9bb4;

  /* Defaults — Crysis green */
  --accent: var(--neon-green);

  /* Glassmorphism */
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(12px);

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --nav-height: 70px;
}

/* ===================================================================
   Reset & Base
   =================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Dot pattern background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(57, 255, 20, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
  pointer-events: none;
}

/* Links — tema scuro */
a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent);
}
a:visited {
  color: var(--text-main);
}

/* Typography */
h1, h2, h3, h4, .font-rajdhani {
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================================================================
   Navigation
   =================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(57, 255, 20, 0.15);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
}

.logo {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}
.logo:hover {
  color: #fff;
  text-decoration: none;
}
.logo span {
  color: var(--accent);
}

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

.nav-links li a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent);
}

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

/* Mobile menu */
.menu-btn {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 250px;
    height: calc(100vh - var(--nav-height));
    background: rgba(5, 7, 10, 0.97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.2rem;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(57, 255, 20, 0.1);
    overflow-y: auto;
  }
  .nav-links.active {
    right: 0;
  }
}

/* ===================================================================
   Container & Utilities
   =================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pt-100 { padding-top: 100px; }
.pb-5 { padding-bottom: 5rem; }
.mt-5 { margin-top: 5rem; }
.mb-5 { margin-bottom: 5rem; }

/* ===================================================================
   Glass Panel
   =================================================================== */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  padding: 2rem;
}

/* ===================================================================
   Section Title
   =================================================================== */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent);
}

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 6rem 0;
}

.crysis1-hero {
  background:
    radial-gradient(circle at center, rgba(57, 255, 20, 0.08) 0%, transparent 70%),
    linear-gradient(to bottom, transparent, var(--bg-dark));
}

.crysis2-hero {
  background:
    radial-gradient(circle at center, rgba(57, 255, 20, 0.05) 0%, transparent 70%);
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  letter-spacing: 5px;
  color: #fff;
}

.crysis1-hero h1 span {
  color: var(--neon-green);
}

.crysis2-hero h1 span {
  color: var(--neon-green);
}

.hero-title {
  font-size: 5.5rem;
  margin-bottom: 0.2rem;
  letter-spacing: 6px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 5px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero > .container > p,
.hero .hero-content > p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

.action-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Stats panel */
.stats-panel {
  display: flex;
  justify-content: space-around;
  padding: 1.5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat h3 {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat p {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* C2 badge */
.c2-badge {
  display: inline-block;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* Divider between sections */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  opacity: 0.5;
}
.divider .line {
  height: 1px;
  width: 100px;
  background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
}
.divider .hexagon {
  width: 20px;
  height: 20px;
  border: 1px solid var(--text-muted);
  margin: 0 1rem;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(45deg, transparent 5%, rgba(57, 255, 20, 0.1) 5%);
  border: 1px solid var(--accent);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition);
}

.btn:hover {
  background: rgba(57, 255, 20, 0.2);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
  color: #fff;
}
.btn:hover::before {
  left: 100%;
}

.btn-green {
  --accent: var(--neon-green);
  border-color: var(--neon-green);
  background: linear-gradient(45deg, transparent 5%, rgba(57, 255, 20, 0.1) 5%);
}

.btn-green:hover {
  background: rgba(57, 255, 20, 0.2);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

/* ===================================================================
   Sub-Navigation (Crysis 2 hub)
   =================================================================== */
.sub-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.sub-nav li a {
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition);
  background: rgba(57, 255, 20, 0.05);
}

.sub-nav li a:hover,
.sub-nav li a.active {
  background: rgba(57, 255, 20, 0.2);
  border-color: var(--neon-green);
  color: #fff;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

/* ===================================================================
   Mirror / Download Cards
   =================================================================== */
.mirrors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.mirror-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(57, 255, 20, 0.1);
}

.mirror-card:hover {
  border-color: var(--neon-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(57, 255, 20, 0.2);
  background: rgba(57, 255, 20, 0.05);
  color: #fff;
}

.mirror-card.torrent:hover {
  border-color: #ff9900;
  box-shadow: 0 10px 30px rgba(255, 153, 0, 0.2);
  background: rgba(255, 153, 0, 0.05);
}

.mirror-card.torrent {
  border-color: rgba(255, 153, 0, 0.15);
}

.mirror-card h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.mirror-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.download-icon {
  font-size: 2rem;
  color: var(--neon-green);
  transition: transform 0.3s;
}

.mirror-card.torrent .download-icon {
  color: #ff9900;
}

.mirror-card:hover .download-icon {
  transform: translateY(5px);
}

/* ===================================================================
   News Feed
   =================================================================== */
.news-feed {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.news-feed::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--neon-green), transparent);
}

.news-item {
  margin-bottom: 3rem;
  position: relative;
  padding-left: 60px;
}

.news-item::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  transition: var(--transition);
}

.news-item:hover::before {
  background: var(--neon-green);
  box-shadow: 0 0 20px var(--neon-green);
}

.news-date {
  color: var(--neon-green);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.news-content {
  padding: 2rem;
  transition: var(--transition);
}

.news-content:hover {
  border-color: rgba(57, 255, 20, 0.4);
  transform: translateX(10px);
}

.news-content h2 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.news-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================================================
   About Page
   =================================================================== */
.about-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.about-intro p {
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1.8;
  padding: 2rem;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.05), transparent);
  border-left: 2px solid var(--neon-green);
  border-right: 2px solid var(--neon-green);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(57, 255, 20, 0.4);
  box-shadow: 0 10px 30px rgba(57, 255, 20, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.5));
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ===================================================================
   System Requirements
   =================================================================== */
.req-panels {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.spec-card {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-card.recommended {
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
}

.spec-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-header.accent {
  background: rgba(57, 255, 20, 0.1);
  border-bottom: 1px solid var(--neon-green);
}

.spec-header h2 {
  margin: 0;
  color: #fff;
  letter-spacing: 2px;
}

.spec-list {
  list-style: none;
  padding: 1.5rem;
  margin: 0;
}

.spec-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-list li span {
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* ===================================================================
   Crysis 2 Theme Override
   =================================================================== */
.c2-theme {
  --accent: var(--neon-green);
}

.c2-theme .nav-links li a.active::after {
  background-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  width: 100%;
}

.c2-theme .section-title::after {
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

.c2-theme .spec-card {
  border-color: rgba(57, 255, 20, 0.2);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
}

.c2-theme .spec-header {
  background: rgba(57, 255, 20, 0.1);
  border-bottom-color: var(--neon-green);
}

.c2-theme .spec-list li span {
  color: var(--neon-green);
}

.c2-theme .sub-nav li a {
  border-color: rgba(57, 255, 20, 0.3);
  background: rgba(57, 255, 20, 0.05);
}

/* ===================================================================
   Video & Gallery
   =================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.video-card {
  border: 1px solid rgba(57, 255, 20, 0.2);
  padding: 1rem;
  border-radius: 12px;
  background: rgba(15, 20, 28, 0.7);
  transition: var(--transition);
}

.video-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 5px 20px rgba(57, 255, 20, 0.15);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-align: center;
}

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

.gallery-item {
  aspect-ratio: 16/9;
  background: linear-gradient(45deg, rgba(57, 255, 20, 0.05), rgba(0, 0, 0, 0.5));
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 8px;
  overflow: hidden;
  display: block;
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--neon-green);
  box-shadow: 0 5px 20px rgba(57, 255, 20, 0.2);
}

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

/* ===================================================================
   Buy Cards
   =================================================================== */
.platform-section {
  margin-bottom: 4rem;
}

.platform-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.platform-title::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

.buy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.buy-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(57, 255, 20, 0.1);
}

.buy-card:hover {
  border-color: var(--neon-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(57, 255, 20, 0.15);
}

.buy-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.edition-badge {
  background: rgba(255, 215, 0, 0.1);
  color: gold;
  border: 1px solid gold;
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ===================================================================
   Footer
   =================================================================== */
footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 0;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-email:hover {
  color: var(--neon-green);
}

.footer-email img {
  width: 24px;
  height: 24px;
  filter: brightness(0.9) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-email:hover img {
  opacity: 1;
}

/* ===================================================================
   Animations
   =================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  animation: fadeInUp 0.8s ease backwards;
}

/* ===================================================================
   Lightbox
   =================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  transition: color 0.2s;
  z-index: 2;
}

.lightbox-close:hover {
  color: var(--neon-green);
}

.lightbox-caption {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
    letter-spacing: 3px;
  }
  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
  }
  .hero h1:not(.hero-title) {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stats-panel {
    flex-direction: column;
  }

  .news-feed::before {
    left: 0;
  }
  .news-item {
    padding-left: 30px;
  }
  .news-item::before {
    left: -6px;
  }
  .news-content:hover {
    transform: translateY(-5px);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .req-panels {
    flex-direction: column;
    align-items: center;
  }

  .spec-card {
    max-width: 100%;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: 2px;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
