@import url('font-awesome-all.min.css');

@font-face {
    font-family: 'Vazirmatn'; 
    src: url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Exact Color System from User Panels */
    --bg: #f5f6fa;
    --surface: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --accent: #1d9e75;
    --accent-light: #e1f5ee;
    --accent-dark: #0f6e56;
    
    --warning: #ba7517;
    --warning-light: #faeeda;
    
    --danger: #a32d2d;
    --danger-light: #fcebeb;
    
    /* Radius Rules */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.18s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    direction: rtl;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

li {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ─── Navigation Bar ────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 72px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.logo a {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu-items {
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu-items li a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
}

.menu-items li a:hover {
    background: var(--bg);
    color: var(--text-primary);
}

.login-btn {
    background: var(--accent);
    color: var(--white) !important;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    color: white;
}

.login-btn:hover {
    opacity: 0.88;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
}

.hamburger:hover {
    background: var(--bg);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

/* ─── Hero Section ──────────────────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 460px;
    max-width: 1200px;
    margin: 28px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    position: relative;
}

/* Hero Left Text Side */
.hero-text {
    display: flex;
    align-items: center;
    padding: 48px;
    position: relative;
    z-index: 2;
}

.hero-text-inner {
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-text h1 {
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.hero-text h1 .highlight {
    color: var(--accent);
}

.hero-text p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    height: 60px;
}

.hero-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.hero-stat-info {
    display: flex;
    flex-direction: column;
}

.hero-stat-info strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-stat-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.hero-btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    background: var(--accent);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    opacity: 0.88;
}

.btn-primary svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    width: 100%;
}

.btn-outline:hover {
    background: var(--bg);
    color: var(--text-primary);
}

/* Hero Right Visual Side */
.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg);
    position: relative;
}

.hero-visual-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    border: 1px dashed var(--border);
}

.bg-circle.c1 {
    width: 140px;
    height: 140px;
    top: -10px;
    right: -10px;
}

.bg-circle.c2 {
    width: 90px;
    height: 90px;
    bottom: 10px;
    left: -10px;
}

.bg-circle.c3 {
    display: none;
}

.hero-visual-illustration .img-main {
    position: relative;
    z-index: 2;
    width: 80%;
    max-height: 240px;
    object-fit: contain;
}

.floating-pill {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.floating-pill .emoji {
    font-size: 14px;
}

/* Info Cards Panel */
.hero-visual-info {
    background: var(--surface);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    border-right: 1px solid var(--border);
}

.info-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--accent);
    background: var(--surface);
}

