@font-face {
    font-family: 'Vazir';
    src: url(../fonts/Vazir.woff2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir';
}

body {
    background-color: #f9fcff;
    color: #333;
}

.container {
    width: 85%;
    margin: auto;
}

/* Header */
header {
    background: #129990;
    padding: 15px 0;
    color: white;
}

.nav {
    font-size: large;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#smart-ai {
    font-size: medium;
}
.menu {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 0 50px 0 0;
}

.menu li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
    transition: opacity 0.3s ease;
}

/* آیکن */
.menu li a i {
    font-size: 18px;
    margin-bottom: 4px;
}

/* متن */
.menu li a span {
    font-size: 13px;
}

/* زیرخط انیمیشنی */
.menu li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0%;
    height: 2px;
    background: white;
    transform: translateX(50%);
    transition: width 0.3s ease;
}

/* هاور */
.menu li a:hover {
    opacity: 0.75;
}

.menu li a:hover::after {
    width: 70%;
}


.logo {
    display: flex;
    align-items: center;
}

.logo img {
    margin: 0 0 0 15px;
    width: 110px;       /* اندازه لوگو */
    height: auto;
    transition: transform 0.4s ease-in-out;
}

.logo:hover img {
    transform: translateY(-8px);
}

.auth-section {
    display: flex;
    align-items: center;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid white;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    transition: all 0.35s ease;
}

.auth-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.auth-btn:hover {
    background-color: white;
    color: #129990;
    transform: translateY(-3px);
}

.auth-btn:hover i {
    transform: translateX(-4px);
}

/* Hero */
.hero {
    background: #b0f8f1;
    text-align: center;
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    margin-right: 120px;
    flex: 1;
    text-align: right;
}

.hero-text h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    text-align: left;
}

