/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #130514;
}

::-webkit-scrollbar-thumb {
    background: #8e24aa;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ec09f8;
}

/* Timeline Connector Line - Purple Dominant */
.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(to bottom, #8e24aa, #ec09f8, #8e24aa);
    z-index: 0;
    opacity: 0.4;
}

@media (min-width: 768px) {
    .timeline-line::before {
        left: 50%;
        margin-left: -1px;
    }
}

.clip-path-slant {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

/* Purple Glows for soft highlights */
.neon-glow {
    box-shadow: 0 0 20px rgba(142, 36, 170, 0.4);
}

.neon-border:hover {
    box-shadow: 0 0 15px rgba(142, 36, 170, 0.5);
    border-color: #8e24aa;
}

/* Hide details initially */
.agenda-details, .bio-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Agenda speaker image colorization */
.agenda-speaker-image {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

/* Colorize speaker image on card hover */
.agenda-card:hover .agenda-speaker-image {
    filter: grayscale(0%);
}

/* Colorize speaker image when card is expanded */
.agenda-card.agenda-expanded .agenda-speaker-image,
.agenda-card:has(.agenda-expanded) .agenda-speaker-image {
    filter: grayscale(0%);
}

/* FAQ Answer - hidden by default */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0;
    margin: 0;
}

/* FAQ Answer when expanded */
.faq-answer.faq-expanded {
    padding-bottom: 3rem;
}

/* Add spacing to last paragraph in FAQ answer */
.faq-answer p:last-child {
    min-height: 1.5rem;
    margin-bottom: 0;
}

/* FAQ answer links - medium bold white, purple on hover */
.faq-answer a {
    color: #ffffff;
    font-weight: 500; /* medium bold */
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: #8e24aa; /* brand-primary purple */
}

/* Primary buttons flare animation on hover */
.bg-brand-primary,
.bg-brand-accent {
    position: relative;
    overflow: hidden;
}

.bg-brand-primary::before,
.bg-brand-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.bg-brand-primary:hover::before,
.bg-brand-accent:hover::before {
    left: 100%;
}

/* Secondary buttons flare animation on hover (e.g., "Get Single Ticket") */
.secondary-button {
    position: relative;
    overflow: hidden;
}

.secondary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.secondary-button:hover::before {
    left: 100%;
}

/* Ensure button text stays above flare */
.secondary-button > * {
    position: relative;
    z-index: 2;
}

/* Hero image glare animation on hover */
.hero-image-container {
    position: relative;
    overflow: hidden;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 10;
    pointer-events: none;
}

.hero-image-container:hover::before {
    left: 100%;
}

/* FAQ Icon - default state (collapsed) */
.faq-icon {
    color: #8e24aa; /* brand-primary */
    transform: rotate(0deg);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* FAQ Icon when expanded - bright color */
.faq-toggle-btn.active .faq-icon {
    color: #ffffff; /* white/bright */
    transform: rotate(180deg);
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    display: none;
}

/* Speaker Modal */
#speaker-modal {
    transition: opacity 0.3s ease-in-out;
}

#speaker-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#speaker-modal:not(.hidden) {
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Speaker card image - match team member card styling */
.speaker-card-image {
    object-fit: cover;
    object-position: center 25%; /* Position to show face better, similar to team member cards */
    will-change: transform;
}

/* Hero video background */
section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Hide all video controls and play button overlays */
.hero-bg-video::-webkit-media-controls {
    display: none !important;
}

.hero-bg-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.hero-bg-video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-bg-video::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-bg-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.hero-bg-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

/* Hide native video controls */
.hero-bg-video {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Hide play button overlay in all browsers */
.hero-bg-video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
}

/* Ensure video doesn't interfere with content on mobile */
@media (max-width: 768px) {
    section video {
        /* Slightly reduce video quality on mobile for performance */
        transform: scale(1.1);
    }
}

/* Custom Logo Styling */
.custom-logo-link {
    display: inline-block;
    max-height: 50px;
}

.custom-logo-link img {
    height: auto;
    max-height: 30px;
    width: auto;
}

/* Mobile: Reduce logo size to 90% of desktop */
@media (max-width: 767px) {
    .custom-logo-link {
        max-width: 90%;
    }
    
    .custom-logo-link img {
        max-width: 100%;
    }
}

footer .custom-logo-link {
    max-height: 40px;
}

footer .custom-logo-link img {
    max-height: 40px;
}

/* Hero subtitle highlight class */
.highlight {
    color: #ffffff; /* White text for highlighted words */
    font-weight: 500; /* Medium weight */
}

/* Contact page team member cards - image hover zoom and positioning */
.team-member-image {
    will-change: transform;
    object-position: center 30%; /* Move image lower to show head better */
}

/* Inner page content styling */
.entry-content {
    color: #ffffff;
}

.entry-content h2,
.entry-content h3 {
    color: #ffffff;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.entry-content ul,
.entry-content ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 2rem;
    list-style: revert;
}

/* Ordered lists - use Roman numerals like in the reference image */
.entry-content ol {
    list-style-type: upper-roman;
    padding-left: 2.5rem;
}

/* Unordered lists - use bullets */
.entry-content ul {
    list-style-type: disc;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    display: list-item;
    list-style-position: outside;
}

/* Override prose class that might hide list markers */
.entry-content.prose ul,
.entry-content.prose ol {
    list-style: revert !important;
}

.entry-content.prose ol {
    list-style-type: upper-roman !important;
}

.entry-content.prose ul {
    list-style-type: disc !important;
}

.entry-content.prose li {
    display: list-item !important;
}

/* Footer menu with vertical separators */
.footer-menu li {
    display: flex;
    align-items: center;
}

.footer-menu li:not(:last-child)::after {
    content: '|';
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

/* Speaker modal scrollable bio - Responsive height */
.speaker-bio-scroll {
    max-height: 290px;
    scrollbar-width: thin;
    scrollbar-color: rgba(142, 36, 170, 0.5) transparent;
}

@media (min-width: 768px) {
    .speaker-bio-scroll {
        max-height: 230px;
    }
}

.speaker-bio-scroll::-webkit-scrollbar {
    width: 6px;
}

.speaker-bio-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.speaker-bio-scroll::-webkit-scrollbar-thumb {
    background: rgba(142, 36, 170, 0.5);
    border-radius: 3px;
}

.speaker-bio-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(142, 36, 170, 0.7);
}

/* Speaker modal layout adjustments */
#speaker-modal-content {
    min-height: 500px;
}

