:root {
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --accent: #4F46E5;
    --accent-hover: #8f92ef;
}

body {
    background-color: var(--bg-primary);
}

.hero-with-image {
    background: url('https://mtpserver.ir/resources/images/mtpserver_opengraph.png') center/cover no-repeat;
    position: relative;
    min-height: 750px;
    display: flex;
    align-items: center;
}

.hero-with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-with-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.hero-with-image .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-btn {
    padding: 12px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid #4F46E5;
    white-space: nowrap;
    animation: typing 3s steps(30) 1s forwards, blink 0.8s step-end infinite;
    max-width: 0;
}

.footer-modern {
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.05);
    direction: rtl;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 300px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(-5px);
}


.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-contact li i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent);
}


.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f4f9;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.social-icon:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

.disable {
    display: none;
}

@keyframes typing {
    from { max-width: 0; }
    to { max-width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@media (max-width: 992px) {
    .profile-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 500px;
    }

    .hero-with-image {
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-with-image {
        min-height: 500px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btn {
        padding: 10px 28px;
        font-size: 1rem;
    }

    .typewriter {
        white-space: normal;
        border-right: none;
        animation: none;
        max-width: 100%;
        display: inline;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: right;
    }

    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-contact li {
        justify-content: right;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-with-image {
        min-height: 400px;
        padding: 40px 0;
    }

    .hero-btn {
        padding: 8px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .offcanvas-end {
        width: 85% !important;
        border-radius: 15px 0 0 15px !important;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-title::after {
        text-align: center;
        transform: translateX(50%);
    }

    .footer-modern {
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }
}