* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, #2c2c54 0%, #4a4e69 100%);
    font-family: 'Roboto', sans-serif;
    color: #f4f1de;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Timeline Container */
.timeline-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    position: relative;
}

/* Central Timeline Line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #f2cc8f, #e07a5f);
    transform: translateX(-50%);
    z-index: 0;
}

/* Header */
.timeline-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 30px;
    background: rgba(44, 44, 84, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.timeline-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #f2cc8f;
    text-shadow: 2px 2px 10px rgba(240, 166, 94, 0.5);
}

.timeline-header p {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-top: 10px;
}

/* Prophet Card */
.prophet-card {
    position: relative;
    width: 45%;
    padding: 25px;
    margin: 40px 0;
    background: rgba(74, 78, 105, 0.85);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.prophet-card:nth-child(even) {
    margin-left: 55%;
}

.prophet-card:nth-child(odd) {
    margin-right: 55%;
}

.prophet-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(240, 166, 94, 0.4);
}

/* Connector Dot */
.prophet-card::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #f2cc8f;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
}

.prophet-card:nth-child(even)::before {
    left: -28px;
}

.prophet-card:nth-child(odd)::before {
    right: -28px;
}

/* Card Content */
.card-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #f2cc8f;
    margin-bottom: 15px;
    border-bottom: 2px solid #e07a5f;
    padding-bottom: 5px;
}

.card-content p {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.family, .mosque {
    font-size: 0.95rem;
    color: #f4f1de;
    margin: 8px 0;
    padding: 8px;
    background: rgba(240, 166, 94, 0.1);
    border-radius: 5px;
}

.family span, .mosque span {
    color: #e07a5f;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }

    .prophet-card {
        width: 85%;
        margin-left: 40px !important;
        margin-right: 0 !important;
    }

    .prophet-card::before {
        left: -20px;
        right: auto;
    }

    .timeline-header h1 {
        font-size: 2.5rem;
    }

    .timeline-header p {
        font-size: 1.1rem;
    }

    .card-content h2 {
        font-size: 1.6rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    .family, .mosque {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .timeline-container {
        padding: 10px;
    }

    .timeline-header h1 {
        font-size: 2rem;
    }

    .timeline-header p {
        font-size: 1rem;
    }

    .prophet-card {
        width: 90%;
        padding: 15px;
    }

    .card-content h2 {
        font-size: 1.4rem;
    }
}