/* =========================
   GOOGLE FONT
========================= */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&display=swap');

/* =========================
   ROOT VARIABLES
========================= */
:root {
  --main-color: #ff6a00;
  --main-hover: #ff8533;

  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.1);

  --bg-home: url("backgrounds/home.jpg");
  --bg-gpu: url("backgrounds/gpu.jpg");
  --bg-formula: url("backgrounds/formula.jpg");
  --bg-ai: url("backgrounds/ai.jpg");
  --bg-store: url("backgrounds/store.jpg");
}

/* =========================
   GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Orbitron', sans-serif;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
  animation: fadePage 0.6s ease;
}

/* Page Fade (بدون zoom) */
@keyframes fadePage {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Dark Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.70)
  );
  z-index: -2;
}

/* Cinematic Light Motion */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,106,0,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,200,255,0.12), transparent 40%);
  animation: cinematicMove 18s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes cinematicMove {
  0% { background-position: 20% 30%, 80% 70%; }
  100% { background-position: 30% 40%, 70% 60%; }
}

/* =========================
   HERO
========================= */
.hero {
  text-align: center;
  padding: 100px 20px 70px;
}

#logoText {
  font-size: 4rem;
  font-weight: 800;
  display: inline-block;
  line-height: 1.1;
  background: linear-gradient(
    90deg,
    #ff6a00,
    #ff00aa,
    #00e0ff,
    #ff6a00
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoFlow 6s linear infinite;
}

@keyframes logoFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.subtitle {
  margin-top: 20px;
  font-size: 1.2rem;
  letter-spacing: 2px;
  opacity: 0.9;
}

/* =========================
   CARDS
========================= */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 20px 100px;
  max-width: 900px;
  margin: auto;
}

.card {
  padding: 40px;
  border-radius: 25px;
  backdrop-filter: blur(20px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.5),
    inset 0 0 20px rgba(255,255,255,0.05);
  transition:
    transform .4s cubic-bezier(.17,.67,.83,.67),
    box-shadow .4s ease;
  cursor: pointer;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* Magnetic Hover + Neon Glow */
.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 0 25px rgba(255,106,0,0.7),
    0 0 60px rgba(255,106,0,0.4);
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.card p {
  opacity: 0.85;
  font-size: 1rem;
}

/* =========================
   SCROLL GALLERY / WALLPAPERS
========================= */
.scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  margin-top: 20px;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.scroll-container img {
  height: 200px;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  box-shadow:
    0 0 15px rgba(255,255,255,0.1),
    0 0 30px rgba(255,106,0,0.15);
}

.scroll-container img:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 25px rgba(255,106,0,0.5),
    0 0 50px rgba(255,106,0,0.35);
}

/* Cinematic frame for modal images */
.modal-content {
  max-width: 85%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  border: 3px solid rgba(255,106,0,0.6);
  box-shadow:
    0 0 25px rgba(255,106,0,0.5),
    0 0 50px rgba(255,106,0,0.25);
}

/* =========================
   PREMIUM BUTTONS
========================= */
button,
.modal-nav button {
  position: relative;
  overflow: hidden;
  transition: transform .3s ease;
}

button:hover,
.modal-nav button:hover {
  transform: scale(1.08);
}

button::after,
.modal-nav button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  transition: .6s;
}

button:hover::after,
.modal-nav button:hover::after {
  left: 100%;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 20px 20px 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255,255,255,0.1);
}

footer img {
  width: 100px;
  margin-bottom: 10px;
  display: inline-block;
  animation: logoFlow 6s linear infinite;
}

footer p {
  font-size: 0.8rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 5px;
  font-weight: 600;
  transition: 0.3s ease;
}

footer a:hover {
  color: var(--main-color);
  text-shadow: 0 0 15px var(--main-color);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  #logoText {
    font-size: 2.5rem;
  }

  .card {
    padding: 30px;
  }

  footer img {
    width: 80px;
  }

  footer p {
    font-size: 0.7rem;
  }
}