.hero-image img {
    margin-left: 70px;
    max-width: 70%;
    height: auto;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    margin: 5px;
    display: inline-block;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
    transition: all 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.primary {
    margin-right: 50px;
    background: #12796f;
    color: white;
}

.primary:hover {
    background-color: #1fbeae;
}

.secondary {
    background: #73b8b1;
    color: white;
}

.secondary:hover {
    background-color: #1fbeae;
}

/* Features */
.features {
    padding: 60px 0;
    text-align: center;
}

/* ----- Responsive styles for Mobile ----- */

@media (max-width: 768px) { /* برای تبلت و موبایل */

    /* Header Responsive */
    .nav {
        flex-wrap: wrap; /* اجازه برای wrap شدن در صورت نیاز */
        justify-content: center; /* وسط چین کردن محتویات */
        padding: 10px 0;
    }

    .logo {
        margin-bottom: 10px;
        width: 100%; /* لوگو کل عرض را بگیرد */
        justify-content: center; /* وسط چین کردن لوگو */
    }

    .logo img {
        margin: 0 auto; /* حذف margin چپ و راست */
        width: 100px; /* کمی کوچکتر کردن لوگو */
    }

    .menu {
        padding: 0; /* حذف padding */
        justify-content: center; /* وسط چین کردن آیتم‌های منو */
        flex-wrap: wrap; /* اجازه wrap شدن برای آیتم‌های منو */
        gap: 15px; /* کاهش فاصله بین آیتم‌ها */
        width: 100%; /* کل عرض را بگیرد */
    }

    .menu li {
        flex-basis: 45%; /* هر آیتم حدودا نصف عرض را بگیرد */
        text-align: center;
    }

    .menu li a {
        padding: 8px 0; /* تنظیم padding */
    }

    /* هاور و زیرخط انیمیشنی در موبایل غیرفعال یا کم‌اهمیت می‌شود */
    .menu li a:hover::after {
        width: 0; /* غیرفعال کردن زیرخط در هاور */
    }
    .menu li a::after {
        width: 0; /* اطمینان از عدم نمایش */
    }

    .auth-section {
        width: 100%; /* کل عرض را بگیرد */
        justify-content: center; /* وسط چین کردن دکمه‌های احراز هویت */
        margin-top: 15px; /* اضافه کردن فاصله */
    }

    .auth-btn {
        width: 80%; /* دکمه کل عرض را بگیرد */
        justify-content: center; /* وسط چین کردن محتویات دکمه */
    }

    /* Hero Responsive */
    .hero {
        padding: 50px 0; /* کاهش padding */
    }

    .hero-content {
        flex-direction: column; /* چینش ستونی */
        gap: 25px; /* فاصله بین متن و تصویر */
    }

    .hero-text {
        margin-right: 0; /* حذف margin راست */
        order: 2; /* نمایش متن بعد از تصویر */
        text-align: center; /* وسط چین کردن متن */
        max-width: 90%; /* محدود کردن عرض متن */
    }

    .hero-text h1 {
        font-size: 28px; /* کاهش فونت عنوان */
    }

    .hero-text p {
        font-size: 15px; /* تنظیم فونت پاراگراف */
        line-height: 1.6;
    }

    .hero-buttons {
        justify-content: center; /* وسط چین کردن دکمه‌ها */
        flex-wrap: wrap; /* اجازه wrap شدن */
    }

    .btn {
        margin: 5px 2px; /* تنظیم margin */
    }

    .primary {
        margin-right: 0; /* حذف margin */
    }

    .hero-image {
        order: 1; /* نمایش تصویر در ابتدا */
        text-align: center; /* وسط چین کردن تصویر */
        max-width: 80%; /* تنظیم عرض تصویر */
        margin: 0 auto; /* وسط چین کردن */
    }

    .hero-image img {
        margin-left: 0; /* حذف margin چپ */
        max-width: 100%; /* استفاده از تمام عرض */
    }

    /* Features Responsive */
    .features {
        padding: 40px 0; /* کاهش padding */
    }
    .container {
        width: 90%; /* تنظیم عرض container */
    }
}

/* Media Query for very small screens (e.g., < 360px) */
@media (max-width: 360px) {
    .nav {
        padding: 5px 0;
    }
    .logo img {
        width: 90px;
    }
    .menu li {
        flex-basis: 100%; /* هر آیتم کل عرض را بگیرد */
        margin-bottom: 10px;
    }
    .auth-btn {
        width: 90%;
    }

    .hero {
        padding: 40px 0;
    }
    .hero-text h1 {
        font-size: 24px;
    }
    .hero-text p {
        font-size: 14px;
    }
    .hero-image img {
        max-width: 95%;
    }
    .btn {
        padding: 8px 15px;
        font-size: 14px;
        margin: 3px;
    }
    .primary {
        margin-right: 0;
    }
}

.feature-boxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

.box {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    flex: 1 1 220px;
    max-width: 250px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.box:nth-child(1) { animation-delay: 0.1s; }
.box:nth-child(2) { animation-delay: 0.3s; }
.box:nth-child(3) { animation-delay: 0.5s; }
.box:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.box i {
    font-size: 28px;
    color: #129990;
    margin-bottom: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.box:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #18c2b7;
}

.box h3 {
    margin: 12px 0 8px;
    font-size: 16px;
    font-weight: bold;
}

.box p {
    padding: 10px 0 0 0;
}

/* Steps */
.steps {
    background: #f1f9ff;
    padding: 60px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* وسط چین کارت ها نسبت به متن */
    justify-content: flex-start;
}

.step-items {
    display: flex;
    flex-direction: column; /* زیر هم */
    gap: 40px; /* فاصله عمودی بیشتر */
    width: 100%; /* مطمئن می شویم کل عرض قابل استفاده است */
    max-width: 350px; /* حداکثر عرض کارت ها */
}

.step {
    background: white;
    padding: 25px 30px;
    margin: 10px 25% 0 0;
    border-radius: 12px;
    width: 50%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.step i {
    font-size: 28px;
    color: #129990;
    margin-bottom: 12px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step p {
    font-size: 15px;
    font-weight: bold;
    margin-top: 5px;
    color: #333;
}

.step:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

.step:hover i {
    transform: scale(1.3) rotate(5deg);
    color: #18c2b7;
}

.sample-nurses {
    padding: 70px 0;
    text-align: center;
}

.nurse-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.nurse-card {
    background: white;
    padding: 25px 20px;
    border-radius: 15px;
    flex: 1;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.nurse-card:hover {
    transform: translateY(-8px);
}

.profile-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
}

.profile-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ستاره ها زیر عکس */
.stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
    color: #ffc107;
    font-size: 14px;
}


.experience {
    color: #666;
    margin: 8px 0 15px;
    font-size: 14px;
}

.view-profile {
    display: inline-block;
    padding: 8px 15px;
    background: #129990;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.view-profile:hover {
    background: #0f7f77;
}


/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 50px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer h3 {
    margin-bottom: 15px;
}

.footer p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer i {
    margin-left: 8px;
}

.profile-menu {
    position: relative;
    cursor: pointer;
}

.profile-avatar {
width: 45px;
height: 45px;
border-radius: 50%;
object-fit: cover;
border: 2px solid #129990;
}

.dropdown-menu {
position: absolute;
top: 60px;
left: 0;
background: white;
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
border-radius: 10px;
display: none;
flex-direction: column;
min-width: 180px;
overflow: hidden;
z-index: 1000;
}

.dropdown-menu a,
.dropdown-menu button {
padding: 12px;
text-align: right;
background: none;
border: none;
cursor: pointer;
text-decoration: none;
color: #333;
font-size: 14px;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
background: #f5f5f5;
}

.dropdown-menu.show {
display: flex;
}

.login-btn {
background: #129990;
color: white;
border: none;
padding: 8px 18px;
border-radius: 8px;
cursor: pointer;
}


/* ----- Responsive styles for Mobile ----- */

@media (max-width: 768px) { /* برای تبلت و موبایل */

    /* Feature Boxes Responsive */
    .feature-boxes {
        flex-direction: column; /* چینش ستونی */
        align-items: center; /* وسط چین کردن */
        gap: 15px; /* کاهش فاصله */
    }

    .box {
        max-width: 90%; /* استفاده از عرض بیشتر */
        flex-basis: auto; /* حذف flex-basis */
        margin-bottom: 15px; /* فاصله پایین */
    }

    /* غیرفعال کردن انیمیشن fadeUp در موبایل یا کاهش تاثیر آن */
    .box {
        animation: none; /* حذف انیمیشن */
        opacity: 1; /* نمایش دائمی */
        transform: translateY(0); /* بازگرداندن موقعیت */
    }
    .box:nth-child(1),
    .box:nth-child(2),
    .box:nth-child(3),
    .box:nth-child(4) {
        animation-delay: 0s; /* حذف تاخیر */
    }

    /* Hover effects for boxes */
    .box:hover {
        transform: translateY(-5px); /* حفظ hover */
    }

    .box i {
        font-size: 24px; /* کاهش سایز آیکون */
    }

    /* Steps Responsive */
    .steps {
        padding: 40px 0; /* کاهش padding */
    }

    .step-items {
        max-width: 85%; /* افزایش عرض */
    }

    .step {
        width: 85%; /* استفاده از کل عرض */
        margin: 10px auto; /* وسط چین کردن */
        padding: 20px 15px; /* تنظیم padding */
    }

    .step i {
        font-size: 24px;
    }

    .step p {
        font-size: 14px;
    }

    /* Hover effects for steps */
    .step:hover {
        transform: translateY(-5px) scale(1.01); /* تنظیم scale */
    }

    /* Sample Nurses Responsive */
    .sample-nurses {
        padding: 50px 0; /* کاهش padding */
    }

    .nurse-cards {
        flex-direction: column; /* چینش ستونی */
        align-items: center; /* وسط چین کردن */
        gap: 20px;
    }

    .nurse-card {
        max-width: 85%; /* استفاده از عرض بیشتر */
        width: 100%; /* استفاده از تمام عرض */
    }

    .profile-wrapper {
        width: 100px;
        height: 100px;
    }

    .stars {
        font-size: 13px;
    }

    .experience {
        font-size: 13px;
    }

    .view-profile {
        padding: 7px 12px;
        font-size: 13px;
    }

    /* Footer Responsive */
    .footer {
        padding: 40px 0; /* کاهش padding */
    }

    .footer-content {
        flex-direction: column; /* چینش ستونی */
        text-align: center; /* وسط چین کردن */
        gap: 25px;
    }

    .footer h3 {
        margin-bottom: 10px;
    }

    .footer p {
        font-size: 13px;
    }

    /* Dropdown menu adjustments for mobile */
    .profile-menu {
        margin: 0 auto; /* وسط چین کردن */
    }

    .dropdown-menu {
        top: 55px; /* تنظیم موقعیت */
        left: 50%;
        transform: translateX(-50%); /* وسط چین کردن */
        min-width: 160px;
    }

    .dropdown-menu a,
    .dropdown-menu button {
        font-size: 13px;
    }
}

/* Media Query for very small screens (e.g., < 360px) */
@media (max-width: 360px) {
    .box {
        max-width: 95%;
    }
    .step {
        width: 90%;
    }
    .nurse-card {
        max-width: 95%;
    }
    .footer-content {
        gap: 20px;
    }
    .dropdown-menu {
        min-width: 140px;
        width: 80%; /* برای اطمینان از اینکه خیلی بزرگ نیست */
        left: 10%; /* تنظیم موقعیت */
        transform: none; /* حذف ترانسفورم وسط چین */
    }
    .dropdown-menu a,
    .dropdown-menu button {
        padding: 10px;
    }
}

/* رسپانسیو شده */
