body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #0f0f0f;
    color: #fff;
    line-height: 1.6;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #111;
    position: relative;
}

.site-header .logo {
    max-height: 50px;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #fff;
}

/* Hide by default on mobile */
@media (max-width: 768px) {
    .site-nav ul {
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 10px;
        border-radius: 5px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        display: none;  /* Don't take up space when hidden */
    }

    /* When menu is active (hamburger clicked) */
    .site-nav.active ul {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .site-header .logo {
        max-width: 120px;
    }
}

/* Make sure it's visible on desktop */
@media (min-width: 769px) {
    .site-nav ul {
        display: flex !important;
        opacity: 1 !important;
        transform: none !important;
        position: static;
    }
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #151515, #0f0f0f);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn, .btn-secondary {
    padding: 10px 20px;
    border: none;
    text-decoration: none;
    margin: 5px;
    display: inline-block;
}

.btn {
    background-color: #6a5acd;
    color: #fff;
    border-radius: 5px;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #6a5acd;
    color: #6a5acd;
    border-radius: 5px;
}

.featured {
    text-align: center;
    padding: 40px 20px;
}

.card-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}

.card img {
    width: 100%;
    border-radius: 10px;
}

.card-link {
    color: #6a5acd;
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #111;
    margin-top: 40px;
}


/* Footer link color fix */
footer a {
    color: #6a5acd;
    text-decoration: none;
}
footer a:hover {
    color: #a78bfa;
}

/* Card hover animation */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(106, 90, 205, 0.4);
}

/* Mobile menu animation */
.site-nav ul {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.site-nav.active ul {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger icon adjustment */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #fff;
    margin-left: auto; /* Pushes it to the far right */
}


/* Hero text and buttons fade-in sequence */
.hero h1, .hero p, .cta-buttons a {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeSlideIn 1s ease-out forwards;
}
.hero p {
    animation-delay: 0.3s;
}
.cta-buttons a {
    animation-delay: 0.6s;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
