body {
    background-color: #000000;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
}

.blinking-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #C2FFC7;
    animation: typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
    margin: 0 auto;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #C2FFC7;
    }
}

.youtube-overlay {
    position: fixed;
    left: -320px;
    top: 100px;
    transform: none;
    width: 320px;
    background: rgba(0, 0, 0, 0.9);
    transition: left 0.3s ease;
    z-index: 1000;
}

.youtube-overlay.visible {
    left: 0;
}

.youtube-overlay.fullscreen {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.youtube-controls {
    position: absolute;
    right: -40px;
    top: 20px;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1001;
}

.youtube-overlay.fullscreen .youtube-controls {
    right: 20px;
    top: 20px;
    transform: none;
}

.youtube-toggle-btn,
.youtube-expand-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(194, 255, 199, 0.15);
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(194, 255, 199, 0.1);
}

.youtube-toggle-btn:hover,
.youtube-expand-btn:hover {
    background: rgba(194, 255, 199, 0.25);
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(194, 255, 199, 0.2);
}

.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.fullscreen-overlay.visible {
    display: block;
}

#youtubePlayer {
    width: 100%;
    height: 180px;
}

.youtube-overlay.fullscreen #youtubePlayer {
    width: 90vw;
    height: 90vh;
}

/* Updated Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
    overflow-y: auto;
    /* Allow scrolling within modal */
}

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

.modal-content {
    position: relative;
    background: #111111;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #C2FFC7;
    width: 90%;
    max-width: 600px;
    border-radius: 1rem;
    max-height: calc(100vh - 4rem);
    /* Account for margin */
    overflow-y: auto;
}

/* Hide body scrollbar when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(194, 255, 199, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(194, 255, 199, 0.5);
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #C2FFC7;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(194, 255, 199, 0.1);
    border: 1px solid rgba(194, 255, 199, 0.2);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(194, 255, 199, 0.2);
    transform: translateY(-2px);
}

.social-link img {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
}
