body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0f3b3f;
}

#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0f3b3f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 1s ease-in-out; /* 🔥 هذا هو الجديد */
}


#splash-logo {
  width: 220px; /* أكبر من 120px */
  animation: fadeIn 1.5s ease-in-out;
}


@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

#lang-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background-color: #ffffff22;
  color: white;
  border: 1px solid #ffffff55;
  border-radius: 8px;
  cursor: pointer;
  z-index: 10;
  font-family: 'Segoe UI', sans-serif;
  transition: background-color 0.3s ease;
}

#lang-toggle:hover {
  background-color: #ffffff44;
}


#main {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f3b3f;
}

#branding {
  position: absolute;
  top: 30px;
  width: 100%;
  display: flex;
  align-items: center;
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  color: white;
  z-index: 3;
  opacity: 0;
  animation: fadeInText 1.5s ease-in-out forwards;
  padding-left: 40px; /* فقط لسطح المكتب */
}

.brand-main {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 16px;
  font-weight: 300;
  color: #ccc;
  margin-left: 10px;
}

/* ✅ على الموبايل: نوسّط كل شيء */
@media (max-width: 768px) {
  #branding {
    justify-content: center;
    padding-left: 0;
    text-align: center;
  }
}



@keyframes fadeInText {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}


#tree {
  width: 50vw;
  height: auto;
  z-index: 1;
}

@media (max-width: 768px) {
  #tree {
    width: 95vw;
  }
}

@media (max-width: 480px) {
  #tree {
    width: 100vw;
  }
}



#spotlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  mask-image: radial-gradient(circle at center, transparent 40px, black 80px);
  -webkit-mask-image: radial-gradient(circle at center, transparent 40px, black 80px);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  display: none;
}


#spotlight-message {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 18px;
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 3;
  pointer-events: none;
}

.clickable-branch {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent; /* اختياري: rgba(255, 0, 0, 0.3) للتجربة */
  top: 35%; /* كنسبة من صورة الشجرة */
  left: 35%;
  cursor: pointer;
  z-index: 3;
}


#tree-container {
  position: relative; /* ✅ مهم جداً */
  display: flex;
  justify-content: center;
  align-items: center;
}