@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Rowdies:wght@300;400;700&display=swap');

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

#background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000; /* Send WebGL canvas to the background */
}

.circle {
    width: 20px;
    height: 20px;
    background-color: #E9464E;
    border-radius: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
}

#background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100; /* Send it behind other elements */
    background-color: #292929;
}


.navbar {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 1rem;
}

.navbar::after {
    content: '';
    top: 100px;
    width: 20px;
    height: 20px;
    color: blue;
    position: absolute;
}

.nav-item {
    color: #ffffff;
    font-size: 1rem;
    list-style-type: none;
    margin: 1rem;
}

.nav-item a {
    position: relative;
    text-decoration: none;
    color: #ffffff;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0.5rem;
    transition: 0.2s;
}

.nav-item a::after {
    content: '';
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 5px;
    background-color: #E9464E;
    border-radius: 0.5rem;
    transition: 0.3s;
}

.nav-item a:hover::after {
    width: 100%;
    display: block;
}

.nav-item a:hover {
    color: #E9464E;
    background-color: #333333;
    
}

.myinfo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
    color: white;
    font-size: 2rem;
}

.section-2 {
    background: #1E1E1E;
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(23,13,13,1) 35%, rgba(0,0,0,1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.who h1 {
    height: 0%;
}

.about {
    padding: 2rem;
    display: flex;
    justify-content: space-evenly;
}

.about h1, p {
    font-size: 50px;
    color: white;
}

p {
    font-size: 22px;
}

.about img {
    width: 100x;
    height: 100x;
    border-radius: 1rem;
}

.achievements {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
}

.card {
    background-color: white;
    color: black;
    width: 30rem;
    height: 7rem;
    
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 1rem;
    position: relative;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    margin-top: 0;
}

.card-content {
    transition: all 4s ease-in-out;
}

.card-content:hover {
    transform: translateY(-5px);
}

.card:hover {
    align-items: flex-start;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    height: 18rem;
}

.card h1 {
    color: #E9464E;
    font-size: 20px;
    padding: 1rem;
}

.card img {
    width: 10rem;
    height: 113px;
    margin-top: 0;
    padding: 0;
    
}

.card p {
    font-size: 15px;
    color: black;
    padding: 1rem;
}

.myself {
    width: 50%;
}

.myself img{
    border-radius: 0;
}

.title h1 {
    transform: translateY(30px);
    transition: 0.5s;
}

.card:hover h1 {
    transform: translateY(10px);
}

.card p {
    opacity: 0;
    transition: 1s;
}

.card:hover p {
    opacity: 1;
}

.title h1 {
    padding: 1rem;
}

.achimg {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.achimg img{
    border-radius: 0;
}

.description p {
    margin-left: 6rem;
    margin-right: 6rem;
    padding-bottom: 1rem;
}

.section-3{
    background-color: #D9D9D9;
}

.section-3 h1, .section-4 h1{
    font-size: 40px;
    padding-top: 1rem;
    margin-left: 6rem;
}

.options {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1rem;
    
}

.options h3 {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    margin-left: 6rem;
    transition: 0.5s;
}

.options h3::before {
    content: '';
    position: absolute;
    transform: translateY(30px);
    width: 0%;
    height: 5px;
    background-color: #E9464E;
    border-radius: 0.5rem;
    transition: 0.3s;
}

.options h3:hover::before, 
.options h3:focus::before, 
.options h3:active::before, 
.options h3.active::before {
    width: 100%;
    display: block;
}

.section-4{
    height: 500px;
}

.options h3:hover,
.options h3:focus, 
.options h3:active, 
.options h3.active {
    color: #E9464E;
}

.selected-project-type{
    color: #E9464E;
}


.dev-projects{
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    
    
}
.project{
    opacity: 0;
    
}


.project:first-child{
    
    animation: appear 1s ease-out forwards;
}
.project:nth-child(2){
    
    animation: appear 1s ease-out forwards;
    animation-delay: 0.5s;
}
.project:nth-child(3){
    
    animation: appear 1s ease-out forwards;
    animation-delay: 1s;
}



@keyframes appear {
    from{
        opacity: 0;
        transform: translateY(10px);
    }
    to{
        opacity: 1;
        transform: translateY(0px);
    }
}
.vid-projects{
    overflow: hidden;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    opacity: 1;
    animation: appear 1s ease-out;
    
}

.vid-projects:focus{
    animation: appear 1s ease-out;
}

.project{
    margin: 1rem;
    width: 333px;
    overflow: hidden;
    min-height: 400px;
    
}


.project-image{
    overflow: hidden;
}

.project img, iframe{
    width: 333px;
    height: 190px;
    transition: 1s;
    
    
}

.project img:hover, iframe:hover{
    scale: 1.1;
}

.project-info
{
    display: flex;
    justify-content: space-between;
}

.project-info .project-title
{
    color: #E9464E;
} 

.project p{
    padding-top: 1rem;
    font-size: 16px;
    color: #1E1E1E;
}

.section-4{
    color: #D9D9D9;
    background-color: #1E1E1E;
    padding-bottom: 2rem;
}

.skills-img .skill img{
    width: 90px;
    height: 90px;
}


.skills-img{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: auto;
    height: 400px;
    
}

.skill p{
    opacity: 0;
    position: relative;
    bottom: 4rem;
    right: 2rem;
    transition: 0.5s ease;
    
}

.skill:nth-child(3) p{
    position: relative;
    right: 5rem;
}
.skill:nth-child(4) p{
    position: relative;
    right: 6rem;
}
.skill:nth-child(5) p{
    position: relative;
    right: 6rem;
}
.skill:nth-child(6) p{
    position: relative;
    right: 5rem;
}

.skills-img img{
    transition: 0.5s ease;
    
}

.skill:hover  p{
    opacity: 1;
}

.section-5
{
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #D9D9D9;
    
    background-image: url("Images/Contact-Background.jpg");
    background-size: cover;
    height: 50vh;
    width: 100%;
    margin: auto;
    max-height: 200px;
}


.contact-background{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    
    z-index: -10000;
}



.skill:hover img{
    transform: translateY(-10px);
    transform: translateX(50px);
    rotate: 360deg;
    border-radius: 100%;
    
}

.contact-me{
    display: flex;
    flex-direction: column;
    
    width: 100%;
    color: #1A2130;
    height: 6rem;
    
}


.contact-me h1{
    font-size: 30px;
    padding: 2rem;margin: auto;
    color: #D9D9D9;
    
    
}

.contact-me input{
    margin: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #E9464E;
    color: #1E1E1E;
    border: none;
    width: 300px;
    text-align: center;
}

.social-logos{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.social-logos .logo{
    margin: 1rem;
}

.social-logos img, svg{
    width: 40px;
    height: 40px;
    transition: 0.2s ease;
}
.social-logos svg:hover{
    
    fill: #D9D9D9;
}



/* General small screen adjustments */
/* Medium Screens (Tablets) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0.5rem;
    }

    .nav-item {
        font-size: 0.9rem;
        margin: 0.5rem;
    }

    .myinfo {
        font-size: 1.5rem;
        text-align: center;
    }

    .about {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .about img {
        display: none;
    }

    .achievements {
        width: 100%;
        margin-top: 1rem;
    }

    .card {
        width: 90%;
        margin-bottom: 1rem;
    }

    .section-3 .header h1 {
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .project {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .project-image {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
    }

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

    .section-4 h1 {
        margin: 0;
        margin-bottom: 1rem;
    }

    .skills-img {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .skill img {
        width: 50px;
        height: 50px;
    }

    .contact-me input {
        width: 100%;
        margin-bottom: 1rem;
    }

    .social-logos img {
        width: 30px;
        height: 30px;
    }
}

/* Small Screens (Mobile Phones) */
@media (max-width: 576px) {
    .navbar {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .myinfo {
        font-size: 1.2rem;
    }

    .about h1, .about p {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .achievements {
        margin-top: 1.5rem;
    }

    .card {
        width: 95%;
    }

    .section-3 .header h1 {
        font-size: 1.5rem;
    }

    .project {
        margin-top: 1rem;
    }

    .skills-img {
        gap: 0.5rem;
    }

    .skill img {
        width: 40px;
        height: 40px;
    }

    .contact-me h1 {
        font-size: 1.2rem;
    }

    .contact-me input {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .social-logos img {
        width: 25px;
        height: 25px;
    }

    footer {
        font-size: 0.8rem;
        text-align: center;
        padding: 1rem;
    }
}

/* Extra Small Screens (Very Small Phones) */
@media (max-width: 375px) {
    .navbar {
        font-size: 0.7rem;
    }

    .myinfo {
        font-size: 1rem;
    }

    .about h1, .about p {
        font-size: 1rem;
    }

    .skills-img {
        gap: 0.3rem;
    }

    .skill img {
        width: 35px;
        height: 35px;
    }

    .contact-me input {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .social-logos img {
        width: 20px;
        height: 20px;
    }
}





















