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

.main {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.tran1, .tran2 {
    width: 100%;
    height: 15%;
    position: relative;
}

.tran3 {
    width: 100%;
    height: 40%;
    background-color: #431B93;
    position: relative;
}

.tran1 {
    background-color: #2B0467;
}

.tran2 {
    background-color: #3F1386;
}

.star1 {
    height: 30px;
    animation: twinkle 3s ease-in-out infinite;
    position: absolute;
}

.Star2 {
    height: 15px;
    animation: twinkle 2s ease-in-out infinite;
    position: absolute;
}


.cloud {
    height: 60px;
    animation: float 20s linear infinite;
    position: absolute;
}


.spider {
    height: 60px;
    animation: dangle 3s ease-in-out infinite, moveAcross 25s linear infinite;
    transform-origin: top center;
    position: absolute;
}


.star1-1 {
    top: 40px;
    left: 80%;
    animation-delay: 0s;
}

.star1-2 {
    top: 30px;
    left: -5%;
    animation-delay: 1.5s;
}

.star2-1 {
    top: 50px;
    left: 100px;
    animation-delay: 0.5s;
}

.star2-2 {
    top: -30px;
    left: 60%;
    animation-delay: 1s;
}

.star2-3 {
    top: 40px;
    left: 10%;
    animation-delay: 0.3s;
}

.star2-4 {
    top: 80px;
    left: 60%;
    animation-delay: 1.2s;
}

.star2-5 {
    top: 80px;
    left: 60%;
    animation-delay: 0.7s;
}

.cloud-1 {
    top: -20px;
    left: -100px;
    animation-delay: 0s;
}

.cloud-2 {
    top: 50%;
    left: -100px;
    animation-delay: 10s;
}


.spider-1 {
    top: 50px;
    left: -100px;
    animation-delay: 0s;
}

.spider-2 {
    top: -30px;
    left: -100px;
    animation-delay: 12s;
}
@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

@keyframes float {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

@keyframes dangle {
    0%, 100% {
        transform: rotate(-5deg) translateY(0);
    }
    50% {
        transform: rotate(5deg) translateY(10px);
    }
}

@keyframes moveAcross {
    0% {
        left: -100px;
    }
    100% {
        left: calc(100% + 100px);
    }
}

@media (max-width:1366px) {
    .star1 {
        height: 20px;
    }
    .Star2 {
        height: 10px;
    }
    .cloud {
        height: 40px;
    }
    .spider {
        height: 40px;
    }
}




.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 150px;
    z-index: 10;
    animation: logoMoveUp 5s ease-in-out forwards, logoGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}


@keyframes logoMoveUp {
    0% {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        top: 30%;
        transform: translate(-50%, -50%);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
    }
}

@media (max-width:1366px) {
    .logo {
        height: 100px;
    }
}

.retro-btn {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 16px;
    color: #000;
    
    background-color: #FFE66D;
    border: none;
    padding: 15px 35px;
    cursor: pointer;
    
    box-shadow: 
        0 0 0 4px #000,
        0 0 0 6px #FFE66D,
        0 8px 0 4px #000,
        0 8px 0 6px #C4A747;
    
    transition: all 0.1s ease;
    image-rendering: pixelated;
    animation: ShowBtn 5s ease-in-out forwards;
}
@keyframes ShowBtn {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 100;
    }
    
}

.retro-btn:hover {
    background-color: #FFF4A3;
    box-shadow: 
        0 0 0 4px #000,
        0 0 0 6px #FFF4A3,
        0 8px 0 4px #000,
        0 8px 0 6px #D4B757;
}

.retro-btn:active {
    transform: translate(-50%, -50%) translateY(4px);
    box-shadow: 
        0 0 0 4px #000,
        0 0 0 6px #FFE66D,
        0 4px 0 4px #000,
        0 4px 0 6px #C4A747;
}

@media (max-width:1366px) {
    .retro-btn {
        font-size: 12px;
        padding: 12px 28px;
    }
}

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

