/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Neon Line Effect */
.neon-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, #00ff88, transparent);
    box-shadow: 0 0 10px #00ff88,
                0 0 20px #00ff88,
                0 0 30px #00ff88;
    margin: 30px 0;
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px #00ff88,
                    0 0 20px #00ff88,
                    0 0 30px #00ff88;
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 5px #00ff88,
                    0 0 10px #00ff88,
                    0 0 15px #00ff88;
    }
}

/* Header Section - Searchlight Effect */
.header {
    text-align: center;
    padding: 40px 20px 30px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main title - above light source */
.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow:
        0 0 10px #00ff88,
        0 0 20px #00ff88,
        0 0 40px rgba(0, 255, 136, 0.6);
    margin-bottom: 20px;
    position: relative;
    z-index: 20;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        text-shadow:
            0 0 10px #00ff88,
            0 0 20px #00ff88,
            0 0 40px rgba(0, 255, 136, 0.6);
    }
    50% {
        text-shadow:
            0 0 15px #00ff88,
            0 0 30px #00ff88,
            0 0 60px rgba(0, 255, 136, 0.8);
    }
}

/* Light source container */
.light-source {
    position: relative;
    margin-bottom: 0;
    z-index: 10;
    height: 0;
}

/* Light bulb - bright point source */
.light-bulb {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    display: none;
}

/* Bright light source */
.light-bulb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #00ff88 0%, #00ff88 40%, transparent 70%);
    border-radius: 50%;
    box-shadow:
        0 0 15px #00ff88,
        0 0 30px #00ff88,
        0 0 60px rgba(0, 255, 136, 0.8),
        0 0 100px rgba(0, 255, 136, 0.5);
    animation: bulbPulse 2s ease-in-out infinite;
}

.light-bulb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: bulbHalo 3s ease-in-out infinite;
}

/* Bright light source effect */
.light-bulb::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #00ff88 0%, #00ff88 30%, transparent 70%);
    border-radius: 50%;
    box-shadow:
        0 0 10px #00ff88,
        0 0 20px #00ff88,
        0 0 40px rgba(0, 255, 136, 0.8),
        0 0 80px rgba(0, 255, 136, 0.5);
    animation: bulbPulse 1.5s ease-in-out infinite;
}

.light-bulb::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: bulbHalo 3s ease-in-out infinite;
}

@keyframes lightGlow {
    0%, 100% {
        text-shadow:
            0 0 5px #00ff88,
            0 0 10px #00ff88,
            0 0 20px #00ff88;
    }
    50% {
        text-shadow:
            0 0 10px #00ff88,
            0 0 20px #00ff88,
            0 0 40px #00ff88;
    }
}

@keyframes bulbPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes bulbHalo {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

/* Large searchlight beam - starts from below title */
.searchlight-beam {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 60vw, 600px);
    height: clamp(450px, 75vh, 850px);
    background: linear-gradient(
        to bottom,
        rgba(0, 255, 136, 0.3) 0%,
        rgba(0, 255, 136, 0.4) 10%,
        rgba(0, 255, 136, 0.5) 20%,
        rgba(0, 255, 136, 0.35) 35%,
        rgba(0, 255, 136, 0.2) 50%,
        rgba(0, 255, 136, 0.1) 70%,
        transparent 100%
    );
    clip-path: polygon(48% 0%, 52% 0%, 75% 100%, 25% 100%);
    animation: beamScan 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
    filter: blur(3px);
}

@keyframes beamScan {
    0%, 100% {
        transform: translateX(-50%) rotate(-5deg);
        opacity: 0.8;
    }
    25% {
        transform: translateX(-50%) rotate(8deg);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) rotate(-3deg);
        opacity: 0.7;
    }
    75% {
        transform: translateX(-50%) rotate(5deg);
        opacity: 0.9;
    }
}

/* Avatar container */
.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: clamp(150px, 22vh, 280px) auto 0;
    z-index: 2;
}

/* Avatar - blended into background */
.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Remove border */
    border: none;
    /* Minimal glow to blend */
    box-shadow:
        0 0 10px rgba(0, 255, 136, 0.1),
        0 0 20px rgba(0, 255, 136, 0.05);
    position: relative;
    z-index: 3;
    transition: all 0.5s ease;
    opacity: 0.85;
    filter: brightness(0.7) contrast(1.1);
}

