/* Global Styles and Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, system-ui, sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "slnt" 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #000;
  color: #ffffff;
  min-height: 100vh;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.6;
  height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #f97316, #dc2626);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #ea580c, #b91c1c);
}

html,
body {
  height: 100vh;
}
.wrapper {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
}

.container {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  z-index: 10;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/bg5.webp");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  z-index: -1;
}

.top-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 90%;
  height: 100vh;
  flex-direction: column;
  text-align: center;
  /* gap: 2rem; */
}

.top-section__content {
  background: linear-gradient(
    135deg,
    rgba(255, 51, 0, 0.534),
    rgba(109, 109, 109, 0.322)
  );
  backdrop-filter: blur(15px);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(-60px) scale(0.95);
  animation: slideInLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  padding: 0.3rem;
}

.profile-content {
  width: 100%;
  display: flex;
  flex: 1;
  justify-content: center; /* pushes content down */
  align-items: start;
  flex-direction: column;
  flex: 1;
  color: #ffffff;
  margin-left: 7rem;
}

.profile-image {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  /* padding: 0.2rem; */
}

.profile-image img {
  display: block;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.profile-image img:hover {
  transform: scale(1.05) rotateY(2deg) rotate(2deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(249, 115, 22, 0.2);
  border: 5px solid rgba(255, 102, 0, 0.705);
}

.profile-title {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  margin-left: 0.7rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  background-clip: text;
  position: relative;
}

.highlighted-letter {
  color: #ff3300;
}

.profile-stats {
  /* الموجود عندك */
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-family: "Inter", system-ui, sans-serif;
  flex-wrap: nowrap;

  /* الإضافات */
  margin-top: 0.75rem;   /* ينزل لتحت */
  margin-left: -0.75rem; /* يتحرك شمال */
}


.profile-stats span {
  font-size: clamp(0.875rem, 1.5vw, 1.25rem);
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 12px 18px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 140px;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.stat-item span {
  font-size: clamp(0.75rem, 2vw, 1rem);
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.15),
    rgba(220, 38, 38, 0.15)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.15);
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.12),
    rgba(220, 38, 38, 0.08)
  );
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #ffffff;
}

.stat-item svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 5px;
  fill: #ff3c00;
  transition: all 0.3s ease;
}

.stat-item:hover svg {
  fill: #ffffff;
  transform: scale(1) rotateY(1deg) rotate(5deg);
}

/* Adjust stat items for better spacing on mobile */
.profile-stats {
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  /* gap: 0.1rem; */
  justify-content: left;
  margin-top: 0.5rem;
}

.social-icon {
  width: clamp(25px, 5vw, 30px);
  height: clamp(25px, 5vw, 30px);
}

.social-icon svg {
  width: clamp(25px, 5vw, 30px);
  height: clamp(25px, 5vw, 30px);
  font-size: clamp(1rem, 2vw, 1.3rem);
  gap: 1rem;
  fill: rgb(255, 255, 255);
  transition: all 0.3s ease;
  z-index: 2;
}

.social-icon:hover svg {
  fill: #ffffff;
  transform: scale(1);
}

.social-icons {
  display: flex;
  justify-content: flex-start; /* يبدأوا من الشمال */
  gap: 1rem; /* المسافة بين الأيقونات */
  margin-left: 1.1rem; /* يحركهم يمين شوية */
}

/* Services Section */
.bottom-section {
  width: 100%;
  max-width: 90%;
  text-align: center;
}

.services-section {
  position: relative;
  opacity: 1;
  transform: translateY(10px) scale(0.96);
  animation: slideInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
  margin-bottom: 6rem;
}

.services-title {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1%;
  text-align: left;
  letter-spacing: -0.025em;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  background-clip: text;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.service-link {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(220, 38, 38, 0.9)
  );
  backdrop-filter: blur(10px);
  border-radius: 9999px;
  /* We only need padding on the right for the text now */
  padding-right: 24px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: translateY(20px) scale(0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
}

.service-link:hover::before {
  left: 100%;
}

.service-link:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(249, 115, 22, 0.1);
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.95),
    rgba(220, 38, 38, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-link:hover .service-icon {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}

.service-link:hover .service-title {
  color: #6b5353;
  transform: translateX(3px);
  font-weight: 600;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  backdrop-filter: blur(5px);
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.service-icon picture {
  width: 100%;
  height: 100%;
}
.service-title {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.1875rem;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fdfdfd;
  width: 100%;
  text-align: left;
}

/* Service link specific gradients */
.service-link.crypto {
  background: linear-gradient(
    135deg,
    rgb(255, 72, 0),
    rgba(255, 255, 255, 0.103)
  );
}

.service-link.youtube {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.7),
    rgba(185, 28, 28, 0.7)
  );
}

.service-link.facebook {
  background: linear-gradient(
    135deg,
    rgba(0, 130, 252, 0.89),
    rgba(255, 255, 255, 0.185)
  );
}

.service-link.telegram {
  background: linear-gradient(
    135deg,
    rgba(0, 238, 255, 0.7),
    rgba(243, 243, 243, 0.26)
  );
}

.service-link.instagram {
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.7),
    rgba(147, 51, 234, 0.7)
  );
}

