body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: linear-gradient(135deg, #181c26 0%, #212c40 100%);
    padding: 0;
    box-sizing: border-box;
    margin: 0;
    color: #f5f6fa;
}

.header {
    background: linear-gradient(90deg, #ed1c24 0%, #c81d25 100%);
    color: #fff;
    text-align: center;
    padding: 48px 0 28px 0;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 40px;
    box-shadow: 0 8px 32px #ed1c2426;
}

.nav {
    display: flex;
    justify-content: center;
    background: rgb(32 38 54);
    box-shadow: 0 4px 18px #17182290;
    border-radius: 30px;
    margin: -33px auto 24px auto;
    max-width: 900px;
    z-index: 2;
    position: sticky;
}

.nav-item {
    position: relative;
    overflow: hidden;
    padding: 18px 28px;
    color: #e5e5e5;
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
    border-radius: 28px;
    margin: 3px;
    background-color: transparent;
    transition: color 1s;
}

.nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #ed1c24 0%, #c81d25 100%);
    opacity: 0;
    transition: opacity 1s;
    z-index: -1;
    border-radius: 28px;
}

.nav-item:hover::before {
    opacity: 1;
    transition-delay: 0s;
}

.nav-item:hover {
    color: #fff;
}

.active {
    background: linear-gradient(90deg, #ed1c24 0%, #c81d25 100%);
}

.service-list {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px;
}

.service-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 18px #ddd;
    text-align: center;
    align-items: center;
    margin-bottom: 26px;
    transition: 0.6s;
}

.service-card:hover{
    transform: scale(1.1);
    transition: 0.6s;
}


.service-card h2,
p {
    color: #212c40;
    text-shadow: 5px 5px 8px #212c4099;

}

.service-img {
    width: 11%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #eee;
    display: flex;
    margin-top: -10%;
}


footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    margin-top: 48px;
}