/* فونت و تنظیمات پایه */
body {
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #f5f0e8, #e0d6c8);
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
    align-items: center;
}

/* انیمیشن ورود کارت */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* کارت اصلی با افکت شیشه‌ای */
.main-card {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    max-width: 450px;
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    animation: fadeSlideUp 1s ease-out forwards;
}
.main-card:hover {
    transform: translateY(-5px);
}

/* هدر پروفایل */
.profile-header {
    text-align: center;
    animation: fadeSlideUp 1s ease-out 0.2s forwards;
    opacity: 0;
}
.profile-picture {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.6);
}
.username {
    margin: 10px 0 5px;
    font-size: 1.8rem;
    color: #333;
}
.bio {
    color: #555;
}

/* آیکون‌های شبکه اجتماعی */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    animation: fadeSlideUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* رنگ برندها */
.social-icons a[href*="instagram"] { color: #E1306C; }
.social-icons a[href*="telegram"] { color: #0088cc; }
.social-icons a[href*="github"] { color: #333; }
.social-icons a[href*="linkedin"] { color: #0077B5; }
.social-icons a[href^="mailto"] { color: #D44638; }

/* افکت هاور */
.social-icons a:hover {
    transform: scale(1.25);
    filter: brightness(1.3);
}

/* دکمه آکاردئون */
.accordion {
    background: rgba(139, 111, 71, 0.8);
    color: white;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    border: none;
    text-align: right;
    outline: none;
    font-size: 1.1rem;
    border-radius: 8px;
    margin-top: 10px;
    transition: background 0.3s ease;
    animation: fadeSlideUp 1s ease-out 0.6s forwards;
    opacity: 0;
}
.accordion:hover {
    background: rgba(107, 85, 54, 0.9);
}
.accordion.active {
    background: rgba(107, 85, 54, 0.9);
}

/* محتوای آکاردئون */
.panel {
    padding: 0 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    margin-top: 5px;
}
.panel p {
    padding: 10px 0;
    margin: 0;
    color: #333;
}

/* دکمه تماس */
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(139, 111, 71, 0.85);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 15px;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    animation: fadeSlideUp 1s ease-out 0.8s forwards;
    opacity: 0;
}
.link-button:hover {
    background: rgba(107, 85, 54, 0.9);
    transform: scale(1.05);
}

/* فوتر */
footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    animation: fadeSlideUp 1s ease-out 1s forwards;
    opacity: 0;
}

/* واکنش‌گرایی */
@media (max-width: 480px) {
    .main-card {
        padding: 15px;
    }
    .username {
        font-size: 1.5rem;
    }
    .social-icons {
        gap: 10px;
    }
}

.search-section {
  position: relative;
  width: 100%;
  height: 300px;
}

#search-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.search-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
}

.search-box input {
  padding: 12px;
  width: 300px;
  border-radius: 25px;
  border: none;
  outline: none;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.search-box button {
  padding: 12px 20px;
  border-radius: 25px;
  border: none;
  margin-left: 10px;
  background: #007bff;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

#site-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
}

/* Responsive Styles */

/* برای موبایل */
@media (max-width: 576px) {
  .content {
    padding: 10px;
  }
  .search-box input {
    width: 90%;
    font-size: 14px;
  }
  .search-box button {
    margin-top: 10px;
    width: 100%;
  }
}

/* برای تبلت */
@media (min-width: 577px) and (max-width: 1024px) {
  .search-box input {
    width: 70%;
    font-size: 15px;
  }
  .search-box button {
    font-size: 15px;
  }
}

/* برای دسکتاپ */
@media (min-width: 1025px) {
  .search-box input {
    width: 300px;
  }
}
