@import url('https://fonts.googleapis.com/css?family=Montserrat:700|Pacifico');

*, *:after, *:before{
  box-sizing:border-box;
  margin:0;
  padding:0;
  -webkit-transition: all 100ms ease-in;
  transition: all 100ms ease-in;
}
html{
  /* صورة المدينة كخلفية */
  background-image: url('https://i0.wp.com/www.rejsrejsrejs.dk/wp-content/uploads/2024/10/Budapest.jpg?resize=1024%2C683&ssl=1');
  background-position: center center;   /* توسيط الصورة */
  background-repeat: no-repeat;         /* بدون تكرار */
  background-size: cover;              /* تغطية الشاشة بالكامل حتى لو قُصَّت الأطراف قليلاً */
  background-attachment: fixed;        /* تثبيت الخلفية مع السكرول */
  background-color: #000;              /* خلفية سوداء حول الصورة إن وُجد فراغ */
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

body{
  position: relative;
  min-height: 100vh;
}

body::before{
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 5% 10%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 25% 80%, rgba(255,255,255,0.4), transparent),
    radial-gradient(3px 3px at 55% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 75% 60%, rgba(255,255,255,0.5), transparent),
    radial-gradient(3px 3px at 90% 20%, rgba(255,255,255,0.6), transparent);
  opacity: 0.7;
  animation: starDrift 40s linear infinite;
  z-index: 0;
}

html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

html::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* نجوم متعددة الطبقات بحركة مستمرة */
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255,255,255,0.85), transparent),
    radial-gradient(2px 2px at 10% 10%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.6), transparent);
  background-size: 200px 200px, 260px 260px, 320px 320px, 400px 400px, 500px 500px, 600px 600px, 700px 700px;
  animation: sparkle 6s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.feliz{
  width: 100%;
  font-family: 'Pacifico', cursive;
  font-size: 100px;
  font-weight: 700;
  color: #f48fb1;
  text-align: center;
  position: absolute;
  top: 50%;
  opacity: 0;
  animation: vem_feliz 2s ease-in-out 7s forwards, felizGlow 3s ease-in-out 9s infinite alternate;
  text-shadow: 0 0 20px rgba(244,143,177,0.7), 0 0 40px rgba(244,143,177,0.6);
}

.ano_novo{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 200px 100px 0px 0px;
}

.ano_novo>span{
  font-family: 'Montserrat', sans-serif;
  font-size: 175px;
  font-weight: 700;
  color: #7a8fe8;
  text-shadow: 0 0 20px rgba(122,143,232,0.7), 0 0 35px rgba(122,143,232,0.5);
  animation: yearPulse 3s ease-in-out infinite;
}

span.seis{
  position: absolute;
  top: 50%;
  right: 50%;
  margin-right: -210px;
  animation: vai_2016 5s ease-in-out 5s forwards;
}

span.sete{
  position: absolute;
  right: 0%;
  margin-right: -237px;
  animation: vem_2017 6s ease-in-out forwards;
}

span.sete:before{
  content: '';
  width: 0px;
  height: 6px;
  display: block;
  border-radius: 3px;
  background: #7a8fe8;
  transform: rotate(0deg);
  transform-origin: left top;
  position: absolute;
  top: 55px;
  left: 10px;
  z-index: -1;
  animation: entrega_balao 1s ease-in-out 4s;
}

.balao{
  width: 100px;
  height: 100px;
  display: block;
  background: #e8d57a;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  margin-top: -165px;
  right: 0%;
  margin-right: -200px;
  animation: vem_e_vai_balao 10s ease-in-out forwards;
}

.balao:before{
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 20px 10px;
  border-color: transparent transparent #b19b32 transparent;
  position: absolute;
  left: 50%;
  margin-left: -10px;
  bottom: -10px;
  z-index: -1;
}

.balao:after{
  content: '';
  width: 4px;
  height: 100px;
  display: block;
  background: #fff;
  border-radius: 0px 0px 3px 3px;
  position: absolute;
  left: 50%;
  margin-left: -2px;
  bottom: -110px;
}