/* Ensure modal container has minimum height */
#speaker-modal-container {
    min-height: 430px;
}

/* Ensure footer section (LinkedIn icon and company tag) is always visible */
#speaker-modal-content .mt-auto {
    flex-shrink: 0;
}

/* Image container adjustment for small popups */
.speaker-modal-image-container {
    transition: margin-top 0.3s ease;
}

@media (max-width: 768px) {
    #speaker-modal-content .flex-col {
        min-height: auto;
    }
    
    #speaker-modal-content .md\:w-2\/5 {
        min-height: 300px;
    }
}



/* Mobile landscape orientation adjustments */
@media (max-width: 924px) and (orientation: landscape) {
    #speaker-modal-container {
        max-height: 85vh !important;
        min-height: 0 !important;
        margin: 0.5rem;
    }
    
    #speaker-modal-content {
        min-height: 0 !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .speaker-bio-scroll {
        max-height: calc(85vh - 200px) !important;
    }
    
    /* Reduce padding in landscape for more content space */
    #speaker-modal-content .p-6 {
        padding: 1rem;
    }
    
    /* Reduce font sizes slightly in landscape */
    #speaker-modal-content h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    #speaker-modal-content .text-lg {
        font-size: 0.875rem;
    }
    
    /* Reduce spacing between elements */
    #speaker-modal-content .mb-4 {
        margin-bottom: 0.75rem;
    }
}
