header nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #f03a47;
    transition: width 0.3s ease, left 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

header .container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    left: 50px;
    top: 5px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 100%;
    white-space: nowrap;
}

.logo img {
    width: 50px;
    height: auto;
    max-width: 100%;
    transition: width 0.3s ease;
    object-fit: contain;
}

.logo-text {
    display: none;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

@media screen and (max-width: 1024px) {
    .logo img {
        width: 50px;
    }
}

@media screen and (max-width: 768px) {
    .logo {
        max-width: 100%;
        justify-content: center;
    }

    .logo img {
        display: none;
    }

    .logo-text {
        display: block;
        text-align: center;
    }
}

header nav {
    position: absolute;
    right: 20px;
    top: 15px;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* Fire Glow Hover Effect */
header nav ul li a {
    position: relative;
    color: white;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}



/* Features Section */
.features {
    background: rgba(19, 18, 18, 0.7);
    padding: 50px 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Hero Section */

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 3D Hover Effects */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.feature-card:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Modern Buttons */
.modern-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}


.modern-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: all 0.5s ease-in-out;
    opacity: 0;
}

.modern-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #f44506, #ff2200);
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.modern-button:hover::before {
    opacity: 1;
    width: 150%;
    height: 150%;
}

.modern-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.features h2,
.features p {
    background: none;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: none
}


.feature-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-card {
    position: relative;
    width: 400px;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0);
}

/* Card Hover Effect */
.card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3, 2, 2, 0.323), rgba(255, 255, 255, 0.362));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    text-align: center;
    color: white;
    padding: 20px;
}

.feature-card:hover .card-hover {
    opacity: 1;
    transform: translateY(0);
}

.card-hover h3,
.card-hover p {
    background: none !important;
    padding: 0;
    border-radius: 0;
    box-shadow: none !important;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {

    /* Adjust header for mobile */
    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    /* Adjust hero section */
    .hero {
        height: auto;
        padding: 50px 20px;
    }

    .modern-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .modern-button {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    /* Adjust team cards */
    .team-cards {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        width: 90%;
    }

    /* Adjust feature cards */
    .feature-cards {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 90%;
    }

    /* Gallery responsiveness */
    .carousel-container {
        flex-direction: column;
    }

    .carousel-images {
        width: 100%;
    }

    .carousel-button {
        font-size: 1.5rem;
        padding: 8px 16px;
    }

    /* Video section adjustments */
    .video-container video {
        width: 100%;
        height: auto;
    }


    /*  Mobile Navigation */
    .burger-menu {
        display: none;
        flex-direction: column;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 150;
    }

    .burger-menu .bar {
        width: 30px;
        height: 4px;
        background: white;
        margin: 5px 0;
        transition: 0.3s;
    }

    /* Mobile Menu Styles */
    @media screen and (max-width: 900px) {
        nav ul {
            position: absolute;
            top: 60px;
            right: 10px;
            background: rgba(0, 0, 0, 0.95);
            padding: 15px;
            border-radius: 8px;
            list-style: none;
            flex-direction: column;
            align-items: center;
            width: 200px;
            transition: all 0.3s ease-in-out;
            opacity: 0;
            transform: translateY(-10px);
            display: none;
            /* Start hidden */
        }

        nav ul.show {
            display: flex;
            /* Show when toggled */
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
            /* Enable clicking */
        }

        nav ul.hidden {
            display: none;
            pointer-events: none;
            opacity: 0;
            transform: translateY(-10px);
        }

        nav ul li a {
            color: white;
            text-decoration: none;
            font-size: 1rem;
        }

        .burger-menu {
            display: flex;
        }
    }
}

/*footer*/

footer {
    background: rgb(20, 0, 0);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

.footer-container a img:hover {
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 60, 0, 0.7));
}

.footer-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.footer-container a {
    text-decoration: none;
    display: inline-block;
}

.logo-github {
    width: 45px;
    height: auto;

}

.logo-youtube {
    width: 50px;
    height: auto;
}

.logo-discord {
    width: 45px;
    height: auto;
}

.footer-container img:hover {
    transform: scale(1.1);
    opacity: 0.8;
    transition: 0.3s ease;
}

.footer-container img:not(:hover) {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #111;
    color: white;
    line-height: 1.6;
    padding-top: 80px;
}

/* Fixed Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, rgb(61, 0, 0), rgb(0, 0, 0));
    backdrop-filter: blur(10px);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

header .container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

header nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

/* Navigation List */
header nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

/* Ensure Nav Items Align Properly */
header nav ul li {
    display: flex;
    align-items: center;

}

/* Navigation Links */
header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #f03a47;
}

/* Fix Header for Larger Screens */
@media screen and (min-width: 1920px) {
    header {
        height: 70px;
        padding: 0 40px;
    }

    header .logo {
        font-size: 2rem;
    }

    header nav ul {
        gap: 40px;
    }

    header nav ul li a {
        font-size: 1.2rem;
    }
}

/* Fix for Ultra-Wide Screens */
@media screen and (min-width: 2560px) {
    header {
        height: 80px;
        padding: 0 60px;
    }

    header .logo {
        font-size: 2.2rem;
    }

    header nav ul {
        gap: 50px;
    }

    header nav ul li a {
        font-size: 1.3rem;
    }
}

/* Burger Menu - Appears at 900px */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 150;
}

.burger-menu .bar {
    width: 30px;
    height: 4px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

@media screen and (max-width: 1020px) {

    /* Show Burger Menu */
    .burger-menu {
        display: flex;
    }

    /* Hide regular nav */
    nav ul {
        position: absolute;
        top: 60px;
        right: 10px;
        background: rgba(0, 0, 0, 0.95);
        padding: 15px;
        border-radius: 8px;
        flex-direction: column;
        align-items: center;
        width: 200px;
        transition: all 0.3s ease-in-out;
        opacity: 0;
        transform: translateY(-10px);
        display: none;
    }

    nav ul.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
    }
}

/* Burger Menu Toggle Animation */
.burger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}