.fogos{
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 100000; /* طبقة الألعاب النارية والنجوم الإضافية فوق الخلفية */
}

.fogos::before{
  /* نجوم ثابتة إضافية موزعة على الصفحة لإضافة شكل جميل */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 15%, rgba(255,255,255,0.8), transparent),
    radial-gradient(3px 3px at 30% 70%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 50% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(3px 3px at 75% 20%, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 85% 80%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1px 1px at 20% 50%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 60% 85%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 40% 40%, rgba(255,255,255,0.7), transparent);
  background-repeat: no-repeat;
  opacity: 0.8;
}

.fogos>div{
  border: 2px solid #fff;
  position: absolute;
  opacity: 0;
  animation: solta_fogos 1.8s ease-in-out infinite;
}
.fogos>div.f1{
  left: 20%;
  top: 40%;
  animation-delay: 6s;
}
.fogos>div.f2{
  left: 15%;
  top: 70%;
  animation-delay: 8s;
}
.fogos>div.f3{
  right: 20%;
  top: 40%;
  animation-delay: 7s;
}
.fogos>div.f4{
  right: 15%;
  top: 70%;
  animation-delay: 9s;
}
.fogos>div span{
  width: 6px;
  height: 6px;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  animation: estoura_fogos 0.5s ease-in-out 9s forwards;
}
.fogos>div span:nth-child(1){
  transform: rotate(0deg);
}
.fogos>div span:nth-child(2){
  transform: rotate(120deg);
}
.fogos>div span:nth-child(3){
  transform: rotate(240deg);
}
.fogos>div span:before{
  content: '';
  width: 2px;
  height: 50px;
  display: block;
  background: #f5cc06;
  position: absolute;
  top: -60px;
  left: 2px;
}
.fogos>div span:after{
  content: '';
  width: 2px;
  height: 50px;
  display: block;
  background: #f5cc06;
  position: absolute;
  bottom: -60px;
  left: 2px;
}
.fogos>div span i:before{
  content: '';
  width: 3px;
  height: 3px;
  display: block;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: -15px;
  left: 10px;
}
.fogos>div span i:after{
  content: '';
  width: 3px;
  height: 3px;
  display: block;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: -15px;
  right: 10px;
}
a.author{
  font-size: 12px;
  text-decoration: none;
  color: #f47c7c;
  position: fixed;
  bottom: 10px;
  right: 10px;
}

.ny-modal-overlay{
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 999;
}

.ny-modal-overlay.ny-show{
  opacity: 1;
  visibility: visible;
}

.ny-modal{
  position: relative;
  max-width: 520px;
  width: 90%;
  background: #0f172a;
  border-radius: 26px;
  padding: 3rem 2.6rem 3.8rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.75);
  overflow: hidden;
  transform: scale(0.8) translateY(40px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.ny-modal-overlay.ny-show .ny-modal{
  transform: scale(1) translateY(0);
  opacity: 1;
}

.ny-modal-glow{
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.18), transparent 55%);
  opacity: 1;
  filter: blur(10px);
  z-index: -1;
  animation: none;
}

.ny-modal::before,
.ny-modal::after{
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  pointer-events: none;
}

.ny-modal::before{
  box-shadow:
    0 0 18px rgba(250, 204, 21, 0.25),
    0 0 35px rgba(37,99,235,0.18);
  animation: modalSparks 16s linear infinite;
}

.ny-modal::after{
  inset: 26px;
  border-color: rgba(148,163,184,0.35);
  box-shadow: 0 0 10px rgba(148,163,184,0.25);
  animation: modalSparks 20s linear infinite reverse;
}

