@font-face {
    font-family: 'Comic Neue';
    src: url('fonts/ComicNeue-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comic Neue';
    src: url('fonts/ComicNeue-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comic Sands lol';
    src: url('fonts/comic-sands.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-comic: 'Comic Sands lol', 'Comic Sans MS', 'Comic Sans', 'Comic Neue', 'cursive';
}

body {
    overflow: hidden; /* Prevent all scrolling */
    margin: 0;
    padding: 0;
    background-color: black;
    height: 100vh; /* Lock body height */
}

.landing-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.welcome-text {
    color: white;
    font-family: var(--font-comic);
    font-size: 2.5rem;
    margin: 0 0 2rem 0;
    text-align: center;
}

.button-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-text {
    display: flex;
    flex-direction: column;
}

.nav-name {
    color: white;
    font-family: var(--font-comic);
    font-size: 1.25rem;
}

.nav-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-comic);
    font-size: 0.75rem;
}

.nav-icons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.nav-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-icon:hover {
    color: white;
    transform: scale(1.1);
}

.landing-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.click-me-btn {
    font-family: var(--font-comic);
    font-size: 2rem;
    padding: 1rem 3rem;
    background-color: white;
    color: black;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    position: relative;
    z-index: 1;
}

.click-me-btn:hover {
    transform: scale(1.1);
    background-color: #ddd;
    z-index: 3;
}

.pointing-hand {
    width: 100px;
    height: auto;
    position: relative;
    z-index: 2;
}

.left-hand {
    transform: scaleX(-1);
    animation: point-right 0.8s ease-in-out infinite;
}

.right-hand {
    animation: point-left 0.8s ease-in-out infinite;
}

@keyframes point-left {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
    }
}

@keyframes point-right {
    0%, 100% {
        transform: scaleX(-1) translateX(0);
    }
    50% {
        transform: scaleX(-1) translateX(-20px);
    }
}

.drone-container {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden; /* Prevent children from causing overflow */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.drone-container.visible {
    opacity: 1;
}

.flying-drone {
    position: absolute;
    /* Position the drone vertically */
    top: 25%; 
    /* Drone size for laptops/desktops */
    width: 25%; 
    /* Start the flight animation */
    animation-name: fly-across;
    animation-duration: 20s; /* Duration of one flight cycle */
    animation-timing-function: linear; /* Smooth, constant speed */
    animation-iteration-count: infinite; /* Loop indefinitely */
    /* Keep drone centered vertically relative to 'top' value */
    transform: translateY(-50%); 
}

/* Tablet styles (portrait and smaller landscape) */
@media (max-width: 1024px) {
    .flying-drone {
        width: 35%;
        top: 30%;
        animation-duration: 20s; /* Slightly slower for better visibility */
    }
}

/* Mobile landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .flying-drone {
        width: 20%;
        top: 20%;
        animation-duration: 20s;
    }
}

/* Mobile portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .flying-drone {
        width: 35%;
        top: 25%;
        animation-duration: 17s; /* Slower for smaller screens */
    }
}

/* Small mobile devices */

@media (max-width: 480px) {
    .flying-drone {
        width: 60%;
        top: 20%;
        animation-duration: 17s; /* Even slower for very small screens */
    }
}

@keyframes fly-across {
    /* Start off-screen to the right */
    from {
        /* 100vw moves it to the right edge, +100% ensures it starts completely hidden */
        transform: translate(200vw, -50%); 
    }
    /* End off-screen to the left */
    to {
        /* -100% of the drone's own width ensures it ends completely hidden on the left */
        transform: translate(-100%, -50%); 
    }
}

.centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1; /* Ensures text appears above the drone */
    width: 90%;
    max-width: 600px;
    padding: 0 1rem;
    box-sizing: border-box;
}

.name {
    color: white;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-family: var(--font-comic);
    margin: 0 0 0.5rem 0;
}

