
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;300;400;500;700;900&display=swap');

body {
    font-family: 'Vazirmatn', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 1rem;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    display: flex;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-logo {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 24px;
    color: #1e3a8a;
    animation: pulse 2s infinite, rotate 3s linear infinite;
    margin-bottom: 20px;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {

    height: 100%;
    background: white;
    width: 0%;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dynamic Background with Particles */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#particles-js {
    width: 100%;
    height: 100%;
    background-position: 50% 50%;
}

/* Header Animation */
.header-scroll {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.header-scroll.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Logo Animation */
.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    transform: rotate(10deg) scale(1.1);

}

/* Neon Text Animation */
.neon-text {
    text-shadow: 0 0 5px #3b82f6, 0 0 10px #3b82f6, 0 0 15px #3b82f6;
    animation: neonGlow 1.5s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    from {
        text-shadow: 0 0 5px #3b82f6, 0 0 10px #3b82f6, 0 0 15px #3b82f6;
    }
    to {
        text-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6, 0 0 30px #3b82f6;
    }
}

/* Button Animations */
.btn-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


.btn-hover:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.btn-hover:hover:after {
    transform: translateX(0);
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Typing Animation */
.typing {
    overflow: hidden;
    white-space: nowrap;

    border-right: 3px solid #3b82f6;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #3b82f6 }
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Card Animations */
.card-hover {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.card-hover:hover {
    transform: translateY(-10px) rotateX(5deg);

    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

/* Gallery Hover Effect */
.gallery-item {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: perspective(1000px) rotateY(0deg);
}

.gallery-item:hover {
    transform: perspective(1000px) rotateY(10deg);
    z-index: 10;
}

/* Testimonial Animation */
.testimonial-card {
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.testimonial-card:hover {
    transform: rotateY(10deg) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Footer Animation */
.footer-link {
    position: relative;
}

.footer-link:after {
    content: '';

    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.footer-link:hover:after {
    width: 100%;
}

/* Back to Top Button */
.back-to-top {
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.back-to-top.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Mouse Move Background Effect */
.mouse-move-bg {
    position: relative;
    overflow: hidden;
}

.mouse-move-bg:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x) var(--y), rgba(83, 132, 250, 0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

/* Shake Animation */
.shake:hover {
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Bounce Animation */

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}
