/* ===== ATLAS GAMES STUDIO — PERFORMANCE & UI ENHANCEMENTS ===== */

/* Dark premium theme override */
:root {
  --primary-color: #0f1923;
  --secondary-color: #e74c3c;
  --accent-color: #00d4ff;
  --light-color: #0a0f14;
  --dark-color: #0f1923;
  --text-color: #e0e6ed;
  --surface: #151f2b;
  --surface-hover: #1c2a3a;
  --border-color: rgba(255,255,255,0.06);
  --glow: 0 0 30px rgba(0,212,255,0.08);
}

body {
  background: var(--light-color);
  color: var(--text-color);
}

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ===== HEADER ===== */
header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 14px 0;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
header.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15,25,35,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  border-bottom-color: var(--border-color);
}
.logo a { text-decoration: none; color: inherit; }
.logo h1 {
  background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-size: 1.3rem;
}
.nav-menu a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.nav-menu a:hover { color: #fff; }
.nav-menu a::after { background: var(--accent-color); }

/* ===== HERO ===== */
.hero { background: #04060a; position: relative; overflow: hidden; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(15,25,35,0.7) 100%);
}
.hero-content { z-index: 2; position: relative; }
.hero-subtitle {
  font-size: 1rem; text-transform: uppercase; letter-spacing: 4px;
  color: var(--accent-color); margin-bottom: 12px; font-weight: 500;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1;
  font-family: "PixelifySans-Bold", sans-serif; margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero-tagline {
  font-size: 1.15rem; color: rgba(255,255,255,0.7);
  margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto;
}
.btn-hero {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--secondary-color), #c0392b);
  padding: 14px 32px; border-radius: 50px; font-size: 1rem;
  box-shadow: 0 6px 25px rgba(231,76,60,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(231,76,60,0.5);
}
.btn-hero i { transition: transform 0.2s; }
.btn-hero:hover i { transform: translateX(4px); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  animation: scrollBounce 2s infinite;
}
.scroll-mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 6px;
}
.scroll-dot {
  width: 3px; height: 8px; background: rgba(255,255,255,0.6);
  border-radius: 2px; animation: scrollDot 2s infinite;
}
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }
@keyframes scrollDot { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(10px)} }