.info-card .card-icon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.info-card .card-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.info-card .card-icon.teal {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.info-card .card-icon.amber {
    background: var(--warning-light);
    color: var(--warning);
}

.info-card h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-card p {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ─── Header Ad / text loop banner ──────────────────────── */
.header-ad {
    grid-column: 1 / -1;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 12px 24px;
}

.header-ad-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

#text {
    color: var(--warning);
    background: var(--warning-light);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
}

/* ─── Start Checklist Section ───────────────────────────── */
.start-checklist {
    padding: 30px 24px;
}

.start-checklist-container {
    max-width: 1200px;
    margin: 0 auto;
}

.start-checklist-container h1 {
    font-size: clamp(20px, 2.2vw, 26px);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.start-checklist-container h2 {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.start-checklist-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

article {
    display: flex;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

article:hover {
    border-color: var(--accent);
}

article img {
    width: 130px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

article div {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

article h4 {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

article p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ─── Reminder Section ──────────────────────────────────── */
.reminder {
    background: var(--surface);
    margin: 32px auto 32px;
    max-width: 1200px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.reminder-container {
    display: flex;
    align-items: stretch;
    min-height: 180px;
}

.reminder-text {
    flex: 1;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.reminder-text h4 {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.75;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.reminder-text h4 i {
    font-size: 16px;
    margin-top: 3px;
}

.reminder-text .one {
    color: var(--warning);
}

.reminder-text .two {
    color: var(--accent);
}

.reminder-img {
    width: 200px;
    flex-shrink: 0;
    position: relative;
    background: var(--bg);
    overflow: hidden;
    border-right: 1px solid var(--border);
}

.reminder-img .img-1 {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 90%;
    object-fit: contain;
    z-index: 2;
}

.reminder-img .img-2 {
    display: none;
}

/* ─── Skill Verification / Timeline ────────────────────── */
.skill-verification {
    padding: 14px 24px 70px;
}

.skill-verification-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skill-verification-container h1 {
    font-size: clamp(20px, 2.2vw, 26px);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.skill-verification-container h2 {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.skill-verification-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-right: 48px;
    counter-reset: step;
}

/* Timeline Vertical Line */
.skill-verification-items::before {
    content: '';
    position: absolute;
    right: 18px;
    top: 10px;
    bottom: 30px;
    width: 2px;
    background: var(--border);
}

.skill-verification-items article {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-right: 3px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
    counter-increment: step;
    width: 100%;
}

.skill-verification-items article:hover {
    border-right-color: var(--accent-dark);
}

/* Bullet step circles */
.skill-verification-items article::before {
    content: counter(step);
    position: absolute;
    right: -40px;
    top: 18px;
    width: 32px;
    height: 32px;
    background: var(--surface);
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 0 0 4px var(--bg);
    z-index: 2;
    transition: var(--transition);
}

.skill-verification-items article:hover::before {
    background: var(--accent);
    color: var(--surface);
}

.skill-verification-items article h4 {
    font-size: 14.5px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.skill-verification-items article p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.skill-verification-items article p:last-child {
    display: inline-block;
    margin-top: 10px;
    background: var(--accent-light);
    color: var(--accent-dark);
    border-radius: var(--radius-sm);
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
}

/* ─── Footer Section ────────────────────────────────────── */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid var(--border);
}

.footer-container-text {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1fr;
    gap: 40px;
    padding: 56px 24px 32px;
}

.footer-logo {
    width: 110px;
    height: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-section-1 h4 {
    font-size: 15px;
    color: var(--surface);
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-section-1 p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.footer-section-2 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-section-2 h4 {
    font-size: 14px;
    color: var(--surface);
    margin-bottom: 12px;
}

.footer-section-2 a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    width: fit-content;
}

.footer-section-2 a:hover {
    color: var(--surface);
    transform: translateX(-3px);
}

.footer-section-3 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section-3 h4 {
    font-size: 14px;
    color: var(--surface);
    margin-bottom: 8px;
}

.footer-section-3 img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.85) grayscale(0.3);
}

.footer-section-3 img:hover {
    filter: none;
}

.footer-section-4 {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 16px 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* ─── Login Page & Elements ─────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 24px;
}

.login-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header h1 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 13.5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14.5px;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-form {
    background: var(--accent);
    color: white;
}

.btn-primary-form:hover {
    opacity: 0.88;
}

.btn-secondary {
    background: var(--warning);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.88;
}

.btn-outline-form {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline-form:hover {
    background: var(--bg);
    color: var(--text-primary);
}

.message {
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 13.5px;
    text-align: center;
    font-weight: 600;
}

.message-error {
    background: var(--danger-light);
    color: var(--danger);
    border-right: 3px solid var(--danger);
}

.message-success {
    background: var(--accent-light);
    color: var(--accent-dark);
    border-right: 3px solid var(--accent-dark);
}

.resend-link {
    text-align: center;
    margin-top: 20px;
}

.resend-link button {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: underline;
}

.resend-link button:hover {
    color: var(--accent-dark);
}

/* ─── Popup Overlay ─────────────────────────────────────── */
.popup-hide {
    display: none;
}

.popup {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(26, 26, 46, 0.4);
    z-index: 200;
}

.popup-message {
    width: min(420px, 90vw);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 0.3s ease;
}

.popup-message h1 {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 600;
}

.popup-message .button {
    background: var(--accent);
    color: white;
    padding: 11px 32px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.popup-message .button:hover {
    opacity: 0.88;
}

/* ─── Media Queries (Responsive Adjustments) ────────────── */

/* Tablet Screens (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        margin: 20px;
        min-height: auto;
    }
    
    .hero-text {
        padding: 32px;
    }
    
    .hero-visual {
        grid-template-columns: 1fr 1fr;
        border-top: 1px solid var(--border);
    }
    
    .start-checklist-items {
        grid-template-columns: 1fr;
    }
    
    .footer-container-text {
        grid-template-columns: 1.2fr 1fr;
        gap: 28px;
    }
    
    .footer-section-1 {
        grid-column: 1 / -1;
    }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .menu {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        background: var(--surface);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        padding: 16px 24px;
        z-index: 99;
        border-bottom: 1px solid var(--border);
    }
    
    .menu.active {
        display: block;
    }
    
    .menu-items {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .menu-items li a {
        display: block;
        padding: 10px 12px;
    }
    
    .hero-text {
        padding: 24px;
    }
    
    .hero-visual {
        grid-template-columns: 1fr;
    }
    
    .hero-visual-illustration {
        padding: 32px;
    }
    
    .hero-visual-illustration .img-main {
        max-height: 180px;
    }
    
    .hero-visual-info {
        padding: 20px;
        border-right: none;
        border-top: 1px solid var(--border);
    }
    
    article {
        flex-direction: column;
    }
    
    article img {
        width: 100%;
        height: 160px;
    }
    
    .reminder {
        margin: 20px 16px;
    }
    
    .reminder-container {
        flex-direction: column;
    }
    
    .reminder-text {
        padding: 24px;
    }
    
    .reminder-img {
        width: 100%;
        height: 160px;
        border-right: none;
        border-top: 1px solid var(--border);
    }
    
    .skill-verification-items {
        padding-right: 40px;
    }
    
    .skill-verification-items article::before {
        right: -36px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .footer-container-text {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Small Devices (max-width: 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hero-stat {
        width: 100%;
    }
    
    .hero-btns {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .skill-verification-items::before {
        display: none;
    }
    
    .skill-verification-items {
        padding-right: 0;
    }
    
    .skill-verification-items article {
        border-right: none;
        border-top: 3px solid var(--accent);
        border-radius: var(--radius-md);
    }
    
    .skill-verification-items article::before {
        display: none;
    }
    
    .login-card {
        padding: 24px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.login-switch {
    text-align: center;
    margin: auto;
    text-decoration: underline;
}

.policies-text {
    padding-top: 20px;
    text-align: center;
    font-size: 10px;
}

.policies-text a {
    text-decoration: underline;
}