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

:root {
    --bg-color: #080808;
    --bg-2-color: #131313;
    --text-color: white;
    --color: #86C232;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo span {
    text-shadow: 0 0 20px var(--color);
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover {
    color: var(--color);
    border-bottom: 3px solid var(--color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--color);
    display: none;
}

.home {
    padding: 10rem 12% 10rem;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}
span {
    color: var(--color);
}

.logo span {
    color: var(--color);
}

.home-content h3{
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.socials {
    display: flex;
    flex-wrap: wrap;
}

.socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
    position: relative;
    text-decoration: none;
}

.socials a:hover {
    color: var(--color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--color);
    background-color: var(--color);
}

.socials a img {
    filter: invert(1);
    height: 18px;
    transition: 0.3s ease-in-out;
}

.socials a:hover img {
    filter: invert(0);
}

.socials a:after {
    content: attr(data-text);
    visibility: hidden;
    opacity: 0;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s;
    font-size: 12px;
    z-index: 1;
}

.socials a:hover:after {
    visibility: visible;
    opacity: 1;
}

.download-btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--color);
    box-shadow: 0 0 25px var(--color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--bg-color);
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--color);
}

.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Machine Learning Enthusiast";
    color: var(--color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid var(--color);
    }
}

@keyframes words {
    0%,
    20%{
        content: "a Unity Game Developer";
    }
    21%,
    40%{
        content: "an expert in C# and game design.";
    }
    41%,
    60%{
        content: "skilled in 2D/3D game development.";
    }
    61%,
    80%{
        content: "proficient in Cinemachine, Timelines, and audio.";
    }
    81%,
    100%{
        content: "dedicated to crafting memorable gaming worlds.";
    }
}

@keyframes typing {
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%{
        width: 0;
    }
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85%{
        width: calc(100% + 8px);
    }
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px ;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links:hover {
    color: var(--color);
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background-color: var(--color);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
        width: 50%;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

.credentials {
    height: 100vh;
    padding: 100px 15px;
    background: var(--bg-2-color);
    text-align: center;   
}

.credentials h2 {
    margin-bottom: 5rem;
}

.tab-titles {
    display: flex;
    justify-content: center;
    gap: 2rem; 
    margin-bottom: 4rem;
}

.timeline-items {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;   
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--color);
    left: calc(50% - 1px);
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
    text-align: left;
}

.timeline-dot {
    height: 21px;
    width: 21px;
    background-color: var(--color);
    box-shadow: 0 0 25px var(--color),
                0 0 25px var(--color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}

.timeline-date {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    margin: 6px 0 15px;
}

.timeline-content {
    background-color: var(--bg-color);
    border: 3px solid var(--color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--color);
}

.timeline-content h3 {
    font-size: 20px;
    color: var(--text-color);
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

.services {
    padding: 10rem 12% 10rem;
    height: 100vh;
    background: var(--bg-color);
    color: var(--text-color);
}

.services h2 {
    margin-bottom: 5rem;
    color: var(--text-color);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.service-box {
    background-color: var(--color);
    height: 300px;
    border-radius: 3rem;
    border: 5px solid transparent;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    color: var(--bg-color);
}

.service-box:hover {
    background: var(--bg-color);
    color: var(--color);
    border: 5px solid var(--color);
    transform: scale(1.03);
}

.service-box .service-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 200px;
    justify-content: left;
    align-items: baseline;
    padding: 5rem 5rem;
}

.service-info h4 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 2;
}

.service-info p {
    font-size: 1.6rem;
    font-weight: 600;
    max-height: 100px;
    line-height: 1.7;
    margin: auto;
}

.skills {
    padding: 10rem 12% 10rem;
    height: auto;
    background: var(--bg-2-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.skills-box .skills-info {
    background: var(--bg-color);
    color: var(--color);
    border: 5px solid var(--color);
    height: 260px;
    border-radius: 3rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: top;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 0 8px var(--color);
}

.skills-info h4 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: var(--text-color);
}

.skills-content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skills-content {
    background-color: var(--bg-color);
    border: 3px solid var(--color);
    padding: 10px 20px;
    border-radius: 4rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
}

.skills-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--color);
}

.projects {
    padding: 10rem 12% 10rem;
    height: auto;
}

.projects-container {
    overflow: initial;
}

.project-content {
    display: grid;
    justify-content: center;
}

.project-image {
    width: 250px;
    border-radius: .75rem;
    margin-bottom: 1.25rem;
}

.project-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
}

.project-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color);
    margin-bottom: 1.25rem;
    margin: .5rem 0 1.25rem;
}

.project-title:hover {
    cursor: pointer;
    text-shadow: 0 0 1px var(--color);
    transition: 0.3s ease-in-out;
    font-size: 3.5rem;
}

.project-button {
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    color: var(--text-color);
    font-size: 1.6rem; ;
    border-bottom: 2px solid var(--color);
}

.project-button:hover {
    color: var(--color);
}

.project-button img {
    font-size: 2rem;
    transition: transform 0.3s;
    filter: invert(1);
}

.project-button:hover img {
    transform: translateX(0.25rem);
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background: var(--bg-2-color);
    text-align: center;
    border-radius: 3rem;
    border: 5px solid var(--color);
}

