* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 180, 219, 0.1);
  border-top: 4px solid #00b4db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-text {
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00b4db, #0083b0);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0083b0, #00b4db);
}

::selection {
  background: rgba(0, 180, 219, 0.3);
  color: #ffffff;
}

body, html {
  min-height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background-color 0.5s, color 0.5s;
  background: #000;
  position: relative;
  overflow-x: hidden;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 0.5s ease;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  transition: opacity 0.5s;
}

#toggle-language {
  display: none;
}

.language-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.language-toggle span {
  display: none;
  transition: all 0.3s ease;
}

#toggle-language:not(:checked) + .language-toggle .lang-en {
  display: block;
}

#toggle-language:checked + .language-toggle .lang-ar {
  display: block;
}

#toggle-language:checked ~ .wrapper {
  direction: rtl;
}

#toggle-language:checked ~ .wrapper .name,
#toggle-language:checked ~ .wrapper .bio,
#toggle-language:checked ~ .wrapper .account,
#toggle-language:checked ~ .wrapper .link-content {
  text-align: right;
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 180, 219, 0.6);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 1em;
  user-select: none;
  pointer-events: none;
  animation: snowfall linear infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes snowfall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(50px) rotate(360deg);
    opacity: 0;
  }
}

.wrapper {
  position: relative;
  min-height: 100vh;
  color: #fff;
  transition: background 0.5s, color 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 20px 20px;
  text-align: center;
  flex-direction: column;
  z-index: 2;
}

.container {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  width: 100%;
}

.avatar-container {
  position: relative;
  margin-bottom: 30px;
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 180, 219, 0.4), transparent);
  border-radius: 50%;
  animation: glowPulse 3s infinite ease-in-out;
  z-index: 0;
}

@keyframes glowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

.avatar-border {
  position: relative;
  z-index: 1;
  padding: 8px;
  background: linear-gradient(135deg, #00b4db, #0083b0, #00d4ff);
  border-radius: 50%;
  animation: rotateBorder 8s linear infinite;
  background-size: 200% 200%;
  box-shadow: 0 0 30px rgba(0, 180, 219, 0.5);
}

@keyframes rotateBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid #fff;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.avatar:hover {
  transform: scale(1.05);
}

.name {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #fff, #71cde1, #00b4db, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameGlow 4s ease-in-out infinite, shimmer 3s linear infinite;
  background-size: 200% 200%;
  text-shadow: 0 0 20px rgba(0, 180, 219, 0.8),
               0 0 40px rgba(0, 180, 219, 0.6),
               0 0 60px rgba(0, 180, 219, 0.4);
  filter: drop-shadow(0 0 10px rgba(0, 180, 219, 0.7));
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes nameGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(0, 180, 219, 0.7))
            drop-shadow(0 0 20px rgba(0, 180, 219, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 180, 219, 1))
            drop-shadow(0 0 40px rgba(0, 180, 219, 0.8))
            drop-shadow(0 0 60px rgba(0, 180, 219, 0.6));
  }
}

.bio {
  font-size: 20px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.account {
  font-size: 20px;
  margin-bottom: 15px;
  background: linear-gradient(180deg, #c9a7ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.social-link {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-link.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #e1306c;
}

.social-link.tiktok:hover {
  background: #000;
  border-color: #00f2ea;
}

.social-link.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.social-link.twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
}

.social-link.snapchat:hover {
  background: #858305;
  border-color: #000;
}

.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.link-card:hover::before {
  left: 100%;
}

.link-card:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.link-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, #00b4db, #0083b0);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.link-card:hover .link-icon {
  transform: rotate(360deg) scale(1.1);
}

.link-content {
  flex: 1;
  text-align: left;
}

.link-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.link-content p {
  font-size: 14px;
  opacity: 0.8;
  font-weight: 300;
}

.link-arrow {
  font-size: 20px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
  opacity: 1;
  transform: translateX(5px);
}

.contact-section {
  width: 100%;
  max-width: 600px;
  margin: 40px auto 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #00b4db, #0083b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-section p {
  font-size: 16px;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 180, 219, 0.3);
}

.contact-item i {
  font-size: 20px;
  color: #00b4db;
  min-width: 20px;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.contact-item a:hover {
  color: #00b4db;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 40px;
}

.footer p {
  margin: 5px 0;
}

.footer b {
  font-size: 13px;
  font-weight: 800;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, #00b4db, #00b4db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer a {
  font-size: 13px;
  background: linear-gradient(90deg, #00b4db, #0083b0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.5px;
}

.footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00b4db, #0083b0);
  transition: width 0.3s ease;
}

.footer a:hover {
  background-position: 100% center;
  text-shadow: 0 0 10px rgb(151 230 244 / 60%);
  transform: translateY(-1px);
}

.footer a:hover::after {
  width: 100%;
}

.footer i.fa-heart {
  color: #ff4757;
  animation: heartbeat 1.5s infinite;
}

.visitors i {
  color: #00b4db;
  margin-right: 5px;
  font-size: 16px;
}

.phone-number {
  direction: ltr;
  unicode-bidi: embed;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.2);
  }
  20%, 40% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .avatar-border {
    padding: 6px;
  }

  .avatar {
    width: 150px;
    height: 150px;
  }

  .avatar-glow {
    width: 170px;
    height: 170px;
  }

  .name {
    font-size: 32px;
  }

  .bio {
    font-size: 18px;
  }

  .account {
    font-size: 18px;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .link-card {
    padding: 15px 20px;
  }

  .link-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    font-size: 20px;
    margin-right: 15px;
  }

  .link-content h3 {
    font-size: 16px;
  }

  .link-content p {
    font-size: 13px;
  }

  .footer {
    font-size: 12px;
    padding: 20px 15px;
  }

  .contact-section {
    padding: 25px 20px;
    margin: 30px auto 0;
  }

  .contact-section h2 {
    font-size: 24px;
  }

  .contact-section p {
    font-size: 14px;
  }

  .contact-item {
    padding: 12px 20px;
  }

  .contact-item a {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 60px 15px 15px 15px;
  }

  .avatar {
    width: 130px;
    height: 130px;
  }

  .avatar-glow {
    width: 150px;
    height: 150px;
  }

  .name {
    font-size: 28px;
  }

  .bio {
    font-size: 16px;
  }

  .account {
    font-size: 16px;
  }

  .social-icons {
    gap: 12px;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .link-card {
    padding: 12px 15px;
  }

  .link-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 18px;
    margin-right: 12px;
  }

  .link-content h3 {
    font-size: 15px;
  }

  .link-content p {
    font-size: 12px;
  }

  .contact-section {
    padding: 20px 15px;
    margin: 25px auto 0;
  }

  .contact-section h2 {
    font-size: 22px;
  }

  .contact-section p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .contact-item {
    padding: 10px 15px;
    gap: 10px;
  }

  .contact-item i {
    font-size: 18px;
  }

  .contact-item a {
    font-size: 13px;
  }
}
