/* Custom Styles */
body {
    font-family: 'Inter', sans-serif;
    color: #e5e5e5;
    overflow-x: hidden;

    /* --- FIXED & UPGRADED: Animated Aurora Background --- */
    background-color: #000;
    --gradient-size: 150%;
    background-image: 
        radial-gradient(circle at 15% 25%, hsla(128, 98%, 58%, 0.25), transparent 35%),
        radial-gradient(circle at 85% 20%, hsla(128, 98%, 58%, 0.15), transparent 40%),
        radial-gradient(circle at 50% 85%, hsla(128, 98%, 58%, 0.2), transparent 40%);
    background-size: var(--gradient-size) var(--gradient-size);
    animation: animate-gradient 30s infinite alternate ease-in-out;
}

/* --- FIXED & UPGRADED: More fluid keyframes --- */
@keyframes animate-gradient {
    0% { background-position: 0% 50%; background-size: 150% 150%; }
    25% { background-size: 125% 125%; }
    50% { background-position: 100% 50%; background-size: 175% 175%; }
    75% { background-size: 125% 125%; }
    100% { background-position: 0% 50%; background-size: 150% 150%; }
}

/* --- NEW: Styling for the particles.js canvas --- */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Sits below the nav but above the video overlay */
}

/* Enhanced Glassmorphism Pane Style */
.glass-pane {
    background: linear-gradient(145deg, rgba(22, 22, 22, 0.6), rgba(18, 18, 18, 0.7));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(57, 255, 20, 0.1);
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 0 rgba(57, 255, 20, 0); 
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Interactive Glowing Border on Hover */
.glass-pane:hover {
    border-color: rgba(57, 255, 20, 0.5);
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.05),
        0 0 25px 0 rgba(57, 255, 20, 0.2);
}

/* Accent Color */
.accent-color {
    color: #39ff14;
}
.bg-accent {
    background-color: #39ff14;
}
.border-accent {
    border-color: #39ff14;
}

/* Hero Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Pushed to the very back */
}
#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* styles.css */
.hero-overlay {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 5%, rgba(10, 10, 10, 0.5) 50%, rgba(10, 10, 10, 0.3) 100%);
    z-index: 2; /* Sits on top of particles but below text */
}

/* === NAVBAR STYLES START === */
#header {
    transition: top 0.4s ease-in-out;
}

#header.header-hidden {
    top: -120px; /* Hides the header by moving it up */
}

.gnome-panel-item {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(57, 255, 20, 0.1);
    border-radius: 9999px; /* pill shape */
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.gnome-panel-item:hover {
    border-color: rgba(57, 255, 20, 0.5);
    box-shadow: 0 0 25px 0 rgba(57, 255, 20, 0.2);
}

/* For the mobile menu dropdown */
.gnome-menu-panel {
    background: rgba(10, 10, 10, 0.7); /* Slightly more opaque for readability */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(57, 255, 20, 0.1);
    border-radius: 1.5rem; /* 24px */
}
/* === NAVBAR STYLES END === */


/* Scroll-triggered Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Button Style */
.btn {
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: #39ff14;
    color: #0a0a0a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-primary:hover {
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}
.btn-secondary {
    border: 2px solid #39ff14;
    color: #39ff14;
    font-weight: 700;
}
.btn-secondary:hover {
     background-color: #39ff14;
     color: #0a0a0a;
}

/* Workshop Card inherits glass-pane styles */
.workshop-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.workshop-card:hover {
    transform: translateY(-10px);
}


/* Page transition */
#main-content {
    animation: fadeInPage 0.7s ease-in-out;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Additional animation keyframes from original code */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes animate-fade-in-down {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes animate-fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-down {
    animation: animate-fade-in-down 0.8s ease-out both;
}
.animate-fade-in-up {
    animation: animate-fade-in-up 0.8s ease-out both;
}
/* Style for the new Register button */
.btn-register {
    border: 2px solid #39ff14;
    color: #39ff14;
    padding: 0.75rem 2rem;
    border-radius: 9999px; /* This creates the oval shape */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background-color: #39ff14;
    color: #0a0a0a;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.6); /* This creates the glow effect */
}

/* Bento Grid Specific Item Styling */
.bento-grid-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Vertical Timeline Styles */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #39ff14;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 15px #39ff14, 0 0 25px #39ff14, 0 0 35px #39ff14;
    animation: glow-pulse 2s infinite ease-in-out;
}
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 10px #39ff14, 0 0 15px #39ff14;
    }
    50% {
        box-shadow: 0 0 20px #39ff14, 0 0 30px #39ff14, 0 0 40px #39ff14;
    }
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-left: 0;
    padding-right: 50px;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-right: 0;
    padding-left: 50px;
    text-align: left;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #0a0a0a;
    border: 4px solid #39ff14;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}
.timeline-item:hover::after {
    transform: scale(1.2);
    box-shadow: 0 0 15px #39ff14;
}

/* TIMELINE CONTENT SHARED STYLES */
.timeline-content {
    position: relative;
    transition: all 0.4s ease;
    opacity: 0.8;
    transform: translateY(20px);
}
.fade-in-section.is-visible .timeline-item .timeline-content {
    opacity: 1;
    transform: translateY(0);
}
.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
}


/* Stagger the animation */
.fade-in-section.is-visible .timeline-item:nth-child(1) .timeline-content { transition-delay: 0.2s; }
.fade-in-section.is-visible .timeline-item:nth-child(2) .timeline-content { transition-delay: 0.4s; }
.fade-in-section.is-visible .timeline-item:nth-child(3) .timeline-content { transition-delay: 0.6s; }
.fade-in-section.is-visible .timeline-item:nth-child(4) .timeline-content { transition-delay: 0.8s; }

