/* Surfboard Easter Egg */
.surfboard-easter-egg {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.surfboard-easter-egg:hover {
    animation: surf 0.6s ease-in-out infinite;
    transform: scale(1.2);
}

.surfboard-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(-15deg);
    }
    50% {
        transform: translateY(-15px) rotate(-10deg);
    }
}

/* Surf animation on hover */
@keyframes surf {
    0%, 100% {
        transform: scale(1.2) rotate(-20deg) translateX(0);
    }
    25% {
        transform: scale(1.2) rotate(-15deg) translateX(-3px);
    }
    75% {
        transform: scale(1.2) rotate(-25deg) translateX(3px);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .surfboard-easter-egg {
        bottom: 15px;
        right: 15px;
    }

    .surfboard-icon {
        width: 40px;
        height: 40px;
    }
}

/* YouTube popup modal */
.youtube-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.youtube-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.youtube-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: all 0.3s ease;
    z-index: 10001;
}

.youtube-modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: #ef4444;
    color: white;
}

.youtube-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.youtube-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

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

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

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .youtube-modal-content {
        width: 95%;
        max-width: 95%;
    }

    .youtube-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
        background: rgba(255, 255, 255, 0.9);
    }
}
