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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1b1b1b, #6d1a74);
    color: #ffcc00;
    display: fill;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 20px;
    background-image: url('https://axointro.pages.dev/img/IMG_0064.webp');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

/* Intro Section */
.intro {
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 0 10px #ff6600;
}

h1 {
    font-size: 3rem;
    position: relative;
    line-height: 1.2;
    color: #14b80e;
    animation: neon-glow 2s ease-in-out infinite alternate;
}

.glitch {
    color: #ff6600;
    text-shadow: 2px 2px #ff0000, -2px -2px #000000;
    animation: glitch-flicker 1s infinite alternate;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}

/* Cards Section */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.card {
    width: 200px;
    height: 240px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    text-align: center;
    padding: 20px;
    border: 2px solid #ff6600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 10px #ff6600;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    color: #ffcc00;
}

.card h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.8), 0 0 20px #ff6600;
}

@media (max-width: 768px) {
    .card {
        width: 160px;
        height: 200px;
    }

    .card h2 {
        font-size: 1.3rem;
    }

    .card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .card {
        width: 140px;
        height: 180px;
    }

    .card h2 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.75rem;
    }
}


footer {
    width: 100%;
    background-color: black;
    padding: 15px 0;
    text-align: center;
    position: relative;
    margin-top: auto; 
}

footer p {
    color: #ff6600;
    font-size: 1rem;
}

@media (max-width: 768px) {
    footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    footer p {
        font-size: 0.8rem;
    }
}

/* Halloween Bat Animations */
.bat {
    position: absolute;
    background: url('https://axointro.pages.dev/img/IMG_0063.gif') no-repeat;
    width: 50px;
    height: 30px;
    animation: fly 6s linear infinite;
}

#bat1 { top: 10%; left: -10%; animation-delay: 0s; }
#bat2 { top: 30%; left: -20%; animation-delay: 3s; }
#bat3 { top: 50%; left: -30%; animation-delay: 1.5s; }

@keyframes fly {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(200%, 50%) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Mobile Optimization for Bats */
@media (max-width: 480px) {
    .bat {
        width: 35px;
        height: 21px;
    }
}

/* Floating Ghosts */
.ghost {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('https://axointro.pages.dev/img/IMG_0066.png') no-repeat center;
    background-size: contain;
    animation: float 4s infinite ease-in-out;
    opacity: 0.7;
}