/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navbar Customization */
.navbar {
    padding: 1rem 2rem;
    background: rgba(31, 41, 55, 0.9); /* Dark background with slight transparency */
    transition: background-color 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background-color: #1f2937; /* Dark background when scrolled */
    padding: 0.5rem 2rem; /* Reduced padding when scrolled */
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s;
}

.navbar-brand:hover {
    color: #60a5fa; /* Light blue on hover */
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    color: #e5e7eb;
    transition: color 0.3s, transform 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #60a5fa; /* Light blue on hover */
    transform: translateY(-3px); /* Subtle lift effect */
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #4f46e5, #3b82f6); /* Gradient background */
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
    border-bottom: 5px solid #fff;
    position: relative;
    overflow: hidden;
    animation: slideIn 1s ease-out;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

header p {
    font-size: 1.5rem;
    margin: 0;
    animation: fadeInUp 1.5s ease-out;
    position: relative;
    z-index: 2;
}

/* Main Content Styles */
.container {
    padding: 0 2rem;
}

.game-image img {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 15px;
}

.game-image img:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-game {
    margin: 0.5rem;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-game:hover {
    transform: scale(1.05);
    background-color: #2563eb; /* Darker blue on hover */
}

/* Features Section Styles */
#features {
    padding: 3rem 2rem;
    background-color: #e5e7eb;
}

#features h2 {
    color: #4f46e5;
    animation: fadeIn 1s ease-in-out;
}

#features .fa {
    color: #3b82f6;
    transition: color 0.3s, transform 0.3s;
}

#features .fa:hover {
    color: #2563eb;
    transform: rotate(15deg); /* Subtle rotation effect */
}

#features .row {
    margin-bottom: 2rem;
}

#features h4 {
    font-size: 1.5rem;
    margin: 1rem 0;
    transition: color 0.3s, transform 0.3s;
}

#features h4:hover {
    color: #4f46e5;
    transform: translateY(-5px); /* Subtle lift effect */
}

/* Contact Section Styles */
#contact {
    background-color: #ffffff;
    padding: 3rem 2rem;
}

#contact form {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-in-out;
}

#contact .form-control {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#contact .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.2rem rgba(75, 85, 99, 0.25);
}

/* Footer Styles */
footer {
    background-color: #1f2937;
    padding: 1rem 2rem;
    color: #e5e7eb;
    text-align: center;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1rem;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .card-img-top {
        height: 150px;
    }

    .btn-game {
        margin: 0.25rem;
        font-size: 0.875rem;
    }
}

/* Mobile Enhancements for Devices <= 600px */
@media (max-width: 600px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-nav .nav-link {
        font-size: 1rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 0.875rem;
    }

    .game-image img {
        width: 100%;
        height: auto;
    }

    #contact form {
        padding: 1.5rem;
    }

    .btn-game {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}
