@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Outfit:wght@400;600;800&display=swap');

:root {
  --bg-dark: #191134;
  --bg-glow-1: rgba(255, 255, 255, 0.02); /* Subtle glow */
  --bg-glow-2: rgba(255, 255, 255, 0.01); /* Subtle glow */
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.2);
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --accent: #d8b4fe;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', 'Cairo', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  direction: rtl;
  min-height: 100vh;
}

/* Dynamic Animated Background Mesh */
body::before, body::after {
  content: '';
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, var(--bg-glow-1) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, var(--bg-glow-2) 0%, transparent 50%);
  filter: blur(100px);
  animation: bgPulse 15s ease-in-out infinite alternate;
}

body::after {
  background: radial-gradient(circle at 50% 80%, rgba(20, 20, 30, 0.8) 0%, transparent 60%);
  animation: bgPulse2 10s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.2) translate(-50px, 30px); }
}

@keyframes bgPulse2 {
  0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  100% { transform: scale(1.3) translate(50px, -20px); opacity: 0.8; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.app-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Banner */
.banner-section {
  width: 100%;
  height: 40vh;
  position: relative;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: saturate(1.2) brightness(0.8);
  animation: zoomBanner 20s ease-out infinite alternate;
}

@keyframes zoomBanner {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.banner-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(to top, var(--bg-dark) 10%, transparent);
}

/* Content Container */
.content-container {
  width: 100%;
  max-width: 800px;
  padding: 0 24px;
  margin-top: -120px;
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}

/* Profile */
.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  text-align: center;
}

.profile-img-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  padding: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(216, 180, 254, 0.15);
  margin-bottom: 24px;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: floatProfile 6s ease-in-out infinite;
}

.profile-img-ring::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
  z-index: -1;
  animation: spinLight 4s linear infinite;
}

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

@keyframes floatProfile {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0d0d0d;
}

.profile-name {
  font-size: 3rem;
  font-weight: 900;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
  background: linear-gradient(to right, #ffffff, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.15));
}

.profile-desc {
  color: #e2e8f0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.8;
  margin: 0;
  max-width: 500px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.highlight-mt {
  color: #ff7a00;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 122, 0, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
}

.highlight-mt:hover {
  text-shadow: 0 0 15px rgba(255, 122, 0, 0.9);
  color: #ff9100;
}

.orange-icon {
  color: #ff7a00;
  text-shadow: 0 0 8px rgba(255, 122, 0, 0.6);
  margin-right: 6px;
}

.partner-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #53FC18;
  background: rgba(83, 252, 24, 0.05);
  border: 1px solid rgba(83, 252, 24, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(83, 252, 24, 0.2), inset 0 0 5px rgba(83, 252, 24, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
  0% {
    box-shadow: 0 0 10px rgba(83, 252, 24, 0.15), inset 0 0 3px rgba(83, 252, 24, 0.05);
    border-color: rgba(83, 252, 24, 0.2);
  }
  100% {
    box-shadow: 0 0 20px rgba(83, 252, 24, 0.45), inset 0 0 8px rgba(83, 252, 24, 0.2);
    border-color: rgba(83, 252, 24, 0.5);
  }
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

@media (max-width: 700px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* Premium Glassmorphic Cards */
.link-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
}

.link-card:hover::before {
  left: 200%;
}

.link-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand-color);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--brand-color), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.link-card:active {
  transform: translateY(2px) scale(0.98);
}

.card-right-side {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.card-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.card-title {
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  letter-spacing: 0.2px;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0;
  opacity: 0.8;
}

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.02);
  transition: all 0.4s ease;
}

.link-card:hover .icon-box {
  transform: scale(1.15) rotate(5deg);
  color: var(--brand-color);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 25px var(--brand-color);
  border-color: var(--brand-color);
}

.icon-box i {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-left-side {
  color: rgba(255,255,255,0.3);
  display: flex;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.link-card:hover .card-left-side {
  color: var(--brand-color);
  transform: translateX(-8px) scale(1.2);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 1rem;
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.footer p {
  color: #a1a1aa;
  margin-bottom: 12px;
}

.developer-credit {
  display: inline-block;
  padding: 12px 24px;
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  color: #f8fafc;
  letter-spacing: 0.5px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  cursor: pointer;
  text-decoration: none;
}

.developer-credit:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: #ffffff;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* Responsive Styles for All Screens */
@media (max-width: 768px) {
  .banner-section { height: 35vh; }
  .content-container { margin-top: -100px; padding: 0 20px; }
  .profile-img-ring { width: 130px; height: 130px; margin-bottom: 20px; }
  .profile-name { font-size: 2.5rem; }
  .profile-desc { font-size: 1rem; line-height: 1.5; }
  
  .link-card { padding: 20px; }
  .icon-box { width: 56px; height: 56px; }
  .card-title { font-size: 1.15rem; }
  .card-subtitle { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .banner-section { height: 30vh; }
  .content-container { margin-top: -80px; padding: 0 16px; }
  .profile-img-ring { width: 110px; height: 110px; margin-bottom: 16px; }
  .profile-name { font-size: 2rem; margin-bottom: 8px; }
  .profile-desc { font-size: 0.95rem; }
  
  .link-card { padding: 16px; border-radius: 20px; }
  .card-right-side { gap: 16px; }
  .icon-box { width: 50px; height: 50px; border-radius: 16px; }
  .icon-box i { font-size: 20px !important; }
  .card-title { font-size: 1.05rem; }
  .card-subtitle { font-size: 0.85rem; }
  
  .footer { padding: 30px 16px; }
  .developer-credit { padding: 10px 20px; font-size: 0.8rem; }
}
