body {
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    font-family: 'IRANSans', Arial, sans-serif;
    background-color: #f9f9f9;
}

/* General styling for the header */
header {
    background-color: #006d77; /* A deep blue color */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    max-height: 200px; /* Slightly tighter line height */
}

header:hover {
    background-color: #38a3a5; /* Darker blue when hovered */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo container */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Circular logo */
    overflow: hidden; /* Ensures the image stays within the rounded container */
    padding: 0px; /* Space around the logo */
    background-color: ; /* White background behind the logo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0); /* Soft shadow */
    transition: all 0.3s ease;
    width: 80px; /* Adjust the size of the logo container */
    height: 80px; /* Make the container square to fit the logo proportionally */
}

/* Logo image */
.logo img {
    width: 100%; /* Ensures the logo takes up the full width of the container */
    height: 100%; /* Ensures the logo takes up the full height of the container */
    object-fit: cover; /* Maintains the aspect ratio without stretching the image */
    border-radius: 50%; /* Ensures the image stays rounded */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect on logo container */
.logo-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Darker shadow on hover */
    transform: scale(1.05); /* Slight zoom effect */
}

/* Hover effect on logo image */
.logo img:hover {
    transform: scale(1.1); /* Zooms in the logo slightly on hover */
}


/* Navigation links */
/* Navigation menu container */
nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2rem; /* Adds space between links */
}

/* List items in navigation */
nav ul li {
    position: relative;
}

/* Styling links */
nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
    display: inline-block;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Hover effect for links */
nav ul li a:hover {
    color: #fff;
    background-color: #007bff; /* Blue background on hover */
    transform: scale(1.1); /* Slight scale effect on hover */
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2); /* Shadow effect */
}

/* Active state for current page */
nav ul li a.active {
    color: #fff;
    background-color: #28a745; /* Green color for active page */
    box-shadow: 0 4px 10px rgba(0, 128, 0, 0.3);
}

/* Responsive styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1.5rem; /* Adjusts the space between links */
    }

    nav ul li a {
        font-size: 16px;
        padding: 12px 20px; /* More padding for mobile */
    }
}


/* Hover effect for navigation items */
ul li a:hover {
    color: #ffcc00; /* Yellow color for hover */
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    ul {
        flex-direction: column; /* Stack items vertically on smaller screens */
        align-items: center;
    }

    ul li a {
        padding: 1rem 0;
        font-size: 1.2rem;
    }

    .logo-container {
        margin-bottom: 1rem; /* Add space below the logo for smaller screens */
    }
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
}


/* Centered Text Styling */
.center-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem; /* Reduced padding */
    margin: 1.5rem auto; /* Smaller margin */
    border-radius: 10px; /* Slightly smaller border radius */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    max-width: 200px; /* Smaller max width */
    width: 30%; /* Responsive width for smaller screens */
}

/* Style for the H1 inside */
.center-text h1 {
    font-size: 2rem; /* Smaller font size */
    font-weight: bold;
    color: #fff; /* Deep Blue */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0;
    line-height: 1.4; /* Slightly tighter line height */
    animation: fadeInText 1s ease-in-out;

}

/* Animation for H1 */
@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(-15px); /* Slightly reduced motion */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
