﻿@font-face {
    font-family: "Vazirmatn";
    src: url("../lib/Fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh; /* تغییر از min-height به height */
    background: linear-gradient(135deg, #0a2b5e 0%, #1e4a8a 50%, #2c6e9e 100%);
    position: relative;
    overflow: hidden; /* تغییر از overflow-x: hidden به overflow: hidden */
    margin: 0;
}

    /* الگوهای پس‌زمینه */
    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 8px), repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 12px);
        pointer-events: none;
    }

    /* ذرات متحرک (دایره‌های محو) */
    body::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 40%, rgba(255,255,255,0.08) 0%, transparent 50%);
        pointer-events: none;
        animation: pulseGlow 8s ease-in-out infinite;
    }

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* ذرات شناور */
.particle {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 2;
    height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem; 
}

.welcome-card {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 48px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: slideUp 0.8s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .welcome-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* لوگو و هدر */
.logo-header {
    margin-bottom: 2rem;
}

.university-logo {
    width: 150px;
    height: 150px;
    /*background: linear-gradient(135deg, #0a2b5e, #1e4a8a);*/
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    /*box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);*/
}
    .university-logo img {
        width: 110px;
        animation: logoFloat 3s ease-in-out infinite;
    }
    @keyframes logoFloat {
        0%, 100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-8px);
        }
    }

.university-logo i {
    font-size: 48px;
    color: white;
}

.university-name {
    font-size: 1.2rem;
    color: #1e4a8a;
    font-weight: 500;
    letter-spacing: 1px;
}

/* متن تایپی */
.typing-container {
    margin: 2rem 0;
    min-height: 180px;
}

.greeting-text {
    font-size: 2rem;
    font-weight: 700;
    color: #0a2b5e;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.subtitle-text {
    font-size: 1.1rem;
    color: #4a627a;
    line-height: 1.8;
}

.typed-cursor {
    font-size: 2rem;
    color: #2c6e9e;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* دکمه‌ها */
.buttons-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0 1rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #0a2b5e, #1e4a8a);
    color: white;
    box-shadow: 0 4px 15px rgba(10, 43, 94, 0.3);
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255,255,255,0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-primary:hover::before {
        width: 300px;
        height: 300px;
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(10, 43, 94, 0.4);
    }

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #0a2b5e;
    border: 2px solid #0a2b5e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

    .btn-secondary:hover {
        background: #0a2b5e;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(10, 43, 94, 0.3);
    }

.btn:active {
    transform: translateY(0);
}

/* آمار و اطلاعات */
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a2b5e;
    direction: ltr;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c86a3;
    margin-top: 5px;
}

/* فوتر */
.footer-note {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #6c86a3;
}

/* responsive */
@media (max-width: 640px) {
    .welcome-card {
        padding: 2rem 1.5rem;
    }

    .greeting-text {
        font-size: 1.5rem;
    }

    .subtitle-text {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }

    .buttons-container {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }
}

/* انیمیشن برای متن تایپی */
.line {
    display: block;
}
