/* ============================ */
/*       استایل عمومی سایت       */
/* ============================ */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.text-gradient {
    background: linear-gradient(45deg, #007bff, #ff5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
}

/* ============================ */
/*          Navbar              */
/* ============================ */
#mainNavbar {
    background-color: rgba(255, 255, 255, 0.1); /* شفاف از ابتدا */
    transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s, transform 0.3s;
    z-index: 999;
    backdrop-filter: blur(0);
    border-bottom: none;
}

#mainNavbar.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.navbar-brand img {
    height: 40px;
}

/* لینک‌ها */
.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: linear-gradient(90deg, #007bff, #ff5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-2px);
}

/* دکمه ورود / ثبت‌نام */
.nav-btn {
    font-weight: 600;
    color: #fff;
    background: linear-gradient(45deg, #007bff, #ff5722);
    border: none;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    transform: scale(1.05);
}

/* ============================ */
/*       زیرمنو با انیمیشن      */
/* ============================ */
.dropdown-menu {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.35s ease;
    pointer-events: none;
    border-radius: 10px;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ============================ */
/*       سایر استایل‌ها         */
/* ============================ */
footer {
    font-size: 0.9rem;
}

.card h5 {
    font-weight: 600;
}

.carousel-item {
    height: 60vh; /* ارتفاع بنر */
    object-fit: cover;
}

.carousel-caption h1 {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
}

/* Hero Section */
.hero-parallax {
  position: relative;
  height: 400px;
  background: url('../img/about-us-hero-banner.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card Hover Effect */
.hover-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
