body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    text-align: center;
}

h1 {
    margin-top: 50px;
    font-size: 2.5rem;
}

p {
    font-size: 1.2rem;
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgb(255, 255, 255); /* Semi-transparent background */
    z-index: 1000; /* Ensures the header stays above other content */
    padding: 10px 20px; /* Add some padding */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.header-content {
    max-width: 1200px; /* Limit width for larger screens */
    margin: 10 auto; /* 0 Center the content */
    display: flex;
    align-items: center;
}

.logo {
    height: 50px; /* Adjust logo size */
    width: auto; /* Maintain aspect ratio */
}

/* Add padding to the main content to avoid overlap with the fixed header */
main {
    padding-top: 70px; /* Adjust based on header height */
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px; /* Adds space above the footer */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

.social-links {
    margin: 10px 0;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

.social-links a:hover {
    text-decoration: underline;
}

.social-icon {
    width: 32px; /* Adjust size as needed */
    height: 32px;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.7; /* Slightly fade the icon on hover */
}

/* Portfolio Section */
#portfolio {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
}

#portfolio h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust min width as needed */
    gap: 20px;
    width: 100%; /* Full width of the screen */
    padding: 0 20px; /* Add padding to prevent cards from touching the edges */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Mobile Layout */
@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}

/* Game Card */
.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    width: 100%; /* Full width of the grid cell */
    padding-top: 150%; /* 2:3 aspect ratio (height = 1.5 * width) */
}

.game-card:hover {
    transform: scale(1.05);
}

.game-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the card without distortion */
}

.game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Full width of the card */
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.5rem); /* Responsive font size */
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    white-space: normal; /* Allow text to wrap */
    overflow: hidden; /* Hide overflow */
    max-height: 3.6em; /* Limit height to 2 lines (1.8em per line) */
    line-height: 1.8em; /* Set line height for consistent spacing */
}

.game-info {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%; /* Full height of the card */
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    transition: top 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box; /* Ensures padding is included in the height */
}

.game-card:hover .game-info {
    top: 0;
}

.game-description {
    font-size: clamp(0.8rem, 2vw, 1rem); /* Responsive font size */
    margin: 0;
    max-width: 90%; /* Prevents text from overflowing */
    overflow: hidden;
    text-overflow: ellipsis; /* Adds ellipsis if text overflows */
    display: block; /* Ensures the text is treated as a block element */
    max-height: 9em; /* Limits the height to 3 lines (1.5em per line) */
    line-height: 1.5em; /* Sets line height for consistent spacing */
}

.learn-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #100086; /* Button color */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.learn-more:hover {
    background-color: #4248f4; /* Darker color on hover */
}

/* About Section with Gradient Background */
#about {
    padding: 60px 20px;
    background: linear-gradient(135deg, #56CCF2, #97bc62); /* Green gradient */
    color: #fff;
}

.about-content {
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto;
    display: flex;
    align-items: center; /* Vertically center the content */
    gap: 40px; /* Space between left and right sections */
}

.about-left {
    flex: 1; /* Takes up 50% of the space */
}

.about-right {
    flex: 1; /* Takes up 50% of the space */
}

#about h2 {
    font-size: 2.5rem; /* Larger font size for the left text */
    margin-bottom: 20px;
}

#about p {
    font-size: 1.2rem; /* Smaller font size for the right text */
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Stack vertically on mobile */
        text-align: center; /* Center-align text on mobile */
    }

    #about h2 {
        font-size: 2rem; /* Adjust font size for mobile */
    }

    #about p {
        font-size: 1rem; /* Adjust font size for mobile */
    }
}

/* Contact Section */
#contact {
    padding: 60px 20px;
    background: linear-gradient(135deg, #56CCF2, #97bc62); /* Green gradient */
    color: #000000;
    text-align: center;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: white
}

.contact-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 20px; /* Space between blocks */
}

.contact-block {
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(134, 134, 134, 0.1); /* Subtle shadow */
    text-align: left;
}

.contact-block h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-block p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-block .email {
    font-weight: bold;
    color: #000000;
    position: relative;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-blocks {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
    }
}