/* style.css */
:root {
  --bg:#0f0f12;
  --card:#15151a;
  --accent:#e11d48;
  --purple:#7c3aed;
  --muted:#9aa0a6;
}
html {
  scroll-behavior: smooth;
}

* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; background:var(--bg); color:#e6e7e8; overflow-x:hidden; line-height:1.6}

header { background:rgba(21,21,26,0.8); backdrop-filter:blur(8px); padding:20px 0; position:sticky; top:0; z-index:40; border-bottom:1px solid rgba(255,255,255,0.05); }
.container { max-width:1200px; margin:0 auto; padding:20px 24px; }
.nav { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.logo { font-weight:800; font-size:22px; color:#fff; }
nav a { color:#aaa; text-decoration:none; margin-right:18px; transition:color .2s; font-size:12pt}
nav a:hover { color:#fff; }
.cta { background:var(--accent); padding:8px 14px; border-radius:8px; color:white; text-decoration:none; transition:all .3s; }
.cta:hover { background:#f43f5e; transform:translateY(-2px); }



/* Hero Section with Red + Purple Gradient */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
  overflow: hidden;
  padding: 60px 20px;
  isolation: isolate;
  /* Red + Purple Gradient */
  background: linear-gradient(135deg, #771026 0%, #3a1677 100%);
  z-index: 0;
}

.fly-in {
  opacity: 0;
  animation: flyIn 1s ease-out forwards;
}

.up{
  transform: translateY(100%);
}

.down{
  transform: translateY(-100%);
}

.left{
  transform: translateX(-100%);
}

.right{
  transform: translateX(100%);
}

.fly-in.delay {
  animation-delay: 0.3s;
}

.fly-in.delay-2 {
  animation-delay: 0.6s;
}

@keyframes flyIn {
  0% {
    opacity: 0;
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    transform: translateX(0);
    filter: blur(0);
  }
}


/* When visible */
.fly-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Direction variants */
.fly-in.up {
  transform: translateY(-60px);
}

.fly-in.down {
  transform: translateY(60px);
}


.hero {
  perspective: 1000px; /* Enables 3D depth */
  overflow: hidden;
}

/* Digital grid overlay */
.digital-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
  animation: gridMove 15s linear infinite;
}

.digital-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: 
    repeating-linear-gradient(to right, rgba(225,29,72,0.2) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(to bottom, rgba(124,58,237,0.2) 0 1px, transparent 1px 100%);
}

/* Scanline overlay */
.scanline {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent 48%, rgba(255,255,255,0.03) 50%, transparent 52%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 2;
}

.hero h1, .hero p, .hero .cta {
  position: relative;
  z-index: 3; /* ensures text sits above grid & scanline */
}

.hero p{
    padding:20px;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem); /* bigger min/max sizes */
  font-weight: 900;
  z-index: 3;
  position: relative;
  line-height: 1.1;
  color: #fff; /* ensures visibility over gradient */
  text-shadow: 0 0 15px rgba(225,29,72,0.7), 0 0 25px rgba(237, 58, 58, 0.7);
  mix-blend-mode: normal; /* remove overlay if it was dimming text */
}

.hero h1 span {
  color: #e11d48; /* highlight 'Vicious' in red */
  text-shadow: 0 0 20px rgba(225,29,72,0.8);
}

.hidden_list {
  opacity: 0;
  transform: translateY(50px);
  filter: blur(5px);
  transition: all 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.show_list {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: all 0.8s ease;
  transition-delay: var(--delay, 0s);
}

/* Features scroll-reveal */
.hidden_feature {
  opacity: 0;
  filter: blur(6px);
  transition: transform 0.8s ease, opacity 0.8s ease, filter 0.8s ease;
}

/* Direction-aware starting offsets */
.hidden_feature[data-dir="left"]  { transform: translateX(-100%); }
.hidden_feature[data-dir="right"] { transform: translateX(100%); }

.show_feature {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

nav a.active {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
}




/* Animations */
@keyframes gridMove { 0% { background-position:0 0 } 100% { background-position:50px 50px } }
@keyframes scanline { 0% { background-position:0 -4px } 100% { background-position:0 100% } }

/* Responsive Nav */
.menu-toggle { display:none; background:none; border:none; color:#fff; font-size:24px; cursor:pointer; }
@media(max-width:768px) { nav { display:none; width:100%; flex-direction:column; align-items:center; margin-top:10px; } nav.show { display:flex; } .menu-toggle { display:block; } }

/* Features */
.features { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; margin-top:48px; }
.feature { background:var(--card); padding:18px; border-radius:10px; transition:transform .3s, box-shadow .3s; }
.feature:hover { transform:translateY(-4px); box-shadow:0 6px 20px rgba(0,0,0,0.4); }
#features h2{ padding:20px;}

/* Games */
.gamelist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.list {
  background: var(--card);
    display:inline-flex;
    padding: 18px;
    border-radius: 10px;
    width:10rem;
    height:15rem;
    transition: transform .3s, box-shadow .3s;
    position:relative;
    border: 2px solid #f3f3ff; 
    border-radius:5px;
    transition: all 0.3s ease;
}

.list span{
  display:none;
  position:absolute;
  background: rgba(0,0,0,0.5);
  left:0;
  right:0;
  bottom:0;
  padding:10px;
  text-align:center;
}

.list:hover span{
  display:block;
}

.list[style*="display: none"] {
  opacity: 0;
  transform: scale(0.95);
}

#search{
  width:65%;
  margin:0px auto;
  font-size:1.2rem;
}

#searchbar{
  text-align:center;
}

/* Downloads */
#downloads { margin-top:60px; }
#downloads-list div { background:var(--card); padding:12px; border-radius:8px; margin-top:8px; display:flex; justify-content:space-between; align-items:center; transition:transform .2s; }
#downloads-list div:hover { transform:scale(1.02); }

/* Contact */
#contact { margin-top:60px; }
input,textarea { padding:10px; border-radius:8px; border:1px solid #333; background:var(--card); color:inherit; }
#contactResult { color:var(--muted); font-size:13px; }

footer { margin-top:60px; padding:32px 0; color:var(--muted); text-align:center; border-top:1px solid rgba(255,255,255,0.1); }

/* FX Toggle */
#fxToggle { position:absolute; top:20px; right:24px; z-index:4; background:var(--accent); color:#fff; padding:6px 12px; border:none; border-radius:8px; cursor:pointer; transition:all .3s; }
#fxToggle:hover { background:#f43f5e; }

/* === Order Modal === */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.hidden { display: none !important; }

.modal-content {
  background: var(--card);
  padding: 2rem;
  border-radius: 10px;
  max-width: 450px;
  width: 90%;
  color: var(--text);
  position: relative;
  box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content h2 {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color:#ffffff !important;
}

.modal-content label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: none;
  background: #222;
  color: #fff;
  margin-top: 0.3rem;
}

.modal-content button {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: #ff3b7a;
  color: #fff;
  transition:  0.3s ease;
}

.modal-content button:hover {
  background: #ff3b7a;
  opacity:0.7;
  transition:0.3s ease;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

#orderResult {
  margin-top: 1rem;
  text-align: center;
}


.status {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: capitalize;
}

.status.active { background: #4caf50; color: #fff; }
.status.pending { background: #ffc107; color: #000; }
.status.canceled { background: #f44336; color: #fff; }
.status.expired { background: #9e9e9e; color: #fff; }
.status.unknown { background: #607d8b; color: #fff; }

/* --- Modal fixes --- */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden { display: none; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.modal-content {
  position: relative;
  z-index: 1001;
  background: var(--card);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  color: var(--text);
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text);
  transition: color .3s;
}

.close:hover { color: var(--primary); }

.seperator:hover{ color: #aaa; cursor: default;}

/* Reset some basics */
body, html {
  margin: 0;
  padding: 0;
  font-family: “Segoe UI”, “Helvetica Neue”, Helvetica, Arial, sans-serif;
  background: #111; /* dark background */
  color: #eee; /* light text */
}

/* Center form container */
.form-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 40px;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 8px;
}

/* Headings */
.form-container h2 {
  margin-bottom: 24px;
  font-size: 28px;
  text-align: center;
  color: #ffffff !important;
}

/* Input fields */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  background: #222;
  border: 1px solid #444;
  color: #eee;
  font-size: 16px;
  border-radius: 4px;
}

/* Button */
.form-container button {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  background: #ff4d4d;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.form-container button:hover {
  background: #e04343;
}

/* Links */
.form-container p a {
  color: #ff4d4d;
  text-decoration: none;
}
.form-container p a:hover {
  text-decoration: underline;
}

/* Error / success message */
.message {
  margin-top: 16px;
  padding: 12px;
  background: #2b2b2b;
  border: 1px solid #444;
  border-radius: 4px;
  color: #f66;
}
.success {
  color: #6f6;
}
.modal.hidden { display: none !important; }
.modal {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}
.modal-content {
  background: #1a1a1a;
  border: 2px solid var(--accent, #e11d48);
  border-radius: 12px;
  padding: 2rem;
  width: 90%; max-width: 450px;
  color: #fff;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.5);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-content label { font-weight: 600; margin-top: 0.8rem; display: block; }
.modal-content input, .modal-content select {
  width: 100%; padding: 0.5rem;
  background: #222; border: 1px solid #333; border-radius: 5px;
  color: #fff; margin-top: 0.4rem;
}
.modal-actions { text-align: center; margin-top: 1.2rem; }
.save-btn {
  background: var(--accent, #e11d48);
  border: none; color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 6px; cursor: pointer;
}
.save-btn:hover { opacity: 0.85; }
.close {
  position: absolute; top: 15px; right: 20px;
  background: transparent; color: #fff;
  border: none; font-size: 24px; cursor: pointer;
}
/* === Modals (shared style) === */
.modal.hidden { display: none !important; }
.modal {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}
.modal-content {
  background: #1a1a1a;
  border: 2px solid var(--accent, #e11d48);
  border-radius: 12px;
  padding: 2rem;
  width: 90%; max-width: 400px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.4);
  animation: fadeIn 0.3s ease;
  position: relative;
}
.modal-content h2 {
  color: #ffffff !important;
  margin-bottom: 0.5rem;
}
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.modal .btn, .modal .close {
  background: var(--accent, #e11d48);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.3s;
}
.modal .btn:hover, .modal .close:hover { opacity: 0.8; }

@keyframes fadeIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* === Shared Modal Base === */
.modal.hidden { display: none !important; }
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* === Modal Box === */
.modal-content {
  background: #1a1a1a;
  border: 2px solid var(--accent, #e11d48);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.4);
  animation: fadeIn 0.3s ease;
  position: relative;
}

/* === Modal Buttons === */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.modal .btn {
  background: var(--accent, #e11d48);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.modal .btn:hover { opacity: 0.8; }

/* === Animation === */
@keyframes fadeIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === Specific Fix: Login Modal Cancel Button === */
.login-required .cancel-btn {
  background: #444;
  border: 1px solid #666;
}
.login-required .cancel-btn:hover {
  background: #555;
}
.g-recaptcha {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  filter: invert(1) hue-rotate(180deg); /* dark theme hack */
  isolation: isolate;
}

.button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--accent, #e11d48);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.3s;
}
.button:hover { opacity: 0.8; }

/* === Confirmation Modal Fix === */
#confirmModal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 1px solid #e11d48;
  color: #e11d48;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

#confirmModal .close:hover {
  background: #e11d48;
  color: #ffffff;
}

/* Prevent layout shifts inside confirmation modal */
#confirmModal .modal-content {
  position: relative;
  padding-top: 2.5rem; /* add room for the small top-right close button */
}
/* === Confirmation Modal Style Fix === */
#confirmModal .modal-content {
  position: relative;
  background: #1c1c1c;
  border: 2px solid #e11d48;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  width: 90%;
  max-width: 560px;
  color: #fff;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.6);
  animation: fadeInUp 0.25s ease;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Header layout */
#confirmModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.5rem;
}

#confirmModal .modal-header h2 {
  color: #ffffff !important;
  font-size: 1.3rem;
  margin: 0;
}

.modal h2{
	color:#ffffff !important;
}

/* Small top-right close button */
#confirmModal .close {
  background: transparent;
  border: 1px solid #e11d48;
  color: #e11d48;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

#confirmModal .close:hover {
  background: #e11d48;
  color: #fff;
}

/* === Final Fix: Restore proper red accent for modal titles === */
#confirmModal .modal-header h2,
#orderModal .modal-content h2,
#loginModal .modal-content h2 {
  color: #e11d48 !important;              /* solid red accent */
  -webkit-text-fill-color: #e11d48 !important; /* fix Safari text transparency */
  background: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-header h2 {
  color: #e11d48 !important;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: left;
}

#contact {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text);
}

.contact-wrapper {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  padding: 3rem;
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.contact-title {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  background-clip: text;
  -webkit-text-fill-color: #fff;
  margin-bottom: 0.5rem;
  color:#e6e7e8;
}

.contact-sub {
  color: #bbb;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: #1d1d22;
  border: 2px solid transparent;
  border-radius: var(--radius);
  color: white;
  font-size: 1rem;
  transition: border 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.5);
}

.contact-btn {
  background: rgba(225, 29, 72, 0.5);
  color: white;
  font-weight: 600;
  padding: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
}

#contactResult {
  margin-top: 1rem;
  font-weight: 600;
  transition: opacity 0.5s;
}

.success { color: #4ade80; }
.error { color: #f87171; }

@media (max-width: 600px) {
  .contact-wrapper {
    padding: 2rem;
  }
  .contact-title {
    font-size: 1.8rem;
  }
  .list {
    width:100%;
    aspect-ratio:16 / 9;
  }
}