.main {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.tran1, .tran2 {
    width: 100%;
    height: 15%;
    position: relative;
}

.tran3 {
    width: 100%;
    height: 40%;
    background-color: #431B93;
    position: relative;
}

.tran1 {
    background-color: #2B0467;
}

.tran2 {
    background-color: #3F1386;
}

.star1 {
    height: 30px;
    animation: twinkle 3s ease-in-out infinite;
    position: absolute;
}

.Star2 {
    height: 15px;
    animation: twinkle 2s ease-in-out infinite;
    position: absolute;
}


.cloud {
    height: 60px;
    animation: float 20s linear infinite;
    position: absolute;
}


.spider {
    height: 60px;
    animation: dangle 3s ease-in-out infinite, moveAcross 25s linear infinite;
    transform-origin: top center;
    position: absolute;
}


.star1-1 {
    top: 40px;
    left: 80%;
    animation-delay: 0s;
}

.star1-2 {
    top: 30px;
    left: -5%;
    animation-delay: 1.5s;
}

.star2-1 {
    top: 50px;
    left: 100px;
    animation-delay: 0.5s;
}

.star2-2 {
    top: -30px;
    left: 60%;
    animation-delay: 1s;
}

.star2-3 {
    top: 40px;
    left: 10%;
    animation-delay: 0.3s;
}

.star2-4 {
    top: 80px;
    left: 60%;
    animation-delay: 1.2s;
}

.star2-5 {
    top: 80px;
    left: 60%;
    animation-delay: 0.7s;
}

.cloud-1 {
    top: -20px;
    left: -100px;
    animation-delay: 0s;
}

.cloud-2 {
    top: 50%;
    left: -100px;
    animation-delay: 10s;
}


.spider-1 {
    top: 50px;
    left: -100px;
    animation-delay: 0s;
}

.spider-2 {
    top: -30px;
    left: -100px;
    animation-delay: 12s;
}
@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

@keyframes float {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

@keyframes dangle {
    0%, 100% {
        transform: rotate(-5deg) translateY(0);
    }
    50% {
        transform: rotate(5deg) translateY(10px);
    }
}

@keyframes moveAcross {
    0% {
        left: -100px;
    }
    100% {
        left: calc(100% + 100px);
    }
}

@media (max-width:1366px) {
    .star1 {
        height: 20px;
    }
    .Star2 {
        height: 10px;
    }
    .cloud {
        height: 40px;
    }
    .spider {
        height: 40px;
    }
}




.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 150px;
    z-index: 10;
    animation: logoMoveUp 5s ease-in-out forwards, logoGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}


@keyframes logoMoveUp {
    0% {
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        top: 30%;
        transform: translate(-50%, -50%);
    }
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
    }
}

@media (max-width:1366px) {
    .logo {
        height: 100px;
    }
}

.retro-btn {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 16px;
    color: #000;
    
    background-color: #FFE66D;
    border: none;
    padding: 15px 35px;
    cursor: pointer;
    
    box-shadow: 
        0 0 0 4px #000,
        0 0 0 6px #FFE66D,
        0 8px 0 4px #000,
        0 8px 0 6px #C4A747;
    
    transition: all 0.1s ease;
    image-rendering: pixelated;
    animation: ShowBtn 5s ease-in-out forwards;
}
@keyframes ShowBtn {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 100;
    }
    
}

.retro-btn:hover {
    background-color: #FFF4A3;
    box-shadow: 
        0 0 0 4px #000,
        0 0 0 6px #FFF4A3,
        0 8px 0 4px #000,
        0 8px 0 6px #D4B757;
}

.retro-btn:active {
    transform: translate(-50%, -50%) translateY(4px);
    box-shadow: 
        0 0 0 4px #000,
        0 0 0 6px #FFE66D,
        0 4px 0 4px #000,
        0 4px 0 6px #C4A747;
}

@media (max-width:1366px) {
    .retro-btn {
        font-size: 12px;
        padding: 12px 28px;
    }
}

#About{
    min-height: 100vh;
    width: 100%;
    background-color: #2B0467;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

