/* Lock orientation to portrait on mobile */
@media screen and (orientation: landscape) and (max-height: 768px) {
    body::before {
        content: "Please rotate your device to portrait mode";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: 600;
        text-align: center;
        z-index: 10000;
        backdrop-filter: blur(20px);
        font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Arial, sans-serif;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .slideshow-container,
    .bottom-description-area,
    .contact-button,
    .roulette-button,
    .main-title,
    .button-separator {
        display: none !important;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    /* Performance optimizations */
    will-change: scroll-position;
    transform: translateZ(0);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image {
    position: absolute;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    cursor: pointer;
    /* Performance optimizations */
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.slideshow-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 5%, rgba(0, 0, 0, 0.1) 25%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 75%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.slide-image.active {
    opacity: 1;
}

/* Bottom Description Area */
.bottom-description-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    pointer-events: none;
    padding: 20px 30px 60px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.taurho-description {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    pointer-events: auto;
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Performance optimizations */
    will-change: opacity, transform;
    transform: translateZ(0);
    contain: layout style paint;
}

.taurho-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.02) 30%, 
        rgba(255, 255, 255, 0.01) 50%, 
        rgba(255, 255, 255, 0.03) 70%, 
        rgba(255, 255, 255, 0.06) 100%);
    opacity: 0.7;
    z-index: -1;
}

.taurho-description::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, 
        rgba(255, 255, 255, 0.06) 0%, 
        rgba(255, 255, 255, 0.02) 25%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: subtleGlassShimmer 8s ease-in-out infinite;
}

@keyframes subtleGlassShimmer {
    0%, 100% {
        transform: rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg);
        opacity: 0.2;
    }
    75% {
        transform: rotate(270deg);
        opacity: 0.4;
    }
}

.taurho-description:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 25px rgba(0, 0, 0, 0.15),
        0 3px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.taurho-description:hover::after {
    opacity: 1;
}