.ny-modal-close{
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ny-modal-close:hover{
  color: #ffdf6b;
  transform: scale(1.1);
}

.ny-modal-icon{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 30% 30%, #ffdf6b, #ff6b6b);
  box-shadow: 0 0 25px rgba(255,223,107,0.9);
  animation: iconPop 1.2s ease-out forwards;
}

.ny-modal-icon span{
  font-size: 2.3rem;
}

.ny-modal-title{
  font-family: 'Montserrat', sans-serif;
  font-size: 2.7rem;
  text-align: center;
  color: #ffdf6b;
  margin-bottom: 1.8rem;
  text-shadow: 0 0 8px rgba(255,223,107,0.6);
}

.ny-modal-divider{
  text-align: center;
  color: #facc15;
  margin-bottom: 1.9rem;
  font-size: 1.2rem;
}

.ny-modal-text{
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  line-height: 2.1;
  color: #e5e7eb;
  text-align: center;
  margin-bottom: 2.1rem;
}

.ny-modal-dua{
  margin: 0 auto 2.3rem;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  background: #020617;
  border: 1px solid rgba(255,223,107,0.35);
  color: #e5e7eb;
  font-size: 1.1rem;
  line-height: 2.0;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.ny-modal-signature{
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 1rem;
  color: #facc15;
  font-family: 'Pacifico', cursive;
  padding-left: 10px;
  border-left: 3px solid #facc15;
  opacity: 0.9;
}

.ny-balloon{
  position: absolute;
  width: 40px;
  height: 52px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 30% 25%, #e5e7eb, #9ca3af);
  opacity: 0.7;
  box-shadow: 0 6px 14px rgba(0,0,0,0.45);
}

.ny-balloon::after{
  content: '';
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 2px;
  height: 26px;
  background: rgba(255,255,255,0.7);
  transform: translateX(-50%);
}

.ny-balloon-1{
  top: -20px;
  left: -10px;
  animation: nyBalloonFloat 8s ease-in-out infinite;
}

.ny-balloon-2{
  bottom: -10px;
  right: -5px;
  background: radial-gradient(circle at 30% 25%, #e0e7ff, #818cf8);
  animation: nyBalloonFloat 9s ease-in-out infinite reverse;
}

.ny-balloon-3{
  top: 40%;
  right: -30px;
  background: radial-gradient(circle at 30% 25%, #fee2e2, #f97373);
  animation: nyBalloonFloat 7s ease-in-out infinite;
}

@keyframes vem_2017 {
  0% {
    right: 0%;
  }
  66.6666% {
    right: 50%;
    margin-right: -300px;
  }
  90% {
    right: 50%;
    margin-right: -300px;
  }
  100% {
    right: 50%;
  }
}
@keyframes vem_e_vai_balao {
  0% {
    right: 0%;
  }
  40% {
    right: 50%;
    margin-right: -300px;
  }
  50% {
    right: 50%;
    margin-right: -200px;
    top: 50%;
  }
  100% {
    top: -100%;
    right: 50%;
  }
}
@keyframes entrega_balao {
  0% {
    transform: rotate(-30deg);
    width: 40px;
  }
  100% {
    transform: rotate(-150deg);
    width: 70px;
  }
}
@keyframes vai_2016 {
  0% {
    top: 50%;
  }
  100% {
    top: -100%;
  }
}
@keyframes vem_feliz {
  0% {
    margin-top: 0px;
    opacity: 0;
  }
  100% {
    margin-top: -200px;;
    opacity: 1;
  }
}
@keyframes solta_fogos {
  0% {
    margin-top: 100%;
    opacity: 0;
    width: 2px;
    height: 30px;
    display: block;
    border-radius: 50%;
  }
  75% {
    margin-top: 0%;
    opacity: 1;
    width: 2px;
    height: 30px;
    display: block;
    border-radius: 50%;
  }
  80%{
    margin-top: 0px;
    margin-left: 0px;
    opacity: 1;
    width: 10px;
    height: 10px;
    display: block;
    border-radius: 50%;
    transform: scale(0.2);
  }
  100%{
    opacity: 1;
    width: 10px;
    height: 10px;
    display: block;
    border-radius: 50%;
    transform: scale(1);
  }
}
@keyframes estoura_fogos {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes sparkle {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes starDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(40px, -40px, 0);
  }
  100% {
    transform: translate3d(80px, -80px, 0);
  }
}

@keyframes nyBalloonFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes modalSparks {
  0% {
    transform: rotate(0deg);
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.85;
  }
}