* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099ff;
    --accent-color: #ff00ff;
    --bg-dark: #0a0e27;
    --bg-darker: #050814;
    --text-light: #ffffff;
    --text-glow: rgba(0, 212, 255, 0.8);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 2rem 0;
}

/* Animated particles background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.8;
    }
}

/* Main container */
.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1rem 2rem 2rem;
    max-width: 1200px;
    width: 100%;
}

/* Header styles */
.header {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.2;
}

.iot-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--text-glow);
    animation: pulse 2s ease-in-out infinite;
}

.milestone {
    display: block;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

@keyframes shimmer {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(20deg);
    }
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Sessions selector */
.sessions-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 1rem;
}

.session-card {
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    padding: 3rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.session-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.1);
}

.session-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.session-card-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.session-card-time {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.5rem 0;
}

.session-card-desc {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.8;
    margin: 0;
}

/* Session switch link */
.session-switch-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 165, 0, 0.1);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    color: #FFA500;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.session-switch-link:hover {
    background: rgba(255, 165, 0, 0.2);
    border-color: #FFA500;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.3);
}

/* Session blocks */
.session-block {
    background: rgba(0, 212, 255, 0.03);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 30px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    animation: fadeIn 1.5s ease-out;
}

.session-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.session-time {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Countdown container */
.countdown-container {
    margin: 2rem 0;
    animation: fadeIn 1.5s ease-out;
}

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

.countdown-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    min-width: 150px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2),
                inset 0 0 20px rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    animation: slideUp 1s ease-out backwards;
    cursor: pointer;
}

.time-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4),
                inset 0 0 30px rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.time-unit:nth-child(1) { animation-delay: 0.2s; }
.time-unit:nth-child(3) { animation-delay: 0.4s; }
.time-unit:nth-child(5) { animation-delay: 0.6s; }
.time-unit:nth-child(7) { animation-delay: 0.8s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.time-unit:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.4),
                inset 0 0 30px rgba(0, 212, 255, 0.2);
}

.time-value {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    background: linear-gradient(180deg, var(--text-light) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--text-glow);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.time-label {
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.separator {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--primary-color);
    font-weight: 900;
    animation: blink 2s ease-in-out infinite;
    margin: 0 0.5rem;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Message container */
.message-container {
    margin: 2rem 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotating-message {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    color: var(--text-light);
    font-weight: 300;
    font-style: italic;
    max-width: 700px;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    animation: messageSlide 1s ease-out;
    line-height: 1.5;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Event details */
.event-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.event-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--primary-color);
    padding: 1rem 2rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Small calendar button next to date */
.calendar-btn-small {
    width: 32px;
    height: 32px;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.calendar-btn-small svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-light);
}

.calendar-btn-small:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.calendar-btn-small:active {
    transform: translateY(0) scale(1);
}

/* Calendar dropdown */
.calendar-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
}

.calendar-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.calendar-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.calendar-option:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateX(5px);
}

.calendar-option span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Old calendar button styles - remove */
.calendar-buttons {
    display: none;
}

.calendar-btn {
    display: none;
}

/* Progress bar */
.progress-bar-container {
    margin-top: 3rem;
    width: 100%;
    max-width: 600px;
    height: 8px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 1s ease-out;
    box-shadow: 0 0 20px var(--primary-color);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 20px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 30px var(--primary-color), 0 0 40px var(--accent-color);
    }
}

/* VIBA Link - Discrete and Elegant */
.viba-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    margin-left: 2rem;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2);
    animation: vibaGlow 2s ease-in-out infinite;
}

@keyframes vibaGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2);
        border-color: rgba(0, 212, 255, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.3);
        border-color: rgba(0, 212, 255, 0.5);
        transform: scale(1.02);
    }
}

.viba-link:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
    animation: none;
}

.viba-link:hover .viba-icon {
    stroke: var(--primary-color);
}

.viba-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    transition: stroke 0.3s ease;
}

.viba-text {
    font-weight: 500;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
}

/* Slideshow button */
.slideshow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
}

.slideshow-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.slideshow-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.slideshow-icon {
    width: 20px;
    height: 20px;
    stroke: var(--primary-color);
    fill: var(--primary-color);
    transition: all 0.3s ease;
}

.slideshow-btn:hover .slideshow-icon {
    stroke: #00d4ff;
    fill: #00d4ff;
    transform: scale(1.1);
}

.slideshow-text {
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
}

/* Rankings button */
.rankings-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(138, 43, 226, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 50px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    margin-left: 2rem;
}

.rankings-link:hover {
    background: rgba(138, 43, 226, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.5);
}

.rankings-link:hover .rankings-icon {
    stroke: var(--accent-color);
}

.rankings-icon {
    width: 24px;
    height: 24px;
    stroke: var(--accent-color);
    transition: stroke 0.3s ease;
}

.rankings-text {
    font-weight: 500;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .time-unit {
        min-width: 120px;
        padding: 1.5rem 1rem;
    }

    .separator {
        display: none;
    }

    .event-details {
        gap: 1rem;
    }

    .viba-link {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .viba-icon {
        width: 18px;
        height: 18px;
    }

    .rankings-link {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
        margin-left: 1rem;
    }

    .rankings-icon {
        width: 18px;
        height: 18px;
    }
}

/* Celebration animation when countdown reaches zero */
.celebrate {
    animation: celebrate 2s ease-out infinite;
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}
