@font-face {
    font-family: 'Iransans';
    src: url('../font/Iransans.ttf') format('truetype'), url('../font/Iransans.woff') format('woff');
}

* {
    font-family: 'Vazirmatn', 'Iransans';
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary-rgb: 15, 118, 200;
    --color-primary: #4fb0ff;
    --color-primary-dark: #0a4a8a;
    --color-bg: #000000;
    --color-surface: #0a0a0a;
    --color-primary-r: 56;
    --color-primary-g: 189;
    --color-primary-b: 248;
}

html,
body {
    height: 100%;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: #f0f0f0;
}

/* ========| Glow Utilities |======== */
.glow-sm {
    box-shadow: 0 0px 20px rgba(var(--color-primary-rgb), 0.25), 0 0px 40px rgba(0, 0, 0, 0.8);
}

.glow-md {
    box-shadow: 0 0px 40px rgba(var(--color-primary-rgb), 0.3), 0 0px 60px rgba(0, 0, 0, 0.9);
}

.glow-lg {
    box-shadow: 0 0px 60px rgba(var(--color-primary-rgb), 0.35), 0 0px 80px rgba(0, 0, 0, 1);
}

/* ========| Scrollbar |======== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ========| Hero Section |======== */
.hero-section {
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

/* ========| Animations |======== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0px 20px rgba(var(--color-primary-rgb), 0.4);
    }

    50% {
        box-shadow: 0 0px 40px rgba(var(--color-primary-rgb), 0.7);
    }
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-80px) translateX(20px);
        opacity: 0.1;
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.animate-float {
    animation: float-slow 6s ease-in-out infinite;
}

/* ========| Buttons |======== */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    transition: all 0.3s;
    animation: pulse-glow 3s infinite;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* ========| Glow Card |======== */
.glow-card {
    box-shadow: 0 0px 0px rgba(var(--color-primary-rgb), 0);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.glow-card:hover {
    box-shadow: 0 0px 30px rgba(var(--color-primary-rgb), 0.15);
    transform: translateY(-4px);
}

.card-border {
    border: 1px solid rgba(var(--color-primary-rgb), 0.1);
    transition: border-color 0.3s ease;
}

.card-border:hover {
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

/* ========| Role Tabs |======== */
.role-tab {
    padding: 0.85rem 1.6rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #9ca3af;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.role-tab svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.role-tab:hover {
    color: #fff;
    border-color: rgba(var(--color-primary-rgb), 0.4);
}

.role-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-color: transparent;
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.4);
}

/* ========| Role Form Panels |======== */
.role-panel {
    display: none;
}

.role-panel.active {
    display: flex;
    animation: fadeUp 0.5s ease forwards;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field {
    width: 100%;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid #1f2937;
    border-radius: 1rem;
    padding: 0.7rem 1.1rem;
    font-size: 0.875rem;
    color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field::placeholder {
    color: #6b7280;
}

.form-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 14px rgba(var(--color-primary-rgb), 0.2);
}

textarea.form-field {
    min-height: 7rem;
    resize: vertical;
    line-height: 1.9;
}

.option-pill {
    position: relative;
}

.option-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-pill span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 24, 39, 0.5);
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.option-pill span svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.option-pill span:hover {
    color: #fff;
    border-color: rgba(var(--color-primary-rgb), 0.4);
}

.option-pill input:checked+span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 18px rgba(var(--color-primary-rgb), 0.35);
}

.option-pill input:focus-visible+span {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========| Notes Box |======== */
.note-box {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(252, 211, 77, 0.25);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #fde68a;
    font-size: 0.82rem;
    line-height: 1.9;
}

.note-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #fbbf24;
}

.note-item b {
    color: #fef3c7;
    font-weight: 700;
}

/* ========| Particles |======== */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 6s infinite ease-in-out;
}