.title {
    color: white;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-family: var(--font-comic);
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.ellipsis::after {
    content: '';
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

.secondary-btn {
    font-size: 1.5rem;
    padding: 0.75rem 2rem;
}

.flames-container {
    position: fixed; /* Stays at viewport bottom */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    z-index: 2;
    background-image: url('flames.gif');
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: auto 100%;
    transition: transform 0.5s ease-in-out;
}

.flames-container.hidden {
    transform: translateY(100%);
}

.cat-shill {
    position: fixed; /* Stays at viewport bottom */
    bottom: 0;
    left: 0;
    width: 30%;
    height: auto;
    z-index: 3;
    transition: transform 0.5s ease-in-out;
}

.cat-shill.hidden {
    transform: translateY(100%);
}

/* Responsive cat size */
@media (max-width: 768px) {
    .cat-shill {
        width: 60%;
    }
}

@media (max-width: 480px) {
    .cat-shill {
        width: 100%;
    }
}

/* Umbrella cat */
.umbrella-cat {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 30%;
    height: auto;
    z-index: 3;
    transform: translateY(105%);
    transform-origin: bottom center;
    transition: transform 0.5s ease-in-out;
}

.umbrella-cat.visible {
    transform: translateY(5%);
}

.umbrella-cat.rocking {
    animation: rock-start 0.5s ease-out forwards, rock 1s ease-in-out 0.5s infinite;
}

@keyframes rock-start {
    0% {
        transform: translateY(5%) rotate(0deg);
    }
    100% {
        transform: translateY(5%) rotate(-3deg);
    }
}

@keyframes rock {
    0%, 100% {
        transform: translateY(5%) rotate(-3deg);
    }
    50% {
        transform: translateY(5%) rotate(3deg);
    }
}

/* Responsive umbrella cat size */
@media (max-width: 768px) {
    .umbrella-cat {
        width: 60%;
    }
}

@media (max-width: 480px) {
    .umbrella-cat {
        width: 100%;
    }
}

.software-guy {
    position: fixed;
    right: 0;
    top: 30%;
    transform: translateX(100%) translateY(-50%) rotate(-90deg);
    width: 350px;
    height: auto;
    z-index: 5;
    animation: slide-wiggle 10s ease-in-out infinite;
}

@keyframes slide-wiggle {
    0% {
        transform: translateX(100%) translateY(-50%) rotate(-90deg);
    }
    /* Slide in */
    15% {
        transform: translateX(5%) translateY(-50%) rotate(-90deg);
    }
    20% {
        transform: translateX(5%) translateY(-50%) rotate(-90deg);
    }
    25% {
        transform: translateX(5%) translateY(-50%) rotate(-90deg);
    }
    30% {
        transform: translateX(5%) translateY(-50%) rotate(-90deg);
    }
    35% {
        transform: translateX(5%) translateY(-50%) rotate(-90deg);
    }
    40% {
        transform: translateX(5%) translateY(-50%) rotate(-90deg);
    }
    /* Wiggle
    20% {
        transform: translateX(5%) translateY(-50%) rotate(-85deg);
    }
    25% {
        transform: translateX(5%) translateY(-50%) rotate(-95deg);
    }
    30% {
        transform: translateX(5%) translateY(-50%) rotate(-85deg);
    }
    35% {
        transform: translateX(5%) translateY(-50%) rotate(-95deg);
    }
    40% {
        transform: translateX(5%) translateY(-50%) rotate(-90deg);
    } */
    /* Slide out */
    55% {
        transform: translateX(100%) translateY(-50%) rotate(-90deg);
    }
    100% {
        transform: translateX(100%) translateY(-50%) rotate(-90deg);
    }
}

/* Explosion Easter Egg */
.nav-brand {
    cursor: pointer;
}

.explosion-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: none;
    pointer-events: none;
}

.explosion-overlay.active {
    display: block;
}

.explosion-overlay img {
    position: absolute;
    bottom: -10%;
    left: 0;
    width: 100%;
    height: 110%;
    object-fit: cover;
    object-position: center bottom;
}

.drone-container.shaking {
    animation: shake .5s ease-in-out;
}

.drone-container.blown-up {
    opacity: 0 !important;
    transition: opacity 1s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-20px) rotate(-2deg); }
    20% { transform: translateX(20px) rotate(2deg); }
    30% { transform: translateX(-20px) rotate(-2deg); }
    40% { transform: translateX(20px) rotate(2deg); }
    50% { transform: translateX(-15px) rotate(-1deg); }
    60% { transform: translateX(15px) rotate(1deg); }
    70% { transform: translateX(-10px) rotate(-1deg); }
    80% { transform: translateX(10px) rotate(1deg); }
    90% { transform: translateX(-5px); }
}

.blown-up-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    text-align: center;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.blown-up-message.visible {
    display: block;
    opacity: 1;
}

.blown-up-message h1 {
    color: white;
    font-family: var(--font-comic);
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(255, 100, 0, 0.8);
}

/* Rain effect overlay */
#rainCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

#rainCanvas canvas {
    display: block;
}