.description-content {
    color: rgba(255, 255, 255, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.description-content:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* More Info Glass Dot */
.more-info-glass-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    /* Performance optimizations */
    will-change: transform, opacity, box-shadow;
    transform: translateZ(0);
    contain: layout style paint;
}

.more-info-glass-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.05) 40%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.more-info-glass-dot svg {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.more-info-glass-dot:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.more-info-glass-dot:hover::before {
    opacity: 1;
}

.more-info-glass-dot:hover svg {
    color: rgba(255, 255, 255, 0.85);
    transform: scale(1.1);
}

.more-info-glass-dot:active {
    transform: translateY(0) scale(1);
    box-shadow: 
        0 1px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.taurho-description .tau-rho {
    font-weight: 500;
    color: rgba(180, 230, 255, 0.7);
    letter-spacing: 0.3px;
}

.taurho-description .staurogram {
    font-size: 13px;
    font-weight: 500;
    color: rgba(200, 240, 255, 0.8);
    margin: 0 1px;
}

/* Mobile adjustments for description text */
@media (max-width: 480px) {
    .bottom-description-area {
        padding: 15px 20px 100px 20px;
    }
    
    .taurho-description {
        font-size: 10px;
    }
    
    .taurho-description {
        gap: 8px;
    }
    
    .description-content {
        font-size: 10px;
    }
    
    .more-info-glass-dot {
        width: 24px;
        height: 24px;
    }
    
    .more-info-glass-dot svg {
        width: 14px;
        height: 14px;
    }
}

/* Taurho modal specific styling for smaller text */
.taurho-modal-content {
    font-size: 14px !important;
}

.taurho-modal-content h3 {
    font-size: 16px !important;
    margin: 0 0 10px 0 !important;
}

.taurho-modal-content p {
    font-size: 14px !important;
    margin: 8px 0 !important;
    font-weight: 400 !important;
}

.taurho-modal-content strong {
    font-size: 14px !important;
}

@media (max-width: 768px) {
    .taurho-modal-content {
        font-size: 13px !important;
    }
    
    .taurho-modal-content h3 {
        font-size: 15px !important;
    }
    
    .taurho-modal-content p {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .taurho-modal-content {
        font-size: 12px !important;
    }
    
    .taurho-modal-content h3 {
        font-size: 14px !important;
    }
    
    .taurho-modal-content p {
        font-size: 12px !important;
    }
}

.roulette-button {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 12px 20px;
    background: rgba(128, 128, 128, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    cursor: pointer;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        inset 1px 0 0 rgba(255, 255, 255, 0.1),
        inset -1px 0 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 44px;
    /* Performance optimizations */
    will-change: transform, opacity, box-shadow;
    transform: translateZ(0);
    contain: layout style paint;
}

.roulette-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Performance optimizations */
    will-change: background, transform;
    transform: translateZ(0);
}

.roulette-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 30%, 
        transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    /* Performance optimizations */
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.roulette-button:hover::after {
    background: radial-gradient(circle at center, 
        rgba(180, 230, 255, 0.4) 0%, 
        rgba(150, 220, 255, 0.2) 30%, 
        transparent 70%);
}

.roulette-button:hover {
    background: rgba(150, 220, 255, 0.15);
    border-color: rgba(180, 230, 255, 0.4);
    color: rgba(180, 230, 255, 1);
    transform: translateY(-2px) scale(1.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 
        0 16px 48px rgba(150, 220, 255, 0.25),
        0 8px 16px rgba(150, 220, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        inset 1px 0 0 rgba(255, 255, 255, 0.2),
        inset -1px 0 0 rgba(0, 0, 0, 0.05),
        0 0 20px rgba(180, 230, 255, 0.3);
}

.roulette-button:hover::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(180, 230, 255, 0.3) 25%, 
        rgba(150, 220, 255, 0.2) 50%, 
        rgba(180, 230, 255, 0.3) 75%, 
        rgba(255, 255, 255, 0.4) 100%);
    animation: borderShimmerBlue 2s ease-in-out infinite;
}

.roulette-button:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: rippleEffectBlue 1.5s ease-out infinite;
}

@keyframes borderShimmer {
    0%, 100% { 
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.5) 0%, 
            rgba(255, 255, 255, 0.2) 25%, 
            rgba(255, 255, 255, 0.1) 50%, 
            rgba(255, 255, 255, 0.2) 75%, 
            rgba(255, 255, 255, 0.4) 100%);
        /* Performance optimization */
        will-change: background;
    }
    50% { 
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.6) 0%, 
            rgba(255, 255, 255, 0.3) 25%, 
            rgba(255, 255, 255, 0.15) 50%, 
            rgba(255, 255, 255, 0.3) 75%, 
            rgba(255, 255, 255, 0.5) 100%);
    }
}

@keyframes borderShimmerPurple {
    0%, 100% { 
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.5) 0%, 
            rgba(186, 85, 211, 0.3) 25%, 
            rgba(138, 43, 226, 0.2) 50%, 
            rgba(186, 85, 211, 0.3) 75%, 
            rgba(255, 255, 255, 0.4) 100%);
    }
    50% { 
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.6) 0%, 
            rgba(186, 85, 211, 0.4) 25%, 
            rgba(138, 43, 226, 0.3) 50%, 
            rgba(186, 85, 211, 0.4) 75%, 
            rgba(255, 255, 255, 0.5) 100%);
    }
}

@keyframes borderShimmerBlue {
    0%, 100% { 
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.5) 0%, 
            rgba(180, 230, 255, 0.3) 25%, 
            rgba(150, 220, 255, 0.2) 50%, 
            rgba(180, 230, 255, 0.3) 75%, 
            rgba(255, 255, 255, 0.4) 100%);
        /* Performance optimization */
        will-change: background;
    }
    50% { 
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.6) 0%, 
            rgba(180, 230, 255, 0.4) 25%, 
            rgba(150, 220, 255, 0.3) 50%, 
            rgba(180, 230, 255, 0.4) 75%, 
            rgba(255, 255, 255, 0.5) 100%);
    }
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 0.8;
        /* Performance optimization */
        will-change: transform, opacity;
    }
    50% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

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

