/* General Styles */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: linear-gradient(135deg, #f8f8f8, #dcedc8);
    /* Light green gradient */
    text-align: center;
    min-height: 100vh;
}

/* NEW: Restrict Page Width */

.page-wrapper {
    max-width: 900px;
    /* Centered Page */
    margin: auto;
    padding: 20px;
}

/* Navbar */

/* Blurred Navbar with Better Readability */

.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    /* Increased opacity for better contrast */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease-in-out;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: auto;
}

/* Navbar Logo */

.logo {
    height: 80px;
    /* Adjust based on your logo size */
    width: auto;
}

/* Navbar Text (Ensures High Contrast) */

.navbar h1 {
    font-size: 24px;
    color: #333;
    /* Darker text for better contrast */
    font-weight: bold;
}

/* Navbar Links */

.navbar nav a {
    color: #333;
    /* Darker color for visibility */
    text-decoration: none;
    margin-left: 15px;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

/* Navbar Links Hover */

.navbar nav a:hover {
    color: #4caf50;
    /* Green highlight effect */
}

/* Hero Section - More Compact */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 35vh;
    /* Reduce height */
    background: linear-gradient(135deg, #b3e5fc, #4caf50);
    color: white;
    padding: 40px 20px;
    /* Reduce padding */
    position: relative;
}

/* Hero Content */

.hero-container {
    max-width: 600px;
    padding: 20px;
    animation: fadeInUp 1.2s ease-in-out;
}

/* Hero Heading */

.hero h1 {
    font-size: 36px;
    /* Reduce size */
    font-weight: bold;
    margin-bottom: 10px;
}

/* Hero Subtext */

.hero p {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 20px;
}

/* Call-to-Action Button */

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #ff9800;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

/* Hover Effect on Button */

.cta-button:hover {
    background: #ff5722;
    transform: scale(1.05);
}

/* Add a Decorative Soft Curve at the Bottom */

.hero::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), #f8f8f8);
    clip-path: ellipse(50% 100% at 50% 100%);
}

/* Games Section */

.games {
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    margin-top: 20px;
}

/* Fix Header Alignment */

.about h2,
.games h2 {
    text-align: left;
    /* Ensures left alignment */
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two columns */
    gap: 20px;
    /* Space between cards */
    justify-content: center;
    align-items: center;
}

/* Ensure game cards look good */

.game-card {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.game-card:hover {
    transform: translateY(-5px);
    /* Slight lift */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Make sure images look good */

.game-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* About Section */

.about {
    padding: 60px 20px;
    background: #f8f8f8;
    border-radius: 10px;
    margin: 40px auto;
    line-height: 1.8;
    font-size: 18px;
    color: #333;
    text-align: left;
}

/* Paragraph Styling */

.about p {
    margin-bottom: 15px;
}

/* Contact Section */

.contact {
    padding: 50px 20px;
    background: #f8f8f8;
    text-align: center;
    border-radius: 10px;
    margin-top: 20px;
}

/* Contact Heading */

.contact h2 {
    font-size: 28px;
    color: #2e7d32;
    margin-bottom: 10px;
    text-align: left;
}

/* Contact Paragraph */

.contact p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

/* Contact Info */

.contact-info p {
    font-size: 16px;
    margin: 5px 0;
    text-align: left;
}

/* Email Link */

.contact-info a {
    color: #4caf50;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Social Icons */

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a img {
    width: 35px;
    height: auto;
    transition: transform 0.2s ease-in-out;
}

.social-icons a img:hover {
    transform: scale(1.1);
}

/* Footer */

footer {
    text-align: center;
    padding: 15px;
    background: #8bc34a;
    color: white;
    margin-top: 20px;
}

/* Fade-in Effect */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply Animation to Sections */

.about,
.games,
.contact {
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
}

/* Ensure Sections Start Below Navbar */

.about,
.games {
    padding-top: 80px;
    /* Adjust based on navbar height */
}