/* انیمیشن‌های سفارشی */

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

/* --------------------------------------------- */

/* شروع نوار هدر */

.main-nav {
    position: fixed;
    width: 100%;
    background: rgba(30, 64, 175, 0.45);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.658);
    z-index: 1000;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background: linear-gradient(to right,
            #1e40af80 0%,
            #0f172a99 100%);
    transition: all 0.5s ease;
}

@supports not (backdrop-filter: blur(12px)) {
    .main-nav {
        background: linear-gradient(135deg, #1e40af 0%, #0f172a 100%);
        opacity: 0.95;
    }
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 3rem;
    width: 3rem;
    margin-left: 0.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo-highlight {
    color: #60a5fa;
}

.desktop-menu {
    display: none;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
        gap: 2rem;
    }
}

.nav-link {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #93c5fd;
    transform: translateY(-5px);
}

.nav-link::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #93c5fd;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-button {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.menu-icon {
    color: white;
    font-size: 1.5rem;
}

.mobile-menu {
    display: none;
    background-color: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-container {
    padding: 1rem 1.5rem;
}

.mobile-nav-link {
    display: block;
    color: white;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #93c5fd;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.mobile-menu.active .mobile-nav-link {
    animation: slideDown 0.3s ease forwards;
}

.mobile-menu.active .mobile-nav-link:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-link:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-link:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-menu.active .mobile-nav-link:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-menu.active .mobile-nav-link:nth-child(5) {
    animation-delay: 0.5s;
}

.mobile-menu.active .mobile-nav-link:nth-child(6) {
    animation-delay: 0.6s;
}

:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --white: #ffffff;
}

.auth-btn {
    left: 20px;
    top: -9px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 31px;
    color: var(--white);
    font-family: 'Yekan', 'Segoe UI', Tahoma, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.auth-btn:hover {
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-btn i {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -30px;
    font-size: 1rem;
    left: 117px;
    top: 3px;
    border-right: 2px solid #ffffff;
    padding-right: 10px;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.auth-btn:hover::before {
    left: 100%;
}

/* اتمام نوار هدر */

/* --------------------------------------------- */

/* شروع هیروسکشن */

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #1e40af, #0f172a);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: #1e40af -4px 12px 17px;
}

@media (max-width: 480px) {
    .hero-section {
        height: 93vh;
    }
}

.backgrund-bulding {
    position: absolute;
    top: 400px;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1);
    transform-origin: center;
    will-change: transform, opacity;
    animation: slideUp 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    100% {
        opacity: 0.4;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .backgrund-bulding {
        top: 570px;
        opacity: 0.35;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .backgrund-bulding {
        top: 640px;
        opacity: 0.3;
        transform: scale(1);
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .backgrund-bulding {
        top: 620px;
        transform: scale(1);
    }
}

:root {
    --primary-blue: #2563eb;
    --dark-blue: #1e3a8a;
    --light-blue: #93c5fd;
    --neon-blue: #00f5ff;
}

.bg-pattern-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 10px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 10px);
    animation: bg-pan 20s linear infinite;
}

@keyframes bg-pan {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.hero-title {
    margin-bottom: 2rem;
    line-height: 1.2;
}

.title-gradient {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 5px 10px black;
}

/* .title-3d {
    display: inline-block;
    font-size: 5rem;
    font-weight: bold;
    filter: drop-shadow(0 0 3px #ffffff);
    color: white;
    background:
        url('/Main/img/gradient-background-02.jpg') center;
    background-size: cover;
    background-clip: text;
    color: transparent;
    animation: animate 10s linear infinite;
} */

.title-3d {
    display: inline-block;
    font-size: 5rem;
    font-weight: 800;
    color: white;
    text-shadow:
        0 1px 0 #ccc,
        0 2px 0 #b3b3b3,
        0 3px 0 #999,
        0 4px 0 #808080,
        0 5px 0 #666,
        0 6px 1px rgba(0, 0, 0, 0.1),
        0 0 5px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 3px 5px rgba(0, 0, 0, 0.2),
        0 5px 10px rgba(0, 0, 0, 0.25),
        0 10px 10px rgba(0, 0, 0, 0.2),
        0 20px 20px rgba(0, 0, 0, 0.15);
    transform: translateZ(50px);
}

@keyframes animate {
    to {
        background-position-x: -200px;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    position: relative;
}

.domains-scroll {
    padding-top: -20px;
    display: inline-block;
    margin-top: 1rem;
    position: relative;
    height: 29px;
    overflow: hidden;
}

.domain-item {
    padding-top: -10px;
    display: flex;
    color: var(--neon-blue);
    font-weight: 500;
    animation: scroll-domains 9s infinite;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

@keyframes scroll-domains {

    0%,
    33% {
        transform: translateY(0);
        opacity: 1;
    }

    33%,
    66% {
        transform: translateY(-100%);
        opacity: 1;
    }

    66%,
    100% {
        transform: translateY(-200%);
        opacity: 1;
    }
}

.cta-btn-3d {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    color: var(--primary-blue);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 0 0px var(--primary-blue),
        0 0 0 0px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateZ(50px);
    }

    50% {
        transform: translateY(-20px) translateZ(50px);
    }
}

.cta-btn-3d:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 0 3px var(--primary-blue),
        0 0 0 6px rgba(255, 255, 255, 0.2);
}

.cta-btn-3d i {
    font-size: 1.2em;
}

.btn-hover-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 20%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 80%);
    transform: rotate(30deg) translateZ(-20px);
    opacity: 0;
    transition: all 0.7s ease;
}

.cta-btn-3d:hover .btn-hover-effect {
    opacity: 1;
    transform: rotate(30deg) translateZ(0);
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@media (max-width: 768px) {
    .title-gradient {
        font-size: 2rem;
    }

    .title-3d {
        font-size: 3.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .cta-btn-3d {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}

/* اتمام هیروسکشن */

/* ----------------------END--------------------- */