#About button{
    z-index: 10;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 16px;
    color: #000;
    background-color: #FFE66D;
    border: none;
    padding: 15px 35px;
    cursor: pointer;
    
    box-shadow: 
        0 0 0 4px #000,
        0 0 0 6px #FFE66D,
        0 8px 0 4px #000,
        0 8px 0 6px #C4A747;
    
    transition: all 0.1s ease;
    image-rendering: pixelated;
}
#About button:active {
    transform: translateY(4px);
    box-shadow: 
        0 0 0 4px #000,
        0 0 0 6px #FFE66D,
        0 4px 0 4px #000,
        0 4px 0 6px #C4A747;
}
#About button:hover{
    background-color: #FFF4A3;
    box-shadow: 
        0 0 0 4px #000,
        0 0 0 6px #FFF4A3,
        0 8px 0 4px #000,
        0 8px 0 6px #D4B757;
}
#About h1{
    font-family: 'Press Start 2P', 'Courier New', monospace;
    color: #FFE66D;
    text-shadow: 
        -4px -4px 0 #000,
         4px -4px 0 #000,
        -4px  4px 0 #000,
         4px  4px 0 #000,
        -4px  0   0 #000,
         4px  0   0 #000,
         0   -4px 0 #000,
         0    4px 0 #000;
}

.aboutcontainer {
    width: 50%;
    max-width: 800px;
    text-align: center;
    line-height: 2em;
    padding: 2em;
    background-color: rgba(0, 0, 0, 0.3);
    border: 4px solid #FFE66D;
    box-shadow: 
        0 0 0 8px #000,
        0 0 20px rgba(255, 230, 109, 0.5);
    color: #fff;
}

.aboutcontainer h3 {
    color: #FFE66D;
    text-shadow: 
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000;
    margin-bottom: 1em;
}

.aboutcontainer p {
    color: #D4C6FF;
    margin-bottom: 1.5em;
}

.aboutcontainer h4 {
    color: #FFE66D;
    text-shadow: 
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000;
    margin-top: 1em;
}

@media (max-width:1366px) {
    #About h1{
        font-size: 1.6rem;
    }
    #About h3{
        font-size: 1rem;
    }
    #About p{
        font-size: 0.8rem;
    }
    #About button {
        font-size: 12px;
        padding: 12px 28px;
    }
    #About h4{
        font-size: 0.9rem;
    }
    .aboutcontainer {
        width: 70%;
        padding: 1.5em;
    }
}

#Games {
    min-height: 100vh;
    width: 100%;
    background-color: #2B0467;
    padding: 4em 2em;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    text-align: center;
}

#Games h1 {
    color: #FFE66D;
    margin-bottom: 3em;
    text-shadow: 
        -4px -4px 0 #000,
         4px -4px 0 #000,
        -4px  4px 0 #000,
         4px  4px 0 #000,
        -4px  0   0 #000,
         4px  0   0 #000,
         0   -4px 0 #000,
         0    4px 0 #000;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3em;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em;
}

