/* ==========================================================================
   Base & Global
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: #0A0A0A;
    color: #FFFFFF;
    position: relative;
    line-height: 1.6;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* ==========================================================================
   Theme Variables
   ========================================================================== */
:root {
    --cyan:    #00FFFF;
    --magenta: #FF00FF;
    --dark:    #0A0A0A;
    --card-bg: rgba(20, 20, 20, 0.85);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
}

h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* ==========================================================================
   Layout & Sections
   ========================================================================== */
section {
    padding: 80px 0;
}

section .container {
    max-width: 1100px;
}

.bg-dark-subtle {
    background-color: rgba(30, 30, 30, 0.7) !important;
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn-outline-cyan {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-outline-cyan:hover,
.btn-outline-cyan:focus {
    background-color: var(--cyan);
    color: var(--dark);
    box-shadow: 0 0 15px var(--cyan);
}

.text-cyan {
    color: var(--cyan) !important;
}

.border-cyan {
    border-color: var(--cyan) !important;
}

/* ==========================================================================
   Cards & Progress Bars
   ========================================================================== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--cyan);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.25);
}

.progress {
    height: 8px;
    background: rgba(0, 255, 255, 0.12);
    border-radius: 4px;
}

.progress-bar {
    background: var(--cyan);
    transition: width 1.5s ease;
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--cyan);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-node {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    cursor: pointer;
}

.timeline-node:nth-child(odd)  { left: 0; text-align: right; }
.timeline-node:nth-child(even) { left: 50%; text-align: left; }

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cyan);
    top: 35px;
    border: 3px solid var(--dark);
    box-shadow: 0 0 12px var(--cyan);
}

.timeline-node:nth-child(odd)  .timeline-dot { right: -11px; }
.timeline-node:nth-child(even) .timeline-dot { left: -11px; }

.timeline-content {
    padding: 20px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    border: 1px solid rgba(0,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.details {
    display: none;
    margin-top: 12px;
    color: #ccc;
}

.timeline-node.active .details {
    display: block;
}

/* RTL support for timeline */
body[data-lang="he"] .timeline::after {
    left: auto;
    right: 50%;
    margin-right: -1.5px;
    margin-left: 0;
}

body[data-lang="he"] .timeline-node:nth-child(odd)  { left: 50%; text-align: left; right: 0; }
body[data-lang="he"] .timeline-node:nth-child(even) { left: 0; text-align: right; }
body[data-lang="he"] .timeline-node:nth-child(odd)  .timeline-dot { left: -11px; right: auto; }
body[data-lang="he"] .timeline-node:nth-child(even) .timeline-dot { right: -11px; left: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #000 !important;
    border-top: 1px solid var(--cyan);
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #aaa;
    text-align: center;
}

/* ==========================================================================
   Light Mode
   ========================================================================== */
body[data-bs-theme="light"] {
    background: #f8f9fa;
    color: #212529;
}

body[data-bs-theme="light"] .bg-dark,
body[data-bs-theme="light"] .bg-dark-subtle,
body[data-bs-theme="light"] .card {
    background-color: #ffffff !important;
    color: #212529 !important;
}

body[data-bs-theme="light"] .border-cyan,
body[data-bs-theme="light"] .text-cyan {
    border-color: #0d6efd !important;
    color: #0d6efd !important;
}

/* ==========================================================================
   RTL Hebrew Support
   ========================================================================== */
body[data-lang="he"] {
    direction: rtl;
    text-align: right;
}

body[data-lang="he"] .text-start { text-align: right !important; }
body[data-lang="he"] .text-end   { text-align: left !important; }