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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-text {
    font-family: 'Orbitron', 'Avenir Next', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.domain-text {
    font-family: 'Avenir Next', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.current-time {
    font-family: 'Orbitron', 'Avenir Next', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    white-space: nowrap;
}

/* Main Section Styles */
.main-section {
    min-height: 100vh;
    position: relative;
    padding-top: 90px;
    overflow-x: hidden;
}

/* Persistent Background */
.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg-4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 1;
    will-change: opacity, transform, filter;
    transform: translateZ(0);
    transition: filter 0.1s ease, transform 0.1s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
}

.synthwave-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.synthwave-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 60% at 50% 110%, rgba(0, 255, 136, 0.1) 0%, rgba(0, 200, 100, 0.05) 40%, rgba(0, 0, 0, 0.3) 70%);
    mix-blend-mode: screen;
}

.vignette-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(120% 80% at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.7) 100%);
}

/* Schedule Content */
.schedule-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px 32px;
}

/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Schedule columns without containers */
.schedule-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.column-title {
    font-family: 'Orbitron', 'Avenir Next', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 4px 8px 4px;
}

.workshops-column .column-title {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.speakers-column .column-title {
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}


/* Schedule Items */
.schedule-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-item {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.schedule-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.3s ease;
}

.schedule-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.workshops-column .schedule-item::after {
    background: rgba(0, 255, 136, 0.3);
}

.speakers-column .schedule-item::after {
    background: rgba(0, 255, 136, 0.3);
}

.schedule-item.active {
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
    transform: translateX(4px);
}

.schedule-item.active::before {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 0, 0, 0));
}

.schedule-item.active::after {
    width: 6px;
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.schedule-item.past {
    opacity: 0.4;
}

.schedule-item.upcoming {
    opacity: 0.7;
}

.schedule-item:hover {
    transform: translateX(4px);
}

.schedule-item.active:hover {
    transform: translateX(6px);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.item-time {
    font-family: 'Orbitron', 'Avenir Next', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-countdown {
    font-family: 'Orbitron', 'Avenir Next', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(0, 255, 136, 0.8);
    background: rgba(0, 255, 136, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.schedule-item.active .item-time {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.time-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #00ff88;
    font-weight: 700;
}

.item-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
    line-height: 1.3;
}

.item-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-item.active .item-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Pulse animation for active items */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
    }
}

.schedule-item.active {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Terminal effect - green text with glow */
.terminal-text {
    color: #00ff41;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .nav-container {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nav-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .domain-text {
        font-size: 0.85rem;
    }

    .current-time {
        font-size: 0.9rem;
        align-self: flex-start;
    }

    .schedule-content {
        padding: 12px 12px 24px;
    }

    .column-title {
        font-size: 1.2rem;
        padding: 12px 16px;
    }

    .schedule-items {
        gap: 8px;
    }

    .schedule-item {
        padding: 12px 14px;
    }

    .item-time {
        font-size: 0.85rem;
    }

    .item-title {
        font-size: 0.95rem;
    }

    .item-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .bg-slide {
        background-attachment: scroll;
    }
}

@media screen and (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
    }

    .current-time {
        font-size: 0.85rem;
    }

    .column-title {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-content {
    animation: fadeInUp 1s ease-out;
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    * {
        -webkit-tap-highlight-color: rgba(0, 255, 65, 0.1);
        touch-action: manipulation;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
