* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: black;
    color: white;
    text-align: center;
    position: relative;
    width: 100%;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 768px) {
    .game-page {
        overflow-y: auto;
        height: auto;
    }
}

body a, h1, h2, h3, h4, p {
    font-family: "Monospace", Monaco;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;    
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 30px;
    font-size: 30px;
    z-index: 100;
    margin-top: 0px;
    background-color: black;
}

.site-name {
    font-size: 30px;
    color: white;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
    margin-right: 30px;
}

/* Remove margin from last item */
.navbar a:last-child {
    margin-right: 0;
}

.nav-links a:hover {
    color: #f08080;
}

@media (max-width: 1100px) {
    .menu-icon {
        display: block; /* show hamburger menu */
    }

    .nav-links {
        display: none !important; /* hide nav links */
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
    transition: right 0.4s ease-in-out;
    z-index: 150;
    border-left: 2px solid #444;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.mobile-menu h3 {
    color: #f08080;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 15px 0;
    width: 100%;
    display: inline-block; /* Needed for transform effects */
    transition: transform 0.2s ease, background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a:hover {
    background-color: rgba(255, 77, 77, 0.2);
    transform: scale(1.1); /* Slight enlargement on hover */
}

/* Close button for mobile menu */
.mobile-menu .close-btn {
    align-self: flex-end;
    font-size: 28px;
    cursor: pointer;
    margin-bottom: 20px;
    color: white;
    transition: color 0.2s;
}

.mobile-menu .close-btn:hover {
    color: #f08080;
}

/* Active State */
.mobile-menu.active {
    right: 0;
}

.menu-icon {
    display: none;
}

/* Overlay (Fades in When Menu is Open) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 120;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .nav-links {
        display: none;
    }

    .menu-icon {
        display: block;
    }
}

/* When Menu is Open */
.mobile-menu.active {
    right: 0;
}

.overlay.active {
    display: block;
}

.about-me {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5vw; /* Scale text based on viewport width */
    padding: 5%; /* Responsive padding */
    z-index: 1;
    max-width: 80%; /* Keeps text readable */
    text-align: center;
    border-radius: 10px;
    margin: auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Adjustments for smaller screens */


/* Fix title overlapping issues */
.about-title {
    font-size: 5vw; /* Dynamic scaling */
    font-weight: bold;
    margin-bottom: 10px;
    font-family: "Fantasy", copperplate;
    text-align: center;
    max-width: 90%;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; /* Ensures text stays centered */
    font-size: 4vw; /* Responsive font scaling */
    z-index: 1;
    padding: 5%; /* Adds breathing room */
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    z-index: 1;
}

.hero p {
    font-family: "Sans-Serif", Helvetica;
}

/* Responsive Adjustments */

.learn-more {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 12px 24px;
    border: 2px solid #ff4d4d;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

/* Hover Effect */
.learn-more:hover {
    background: #ff4d4d;
    box-shadow: 0 6px 15px rgba(255, 77, 77, 0.5);
    transform: translateY(-2px);
}

/* Active Click Effect */
.learn-more:active {
    transform: translateY(2px);
    box-shadow: 0 3px 8px rgba(255, 77, 77, 0.4);
}
.games-section {
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 50px;
    justify-content: center;
    z-index: 1;

}

.game {
    background: #333;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game img {
    width: 100%;
    border-radius: 10px;
}

.game:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
}

.game-title {
    margin-top: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}
@media (max-width: 1250px) {
    .games-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .games-section {
        grid-template-columns: repeat(1, 1fr);
    }
}
.contact {
    margin-top: 30vh; /* Adjusts dynamically based on screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5%;
    z-index: 1;
    background-color: transparent;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Title Styling */
.contact h2 {
    font-size: 3vw; /* Responsive size */
    font-weight: bold;
    margin-bottom: 10px;
}

/* Text Styling */
.contact p {
    font-size: 1.5vw;
    margin-bottom: 15px;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 5vw; /* Scales properly */
    font-size: 3vw;
    margin-top: 10px;
}

.social-icons a {
    color: white;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #f08080;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact {
        max-width: 90%;
    }
    .contact h2 {
        font-size: 2rem;
    }
    .contact p {
        font-size: 1.3rem;
    }
    .social-icons {
        font-size: 2rem;
    }
    .about-me {
        font-size: 1.4em; /* Use em for better scaling */
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .contact {
        max-width: 95%;
    }
    .contact h2 {
        font-size: 1.8rem;
    }
    .contact p {
        font-size: 1.2rem;
    }
    .social-icons {
        font-size: 1.8rem;
        gap: 15px;
    }
    .about-me {
        font-size: 1.2em;
        line-height: 1.5;
        max-width: 95%;
    }
    .about-title {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .contact {
        max-width: 100%;
        padding: 10px;
    }
    .contact h2 {
        font-size: 1.5rem;
    }
    .contact p {
        font-size: 1rem;
    }
    .social-icons {
        font-size: 1.5rem;
        gap: 10px;
    }
    .about-me {
        font-size: 1em;
        line-height: 1.4;
        max-width: 100%;
        padding: 10px;
    }
    .about-title {
        font-size: 2em;
    }
}