@keyframes rippleEffectBlue {
    0% {
        transform: scale(0);
        opacity: 0.8;
        /* Performance optimization */
        will-change: transform, opacity;
    }
    50% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.roulette-button:active {
    transform: translateY(-1px) scale(0.98);
    background: rgba(128, 128, 128, 0.08);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        inset 1px 0 0 rgba(255, 255, 255, 0.1),
        inset -1px 0 0 rgba(0, 0, 0, 0.08),
        0 0 15px rgba(255, 255, 255, 0.08);
}

.roulette-button:active::after {
    transform: scale(0.8);
    opacity: 0.6;
}

.contact-button {
    position: fixed;
    top: 30px;
    left: 30px;
    padding: 12px 20px;
    background: rgba(128, 128, 128, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    cursor: pointer;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        inset 1px 0 0 rgba(255, 255, 255, 0.1),
        inset -1px 0 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 44px;
    /* Performance optimizations */
    will-change: transform, opacity, box-shadow;
    transform: translateZ(0);
    contain: layout style paint;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0.2) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Performance optimizations */
    will-change: background, transform;
    transform: translateZ(0);
}

.contact-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 30%, 
        transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    /* Performance optimizations */
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.contact-button:hover {
    background: rgba(128, 128, 128, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        inset 1px 0 0 rgba(255, 255, 255, 0.2),
        inset -1px 0 0 rgba(0, 0, 0, 0.05),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.contact-button:hover::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.2) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.2) 75%, 
        rgba(255, 255, 255, 0.4) 100%);
    animation: borderShimmer 2s ease-in-out infinite;
}

.contact-button:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: rippleEffect 1.5s ease-out infinite;
}

.contact-button:active {
    transform: translateY(-1px) scale(0.98);
    background: rgba(128, 128, 128, 0.08);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        inset 1px 0 0 rgba(255, 255, 255, 0.1),
        inset -1px 0 0 rgba(0, 0, 0, 0.08),
        0 0 15px rgba(255, 255, 255, 0.08);
}

.contact-button:active::after {
    transform: scale(0.8);
    opacity: 0.6;
}

/* Main Title */
.main-title {
    position: fixed;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 25%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.85) 75%,
        rgba(255, 255, 255, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Arial, sans-serif;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4),
                 0 0 40px rgba(255, 255, 255, 0.3),
                 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    user-select: none;
    -webkit-user-select: none;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    pointer-events: none;
    /* Performance optimizations */
    will-change: transform;
    transform: translateX(-50%) translateZ(0);
    contain: layout style paint;
}

/* Liquid Glass iOS 16 Button Separator */
.button-separator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        transparent 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 900;
    pointer-events: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.button-separator::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.button-separator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.08) 100%);
    mix-blend-mode: overlay;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Performance optimizations */
    will-change: opacity, visibility;
    transform: translateZ(0);
    contain: layout style paint;
    /* Prevent any accidental click-through or inherited behaviors */
    pointer-events: auto;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.liquid-glass-modal {
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    padding: 30px;
    position: relative;
    isolation: isolate;
    margin: 0 20px;
    
    /* Liquid glass effect */
    background-color: rgb(255 255 255 / 15%);
    color: rgb(255 255 255 / 90%);
    text-shadow: 0 2px 4px rgb(0 0 0 / 10%);
    border-radius: 2rem;
    box-shadow: 0 6px 6px rgb(0 0 0 / 20%), 0 0 20px rgb(0 0 0 / 10%);
    
    /* Animation */
    transform: scale(0.8) translateY(50px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Performance optimizations */
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: layout style paint;
    /* Prevent click-through behavior */
    pointer-events: auto;
    cursor: default;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .liquid-glass-modal {
        width: calc(100% - 40px);
        margin: 0 20px;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .liquid-glass-modal {
        width: calc(100% - 30px);
        margin: 0 15px;
        padding: 20px;
    }
}

.liquid-glass-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    backdrop-filter: blur(3px);
    filter: url(#glass-distortion);
    z-index: -1;
}

.liquid-glass-modal::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 2px 2px 1px 0 rgb(255 255 255 / 50%), inset -1px -1px 1px 1px rgb(255 255 255 / 50%);
}

.modal-overlay.show .liquid-glass-modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 5;
    padding-bottom: 20px;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(150, 220, 255, 0.3) 20%,
        rgba(180, 230, 255, 0.5) 50%,
        rgba(150, 220, 255, 0.3) 80%,
        transparent 100%);
    box-shadow: 0 1px 3px rgba(150, 220, 255, 0.2),
                0 0 10px rgba(150, 220, 255, 0.1);
    animation: liquidGlassSeparator 3s ease-in-out infinite;
}

