/* ===== Arabic Font ===== */
@font-face {
    font-family: 'The Year of Handicrafts';
    src: url('assets/fonts/TheYearofHandicrafts-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'The Year of Handicrafts';
    src: url('assets/fonts/TheYearofHandicrafts-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'The Year of Handicrafts';
    src: url('assets/fonts/TheYearofHandicrafts-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'The Year of Handicrafts';
    src: url('assets/fonts/TheYearofHandicrafts-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'The Year of Handicrafts';
    src: url('assets/fonts/TheYearofHandicrafts-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== Variables ===== */
:root {
    --black: #0C0C0C;
    --silver: #E2E3E7;
    --silver-dim: #E2E3E780;
    --soft-navy: #516177;
    --soft-magenta: #93516B;
    --red-orange: #C45A40;
    --pastel-teal: #94ABA3;
    --salmon: #EC967B;
    --navy: #2F3A4C;
    --magenta: #804156;
    --dark-teal: #6F8985;
    --dark-salmon: #BF6D5E;
    --font-en: 'Plus Jakarta Sans', sans-serif;
    --font-ar: 'The Year of Handicrafts', 'Plus Jakarta Sans', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-en);
    background: var(--black);
    color: var(--silver);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
    direction: rtl;
    font-family: var(--font-ar);
}

[dir="ltr"] body {
    direction: ltr;
    font-family: var(--font-en);
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 227, 231, 0.06);
    transition: background var(--transition);
}

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

.nav-icon {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--silver-dim);
    transition: color var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--silver);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    background: transparent;
    border: 1px solid rgba(226, 227, 231, 0.2);
    color: var(--silver);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.05em;
}

.lang-toggle:hover {
    background: rgba(226, 227, 231, 0.1);
    border-color: rgba(226, 227, 231, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--silver);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-wavy {
    position: absolute;
    top: -10%;
    right: -20%;
    width: 70%;
    opacity: 0.08;
    pointer-events: none;
    transform: rotate(15deg);
}

[dir="ltr"] .hero-wavy {
    right: auto;
    left: -20%;
    transform: rotate(-15deg);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 280px;
    margin: 0 auto 48px;
}

.hero-slogan {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.4;
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--silver) 0%, var(--pastel-teal) 50%, var(--salmon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--silver-dim);
    max-width: 600px;
    margin: 0 auto 52px;
    font-weight: 400;
    line-height: 2;
}

/* ===== Buttons ===== */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-lg {
    padding: 18px 42px;
    font-size: 1.1rem;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0;
}

.section-subtitle {
    text-align: center;
    color: var(--silver-dim);
    max-width: 640px;
    margin: 0 auto 64px;
    font-size: 1.05rem;
    line-height: 2;
}

/* ===== About / Features ===== */
.about {
    background: linear-gradient(180deg, var(--black) 0%, #111114 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.feature-card {
    background: rgba(226, 227, 231, 0.03);
    border: 1px solid rgba(226, 227, 231, 0.06);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    background: rgba(226, 227, 231, 0.06);
    border-color: rgba(226, 227, 231, 0.12);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(226, 227, 231, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--pastel-teal);
}

.feature-card:nth-child(2) .feature-icon { color: var(--salmon); }
.feature-card:nth-child(3) .feature-icon { color: var(--soft-navy); }
.feature-card:nth-child(4) .feature-icon { color: var(--soft-magenta); }

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--silver-dim);
    line-height: 1.9;
}

/* ===== Includes ===== */
.includes {
    background: var(--black);
}

.includes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.include-card {
    background: rgba(226, 227, 231, 0.03);
    border: 1px solid rgba(226, 227, 231, 0.06);
    border-radius: var(--radius-sm);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition);
}

.include-card:hover {
    background: rgba(226, 227, 231, 0.06);
    transform: translateY(-2px);
}

.include-icon {
    color: var(--pastel-teal);
    margin-bottom: 14px;
    opacity: 0.8;
}

.include-card:nth-child(2) .include-icon { color: var(--soft-navy); }
.include-card:nth-child(3) .include-icon { color: var(--salmon); }
.include-card:nth-child(4) .include-icon { color: var(--red-orange); }
.include-card:nth-child(5) .include-icon { color: var(--soft-magenta); }
.include-card:nth-child(6) .include-icon { color: var(--dark-teal); }
.include-card:nth-child(7) .include-icon { color: var(--soft-navy); }
.include-card:nth-child(8) .include-icon { color: var(--dark-salmon); }
.include-card:nth-child(9) .include-icon { color: var(--salmon); }

.include-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.include-card p {
    font-size: 0.85rem;
    color: var(--silver-dim);
    line-height: 1.7;
}