/* ===== ABOUT CARDS ===== */
.about { background: var(--light-color); }
.about-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 30px; max-width: 900px; margin: 0 auto;
}
.about-card {
  background: var(--surface); border: 1px solid var(--border-color);
  border-radius: 16px; padding: 40px 30px; text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow); border-color: rgba(0,212,255,0.2);
}
.about-card-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,212,255,0.05));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.4rem; color: var(--accent-color);
}
.about-card h3 { color: #fff; margin-bottom: 14px; }
.about-card p { color: rgba(255,255,255,0.6); line-height: 1.7; }
.about-text h3 { color: #fff; }
.about-text p { color: rgba(255,255,255,0.65); }

/* ===== SECTION TITLE ===== */
.section-title { color: #fff; }
.section-title::after { background: linear-gradient(90deg, var(--accent-color), var(--secondary-color)); border-radius: 2px; }

/* ===== GAMES ===== */
.games { background: var(--surface); }
.game-card {
  background: var(--light-color); border: 1px solid var(--border-color);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}
.game-card-link:hover .game-card {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.game-image { height: 320px; }
.game-overlay {
  background: linear-gradient(135deg, rgba(0,212,255,0.8), rgba(231,76,60,0.8));
  display: flex; flex-direction: column; gap: 8px;
}
.game-overlay-text {
  color: #fff; font-size: 1rem; text-transform: uppercase;
  letter-spacing: 2px; font-weight: 600;
}
.game-overlay i { font-size: 2rem; color: #fff; }
.game-info h3 { color: #fff; }
.game-info p { color: rgba(255,255,255,0.6); }
.platform-badge {
  background: rgba(0,212,255,0.12); color: var(--accent-color);
  border: 1px solid rgba(0,212,255,0.2); border-radius: 8px;
  font-size: 0.85rem; padding: 6px 14px;
}
.game-card-link:hover .platform-badge {
  background: var(--accent-color); color: var(--primary-color);
}

/* Quick Links */
.quick-links { opacity: 1; margin-top: 18px; }
.quick-link {
  background: var(--surface); border: 1px solid var(--border-color);
  color: #fff; width: 44px; height: 44px;
}
.quick-link:hover { background: var(--accent-color); color: var(--primary-color); border-color: var(--accent-color); }
.quick-link:nth-child(2) { background: var(--surface); }
.quick-link:nth-child(2):hover { background: #689f38; border-color: #689f38; }
.quick-link:nth-child(3) { background: var(--surface); }
.quick-link:nth-child(3):hover { background: #4285f4; border-color: #4285f4; }

/* ===== CONTACT ===== */
.contact { background: var(--light-color); }
.contact-heading {
  font-size: 1.5rem; color: #fff; margin-bottom: 10px;
  font-family: "PixelifySans-Bold", sans-serif;
}
.contact-description { color: rgba(255,255,255,0.55); margin-bottom: 30px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
  background: var(--surface); padding: 18px 22px; border-radius: 12px;
  border: 1px solid var(--border-color);
}
.contact-icon {
  width: 44px; height: 44px; min-width: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,212,255,0.05));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-color); font-size: 1.1rem; flex-shrink: 0;
}
.contact-item i { margin-right: 0; color: var(--accent-color); font-size: 1.1rem; }
.contact-item strong { color: #fff; display: block; font-size: 0.85rem; margin-bottom: 2px; }
.contact-item p { color: rgba(255,255,255,0.6); margin: 0; font-size: 0.95rem; }
.social-link {
  background: var(--surface); border: 1px solid var(--border-color);
  color: #fff; transition: all 0.2s;
}
.social-link:hover { background: var(--accent-color); color: var(--primary-color); border-color: var(--accent-color); }

/* Form */
.form-group input, .form-group textarea {
  background: var(--surface); border: 1px solid var(--border-color);
  color: #fff; border-radius: 10px; padding: 14px 16px;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.btn-submit {
  background: linear-gradient(135deg, var(--accent-color), #0099cc);
  color: #fff; border-radius: 10px; padding: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,212,255,0.3);
  background: linear-gradient(135deg, var(--accent-color), #0099cc);
}

/* ===== FOOTER ===== */
footer { background: var(--primary-color); border-top: 1px solid var(--border-color); }
.footer-tagline { color: rgba(255,255,255,0.4); font-size: 0.9rem; margin-top: 6px; }
.footer-logo h2 {
  background: linear-gradient(135deg, #fff, var(--accent-color));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-links a { color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--accent-color); }
.copyright { border-color: var(--border-color); color: rgba(255,255,255,0.35); }

/* ===== MODAL ===== */
.modal-content {
  background: var(--surface); border: 1px solid var(--border-color);
  border-radius: 16px;
}
.modal-content h2 { color: #fff; }
.close-modal {
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 2rem; padding: 0; line-height: 1;
}
.close-modal:hover { color: #fff; }
.screenshot { border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu { background: var(--primary-color); }
  .hero-title { font-size: 2.5rem; }
  .about-cards { grid-template-columns: 1fr; }
  .scroll-indicator { display: none; }
  .contact-item { padding: 12px 16px; }
}
@media (max-width: 576px) {
  .hero-title { font-size: 2rem; }
  .about-card { padding: 30px 20px; }
}

/* ===== GAME DETAIL PAGE ===== */
.game-detail-hero .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(15,25,35,0.9) 100%);
}
.game-detail-hero .hero-content { z-index: 2; position: relative; }
.game-detail-content { background: var(--light-color); }
.game-detail-main h2, .game-detail-main h3 { color: #fff; }
.game-detail-main p { color: rgba(255,255,255,0.65); }
.features-list li { color: rgba(255,255,255,0.65); }
.features-list i { color: var(--accent-color); }
.download-section, .info-section, .links-section {
  background: var(--surface); border: 1px solid var(--border-color);
}
.download-section h3, .info-section h3, .links-section h3 { color: #fff; }
.platform-section { border-color: var(--border-color); }
.platform-section h4 { color: rgba(255,255,255,0.8); }
.btn-download {
  background: linear-gradient(135deg, var(--secondary-color), #c0392b);
  border-radius: 10px;
}
.info-section .info-item {
  border-color: var(--border-color);
}
.info-section .info-item strong { color: rgba(255,255,255,0.8); }
.info-section .info-item span { color: rgba(255,255,255,0.55); }
.links-section .link-item {
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7);
  border: 1px solid var(--border-color);
}
.links-section .link-item:hover {
  background: var(--accent-color); color: var(--primary-color);
  border-color: var(--accent-color);
}
.game-detail-main .screenshot {
  border: 1px solid var(--border-color); border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Game detail page buttons */
.btn-download {
  background: linear-gradient(135deg, var(--secondary-color), #c0392b);
  border-radius: 10px; font-family: "PixelifySans-Medium", sans-serif;
}
.btn-download:hover { background: linear-gradient(135deg, #c0392b, #a93226); }
.android-platform {
  background: linear-gradient(135deg, rgba(104,159,56,0.2), rgba(104,159,56,0.08));
  border: 1px solid rgba(104,159,56,0.3); border-radius: 12px;
}
.android-platform h4 { color: #a4c639; }
.btn-android-test, .btn-android-direct {
  background: rgba(255,255,255,0.08); color: #a4c639;
  border: 1px solid rgba(104,159,56,0.3); border-radius: 10px;
  box-shadow: none; font-family: "PixelifySans-Medium", sans-serif;
}
.btn-android-test:hover, .btn-android-direct:hover {
  background: rgba(104,159,56,0.25); color: #c8e6c9;
}
.google-play-badge { margin: 8px auto; }
.google-play-badge:hover { transform: scale(1.03); }

/* ===== PRIVACY & DATA DELETION PAGES ===== */
.privacy-policy, .data-deletion {
  background: var(--light-color);
}
.privacy-content, .deletion-content {
  background: var(--surface); border: 1px solid var(--border-color);
  border-radius: 16px;
}
.privacy-content h1, .deletion-content h1 { color: var(--accent-color); }
.privacy-content h2, .deletion-content h2 { color: var(--accent-color); }
.privacy-content h3, .deletion-content h3 { color: #00b8d4; }
.privacy-content a, .deletion-content a { color: var(--accent-color); }
.privacy-content a:hover, .deletion-content a:hover { color: #00b8d4; }
.back-link { color: var(--accent-color); }
.back-link:hover { color: #00b8d4; }
