@font-face {
    font-family: 'Vazir';
    src: url('../assets/fonts/Vazir.woff2') format('woff2'),
         url('../assets/fonts/Vazir.woff') format('woff'),
         url('../assets/fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #00ff88; 
    --primary-glow: rgba(0, 255, 136, 0.2);
    --accent: #7000ff; 
    --text-main: #ffffff;
    --text-secondary: #b0b0b0;
    --danger: #ff2a6d;
    --warning: #ffc107;
    --font-main: 'Vazir', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.8;
    overflow-x: hidden;
}

.main-header {
    background: linear-gradient(180deg, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0) 100%);
    padding: 80px 20px 40px;
    text-align: center;
    position: relative;
}

.header-content h1 {
    font-size: 36px;
    color: var(--text-main);
    margin-bottom: 15px;
    text-shadow: 0 0 30px var(--primary-glow);
    letter-spacing: -1px;
}

.subtitle {
    color: var(--primary);
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    background: rgba(0, 255, 136, 0.05);
}

.scroll-indicator {
    margin-top: 40px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.mouse-icon {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 40px;
}

.rule-section {
    margin-bottom: 80px;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--card-border);
    padding-bottom: 15px;
}

.section-number {
    font-size: 60px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    position: absolute;
    top: -30px;
    right: 0;
    z-index: 0;
    pointer-events: none;
}

.section-header h2 {
    font-size: 28px;
    color: var(--primary);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 15px var(--primary-glow);
}

.content-block {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    transition: all 0.3s ease;
}

.content-block:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.content-block.highlight {
    border-color: rgba(255, 42, 109, 0.3);
    background: linear-gradient(145deg, rgba(20,20,20,0.8), rgba(40,10,20,0.4));
}

.content-block h3 {
    font-size: 18px;
    color: var(--primary);
    margin-top: 25px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-block h3:first-child {
    margin-top: 0;
}

.content-block h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.content-block.highlight h3 {
    color: var(--danger);
}

.content-block.highlight h3::before {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

.content-block p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 10px;
    padding-right: 20px; 
}

.final-note {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1), transparent);
    border-right: 4px solid var(--warning);
    padding: 30px;
    border-radius: 8px;
    margin-top: 60px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 60px;
}

.note-icon {
    font-size: 30px;
    background: rgba(255, 193, 7, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-align: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.final-note h3 {
    color: var(--warning);
    margin-bottom: 10px;
}

.final-note p {
    color: var(--text-secondary);
    font-size: 14px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; layout: 20px; }
}

@media (max-width: 768px) {
    .header-content h1 { font-size: 26px; }
    .section-header h2 { font-size: 22px; }
    .content-block { padding: 25px; }
    .final-note { flex-direction: column; align-items: center; text-align: center; }
    .note-icon { margin-bottom: 15px; }
}