/* ===== Timeline ===== */
.timeline-section {
    background: linear-gradient(180deg, var(--black) 0%, #111114 100%);
}

.timeline {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    padding-right: 40px;
}

[dir="ltr"] .timeline {
    padding-right: 0;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--soft-navy), var(--soft-magenta), var(--red-orange), var(--pastel-teal), var(--salmon));
    border-radius: 2px;
}

[dir="ltr"] .timeline::before {
    right: auto;
    left: 11px;
}

.timeline-item {
    position: relative;
    margin-bottom: 56px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    right: -40px;
    top: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--black);
    border: 3px solid var(--accent, var(--silver));
    z-index: 1;
}

[dir="ltr"] .timeline-marker {
    right: auto;
    left: -40px;
}

.timeline-content {
    background: rgba(226, 227, 231, 0.03);
    border: 1px solid rgba(226, 227, 231, 0.06);
    border-radius: var(--radius-sm);
    padding: 28px;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--silver-dim);
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-en);
    direction: ltr;
    text-align: right;
}

[dir="ltr"] .timeline-date {
    text-align: left;
}

.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--silver-dim);
    line-height: 1.8;
}

/* ===== Supervisors ===== */
.supervisors {
    background: var(--black);
}

.supervisors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.supervisor-card {
    background: rgba(226, 227, 231, 0.03);
    border: 1px solid rgba(226, 227, 231, 0.06);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    transition: all var(--transition);
}

.supervisor-card:hover {
    background: rgba(226, 227, 231, 0.06);
    transform: translateY(-4px);
}

.supervisor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(226, 227, 231, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--silver-dim);
}

.supervisor-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.7;
}

.supervisor-role {
    font-size: 0.85rem;
    color: var(--pastel-teal);
    font-weight: 500;
}

/* ===== Pricing ===== */
.pricing {
    background: linear-gradient(180deg, var(--black) 0%, #111114 100%);
}

.pricing-main {
    text-align: center;
    margin-bottom: 52px;
    padding: 56px 32px;
    background: rgba(226, 227, 231, 0.03);
    border: 1px solid rgba(226, 227, 231, 0.08);
    border-radius: var(--radius);
}

.pricing-label {
    font-size: 1rem;
    color: var(--silver-dim);
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
}

.price-number {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--silver) 0%, var(--salmon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    font-family: var(--font-en);
}

.price-currency {
    font-size: 1.25rem;
    color: var(--silver-dim);
    font-weight: 600;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pricing-card {
    background: rgba(226, 227, 231, 0.03);
    border: 1px solid rgba(226, 227, 231, 0.06);
    border-radius: var(--radius-sm);
    padding: 32px 24px;
    text-align: center;
}

.pricing-card-amount {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--silver);
    font-family: var(--font-en);
}

.pricing-card-amount small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--silver-dim);
}

.pricing-card p {
    font-size: 0.9rem;
    color: var(--silver-dim);
    line-height: 1.8;
}

/* ===== Certificate ===== */
.certificate {
    background: var(--black);
    padding: 60px 0;
}

.certificate-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(81, 97, 119, 0.1) 0%, rgba(148, 171, 163, 0.1) 100%);
    border: 1px solid rgba(226, 227, 231, 0.08);
    border-radius: var(--radius);
    padding: 48px 32px;
    max-width: 720px;
    margin: 0 auto;
}

.certificate-icon {
    color: var(--salmon);
    margin-bottom: 20px;
}

.certificate-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.certificate-box p {
    color: var(--silver-dim);
    font-size: 1.05rem;
    line-height: 2;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(180deg, #111114 0%, var(--black) 100%);
    text-align: center;
    padding: 120px 0;
}

.cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.cta-subtitle {
    color: var(--silver-dim);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.phone-link {
    display: block;
    width: 100%;
    margin-top: 24px;
    color: var(--silver-dim);
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--font-en);
    transition: color var(--transition);
    direction: ltr;
    letter-spacing: 0.03em;
    text-align: center;
}

.phone-link:hover {
    color: var(--silver);
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid rgba(226, 227, 231, 0.06);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--silver-dim);
    transition: color var(--transition);
}

.footer-social a:hover {
    color: var(--silver);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(226, 227, 231, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .supervisors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(12, 12, 12, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(226, 227, 231, 0.06);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-logo {
        width: 200px;
    }

    .section {
        padding: 72px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .includes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        padding-right: 32px;
    }

    [dir="ltr"] .timeline {
        padding-right: 0;
        padding-left: 32px;
    }

    .timeline-marker {
        right: -32px;
    }

    [dir="ltr"] .timeline-marker {
        right: auto;
        left: -32px;
    }

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

    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .includes-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .supervisors-grid {
        grid-template-columns: 1fr;
    }

    .btn-whatsapp {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-whatsapp-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
}
