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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow: hidden;
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.toggle-button {
    background: none;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
}

.toggle-button:hover {
    background: #ffffff;
    color: #000000;
}

/* Main Content */
.main-content {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 2rem 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.title {
    font-size: 2rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

/* Video End Popup */
.video-end-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.video-end-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transform: scale(0.8);
    transition: transform 0.5s ease;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #ffffff;
}

.video-end-popup.show .popup-content {
    transform: scale(1);
}

.popup-image {
    margin-bottom: 2rem;
}

.popup-image img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-btn {
    background: none;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    min-width: 120px;
}

.popup-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.popup-btn.get-tism {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.popup-btn.get-tism:hover {
    background: #ff6b6b;
    color: #ffffff;
}

.popup-btn.twitisic {
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.popup-btn.twitisic:hover {
    background: #4ecdc4;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 1.5rem;
    }
    
    .toggle-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar {
        padding: 1rem 0;
    }
    
    /* Mobile popup adjustments */
    .popup-content {
        max-width: 90%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .popup-image img {
        max-width: 150px;
    }
    
    .popup-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .popup-btn {
        width: 100%;
        max-width: 200px;
    }
}

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

.main-content {
    animation: fadeIn 1s ease-in-out;
}