@keyframes liquidGlassSeparator {
    0%, 100% {
        background: linear-gradient(90deg, 
            transparent 0%,
            rgba(150, 220, 255, 0.3) 20%,
            rgba(180, 230, 255, 0.5) 50%,
            rgba(150, 220, 255, 0.3) 80%,
            transparent 100%);
        box-shadow: 0 1px 3px rgba(150, 220, 255, 0.2),
                    0 0 10px rgba(150, 220, 255, 0.1);
    }
    50% {
        background: linear-gradient(90deg, 
            transparent 0%,
            rgba(180, 230, 255, 0.4) 20%,
            rgba(200, 240, 255, 0.6) 50%,
            rgba(180, 230, 255, 0.4) 80%,
            transparent 100%);
        box-shadow: 0 1px 4px rgba(180, 230, 255, 0.3),
                    0 0 15px rgba(180, 230, 255, 0.2);
    }
}

.modal-title {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(200, 240, 255, 0.9) 25%,
        rgba(150, 220, 255, 0.85) 50%,
        rgba(180, 230, 255, 0.9) 75%,
        rgba(255, 255, 255, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Arial, sans-serif;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(150, 220, 255, 0.3),
                 0 0 40px rgba(150, 220, 255, 0.2),
                 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: liquidGlassShimmer 4s ease-in-out infinite;
    overflow: hidden;
}


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

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

#tauPart, #rhoPart {
    transition: opacity 0.5s ease-in-out;
}

#tauPart.hidden, #rhoPart.hidden {
    opacity: 0;
}

@keyframes liquidGlassShimmer {
    0%, 100% {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.95) 0%,
            rgba(200, 240, 255, 0.9) 25%,
            rgba(150, 220, 255, 0.85) 50%,
            rgba(180, 230, 255, 0.9) 75%,
            rgba(255, 255, 255, 0.95) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    50% {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 1) 0%,
            rgba(180, 230, 255, 0.95) 25%,
            rgba(120, 200, 255, 0.9) 50%,
            rgba(160, 220, 255, 0.95) 75%,
            rgba(255, 255, 255, 1) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

.close-button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 400;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    overflow: hidden;
    /* Performance optimizations */
    will-change: transform, opacity, box-shadow;
    transform: translateZ(0);
    contain: layout style paint;
}

.close-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.08) 30%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.close-button:hover::before {
    opacity: 1;
}

.close-button:active {
    transform: translateY(0) scale(1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.modal-content {
    color: rgba(255, 255, 255, 0.85);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.5;
    flex: 1;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    letter-spacing: -0.01em;
}

.contact-info p {
    margin: 16px 0;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    z-index: 10;
    font-size: 24px;
}

.contact-info a:hover {
    color: rgba(255, 255, 255, 1);
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.contact-info strong {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 18px;
    letter-spacing: -0.01em;
}