:root {
    --primary: #00AA00;
    --primary-glow: rgba(0, 170, 0, 0.4);
    --bg-dark: #000000;
    --bg-card: #080808;
    --text-white: #FFFFFF;
    --text-gray: #A1A1AA;
    --border: rgba(0, 170, 0, 0.2);
    --glass: rgba(0, 0, 0, 0.6);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Force custom cursor */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Utils --- */
.gradient-text {
    background: linear-gradient(90deg, #fff, var(--primary), #fff);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

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

/* --- Background Decoration --- */
.bg-glow {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

.bg-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.btn-primary {
    background-color: var(--primary);
    color: #000;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--primary-glow);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary);
    background: #00FF00;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(0, 170, 0, 0.1);
    border-color: var(--primary);
}

/* --- Custom Cursor --- */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    position: fixed;
    border-radius: 50%;
    z-index: 10001;
    pointer-events: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    position: fixed;
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

/* --- Guided Tour --- */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.tour-card {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    animation: tourPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tourPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tour-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.tour-card p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.tour-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- Auth Modal --- */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.auth-modal h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
}

.auth-form .input-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.auth-form input {
    width: 100%;
    padding: 1rem;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    outline: none;
}

.auth-form input:focus {
    border-color: var(--primary);
}

/* --- Enhanced Timeline Story Section --- */
.story-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

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

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 20px;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--primary), var(--primary), transparent);
    box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-item {
    position: relative;
    padding-right: 70px;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    right: 10px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--bg-dark);
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 20px var(--primary);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 var(--primary-glow); }
    70% { box-shadow: 0 0 0 15px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.timeline-card {
    background: linear-gradient(145deg, #0a0a0a, #000);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
    box-shadow: 20px 20px 60px rgba(0,0,0,0.5);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background: #0a0a0a;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.timeline-item:hover .timeline-card {
    border-color: var(--primary);
    transform: scale(1.03) translateX(-10px);
    box-shadow: 0 0 30px var(--primary-dim);
}

.timeline-card h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.timeline-card p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* --- Sections --- */
.hero-section {
    padding: 180px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* --- Language Switcher --- */
.lang-switcher button {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.lang-switcher button:hover {
    opacity: 1;
    background: rgba(0, 170, 0, 0.1) !important;
}

.lang-switcher button.active {
    background: var(--primary) !important;
    color: black !important;
    opacity: 1;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* LTR Support */
[lang="en"] body, [lang="de"] body { direction: ltr; text-align: left; }
[lang="en"] .timeline-line, [lang="de"] .timeline-line { right: auto; left: 20px; }
[lang="en"] .timeline-item, [lang="de"] .timeline-item { padding-right: 0; padding-left: 70px; transform: translateX(-50px); }
[lang="en"] .timeline-item.active, [lang="de"] .timeline-item.active { transform: translateX(0); }
[lang="en"] .timeline-dot, [lang="de"] .timeline-dot { right: auto; left: 10px; }
[lang="en"] .timeline-card::before, [lang="de"] .timeline-card::before { right: auto; left: -10px; border-right: none; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); border-top: none; transform: translateY(-50%) rotate(45deg); }
[lang="en"] .stat-card, [lang="de"] .stat-card { text-align: left; }

/* --- Footer --- */
footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--border);
    background: linear-gradient(to bottom, transparent, rgba(0, 170, 0, 0.03));
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-content h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 4px;
}

.social-links {
    display: flex;
    gap: 25px;
}

.social-links a {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.6rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 170, 0, 0.05);
    transform: translateY(-8px) rotate(8deg);
    box-shadow: 0 15px 30px rgba(0, 170, 0, 0.15), 0 0 20px var(--primary-glow);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.8;
}

/* --- Comprehensive Mobile Responsive System --- */
@media (max-width: 991px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .nav-links { display: none; }
    .container { padding: 0 1.5rem; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stats-grid .stat-card:last-child { grid-column: span 2; }
    
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    
    /* Responsive Timeline */
    .timeline { padding: 20px 0; }
    .timeline-line { right: 10px; }
    .timeline-item { padding-right: 40px; margin-bottom: 50px; }
    .timeline-dot { right: 0; width: 18px; height: 18px; }
    .timeline-card { padding: 25px; }
    .timeline-card h3 { font-size: 1.4rem; }
    .timeline-card::before { display: none; } 
    
    .stat-card { padding: 1.5rem; }
    .stat-number { font-size: 2.2rem; }
    
    .cta-card { padding: 3rem 1.5rem; }
    
    /* Elegant Mobile Nav Fix */
    .glass-nav .nav-container { padding: 10px 20px; }
    .nav-links { display: none; }
    .lang-switcher button { padding: 5px 10px; font-size: 0.7rem; }
    .nav-cta { gap: 10px; }

    /* Footer Mobile */
    .footer-content h2 { font-size: 2rem; letter-spacing: 2px; }
    .social-links { gap: 15px; }
    .social-links a { width: 50px; height: 50px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .section-title { font-size: 1.8rem; }
}