.service-link.linkedin {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.7),
    rgba(29, 78, 216, 0.7)
  );
}

.service-link.tiktok {
  background: linear-gradient(
    135deg,
    rgba(55, 65, 81, 0.7),
    rgba(255, 255, 255, 0.397)
  );
}

/* Preview Image Hover Effect - Desktop Only */
.preview-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform: scale(0.85) translate(-50%, -50%) translateY(10px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(108, 172, 255, 0.726), 0 16px 40px rgba(218, 12, 12, 0.4),
    0 8px 20px rgba(255, 0, 0, 0.1), inset 0 1px 0 rgba(255, 0, 0, 0.15);
  backdrop-filter: blur(15px) saturate(1.2);
  border: 2px solid rgba(255, 38, 0, 0.493);
  background: rgba(255, 255, 255, 0.788);
  will-change: transform, opacity;
}

.preview-tooltip.show {
  opacity: 1;
  transform: scale(1) translate(-50%, -50%) translateY(0px);
}

.preview-tooltip img {
  width: 320px;
  height: auto;
  display: block;
  border-radius: 12px;
  max-height: 420px;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.preview-tooltip.show img {
  transform: scale(1.02);
}

.preview-tooltip .preview-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  color: #ffffff;
  padding: 12px 16px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(15px);
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Hide preview on mobile and tablet */
@media (max-width: 1024px) {
  .preview-tooltip {
    display: none !important;
  }
  .social-icons {
    max-width: 300px;
  }
}

/* Premium text animations */
@keyframes textShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Professional Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-8px) scale(1.02);
    opacity: 0.7;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes gentleGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
  }
}

@keyframes subtleShift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.01);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .profile-stats {
    gap: 1rem;
  }
  .stat-item {
    font-size: 0.9rem;
    padding: 10px 16px;
    min-width: 120px;
  }
  .email-contact {
    font-size: 0.9rem !important;
    padding: 10px 16px !important;
    min-width: 120px !important;
  }
}

/* Add this new media query for tablets and medium screens */
@media (max-width: 992px) {
  .profile-image {
    margin: 0;
    padding: 0;
  }
  .profile-content {
    margin: 0 0 0 4rem;
    justify-content: center;
    align-items: start;
  }
}

/* Mobile Quries for Responsiveness */
@media (max-width: 850px) {
  .profile-content {
    margin: 0 0 0 2rem;
    justify-content: center;
    align-items: start;
  }
}

@media (max-width: 750px) {
  .wrapper {
    z-index: 10;
  }

  .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/back-mobile-3.webp");
    background-size: cover;
    background-position: top center;
    z-index: -1;
    will-change: transform;
  }

  .top-section {
    gap: 1.5rem;
  }
  .top-section__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
    background: none;
    backdrop-filter: none;
    border-radius: 0;
  }

  .profile-content {
    flex: 1;
    color: #ffffff;
    padding: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 15rem 0 3rem 0;
  }

  .profile-image {
    display: none;
  }
  .profile-title {
     margin-top: -0.001px; /* يرفع الاسم لفوق */
  }
  .profile-stats {
    margin-block: 0.1rem;
  }

  .bottom-section {
    transform: translateY(-1%);
  }
  .services-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 600px) {
  .profile-content {
    flex: 1;
    color: #ffffff;
    padding: 0;
    text-align: center;
    margin: 0.1rem 0 0 0;
  }
    .bottom-section {
    transform: translateY(-37%);
  }
}

@media (max-width: 450px) {
  .social-icons {
    max-width: 250px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .profile-stats {
    gap: 4px;
    max-width: 100%;
  }
  .stat-item {
    font-size: 0.6rem;
    padding: 5px 8px;
    max-width: 130px;
    border-radius: 14px;
  }
  .stat-item i {
    font-size: 0.7rem;
  }
  .stat-item span {
    font-size: 0.6rem;
  }
  .social-icons {
    gap: 0.875rem;
  }
  .social-icon {
    width: 52px;
    height: 52px;
  }
  .social-icon i {
    font-size: 1.5rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .profile-stats {
    gap: 6px;
    max-width: 320px;
  }

  .stat-item {
    font-size: 0.65rem;
    padding: 6px 10px;
    gap: 3px;
    max-width: fit-content;
    border-radius: 16px;
  }

  .stat-item svg {
    font-size: 0.75rem;
  }

  .stat-item span {
    font-size: 1rem;
  }

  .social-icon {
    width: 56px;
    height: 56px;
  }

  .social-icon svg {
    font-size: 1.6rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .profile-stats {
    gap: 4px;
    max-width: 280px;
  }

  .stat-item {
    font-size: 0.6rem;
    padding: 5px 8px;
    gap: 2px;
    max-width: 130px;
    border-radius: 14px;
  }

  .stat-item svg {
    font-size: 0.7rem;
  }

  .stat-item span {
    font-size: 0.6rem;
  }

  .social-icons {
    gap: 0.875rem;
  }

  .social-icon {
    width: 52px;
    height: 52px;
  }

  .social-icon svg {
    font-size: 1.5rem;
  }
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Loading animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f97316, #dc2626);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
