/* =========================
   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;
}

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

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;
}

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:0;} 50% {transform:translateY(-6px);} 100% {transform:translateY(0);} }

.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);
  animation: subtleGif 5s ease-in-out infinite alternate;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.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);
}

.modal-content {
  max-width:85%;
  max-height:85vh;
  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,255,0,0.25);
}

/* =========================
   PREMIUM VISUAL STORE HYPER CINEMATIC NEON PULSE
========================= */
.gallery-scroll {
  border-radius:25px;
  backdrop-filter:blur(15px);
  padding:20px;
  background:rgba(0,0,0,0.05);
  box-shadow:0 0 20px rgba(255,106,0,0.1), inset 0 0 15px rgba(255,255,255,0.05);
  transition: box-shadow 0.4s ease, background 0.4s ease;
}

.gallery-scroll:hover {
  animation: pulseNeon 1.8s infinite alternate;
}

@keyframes pulseNeon {
  0% { box-shadow:0 0 25px var(--pulse-color, #ff6a00), inset 0 0 15px rgba(255,255,255,0.08); }
  100% { box-shadow:0 0 60px var(--pulse-color, #ff6a00), inset 0 0 25px rgba(255,255,255,0.1); }
}

/* Assign different neon colors per gallery */
.gallery-scroll:nth-child(1) { --pulse-color: #ff6a00; }
.gallery-scroll:nth-child(2) { --pulse-color: #00ffdd; }
.gallery-scroll:nth-child(3) { --pulse-color: #ff00ff; }
.gallery-scroll:nth-child(4) { --pulse-color: #00ff6a; }
.gallery-scroll:nth-child(5) { --pulse-color: #ffdd00; }
.gallery-scroll:nth-child(6) { --pulse-color: #0066ff; }

/* Gradient Animated Text روی 6 فیلد عکس */
.gallery-scroll h2,
.gallery-scroll h3 {
  display:inline-block;
  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;
}

/* Gallery images neon pulse */
.gallery-scroll .scroll-container img {
  border:3px solid var(--pulse-color);
  border-radius:20px;
  padding:3px;
  box-shadow:0 0 20px var(--pulse-color), 0 0 50px rgba(255,106,0,0.15), inset 0 0 10px rgba(255,255,255,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

.gallery-scroll .scroll-container img:hover {
  transform: scale(1.08) rotateZ(0.5deg);
  border-color: rgba(255,255,255,0.6);
  box-shadow:0 0 30px var(--pulse-color),0 0 60px var(--pulse-color), inset 0 0 15px rgba(255,255,255,0.2);
}

/* =========================
   SUBTLE GIF-LIKE MOTION
========================= */
@keyframes subtleGif {
  0% { transform: translateY(0px) translateX(0px) rotateZ(0deg); }
  25% { transform: translateY(-2px) translateX(1px) rotateZ(0.2deg); }
  50% { transform: translateY(1px) translateX(-1px) rotateZ(-0.2deg); }
  75% { transform: translateY(-1px) translateX(2px) rotateZ(0.1deg); }
  100% { transform: translateY(0px) translateX(0px) rotateZ(0deg); }
}

/* =========================
   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:#fff; 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; }
}