.avatar:hover {
    transform: scale(1.02);
    filter: brightness(0.9) contrast(1.2);
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.2),
        0 0 40px rgba(0, 255, 136, 0.1);
    opacity: 1;
}

/* Shadow overlay to blend logo */
.shadow-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 5;
    pointer-events: none;
}

/* Spotlight effect on avatar */
.avatar-spotlight {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(0, 255, 136, 0.3) 0%,
        rgba(0, 255, 136, 0.15) 30%,
        rgba(0, 255, 136, 0.05) 50%,
        transparent 70%
    );
    border-radius: 50%;
    animation: spotlightSweep 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 4;
    mix-blend-mode: overlay;
}

@keyframes spotlightSweep {
    0%, 100% {
        transform: rotate(-15deg) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: rotate(5deg) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: rotate(20deg) scale(1);
        opacity: 0.5;
    }
    75% {
        transform: rotate(-10deg) scale(1.05);
        opacity: 0.7;
    }
}

/* Dust particles in light beam */
.light-source::before,
.light-source::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    width: 3px;
    height: 3px;
    background: rgba(0, 255, 136, 0.8);
    border-radius: 50%;
    animation: dustFloat 6s ease-in-out infinite;
    pointer-events: none;
}

.light-source::before {
    animation-delay: 0s;
}

.light-source::after {
    animation-delay: -3s;
    left: 52%;
}

@keyframes dustFloat {
    0% {
        transform: translate(-50%, -50%) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) translateY(clamp(500px, 70vh, 800px));
        opacity: 0;
    }
}

/* Dark ambient environment */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 50% 15%, rgba(0, 255, 136, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    pointer-events: none;
    animation: ambientPulse 10s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

/* Subtitle */
.subtitle {
    text-align: center;
    font-size: 1rem;
    color: rgba(0, 255, 136, 0.7);
    font-style: italic;
    letter-spacing: 2px;
    margin: 20px 0 30px;
    text-transform: lowercase;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    animation: subtitleFade 4s ease-in-out infinite;
}

@keyframes subtitleFade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}


/* Timeline Section */
.timeline-section {
    padding: 60px 20px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    color: #00ff88;
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px #00ff88,
                 0 0 20px rgba(0, 255, 136, 0.5);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

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

/* Central Timeline Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
        transparent,
        #00ff88,
        #00ff88,
        transparent);
    box-shadow: 0 0 10px #00ff88;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #000;
    border: 3px solid #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff88,
                0 0 30px rgba(0, 255, 136, 0.5);
    z-index: 2;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 15px #00ff88,
                    0 0 30px rgba(0, 255, 136, 0.5);
    }
    50% {
        box-shadow: 0 0 25px #00ff88,
                    0 0 50px rgba(0, 255, 136, 0.8);
    }
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 30px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #00ff88;
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -11px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -11px;
}

.timeline-content:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    transform: scale(1.02);
}

.timeline-date {
    font-size: 1.2rem;
    color: #00ff88;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #00ff88;
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timeline-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer p {
    color: rgba(0, 255, 136, 0.6);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        min-height: 60vh;
        max-height: 80vh;
        padding: 30px 20px 20px;
    }

    .main-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
        white-space: nowrap;
        margin-bottom: 10px;
    }

    .light-bulb {
        width: 35px;
        height: 35px;
    }

    .light-bulb::before {
        width: 12px;
        height: 12px;
    }

    .avatar-container {
        width: 100px;
        height: 100px;
        margin: clamp(80px, 18vh, 150px) auto 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .searchlight-beam {
        width: clamp(280px, 80vw, 350px);
        height: clamp(350px, 65vh, 450px);
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 70px !important;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -11px;
        right: auto;
    }
}

/* Event Image */
.event-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    border: 2px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.event-image:hover {
    border-color: #00ff88;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
    transform: scale(1.02);
}

/* Loading and Error Messages */
.loading, .error-message, .no-events {
    text-align: center;
    padding: 60px 20px;
    color: rgba(0, 255, 136, 0.7);
    font-size: 1.2rem;
}

.error-message {
    color: rgba(255, 100, 100, 0.8);
}
