* { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; }
html { scroll-behavior: smooth; }
body { background-color: #010205; font-family: 'Vazirmatn', sans-serif; color: #ffffff; overflow-x: hidden; }

.custom-cursor {
  position: fixed; top: 0; left: 0; width: 20px; height: 20px; border: 2px solid #00f0ff; border-radius: 50%;
  pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s;
  box-shadow: 0 0 10px #00f0ff, inset 0 0 5px #00f0ff; display: flex; justify-content: center; align-items: center;
}
.custom-cursor::after { content: ''; width: 4px; height: 4px; background: #ffffff; border-radius: 50%; box-shadow: 0 0 5px #ffffff; }
.custom-cursor.hover { width: 50px; height: 50px; background-color: rgba(0, 240, 255, 0.1); border: 2px dashed #ff4d00; box-shadow: 0 0 15px #ff4d00; animation: spinCursor 2s linear infinite; }
@keyframes spinCursor { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

#space-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; }
#spacetime-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 2; pointer-events: none; }

.glass-header {
  position: fixed; top: 0; left: 0; width: 100%; height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 5%; z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity 0.5s ease, transform 0.5s ease; transform: translateY(-20px);
  background: rgba(1, 2, 5, 0.4); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0, 240, 255, 0.1); 
}
.glass-header.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.logo-text { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; font-style: italic; font-weight: 800; color: #ffffff; text-shadow: 0 0 15px rgba(0, 240, 255, 0.8); letter-spacing: 2px; direction: ltr; pointer-events: auto; }
.nav-menu { display: flex; gap: 12px; list-style: none; direction: rtl; }
.nav-menu li a { 
  display: inline-block; padding: 8px 18px; color: #e2e8f0; text-decoration: none; font-family: 'Vazirmatn', sans-serif; font-size: 1.05rem; font-weight: 600; transition: all 0.3s ease; 
  background: rgba(3, 4, 10, 0.45); border: 1px solid rgba(0, 240, 255, 0.2); border-radius: 12px; backdrop-filter: blur(8px);
}
.nav-menu li a:hover { 
  color: #ffffff; background: rgba(0, 240, 255, 0.15); border-color: #00f0ff; transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.15); text-shadow: 0 0 8px #ffffff;
}

.hero-section { position: relative; z-index: 10; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; }
.row { display: flex; justify-content: center; align-items: center; gap: 15px; direction: ltr; }
.svg-box { display: flex; justify-content: center; align-items: center; opacity: 0; } 
.svg-box svg { width: 100%; height: 100%; display: block; }
.box-i { width: 220px; height: 220px; animation: flyIn 1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s; }
.box-a { width: 220px; height: 220px; animation: flyIn 1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.7s; }
.box-p { width: 220px; height: 220px; animation: flyIn 1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.9s; }
.box-2026 { width: 650px; max-width: 95vw; height: 270px; animation: flyIn 1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.3s; }
@keyframes flyIn { 0% { transform: scale(0.2) translateZ(-500px) translateY(100px); opacity: 0; filter: blur(10px); } 100% { transform: scale(1) translateZ(0) translateY(0); opacity: 1; filter: blur(0); } }

/* Letter I */
.letter-i-base { fill: #ffffff; filter: drop-shadow(0 0 10px rgba(255,255,255,0.6));}
.quantum-particle { fill: #00f0ff; filter: drop-shadow(0 0 8px #00f0ff) drop-shadow(0 0 18px #00f0ff); animation: passThrough 3s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.grid-mesh { stroke: #00f0ff; stroke-width: 1.5; opacity: 0; filter: drop-shadow(0 0 5px #00f0ff); animation: meshActivate 3s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.scanner-window { fill: #010205; opacity: 0; stroke: #00f0ff; stroke-width: 2; animation: windowOpen 3s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes passThrough { 0% { transform: translateX(60px); opacity: 0; } 20% { opacity: 1; } 50% { transform: translateX(0px); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(-60px); opacity: 0; } }
@keyframes windowOpen { 0%, 25% { opacity: 0; } 40%, 60% { opacity: 0.95; } 75%, 100% { opacity: 0; } }
@keyframes meshActivate { 0%, 25% { opacity: 0; } 40%, 60% { opacity: 1; } 75%, 100% { opacity: 0; } }

/* Letter A */
.letter-a { fill: none; stroke: #ffffff; stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1)); }
.laser-beam { fill: none; stroke: #00f0ff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 450; stroke-dashoffset: 450; filter: drop-shadow(0 0 8px #00f0ff) drop-shadow(0 0 15px #00f0ff); animation: shoot 2.5s linear infinite; }
.spark { fill: #ffffff; opacity: 0; filter: drop-shadow(0 0 10px #00f0ff); }
.s1 { animation: sparkFlash 2.5s infinite; animation-delay: 0.65s; transform-origin: 146px 115px; } .s2 { animation: sparkFlash 2.5s infinite; animation-delay: 1.05s; transform-origin: 77px 80px; } .s3 { animation: sparkFlash 2.5s infinite; animation-delay: 1.30s; transform-origin: 109px 50px; } .s4 { animation: sparkFlash 2.5s infinite; animation-delay: 1.45s; transform-origin: 96px 38px; } .s-end { fill: #00f0ff; animation: finalGlow 2.5s infinite; animation-delay: 1.5s; transform-origin: 100px 30px; }
@keyframes shoot { 0% { stroke-dashoffset: 450; opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 80% { stroke-dashoffset: 0; opacity: 1; } 90% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 450; opacity: 0; } }
@keyframes sparkFlash { 0%, 100% { opacity: 0; transform: scale(0.5); } 10% { opacity: 1; transform: scale(1.5); } 30% { opacity: 0; transform: scale(0.5); } }
@keyframes finalGlow { 0%, 100% { opacity: 0; transform: scale(0.5); } 10% { opacity: 1; transform: scale(2); } 80% { opacity: 1; transform: scale(1.2); } 90% { opacity: 0; transform: scale(0.5); } }

/* Letter P */
.letter-frame { fill: none; stroke: #ffffff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)); }
.spine-track { fill: none; stroke: rgba(0, 240, 255, 0.15); stroke-width: 2; stroke-linecap: round; }
.sound-wave { fill: none; stroke: #00f0ff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 140 450; stroke-dashoffset: 590; filter: drop-shadow(0 0 8px #00f0ff) drop-shadow(0 0 18px #00f0ff); animation: waveFlow 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.sound-wave-echo { fill: none; stroke: #0088ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100 450; stroke-dashoffset: 590; filter: drop-shadow(0 0 6px #0088ff); animation: waveFlow 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: 0.2s; }
.eq-bar { stroke: #00f0ff; stroke-width: 1.5; stroke-linecap: round; opacity: 0.2; animation: eqPulse 2.8s infinite; }
@keyframes waveFlow { 0% { stroke-dashoffset: 590; opacity: 0; } 10% { opacity: 1; } 75% { opacity: 1; } 90%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes eqPulse { 0%, 100% { opacity: 0.15; transform: scaleX(1); } 50% { opacity: 0.9; stroke: #00f0ff; filter: drop-shadow(0 0 5px #00f0ff); } }

/* 2026 Unified SVG */
.num-2-white { fill: none; stroke: #ffffff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)); }
.num-2-blue { fill: none; stroke: #00f0ff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px #00f0ff) drop-shadow(0 0 20px #00f0ff); }
.num-6-vector { fill: none; stroke: #00f0ff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px #00f0ff) drop-shadow(0 0 20px #00f0ff); }
.magnetic-field { fill: none; stroke: #00f0ff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 8 10; opacity: 0.65; filter: drop-shadow(0 0 5px #00f0ff); animation: fieldFlow 3s linear infinite; }
@keyframes fieldFlow { 0% { stroke-dashoffset: 36; } 100% { stroke-dashoffset: 0; } }
.pole-ray { stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 6; }
.pole-ray-blue { stroke: rgba(0, 240, 255, 0.45); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 6; }
.num-0-atom { fill: none; stroke: #ffffff; stroke-width: 7; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); }
.atom-nucleus { fill: #00f0ff; filter: drop-shadow(0 0 8px #00f0ff) drop-shadow(0 0 15px #00f0ff); animation: nucleusPulse 1.5s ease-in-out infinite alternate; }
@keyframes nucleusPulse { 0% { transform: scale(0.85); opacity: 0.8; } 100% { transform: scale(1.15); opacity: 1; } }
.electron-orbit { fill: none; stroke: rgba(0, 240, 255, 0.6); stroke-width: 1.5; stroke-dasharray: 4 4; filter: drop-shadow(0 0 4px #00f0ff); }
.orbit-group-1 { transform-origin: 175px 105px; animation: rotateOrbit 4s linear infinite; }
.orbit-group-2 { transform-origin: 175px 105px; animation: rotateOrbitReverse 6s linear infinite; }
@keyframes rotateOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotateOrbitReverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
.electron { fill: #ffffff; filter: drop-shadow(0 0 6px #00f0ff); }
.comet-path { fill: none; stroke-linecap: round; stroke-dasharray: 60 200; stroke-dashoffset: 260; animation: shootDiagonalComet 4.2s cubic-bezier(0.25, 1, 0.5, 1) infinite; }
.comet-1 { stroke: #00f0ff; stroke-width: 3; filter: drop-shadow(0 0 8px #00f0ff); animation-delay: 0.3s; }
.comet-2 { stroke: #ffffff; stroke-width: 2.5; filter: drop-shadow(0 0 8px #00f0ff) drop-shadow(0 0 12px #ffffff); animation-delay: 0.65s; }
@keyframes shootDiagonalComet { 0% { stroke-dashoffset: 260; opacity: 0; } 15% { opacity: 1; } 50% { stroke-dashoffset: -140; opacity: 1; } 60%, 100% { stroke-dashoffset: -140; opacity: 0; } }

.about-section { position: relative; z-index: 10; min-height: 100vh; display: flex; justify-content: center; align-items: center; width: 100%; }
.about-content { text-align: center; padding: 60px; background: radial-gradient(circle, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 75%); border-radius: 20px; width: 90%; max-width: 1000px; overflow: hidden; }
.about-title-container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 25px; }
.title-word { font-family: 'Vazirmatn', sans-serif; font-size: 4.5rem; font-weight: 900; color: #ffffff; text-shadow: 0 0 30px rgba(255, 165, 0, 0.9); opacity: 0; transform: translateY(30px); filter: blur(8px); }
.animate-text .title-word { animation: wordReveal 0.45s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.animate-text .title-word:nth-child(1) { animation-delay: 0.1s; } .animate-text .title-word:nth-child(2) { animation-delay: 0.25s; } .animate-text .title-word:nth-child(3) { animation-delay: 0.4s; } .animate-text .title-word:nth-child(4) { animation-delay: 0.55s; } .animate-text .title-word:nth-child(5) { animation-delay: 0.7s; }
@keyframes wordReveal { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.title-divider { width: 0; border-bottom: 2px dashed rgba(255, 255, 255, 0.5); margin: 0 auto 25px auto; transition: width 1s ease 0.9s; }
.animate-text .title-divider { width: 80%; }
.subtitle-container { display: flex; flex-direction: column; gap: 10px; font-family: 'Vazirmatn', sans-serif; font-size: 1.5rem; font-weight: 700; color: #e2e8f0; text-shadow: 0 0 15px #000000; overflow: hidden; padding: 10px 0; }
.slide-part { opacity: 0; transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.slide-right-anim { transform: translateX(50vw); } .slide-left-anim { transform: translateX(-50vw); }
.animate-text .slide-part { opacity: 1; transform: translateX(0); }
.animate-text .slide-right-anim { transition-delay: 1.1s; } .animate-text .slide-left-anim { transition-delay: 1.3s; }

/* استایل اضافه شده برای متن توضیحات جشنواره */
.about-description {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 1.15rem;
  line-height: 2;
  color: #e2e8f0;
  text-align: justify;
  direction: rtl;
  margin-top: 30px;
  padding: 25px;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 15px;
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.02);
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-delay: 1.5s;
}
.animate-text .about-description {
  opacity: 1;
  transform: translateY(0);
}

.menu-section { 
  position: relative; z-index: 10; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; padding: 50px 20px; 
  overflow: hidden;
}
 
.sci-fi-planet-scene {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
  opacity: 0; transform: translateY(180px);
  transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; justify-content: center; align-items: flex-end;
}
.menu-section.in-view .sci-fi-planet-scene {
  opacity: 1; transform: translateY(0);
}

.scene-anchor {
  position: relative; bottom: -430px; width: 0; height: 0;
  display: flex; justify-content: center; align-items: center;
}

/* Cosmic Planet Core (1350px) */
.core-planet {
  position: absolute;
  width: 1350px; height: 1350px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 12%, #022c43 0%, #031424 45%, #010206 75%);
  box-shadow: 
    inset 0 30px 95px rgba(0, 240, 255, 0.4),
    inset 0 10px 40px rgba(16, 185, 129, 0.45),
    0 -20px 85px rgba(0, 240, 255, 0.35),
    0 -50px 160px rgba(16, 185, 129, 0.2);
  border-top: 2px solid rgba(0, 255, 200, 0.85);
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(0,0,0,0) 0%, #010206 70%),
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(0, 240, 255, 0.03) 28px, rgba(0, 240, 255, 0.03) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(0, 240, 255, 0.03) 28px, rgba(0, 240, 255, 0.03) 29px);
}

/* Orbital Dashed Rings */
.sci-fi-orbit { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(0, 240, 255, 0.2); }
.sci-orbit-1 { width: 1550px; height: 1550px; border-color: rgba(0, 240, 255, 0.25); animation: spinOrbit 90s linear infinite; }
.sci-orbit-2 { width: 1800px; height: 1800px; border-color: rgba(16, 185, 129, 0.2); animation: spinOrbitReverse 120s linear infinite; }
@keyframes spinOrbit { 100% { transform: rotate(360deg); } }
@keyframes spinOrbitReverse { 100% { transform: rotate(-360deg); } }

/* Aurora Canvas inside Section 3 */
#auroraCanvasSec3 {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none; mix-blend-mode: screen;
}

/* Enhanced Registration Button */
.main-reg-btn {
  position: relative; z-index: 20; display: inline-block; text-decoration: none; padding: 22px 55px; 
  font-family: 'Vazirmatn', sans-serif; font-size: 1.85rem; font-weight: 800; color: #ffffff;
  background: rgba(1, 10, 25, 0.65); border: 2px solid #00f0ff; border-radius: 50px;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.4), inset 0 0 20px rgba(0, 240, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); backdrop-filter: blur(14px);
  letter-spacing: 0.5px; margin-bottom: 80px;
}
.main-reg-btn:hover { 
  background: #00f0ff; color: #010205; 
  box-shadow: 0 0 70px rgba(0, 240, 255, 0.9), 0 0 20px rgba(16, 185, 129, 0.8), inset 0 0 25px #ffffff; 
  transform: scale(1.08) translateY(-6px); 
}

/* اطلاعات مسابقه بالای دکمه ثبت‌نام */
.contest-info {
  position: relative;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
  direction: rtl;
  padding: 0 15px;
}

.contest-topics,
.contest-time {
  background: rgba(1, 10, 25, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  padding: 15px 25px;
  color: #ffffff;
  font-family: 'Vazirmatn', sans-serif;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15), inset 0 0 15px rgba(0, 240, 255, 0.08);
  text-align: center;
  transition: 0.3s;
}

.contest-time:hover {
  border-color: #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.25), inset 0 0 15px rgba(255, 215, 0, 0.08);
}

.contest-label {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #00f0ff;
  text-shadow: 0 0 12px #00f0ff;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.topic-tag {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.topic-tag:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 12px #00f0ff;
  transform: translateY(-2px);
}

.time-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  letter-spacing: 1px;
}

/* ============================================================
   سکشن مراحل ۴ گانه (اصلاح‌شده)
   ============================================================ */
.stages-section { position: relative; z-index: 10; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; padding: 100px 5%; overflow: hidden; }
.stages-title { font-size: 2.8rem; font-weight: 900; color: #ffffff; text-shadow: 0 0 20px #00f0ff; margin-bottom: 80px; font-family: 'Vazirmatn', sans-serif; z-index: 5; text-align: center; }
 
.cradle-bg { position: absolute; top: 55%; left: 50%; transform: translate(-50%, -50%); opacity: 0.35; z-index: 1; pointer-events: none; }
.cradle-top { width: 420px; height: 12px; background: #00f0ff; border-radius: 10px; box-shadow: 0 0 30px #00f0ff, 0 0 60px #00f0ff; margin: 0 auto; position: relative; }
.cradle-pendulums { display: flex; justify-content: center; margin-top: -6px; }
.pendulum { width: 85px; height: 450px; transform-origin: top center; display: flex; flex-direction: column; align-items: center; }
.string { width: 4px; height: 350px; background: linear-gradient(to bottom, rgba(0,240,255,0.9), rgba(0,240,255,0.3)); box-shadow: 0 0 15px #00f0ff; }
.ball { width: 85px; height: 85px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffffff, #00f0ff 60%, #010205); box-shadow: 0 0 40px #00f0ff, inset 0 0 25px rgba(255,255,255,0.6); margin-top: -5px; position: relative; }
.ball::after { content: ''; position: absolute; top: 12px; left: 18px; width: 25px; height: 25px; background: rgba(255,255,255,0.9); border-radius: 50%; filter: blur(5px); }
 
.p-1 { animation: swing1 1.2s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.p-4 { animation: swing4 1.2s infinite cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes swing1 { 0% { transform: rotate(0deg); } 25% { transform: rotate(-35deg); } 50%, 100% { transform: rotate(0deg); } }
@keyframes swing4 { 0%, 50% { transform: rotate(0deg); } 75% { transform: rotate(35deg); } 100% { transform: rotate(0deg); } }

/* کوچک‌تر شدن گرید کارت‌ها */
.stages-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 30px;               /* کاهش فاصله از 40px */
  max-width: 950px;        /* کاهش عرض کل از 1100px */
  width: 100%; 
  z-index: 5; 
}
.stage-card { 
  background: rgba(3, 4, 10, 0.65); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px); 
  border: 1px solid rgba(0, 240, 255, 0.2); 
  border-radius: 20px; 
  padding: 30px 25px;       /* کاهش padding از 40px 30px */
  text-align: right; 
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 15px rgba(0,240,255,0.05); 
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s; 
  position: relative; 
  overflow: hidden; 
  direction: rtl; 
}
.stage-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,77,0,0.2); border-color: #ff4d00; }
.stage-number { position: absolute; top: -10px; left: -5px; font-size: 5.5rem; /* کاهش از 7rem */ font-weight: 900; color: rgba(255,255,255,0.04); font-family: 'Montserrat', sans-serif; line-height: 1; transition: color 0.4s; pointer-events: none; }
.stage-card:hover .stage-number { color: rgba(255, 77, 0, 0.12); }
.stage-card h3 { font-size: 1.4rem; /* کاهش از 1.6rem */ color: #00f0ff; margin-bottom: 12px; font-weight: 800; }
.stage-card p { font-size: 0.98rem; /* کاهش از 1.05rem */ color: #cbd5e1; line-height: 1.7; }

/* کارت دریافت جوایز */
.award-card {
  max-width: 950px;
  width: 100%;
  margin: 40px auto 0;
  padding: 35px 30px;
  background: rgba(20, 16, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid #ffd700;
  border-radius: 20px;
  text-align: center;
  direction: rtl;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.1);
  transition: transform 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  z-index: 5;
}
.award-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), inset 0 0 30px rgba(255, 215, 0, 0.15);
}
.award-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 60%);
  animation: rotateGlow 8s linear infinite;
  pointer-events: none;
}

.award-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}
.award-card h3 {
  font-size: 1.8rem;
  color: #ffd700;
  margin-bottom: 15px;
  font-weight: 800;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}
.award-card p {
  font-size: 1.05rem;
  color: #fef3c7;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 900px) { 
  .stages-grid { grid-template-columns: 1fr; } 
  .cradle-bg { transform: translate(-50%, -50%) scale(0.6); } 
}

/* ========== PREMIUM FUTURISTIC FOOTER ========== */
.site-footer { 
  position: relative; width: 100%; background-color: #050816; overflow: hidden; 
  border-top: 1px solid rgba(0, 200, 255, 0.15); z-index: 10; font-family: 'Vazirmatn', sans-serif;
  padding: 80px 0 20px 0;
}
 
/* Background Canvas & Effects */
#footer-webgl-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0.8; }
 
.pf-glow-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.pf-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; animation: floatOrb 10s infinite alternate ease-in-out; }
.pf-orb-1 { top: -100px; right: -50px; width: 400px; height: 400px; background: rgba(0, 200, 255, 0.3); }
.pf-orb-2 { bottom: -150px; left: -100px; width: 500px; height: 500px; background: rgba(124, 77, 255, 0.25); animation-delay: -5s; }
@keyframes floatOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 30px) scale(1.1); } }

/* Mathematical & Wave overlays */
.pf-math-bg {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='20' y='40' fill='white' font-family='math' font-size='24'%3EE = mc²%3C/text%3E%3Ctext x='180' y='120' fill='white' font-family='math' font-size='20'%3E∇ × E = -∂B/∂t%3C/text%3E%3Ctext x='50' y='170' fill='white' font-family='math' font-size='22'%3Eiℏ ∂Ψ/∂t = ĤΨ%3C/text%3E%3Ctext x='250' y='50' fill='white' font-family='math' font-size='20'%3EF = G(m₁m₂)/r²%3C/text%3E%3C/svg%3E");
}
 
.pf-wave-line {
  position: absolute; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.5), transparent);
  z-index: 2; opacity: 0.3; box-shadow: 0 0 10px rgba(0, 200, 255, 0.8);
}
.pf-wave-top { top: 35%; left: -100%; animation: lightWave 6s infinite linear; }
@keyframes lightWave { 0% { left: -100%; } 100% { left: 100%; } }

/* Container & Layout */
.pf-container { position: relative; z-index: 10; max-width: 1250px; margin: 0 auto; padding: 0 5%; display: flex; flex-direction: column; gap: 60px; }
 
/* Glassmorphism Card Style */
.pf-glass {
  background: rgba(13, 27, 42, 0.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 200, 255, 0.03);
}

/* Newsletter Section */
.pf-newsletter { display: flex; justify-content: space-between; align-items: center; padding: 40px 50px; flex-wrap: wrap; gap: 30px; }
.pf-nl-text h3 { font-size: 2rem; color: #ffffff; margin-bottom: 8px; font-weight: 800; text-shadow: 0 0 15px rgba(124, 77, 255, 0.6); }
.pf-nl-text p { color: #A0AEC0; font-size: 1.05rem; }
.pf-nl-form { display: flex; gap: 15px; width: 100%; max-width: 480px; position: relative; }
.pf-nl-form input {
  flex: 1; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(0, 200, 255, 0.3); border-radius: 50px;
  padding: 15px 25px; color: #fff; font-family: 'Vazirmatn', sans-serif; outline: none; transition: all 0.3s;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}
.pf-nl-form input:focus { border-color: #00C8FF; box-shadow: 0 0 15px rgba(0, 200, 255, 0.2), inset 0 0 10px rgba(0, 200, 255, 0.1); }
.pf-nl-form button {
  background: linear-gradient(135deg, #00C8FF, #7C4DFF); border: none; border-radius: 50px; color: #fff;
  padding: 0 35px; font-family: 'Vazirmatn', sans-serif; font-weight: 700; font-size: 1.1rem;
  cursor: pointer; transition: all 0.3s; box-shadow: 0 5px 20px rgba(124, 77, 255, 0.4);
}
.pf-nl-form button:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(0, 200, 255, 0.6); }

/* Main Grid */
.pf-main-content { padding: 50px 60px; display: flex; flex-direction: column; gap: 40px; }
.pf-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
 
.pf-brand .pf-logo-text { font-family: 'Montserrat', sans-serif; font-size: 2.8rem; font-style: italic; font-weight: 900; color: #ffffff; text-shadow: 0 0 20px rgba(0, 200, 255, 0.8); margin-bottom: 15px; direction: ltr; display: inline-block; }
.pf-brand p { color: #A0AEC0; line-height: 1.8; margin-bottom: 25px; font-size: 1rem; max-width: 90%; }
 
.pf-socials { display: flex; gap: 15px; }
.pf-social-icon {
  width: 45px; height: 45px; border-radius: 50%; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: center; align-items: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: #fff;
}
.pf-social-icon svg { width: 20px; height: 20px; fill: currentColor; transition: transform 0.3s; }
.pf-social-icon:hover { background: #00C8FF; border-color: #00C8FF; color: #010205; transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0, 200, 255, 0.5); }
.pf-social-icon:hover svg { transform: scale(1.2); }

.pf-links-col h4 { color: #ffffff; font-size: 1.3rem; font-weight: 800; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.pf-links-col h4::after { content: ''; position: absolute; right: 0; bottom: 0; width: 40px; height: 3px; background: #7C4DFF; border-radius: 5px; box-shadow: 0 0 10px #7C4DFF; }
.pf-links-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pf-links-col a { color: #A0AEC0; text-decoration: none; font-size: 1rem; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.pf-links-col a::before { content: '›'; color: #00C8FF; font-size: 1.2rem; font-weight: bold; opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; }
.pf-links-col a:hover { color: #00C8FF; text-shadow: 0 0 10px rgba(0, 200, 255, 0.4); transform: translateX(-5px); }
.pf-links-col a:hover::before { opacity: 1; transform: translateX(0); }

.pf-contact-list { list-style: none; display: flex; flex-direction: column; gap: 15px; color: #A0AEC0; font-size: 1rem; }
.pf-contact-item { display: flex; align-items: flex-start; gap: 12px; }
.pf-contact-item svg { width: 22px; height: 22px; fill: #7C4DFF; filter: drop-shadow(0 0 5px rgba(124,77,255,0.5)); flex-shrink: 0; margin-top: 3px; }

/* Sponsors */
.pf-sponsors { padding-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.pf-sponsors h5 { color: #A0AEC0; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }
.pf-sponsors-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; align-items: center; width: 100%; }
.pf-sponsor { fill: #A0AEC0; width: 120px; height: 40px; opacity: 0.5; transition: all 0.4s ease; filter: grayscale(100%); cursor: pointer; }
.pf-sponsor:hover { opacity: 1; filter: grayscale(0%) drop-shadow(0 0 15px rgba(0, 200, 255, 0.4)); fill: #00C8FF; transform: scale(1.05); }

/* Bottom Bar */
.pf-bottom-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 25px 35px; border-radius: 20px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255,255,255,0.05); }
.pf-copyright { color: #A0AEC0; font-size: 0.95rem; }
.pf-legal { display: flex; gap: 20px; }
.pf-legal a { color: #A0AEC0; text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.pf-legal a:hover { color: #ffffff; text-shadow: 0 0 8px rgba(255,255,255,0.5); }
.pf-credit { color: #A0AEC0; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.pf-heart { color: #ff3366; animation: heartbeat 1.5s infinite; filter: drop-shadow(0 0 5px rgba(255,51,102,0.6)); }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* PhysioElectric brand color in footer */
.pf-physio { color: #00C8FF; font-weight: 800; }

/* ========== RESPONSIVE DESIGN (MOBILE & TABLET) ========== */
@media (pointer: coarse) {
  .custom-cursor { display: none !important; }
  * { cursor: auto !important; }
}

@media (max-width: 768px) {
  /* Header adjustments */
  .glass-header { height: auto; min-height: 70px; padding: 15px 10px; flex-direction: column; justify-content: center; gap: 12px; }
  .nav-menu { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .nav-menu li a { font-size: 0.85rem; padding: 6px 14px; border-radius: 8px; }
  .logo-text { font-size: 1.6rem; }

  /* Hero section SVG scalings */
  .row { gap: 8px; }
  .box-i, .box-a, .box-p { width: 28vw; height: 28vw; max-width: 180px; max-height: 180px; }
  .box-2026 { width: 90vw; height: auto; aspect-ratio: 495 / 210; margin-top: 15px; }

  /* Typography adjustments */
  .about-content { padding: 35px 20px; width: 95%; }
  .title-word { font-size: 2.2rem; }
  .subtitle-container { font-size: 1.05rem; }
  
  .about-description { font-size: 1rem; padding: 20px; }

  .main-reg-btn { font-size: 1.4rem; padding: 16px 35px; margin-bottom: 50px; }
  
  /* Contest info responsive */
  .contest-info {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
  }
  .contest-topics,
  .contest-time {
    padding: 12px 18px;
  }
  .contest-label {
    font-size: 1rem;
  }
  .topic-tag {
    font-size: 0.85rem;
    padding: 5px 12px;
  }
  .time-value {
    font-size: 1.2rem;
  }

  /* Stage Cards for Mobile */
  .stage-card { padding: 20px 18px; }
  .stage-number { font-size: 4rem; left: -5px; top: -10px; }
  .stage-card h3 { font-size: 1.2rem; }
  .stage-card p { font-size: 0.9rem; }
  .stages-grid { gap: 20px; }

  /* Award Card for Mobile */
  .award-card {
    padding: 25px 20px;
    margin-top: 30px;
  }
  .award-card h3 {
    font-size: 1.5rem;
  }
  .award-card p {
    font-size: 0.95rem;
  }

  /* Footer Premium Adjustments */
  .site-footer { padding: 60px 0 20px 0; }
  .pf-main-content { padding: 30px 20px; gap: 30px; }
  .pf-newsletter { flex-direction: column; text-align: center; padding: 30px 20px; }
  .pf-nl-text h3 { font-size: 1.6rem; }
  .pf-grid { grid-template-columns: 1fr; gap: 40px; }
  .pf-brand, .pf-links-col, .pf-contact-col { text-align: center; }
  .pf-links-col h4::after { right: 50%; transform: translateX(50%); }
  .pf-socials { justify-content: center; }
  .pf-contact-item { flex-direction: column; align-items: center; gap: 5px; }
  .pf-bottom-bar { flex-direction: column; text-align: center; justify-content: center; padding: 20px; }
}

@media (max-width: 480px) {
  /* Ultra-small screens */
  .title-word { font-size: 1.7rem; }
  .subtitle-container { font-size: 0.9rem; }
  .nav-menu { gap: 8px; }
  .nav-menu li a { font-size: 0.8rem; padding: 5px 10px; border-radius: 6px; }
  .box-i, .box-a, .box-p { width: 29vw; height: 29vw; }
  .main-reg-btn { font-size: 1.2rem; padding: 14px 30px; margin-bottom: 40px;}
  .stages-title { font-size: 1.7rem; }
  
  /* Downscaling planet layers to prevent horizontal overflow bugs on iOS */
  .core-planet { width: 800px; height: 800px; }
  .sci-orbit-1 { width: 900px; height: 900px; }
  .sci-orbit-2 { width: 1100px; height: 1100px; }
  
  .pf-nl-form { flex-direction: column; }
  .pf-nl-form input { border-radius: 15px; }
  .pf-nl-form button { border-radius: 15px; padding: 12px; }

  /* Award Card further adjustments */
  .award-card {
    padding: 20px 15px;
  }
  .award-card h3 {
    font-size: 1.3rem;
  }
  .award-card p {
    font-size: 0.9rem;
  }

  /* Contest info smaller */
  .contest-info {
    gap: 10px;
  }
  .contest-topics,
  .contest-time {
    padding: 10px 14px;
  }
  .contest-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  .topic-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
  .time-value {
    font-size: 1.1rem;
  }
}