.game-card {
    background: linear-gradient(180deg, #1a0033 0%, #0d001a 100%);
    border: 6px solid #FFE66D;
    border-radius: 20px 20px 0 0;
    padding: 1.5em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 
        0 0 0 4px #000,
        0 10px 0 4px #000,
        0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background-color: #1a0033;
    border: 4px solid #000;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 0 0 4px #000,
        0 15px 0 4px #000,
        0 15px 40px rgba(255, 230, 109, 0.4);
}

.arcade-screen {
    background-color: #1a4d2e;
    border: 4px solid #000;
    padding: 2em;
    margin-bottom: 1em;
    font-size: 3em;
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card h3 {
    color: #FFE66D;
    font-size: 1rem;
    margin-top: 1em;
    text-shadow: 
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
    
}

.modal-content {
    position: relative;
    background: linear-gradient(180deg, #2B0467 0%, #1a0033 100%);
    margin: 5% auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 8px solid #FFE66D;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 
        0 0 0 4px #000,
        0 0 50px rgba(255, 230, 109, 0.5);
    animation: slideDown 0.4s ease;
    transition: all 0.3s;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #FFE66D;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow: 
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000;
}

.close-btn:hover {
    color: #FFF4A3;
    transform: scale(1.2);
}

#gameContainer {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    color: #fff;
    font-size: 1.5em;
    flex-direction: column;
}
#gameContainer button{
    z-index: 10;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 16px;
    color: #000;
    background-color: #FFE66D;
    border: none;
    padding: 15px 35px;
    cursor: pointer;
    
    box-shadow: 
        0 0 0 4px #000,
        0 0 0 6px #FFE66D,
        0 8px 0 4px #000,
        0 8px 0 6px #C4A747;
    
    transition: all 0.1s ease;
    image-rendering: pixelated;
}
#gameContainer button:active {
    transform: translateY(4px);
    box-shadow: 
        0 0 0 4px #000,
        0 0 0 6px #FFE66D,
        0 4px 0 4px #000,
        0 4px 0 6px #C4A747;
}
#gameContainer button:hover{
    background-color: #FFF4A3;
    box-shadow: 
        0 0 0 4px #000,
        0 0 0 6px #FFF4A3,
        0 8px 0 4px #000,
        0 8px 0 6px #D4B757;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width:1366px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 6em;
    }
    
    .game-card h3 {
        font-size: 0.8rem;
    }
    
    .arcade-screen {
        font-size: 2em;
        min-height: 120px;
    }
    
}
.full-btn{
    position: absolute;
    left: 20px;
    top: 15px;
    color: #FFE66D;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow: 
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000;
}
.full-btn:hover {
    color: #FFF4A3;
    transform: scale(1.2);
}

footer{
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3F1386;
}
.footer-box{
    display: flex;
    justify-content: space-between;
    width: 80%;
}
.info{
    display: flex;
    justify-content: space-between;
    min-width: 20%;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    gap: 3em;

}
.info a{
    text-decoration: none;
    color: #000;
    transition: all 0.3s;
}
.info a:hover{
    color: #D4C6FF;
}
.info h4{
    color: #FFE66D;
    text-shadow: 
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000;
}

.quick-links ,.social-links{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
}
.social-links svg{
    height: 40px;
}
.iconlinks {
    display: flex;
    flex-direction: row;
    gap: 1.5em;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #FFE66D;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 0 4px #000,
        0 4px 0 4px #000;
}

.icon-link:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 0 4px #000,
        0 8px 0 4px #000;
}

.icon-link:active {
    transform: translateY(2px);
    box-shadow: 
        0 0 0 4px #000,
        0 2px 0 4px #000;
}

.icon-link.github svg {
    fill: #000;
    width: 25px;
    height: 25px;
}

.icon-link.linkedin svg {
    fill: #000;
    width: 25px;
    height: 25px;
}

.icon-link.github:hover {
    background: #333;
}

.icon-link.github:hover svg {
    fill: #FFE66D;
}

.icon-link.linkedin:hover {
    background: #0077b5;
}

.icon-link.linkedin:hover svg {
    fill: #FFE66D;
}

.copyright {
    text-align: center;
    padding: 1.5em;
    background-color: #2B0467;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.7rem;
    color: #D4C6FF;
    border-top: 4px solid #FFE66D;
}

.copyright .heart {
    color: #FF6B6B;
    font-size: 1.3rem;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
}

.copyright .dev-name {
    color: #FFE66D;
    text-shadow: 
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}

@media (max-width:1366px) {
    footer {
        height: auto;
        padding: 2em 0;
    }
    
    .footer-box {
        flex-direction: column;
        align-items: center;
        gap: 2em;
        width: 90%;
    }
    
    .info {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .quick-links, .social-links {
        width: 100%;
    }
    
    .icon-link {
        width: 45px;
        height: 45px;
    }
    
    .info h4 {
        font-size: 0.8rem;
    }
    
    .info p {
        font-size: 0.7rem;
    }
    .copyright {
        font-size: 0.5rem;
        padding: 1em;
    }
}

@media (max-width:768px){
    .logo{
        height: 70px;
    }
    #About{
    min-height: 110vh;
    }
    .aboutcontainer{
        width: 80%;
    }
    #About h3{
        font-size: 0.9em;
    }
    #About p{
        font-size: 0.6em;
    }
    .footer-box img{
        height: 70px;
    }
}


