@import url('https://fonts.googleapis.com/css2?family=Vazir:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    color: white;
    direction: rtl;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ذرات متحرک */
.particles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 10s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* منو */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 0;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
    transition: 0.4s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.logout-btn {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.4);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
}

.logout-btn:hover {
    background: #ff6b6b;
    color: white;
}

/* کارت شیشه‌ای */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: 0.4s;
}

.glass:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.btn-cta {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    color: #1a1a1a;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
}

/* گالری پروژه */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid rgba(255,255,255,0.2);
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.project-img {
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.project-info {
    padding: 20px;
    text-align: center;
}

.project-info h3 {
    margin-bottom: 10px;
    color: #ffd700;
}

/* فرم تماس */
/* فرم تماس مدرن - Floating Labels */
.contact-form .input-group {
    position: relative;
    margin-bottom: 25px;
}

.contact-form .input-group input,
.contact-form .input-group textarea {
    width: 100%;
    padding: 20px 20px 10px 20px; /* فضای بالا برای label */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    font-family: 'Vazir', sans-serif;
    font-size: 1rem;
    transition: all 0.4s ease;
    position: relative;
}

.contact-form .input-group input::placeholder,
.contact-form .input-group textarea::placeholder {
    color: transparent; /* placeholder رو مخفی کن تا label کار کنه */
}

.contact-form .input-group label {
    position: absolute;
    right: 20px;
    top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
}

.contact-form .input-group input:focus,
.contact-form .input-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.contact-form .input-group input:focus + label,
.contact-form .input-group textarea:focus + label,
.contact-form .input-group input:valid + label,
.contact-form .input-group textarea:valid + label {
    top: 8px;
    right: 15px;
    font-size: 0.85rem;
    color: #ffd700;
    background: rgba(255, 255, 255, 0.1);
    padding: 0 5px;
    border-radius: 5px;
}

/* خطای validation */
.contact-form .input-group.error input,
.contact-form .input-group.error textarea {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.contact-form .input-group.error label {
    color: #ff6b6b;
}

/* دکمه ارسال هولوگرافیک */
.btn-cta {
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    color: #1a1a1a;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5);
}

/* ریسپانسیو فرم */
@media (max-width: 768px) {
    .contact-form .input-group label {
        font-size: 0.9rem;
    }
    .btn-cta {
        padding: 16px 30px;
        font-size: 1rem;
    }
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .nav-links { gap: 10px; font-size: 0.9rem; }
}