/* Font Import for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* Base & Reset */
:root {
    --bg-color: #020617;
    /* Slate 950 */
    --card-bg: rgba(30, 41, 59, 0.5);
    /* Slate 800 with opacity */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --primary-color: #3b82f6;
    /* Blue 500 */
    --primary-hover: #2563eb;
    /* Blue 600 */
    --accent-kill: #ef4444;
    /* Red 500 */
    --nav-bg: rgba(2, 6, 23, 0.8);

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3.5rem;
    --spacing-xl: 5rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--spacing-xl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

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

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

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

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

.align-center {
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    background-image: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.hero .container {
    text-align: center;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.highlight-kill {
    color: var(--accent-kill);
    position: relative;
}

.highlight-kill::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent-kill);
    opacity: 0.3;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-group {
        flex-direction: row;
    }
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Problem Section */
.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

.card .icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Framework Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

/* Desktop Timeline Customization */
@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        margin-bottom: 0;
        padding-bottom: 0;
        position: relative;
    }

    .timeline-item.left {
        left: 0;
        text-align: right;
        padding-right: 3rem;
    }

    .timeline-item.right {
        left: 50%;
        text-align: left;
        padding-left: 3rem;
    }
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.week-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Differentiation */
.check-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.check-icon {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.check-icon.kill {
    color: var(--accent-kill);
}

.check-list strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.check-list p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stat-box {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 0%, rgba(2, 6, 23, 0) 70%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 300px;
}

.stat-number {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Audience */
.vs-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .vs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.vs-card {
    padding: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    border-top: 4px solid transparent;
}

.vs-card.for-you {
    border-top-color: var(--primary-color);
}

.vs-card.not-for-you {
    border-top-color: var(--accent-kill);
    opacity: 0.8;
}

.vs-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.vs-card ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.vs-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-primary);
}

/* Instructors */
.instructor-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    text-align: center;
}

.instructor-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(59, 130, 246, 0.3);
    background-color: white;
    /* Fallback */
}

.instructor-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.instructor-info .role {
    display: block;
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.instructor-info p {
    color: var(--text-secondary);
}

/* Process */
.steps-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .steps-row {
        flex-direction: row;
        justify-content: space-between;
    }
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-color) 0%, #1e1b4b 100%);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-powered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.powered-label-footer {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.footer-jis-logo {
    height: 48px;
    width: auto;
    border-radius: 4px;
    /* Small radius */
}

.socials {
    display: flex;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-copy {
        width: 33%;
        /* Left column */
    }

    .footer-powered {
        width: 33%;
        /* Center column */
        align-items: center;
    }

    .socials {
        width: 33%;
        /* Right column */
        justify-content: flex-end;
    }
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive adjustments for mobile timeline */
@media (max-width: 767px) {
    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 2rem;
        margin-bottom: 2rem;
        text-align: left;
    }

    .timeline-content {
        width: 100%;
    }
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Tajawal', 'Inter', sans-serif;
}

[dir="rtl"] .hero-title {
    letter-spacing: 0;
    line-height: 1.3;
}

/* Navbar RTL */
[dir="rtl"] .navbar .container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

/* Icons and Flex lists RTL */
[dir="rtl"] .check-list li {
    flex-direction: row;
    /* Ensure flex direction is row (which becomes RTL contextually) */
}

/* Timeline Desktop RTL */
@media (min-width: 768px) {
    [dir="rtl"] .timeline-item.left {
        left: auto;
        right: 0;
        text-align: left;
        /* Align text towards center */
        padding-right: 0;
        padding-left: 3rem;
    }

    [dir="rtl"] .timeline-item.right {
        left: auto;
        right: 50%;
        text-align: right;
        /* Align text towards center */
        padding-left: 0;
        padding-right: 3rem;
    }
}

/* Timeline Mobile RTL */
@media (max-width: 767px) {
    [dir="rtl"] .timeline::before {
        left: auto;
        right: 0;
    }

    [dir="rtl"] .timeline-item {
        padding-left: 0;
        padding-right: 2rem;
        text-align: right;
    }
}

/* Lists and Icons RTL */
[dir="rtl"] .vs-card ul li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .vs-card ul li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

/* Nav Actions Container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}