body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
    background: linear-gradient(135deg, #4e342e 0%, #4e342e 1%, #6d4c41 1%, #6d4c41 2%); /* Very fine pattern */
    background-size: 10px 10px;
    color: #f5f5dc; /* Off-white for text */
}

.navbar {
    background-color: transparent !important; /* Start transparent */
    box-shadow: none !important; /* No shadow initially */
    transition: background-color 0.5s ease, box-shadow 0.5s ease; /* Smooth transition */
}

.navbar.scrolled {
    background-color: #3e2723 !important; /* Dark chocolate for navbar */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important; /* Deeper shadow */
}

.navbar-brand,
.nav-link {
    color: #f5f5dc !important; /* Off-white for text */
}

.nav-link.active {
    color: #a1887f !important; /* Lighter chocolate for active link */
}

.navbar-toggler-icon {
    filter: invert(1); /* Make toggler icon visible on dark background */
}

#home {
    background: linear-gradient(rgba(78, 52, 46, 0.7), rgba(109, 76, 65, 0.7)), url('assets/img/hero-bg.jpg') center center; /* Chocolate gradient overlay */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none; /* Remove dark overlay as it's now in the main background */
}

#home .container {
    z-index: 1;
}

#home h1 {
    font-family: 'Vazirmatn', cursive; /* Artistic font for main heading */
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

#home p {
    font-size: 1.5rem;
}

.btn-primary {
    background-color: #6d4c41; /* Darker chocolate */
    border-color: #6d4c41;
    padding: 12px 35px;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Soft shadow */
}

.btn-primary:hover {
    background-color: #4e342e;
    border-color: #4e342e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

.btn-outline-custom {
    padding: 12px 35px;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid #f5f5dc; /* Bolder border in off-white */
    color: #f5f5dc; /* Off-white text */
    background-color: transparent;
    vertical-align: middle;
}

.btn-outline-custom:hover {
    background-color: #f5f5dc;
    border-color: #f5f5dc;
    color: #2d1e1a; /* Dark text on hover for contrast */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

section {
    padding: 80px 0;
}

section h2 {
    font-family: 'Nian', sans-serif; /* Artistic font for section headings */
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #a1887f; /* Lighter chocolate for underline */
    border-radius: 2px;
}

#about img {
    border: 5px solid #a1887f; /* Lighter chocolate border */
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}

#about .btn-primary {
    background-color: #2d1e1a;
    border-color: #2d1e1a;
}

#about .btn-primary:hover {
    background-color: #4e342e; /* A slightly lighter dark chocolate for hover */
    border-color: #4e342e;
}

#specializations {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/bgl.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
}

#specializations .card {
    background-color: rgba(255, 255, 255, 0.1); /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5dc; /* Off-white text */
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Soft shadow */
    height: 185px; /* ارتفاع ثابت برای همه کارت‌ها */
    display: flex;
    align-items: center;
    justify-content: center;
}

#specializations .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3) !important;
}

#specializations .card i {
    color: white; /* White icons to stand out */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

#specializations .card-body i:hover {
    transform: scale(1.1); /* Slightly enlarge icon on hover */
}

#specializations .card-title, #specializations .card-text {
    color: white;
}

#specializations .card-body h5.card-title {
    font-family: 'Nian', sans-serif; /* Artistic font for card titles */
}

#specializations .card-body {
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer {
    background-color: #2d1e1a !important; /* Very dark chocolate, near black */
    color: #f5f5dc !important;
    padding: 40px 0 20px 0;
    border-top: 3px solid #a1887f;
    font-size: 0.9rem;
}

footer a {
    color: #f5f5dc !important; /* Off-white for links in footer */
    text-decoration: none; /* Remove underline */
}

footer a:hover {
    color: #a1887f !important; /* Lighter chocolate on hover */
}

.social-icons a {
    color: #f5f5dc;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #a1887f;
}

/* Navbar collapse styles */
.navbar-collapse {
    transition: all 0.3s ease;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler.collapsed .fa-bars:before {
    content: "\f0c9"; /* Hamburger icon */
}

.navbar-toggler:not(.collapsed) .fa-bars:before {
    content: "\f00d"; /* X icon */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #home h1 {
        font-size: 2rem;
    }
    #home p {
        font-size: 1.2rem;
    }
    section h2 {
        font-size: 2rem;
    }
    section {
        padding: 50px 0;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        margin: 0 15px;
        background-color: #3e2723;
        border-radius: 0 0 10px 10px;
        padding: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .navbar-nav {
        padding: 10px 0;
    }

    .nav-item {
        text-align: center;
        margin: 5px 0;
    }
}

#services-intro {
    padding: 80px 0;
    background-color: #6D4C41; /* Old Lace - a creamy color */
    color: #f3f3f3; /* Dark chocolate text */
}

#services-intro h2 {
    color: #f3f3f3;
}

#services-intro h2::after {
    background-color: #57443d; /* Lighter chocolate for underline */
}

#services-intro .lead {
    font-size: 1.1rem;
    line-height: 1.8;
}


