/* Import Google Fonts - must be at the top */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@200&display=swap');

/* Font Face Declarations */
@font-face {
    font-family: 'WebNEC';
    src: url('fonts/NEC.woff') format('woff');
}

@font-face {
    font-family: 'Sparrow';
    src: url('fonts/Cordata.woff') format('woff');
}

@font-face {
    font-family: 'Olive';
    src: url('fonts/Olivetti.woff') format('woff');
}

@font-face {
    font-family: 'Compaq';
    src: url('fonts/Compaq.woff') format('woff');
}

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

body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background-color: #000;
}

.datetime {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-family: 'Sparrow', monospace;
    font-size: 1rem;
    opacity: 0.6;
    z-index: 10;
    padding: 10px;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

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

.content-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.main-text {
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    font-family: 'WebNEC', monospace;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    min-height: 1.2em;
}

/* Blinking cursor animation */
.cursor {
    display: inline-block;
    width: 3px;
    height: 0.7em;
    background-color: white;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: baseline;
}

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

/*FadeIn Anim */
@keyframes fadeIn{
    0% {opacity: 0.01}
    100% {opacity: 1}
  }

.button-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1rem 4.5rem;
    font-size: 2.1rem;
    font-weight: 500;
    font-family: 'Compaq', monospace;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    animation-name: fadeIn;
    animation-duration: 2.1s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
    animation-delay: 3s;
    opacity: 0.01; /* Nearly invisible but still clickable */
    pointer-events: auto;
    visibility: visible; /* Ensure visibility */
    position: relative; /* Needed for absolute positioning of link */
    display: inline-block; /* Ensure button maintains its size */
    min-height: 3.5rem; /* Maintain minimum height based on padding */
}

/* Style the link inside the button to stay white */
.btn a {
    color: white;
    text-decoration: none;
    pointer-events: auto; /* Ensure link is always clickable */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn a:hover,
.btn a:visited,
.btn a:active,
.btn a:focus {
    color: white;
    text-decoration: none;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 255, 255, 0.5),
                0 0 40px rgba(255, 255, 255, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .main-text {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .button-container {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-text {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

