body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn';
    background: var(--color-2);
    min-height: 100vh;
    color: #000;
    line-height: 1.6;

}

/*Navbar Start*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-5);
    display: flex;
    direction: rtl;
    text-align: right;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    max-height: 100px;
}

.navbar-nav .nav-item .nav-link {
    color: var(--color-2);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.navbar-toggle {
    background: none;
}

.navbar-nav .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(2, 3, 3, 0.3);
    color: #0d0d0d;
}

.dropdown-menu {
    color: #000;
    background: var(--color-5);
    backdrop-filter: blur(20px);
    max-width: 250px;
    text-align: start;
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(2, 3, 3, 0.3);
    color: #0d0d0d;
}

.dropdown-menu .dropdown-item {
    color: var(--color-2);
    transition: all 0.4s ease;
}

.offcanvas {
    background: transparent;
    backdrop-filter: blur(20px);
    max-width: 80%;
}

/*Navbar End*/

/* Hero Section */

.hero {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20vh;
}

.hero-content {
    flex: 1;
    max-width: 50%;
    padding: 10vh;
}

.hero-img {
    flex: 1;
    max-width: 50%;
}

.hero-img img {
    max-width: 100%;
    height: auto;
    padding-bottom: 50px;
}

.hero-content h1 {
    color: var(--color-2);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    color: var(--color-2);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.hero-content .btn {
    background: var(--color-4);
    color: var(--color-2);
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    margin-left: 0.5rem;
    transition: 0.3s;
}

.hero-content .btn:hover {
    background: var(--color-3);
    color: var(--text);
}

/*background wave*/

.custom-shape-divider-bottom-1760952885 {
    position: absolute;
    direction: ltr;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1760952885 svg {
    position: relative;
    display: block;
    width: calc(180% + 1.3px);
    height: 153px;
    transform: rotateY(180deg);
}

.custom-shape-divider-bottom-1760952885 .shape-fill {
    fill: #FFFFFF;
}

/* For tablet devices */
@media (min-width: 768px) and (max-width: 1023px) {
    .custom-shape-divider-bottom-1760952885 svg {
        width: calc(133% + 1.3px);
        height: 183px;
    }
}

/* For mobile devices */
@media (max-width: 767px) {
    .custom-shape-divider-bottom-1760952885 svg {
        width: calc(190% + 1.3px);
        height: 180px;
    }
}

/* Cards Section */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    text-align: center;
}

.card-item {
    padding: 2rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-item:hover {
    transform: translateY(-8px);
}

.card-item i {
    font-size: 50px;
    margin-bottom: 1rem;
    color: var(--color-4);
}

.card-item h3 {
    color: var(--color-4);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.card-item p {
    color: var(--text);
    font-size: 0.9rem;
}

/* App Download Section */
.app-download {
    text-align: center;
    padding: 3rem 1rem;
}

.app-download h3 {
    color: var(--color-4);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.app-download .btn {
    background: var(--text);
    color: var(--color-2);
    border-radius: 30px;
    padding: 0.6rem 1.3rem;
    margin: 0.3rem;
    transition: 0.3s;
}

.app-download .btn:hover {
    background: var(--color-6);
    color: var(--text);
}

/* Footer */
.footer {
    background: var(--color-5);
    color: white;
    padding: 2.5rem 8%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer .footer-section {
    flex: 1 1 220px;
}

.footer h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-3);
    display: inline-block;
    padding-bottom: 5px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin: 8px 0;
}

.footer ul li a {
    color: var(--color-2);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 18px;
}

.footer ul li a:hover {
    color: var(--text);
}

.footer .icon a {
    color: white;
    text-decoration: none;
}

.icon {
    display: flex;
    transition: all 0.3s ease;
}

.icon i {
    padding: 5px;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon h3 {
    opacity: 0;
    transform: translateY(10px);
    color: #fff;
    font-size: 16px;
    transition: all 0.4s ease;
}

.icon:hover h3 {
    opacity: 1;
    transform: translateY(0);
}

.icon:hover i {
    transform: scale(1.2);
    color: var(--text);
}

.footer-bottom {
    flex: 0 0 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.85rem;
}


/* Popup Modal */
.popup-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 5000;
    justify-content: center;
    align-items: center;
}

/* Popup content */
.popup-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 400px;
    animation: popupFadeIn 0.4s ease;
}

/* Title */
.popup-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--color-2);
}

/* Paragraph */
.popup-content p {
    color: var(--color-2);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.popup-content .btn {
    background: #f3f3f3;
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1.2rem;
    margin: 0.3rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.popup-content .btn:hover {
    background: #e2e2e2;
}

/* Primary button */
.popup-content .btn-primary {
    background: #5a8897;
    color: #fff;
}

.popup-content .btn-primary:hover {
    background: #4d7683;
}

/* Icons */
.popup-content i {
    margin-right: 6px;
}

/* Fade animation */
@keyframes popupFadeIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1200px) {

    .hero {
        max-width: 100%;
        min-height: 100vh;
        padding: 10vh;
    }

    .hero-content {
        flex: 1;
        max-width: 50%;
    }

    .hero-img {
        flex: 1;
        max-width: 50%;
        position: relative;
        height: 300px;
    }

    .hero-img img {
        max-width: 100%;
        padding-top: 10vh;
    }

    .hero-content button {
        margin: 5px;
    }
}

@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        max-width: 100%;
        padding: 17vh 10vh;
    }

    .hero-content {
        flex: 1;
        max-width: 100%;
        padding: 0vh;
    }

    .hero-content button {
        margin: 5px;
    }

    .hero-img img {
        display: none;
    }

    .navbar {
        max-height: none;
    }

    .card-item {
        border: 1px double var(--color-5);
        border-radius: 15px;
    }
}