/* Horizontal Timeline Styles */
.horizontal-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}
.horizontal-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 5%;
    width: 90%;
    height: 4px;
    background-color: #39ff14;
    box-shadow: 0 0 10px #39ff14, 0 0 15px #39ff14;
    animation: glow-pulse 2s infinite ease-in-out;
    z-index: -1;
}
.timeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24%;
    position: relative;
    text-align: center;
}
.timeline-node {
    width: 24px;
    height: 24px;
    background-color: #0a0a0a;
    border: 4px solid #39ff14;
    border-radius: 50%;
    margin-top: 18px;
    transition: all 0.3s ease;
    z-index: 1;
}
.timeline-stage:hover .timeline-node {
    transform: scale(1.3);
    box-shadow: 0 0 15px #39ff14;
}

/* Animate horizontal timeline cards into view */
.fade-in-section.is-visible .horizontal-timeline .timeline-content {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delay for horizontal timeline */
.fade-in-section.is-visible .timeline-stage:nth-child(1) .timeline-content { transition-delay: 0.2s; }
.fade-in-section.is-visible .timeline-stage:nth-child(2) .timeline-content { transition-delay: 0.4s; }
.fade-in-section.is-visible .timeline-stage:nth-child(3) .timeline-content { transition-delay: 0.6s; }
.fade-in-section.is-visible .timeline-stage:nth-child(4) .timeline-content { transition-delay: 0.8s; }


.timeline-day {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #39ff14;
    margin-bottom: 8px;
}
.timeline-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #ffffff;
}
.timeline-description {
    font-size: 0.95rem;
    color: #a0a0a0;
}


/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-grid .lg\:col-span-2 {
        grid-column: span 1 / span 1;
    }

    /* Vertical Timeline */
    .timeline-container::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
        padding-left: 60px;
        padding-right: 10px;
    }
    .timeline-item::after {
        left: 21px;
    }

    /* Horizontal Timeline */
    .horizontal-timeline {
        flex-direction: column;
        padding-left: 20px;
    }
    .horizontal-timeline::before {
        left: 20px;
        top: 5%;
        width: 4px;
        height: 90%;
    }
    .timeline-stage {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 30px;
        text-align: left;
    }
    .timeline-node {
        margin-top: 0;
        margin-right: 20px;
    }
    .horizontal-timeline .timeline-content {
        margin-top: -10px;
        width: calc(100% - 44px);
    }
}
.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.team-card:hover {
    transform: translateY(-10px);
}
/* --- STYLES FOR COURSE & CHAPTERS PAGE --- */

/* For the aspect ratio of the video player */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}
.aspect-h-9 > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Chapter Item Styling */
.chapter-item {
    background-color: rgba(30, 30, 30, 0.5);
    border-left: 4px solid transparent;
}

.chapter-item:hover {
    background-color: rgba(57, 255, 20, 0.1);
    border-left-color: rgba(57, 255, 20, 0.5);
}

.chapter-item.active-chapter {
    background-color: rgba(57, 255, 20, 0.2);
    border-left-color: #39ff14;
    color: #ffffff;
}

.chapter-item.active-chapter i {
    color: #39ff14;
}
/* ======================================================= */
/* START: FLOATING CHATBOT CSS                             */
/* ======================================================= */
#chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #39ff14 #374151;
}
#chat-messages::-webkit-scrollbar { width: 8px; }
#chat-messages::-webkit-scrollbar-track { background: #374151; }
#chat-messages::-webkit-scrollbar-thumb {
    background-color: #39ff14;
    border-radius: 20px;
    border: 3px solid #374151;
}
.dot-flashing {
  position: relative; width: 8px; height: 8px; border-radius: 5px;
  background-color: #9880ff; color: #9880ff;
  animation: dotFlashing 1s infinite linear alternate;
  animation-delay: .5s; display: inline-block; margin: 0 5px;
}
.dot-flashing::before, .dot-flashing::after {
  content: ''; display: inline-block; position: absolute; top: 0;
}
.dot-flashing::before {
  left: -12px; width: 8px; height: 8px; border-radius: 5px;
  background-color: #9880ff; color: #9880ff;
  animation: dotFlashing 1s infinite alternate; animation-delay: 0s;
}
.dot-flashing::after {
  left: 12px; width: 8px; height: 8px; border-radius: 5px;
  background-color: #9880ff; color: #9880ff;
  animation: dotFlashing 1s infinite alternate; animation-delay: 1s;
}
@keyframes dotFlashing {
  0% { background-color: #9880ff; }
  50%, 100% { background-color: #6c52d9; }
}
/* ======================================================= */
/* END: FLOATING CHATBOT CSS                               */
/* ======================================================= */


/* === NEW: Live Registration Button Style === */
.btn-live-registration {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0a0a0a;
    background: #39ff14;
    border: 2px solid #39ff14;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4), 0 0 30px rgba(57, 255, 20, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.btn-live-registration:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.6), 0 0 50px rgba(57, 255, 20, 0.4);
}

.live-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #0a0a0a;
    border-radius: 50%;
    margin-right: 12px;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(10, 10, 10, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(10, 10, 10, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(10, 10, 10, 0);
    }
}

/* Responsive adjustments for the button */
@media (max-width: 640px) {
    .btn-live-registration {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        /* Allow button to wrap text on small screens */
        white-space: normal;
        line-height: 1.2;
    }
}