.project-image {
    max-width: 100%;
    height: auto;
    width: 55%;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.slider-button img {
    width: 30px;
    height: 30px;
    filter: invert(1);
}
.slider-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.slider-pagination button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
}

.slider-pagination button.active {
    background: #333;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.contact {
    background: var(--bg-2-color);
}

.area {
    flex-basis: 55%;
}

form input, form textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--color);
    outline: none;
    background: var(--bg-color);
    padding: 15px;
    margin: 15px 0;
    color: var(--text-color);
    font-size: 18px;
    border-radius: 6px;
}

form input:focus, form textarea:focus {
    border-color: var(--color);
}

.area button {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--color);
    box-shadow: 0 0 10px var(--color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--bg-color);
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.area button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--color);
}

.msg {
    font-size: 15px;
    display: none;
}

footer {
    height: 10vh;
    text-align: center;
    justify-content: center;
    align-items: center;
}

footer p {
    font-size: 12px;
}


@media (max-width: 768px) {
    .header {
        padding: 1rem 3%;
    }

    .navbar a {
        font-size: 1.2rem;
    }

    .home {
        padding: 3rem 3%;
        gap: 3rem;
    }

    .home-content h1 {
        font-size: 3rem;
    }

    .home-content p {
        font-size: 1rem;
    }

    .socials a {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
        margin: 1rem;
    }
    
    .services-container,
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .skills {
        padding: 10rem 12% 10rem;
        order: 2;
    }
    
    .skills-container {
        order: 2;
        margin-top: 5rem;
    }
    
    .project-image {
        width: 100%;
    }
    
    .skills-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .skills-box .skills-info {
        background: none;
        border: none;
        box-shadow: none;
        color: var(--color);
        padding: 1rem;
        text-align: center;
    }
    
    .skills-info h4 {
        color: var(--text-color);
    }
    
    .skills-content {
        background-color: var(--bg-color);
        border: none;
        box-shadow: none;
        padding: 1rem;
        text-align: center;
    }
    
    .services-container {
        gap: 2rem;
    }
    
    .service-box .service-info p {
        font-size: 1.4rem;
        line-height: 1.5;
    }
    
    .credentials {
        height: auto;
    }
    
    .services {
        height: auto;
    }
    
    .contact {
        padding: 1rem 2%;
    }
    
    .contact-form {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
        margin: 0 auto;
        width: calc(100% - 3.2rem);
    }
    
    .contact-form button {
        padding: 0.8rem 1.5rem;
        width: auto;
        margin: 0 auto;
        background-color: var(--button-bg);
        color: var(--button-text);
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
    
    .contact-form button:hover {
        background-color: var(--button-hover-bg);
    }    

    .navbar {
        display: none;
    }

    .text-animation {
        font-size: 20px;
        min-width: 150px;
    }

    @keyframes typing {
        10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95% {
            width: 0;
        }
        5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85% {
            width: calc(100% + 2px);
        }
    }

    .home-content p {
        margin-top: 2rem; 
    }

    .socials a {
        border-radius: 0;
        width: 2.5rem;
        height: 2.5rem; 
        padding: 0.4rem; 
        font-size: 1.2rem;
    }

    .socials a img {
        width: 100%;
        height: auto;
    }

    .home-content p {
        margin-top: 6rem; 
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 1.5%;
    }

    .credentials {
        height: auto;
    }

    .services {
        height: auto;
    }

    .navbar a {
        font-size: 1rem;
        margin-left: 1rem;
    }

    .home {
        padding: 2rem 1rem;
    }

    .home-content h1 {
        font-size: 2.5rem;
    }

    .home-content p {
        font-size: 0.9rem;
    }

    .socials a {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }

    .slider-button {
        font-size: 1.2rem;
    }

    .slider-pagination button {
        width: 6px;
        height: 6px;
    }

    .skills {
        padding: 5rem 1rem;
        order: 2;
    }

    .skills-container {
        order: 2;
        margin-top: 3rem;
    }

    .skills-box {
        margin-bottom: 1.5rem;
    }

    .skills-box .skills-info {
        padding: 0.8rem;
    }

    .skills-content {
        padding: 0.8rem;
    }

    .service-box .service-info p {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .contact {
        padding: 1rem 2%;
    }

    .contact-form {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
        margin: 0 auto;
        width: calc(100% - 3.2rem);
    }

    .contact-form button {
        padding: 0.8rem 1.5rem;
        width: auto;
        margin: 0 auto;
        background-color: var(--button-bg);
        color: var(--button-text);
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .contact-form button:hover {
        background-color: var(--button-hover-bg);
    }

    .navbar {
        display: none;
    }

    .text-animation {
        font-size: 20px;
        min-width: 150px;
    }

    @keyframes typing {
        10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95% {
            width: 0;
        }
        5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85% {
            width: calc(100% + 2px);
        }
    }

    .home-content p {
        margin-top: 6rem; 
    }

    .socials a {
        border-radius: 0;
        width: 2.5rem;
        height: 2.5rem; 
        padding: 0.4rem; 
        font-size: 1.2rem;
    }

    .socials a img {
        width: 100%;
        height: auto;
    }
}
