@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Poppins", serif;
}

body {
    background-color: #222831;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem auto;
    padding: 0 0.5rem;
    max-width: 1200px;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navigation a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: #00adb5;
}

hr {
    opacity: 10%;
    margin-bottom: 2rem;
}

.logo{
    border: 0;
    padding: 0;
    scale: 0.5;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.arrow {
    position: absolute;
    rotate: 0.35turn;
    transform: translateX(4rem) translateY(5rem);
}

.heroSub {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.name {
    font-size: 3rem;
    color: white;
}

.title {
    font-size: 1.5rem;
    color: #6FEFD2;
}

.heroBtns {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hireMe {
    background-color: #6FEFD2;
    color: white;
    border-radius: 24px;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.hireMe:hover {
    transform: translateY(-3px);
}

.heroImg {
    max-width: 40%;
    height: auto;
}

/* About Me Section */
.aboutMe {
    padding: 5rem 0;
}

.sectionTitle {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: white;
    position: relative;
}

.sectionTitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #6FEFD2;
}

.aboutContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.aboutText {
    flex: 1;
}

.aboutText p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #eeeeee;
}

.aboutImg {
    flex: 1;
    max-width: 40%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    margin-bottom: 1.5rem;
    color: #6FEFD2;
}

.skillBars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skillItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skillItem .skillName {
    font-weight: 500;
}

.skillItem .skillPercentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6FEFD2;
    position: relative;
}

.skillItem .skillPercentage::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #6FEFD2;
    border-radius: 50%;
}

.progressBar {
    width: 100%;
    height: 10px;
    background-color: #393e46;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress {
    height: 100%;
    background-color: #6FEFD2;
    border-radius: 5px;
}

/* My Works Section */
.myWorks {
    padding: 5rem 0;
    background-color: #1a1e24;
}

.worksFilter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filterBtn {
    background: none;
    border: 1px solid #6FEFD2;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filterBtn.active, .filterBtn:hover {
    background-color: #6FEFD2;
    color: #222831;
}

.worksGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.workItem {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.workItem img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.workOverlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.workItem:hover .workOverlay {
    transform: translateY(0);
    opacity: 1;
}

.workItem:hover img {
    transform: scale(1.1);
}

.workOverlay h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.workOverlay p {
    color: #6FEFD2;
    margin-bottom: 1rem;
}

.viewWork {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #6FEFD2;
    color: #222831;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.viewWork:hover {
    transform: translateY(-3px);
}

/* Contact Section */
.contactMe {
    padding: 5rem 0;
}

.contactContent {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.contactInfo {
    flex: 1;
}

.infoItem {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.infoItem img {
    width: 30px;
    height: 30px;
    background-color: #393e46;
    padding: 5px;
    border-radius: 50%;
}

.infoItem h3 {
    color: #6FEFD2;
    margin-bottom: 0.25rem;
}

.infoItem p {
    color: #eeeeee;
}

.socialLinks {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.socialLinks a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #393e46;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.socialLinks a:hover {
    transform: translateY(-5px);
    background-color: #6FEFD2;
}

.socialLinks img {
    width: 20px;
    height: 20px;
}

.contactForm {
    flex: 1;
    background-color: #393e46;
    padding: 2rem;
    border-radius: 10px;
}

.formGroup {
    margin-bottom: 1.5rem;
}

.formGroup label {
    display: block;
    margin-bottom: 0.5rem;
    color: #eeeeee;
}

.formGroup input, .formGroup textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #222831;
    border: none;
    border-radius: 5px;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.formGroup input:focus, .formGroup textarea:focus {
    outline: 2px solid #6FEFD2;
}

.submitBtn {
    padding: 0.75rem 2rem;
    background-color: #6FEFD2;
    color: #222831;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submitBtn:hover {
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #1a1e24;
    padding: 2rem 0;
    text-align: center;
}

/* Width and height */
::-webkit-scrollbar {
    display: none;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* Game Modal Styles */
.gameModal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.gameModalContent {
    position: relative;
    background-color: #393e46;
    margin: 5% auto;
    padding: 2rem;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease;
}

.closeModal, .closeGamePlayer {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #eeeeee;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.closeModal:hover, .closeGamePlayer:hover {
    color: #6FEFD2;
    transform: scale(1.1);
}

.gameHeader {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

#gameIcon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
}

#gameTitle {
    color: #6FEFD2;
    font-size: 2rem;
    margin: 0;
}

#gameDescription {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #eeeeee;
}

.gameThumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.launchGameBtn {
    padding: 0.75rem 2rem;
    background-color: #6FEFD2;
    color: #222831;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.launchGameBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(111, 239, 210, 0.4);
}

/* Game Player Modal */
.gamePlayerModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
}

.gamePlayerContent {
    position: relative;
    width: 90%;
    height: 90%;
    margin: 2% auto;
    background-color: #222831;
    border-radius: 10px;
    overflow: hidden;
}

#unityContainer {
    width: 100%;
    height: 100%;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .heroImg {
        max-width: 60%;
    }
    
    .arrow {
        display: none;
    }
    
    .heroBtns {
        justify-content: center;
    }
    
    .aboutContent {
        flex-direction: column-reverse;
    }
    
    .aboutImg {
        max-width: 70%;
    }
    
    .contactContent {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navigation ul {
        gap: 1rem;
    }
    
    .heroImg {
        max-width: 80%;
    }
    
    .aboutImg {
        max-width: 90%;
    }
    
    .worksGrid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .gameModalContent {
        width: 95%;
        padding: 1.5rem;
    }
    
    .gameHeader {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .gameThumbnails {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    } 
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.2rem;
    }

    .gameModalContent {
        width: 95%;
        padding: 1.5rem;
    }
    
    .gameHeader {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .gameThumbnails {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}