#navigation{
    display: flex;
    padding: 1rem;
    background-color: black;
    justify-content: end;
    width: 100%;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#Home{
    height: 800px;
    h1{
        padding-top: 10%;
        text-align: center;
        color: black;
        font-family: 'Times New Roman', Times, serif;
        font-size: 70px;
        margin: 0;
        animation: slideInFromLeft 4s infinite ;
    }
    h2{
        text-align: center;
        color: black;
        font-family: 'Times New Roman', Times, serif;
        font-size: 70px;
        margin: 0;
        animation: slideInFromdown 4s infinite;
    }
    img{
        margin-top: 5%;
        margin-right: 10%;
        width: 500px;
        float: right;
        border-radius: 50%;
        box-shadow: 10px 10px 10px black;
        animation: fadeIn 2s ease-in-out;
        animation: customAni 2s ease normal none;
    }
    p{
        font-size: large;
        font-family: 'Times New Roman', Times, serif;
        animation: fadeIn 2s ease-in-out;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes name {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
a{
    color: white;
    text-decoration: none;
    transition: 2ms;
    margin-right: 2%;
    
}
a:hover{
    color: red;
    transform: scale(1.1);
}
div{
    table{
        width: 50%;
        font-size: larger;
    }
}
footer{
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    height: 10%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}
#contact a{
    color: black;
    text-decoration: none;
    transition: 2ms;
    margin-right: 2%;
    display:inline;
    width: 80%;
    height: 80%;
    font-size:40px;
    border-radius:80%;
    margin: 1%;
}
#contact a:hover{
    color: white;
    background-color: black;
    box-shadow: 0px 0px 10px,0px 0px 20px,0px 0px 30px blue;
    transition: all;
    transform: scale(2);
    
}
#skills{
    img{
        margin: 1%;
        border-radius: 3%;
    }
    margin-bottom: 2%;
   
}
#about{
    display: flex;      
    text-align: center;
    padding: 2%;
    display: flex;
    
    img{
        display: flex;
        float: left;
        width: 20%;
        height: 20%;
        border-radius: 10%;
    }
    p{

        display: flex;
        font-size: 20px;
        padding-top: 5%;
    }
}
@keyframes slideInFromLeft {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  @keyframes slideInFromdown {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  @keyframes cube {
    from {
        transform: scale(0) rotate(0deg) translate(-50%, -50%);
        opacity: 1;
    }
    to {
        transform: scale(20) rotate(960deg) translate(-50%, -50%);
        opacity: 0;
    }
}
@keyframes move {
    100% {
        transform: translate3d(0, 0, 1px) rotate(360deg);
    }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: #3E1E68;
    overflow: hidden;
    z-index: -1; /* Ensures it stays behind other content */
}

.background span {
    width: 12vmin;
    height: 12vmin;
    border-radius: 12vmin;
    backface-visibility: hidden;
    position: absolute;
    animation: move infinite linear;
}

.background span:nth-child(1) {
    color: #E45A84;
    top: 43%;
    left: 13%;
    animation-duration: 28s;
    animation-delay: -2s;
    transform-origin: -4vw 25vh;
    box-shadow: -24vmin 0 3vmin currentColor;
}

.background span:nth-child(2) {
    color: #FFACAC;
    top: 60%;
    left: 33%;
    animation-duration: 40s;
    animation-delay: -91s;
    transform-origin: 10vw 10vh;
    box-shadow: -24vmin 0 4vmin currentColor;
}
@keyframes customAni {
    0% {
        transform: translateX(100px);
      }
    
      100% {
        transform: translateX(0);
      }
    }
    #projects{
        h2{
            margin-top: 2%;
        }
        img{
            margin-right: 10%;
            width: 15;
            height: 15%;
            border-radius: 10%;
            margin: 1%;
            float: right;
        }
        img:hover{
            transform: scale(1.1);
            box-shadow: 0px 0px 10px,0px 0px 20px,0px 0px 30px blue;
        }
        p{
            font-size: 20px;
            padding: 2%;
        }
    }
    #prj2{
        img{
            margin-right: 10%;
            width: 20%;
            height: 20%;
            border-radius: 10%;
            margin: 1%;
            float: right;
        }
    }
    #res{
        margin-top:5%;
        justify-content: center;
        text-align: center;
        margin-right: 10%;
        
animation: down 2s ease 0s infinite normal none;
        a{
            border: 1px solid red;
            background-color: red;
            color: white;
            text-decoration: none;
            transition: 2ms;
            margin-right: 2%;
            display:inline;
            width: 60%;
            height: 40%;
            font-size:30px;
            border-radius: 5%;
            margin: 1%;
        }
        a:hover{
            color: red;
            background-color: white;
            box-shadow: 0px 0px 10px,0px 0px 20px,0px 0px 30px blue;
            transition: all;
            transform: scale(2);
            
        }
    }
    /* Copy this code after the above code */
@keyframes down {
    0% {
      transform: scale(1);
    }
  
    50% {
      transform: scale(1.1);
    }
  
    100% {
      transform: scale(1);
    }
  }
  #navi1 {
    opacity: 0;
    animation: fade-in-top-visible 1s ease 0s 1 forwards;
}
#navi2 {
    opacity: 0;
    animation: fade-in-top-visible 1s ease 1s 1 forwards;
}
#navi3 {
    opacity: 0;
    animation: fade-in-top-visible 1s ease 2s 1 forwards;
}
#navi4 {
    opacity: 0;
    animation: fade-in-top-visible 1s ease 3s 1 forwards;
}

@keyframes fade-in-top-visible {
    0% { 
        transform: translateY(-50px); 
        opacity: 0; 
    }
    100% { 
        transform: translateY(0); 
        opacity: 1;
    }
}
form{
    background-color: rgba(106, 5, 183, 0.386);
    border: 1px solid rgba(106, 5, 183, 0.386);;
    width: 70%;
    height: 100%;
    justify-content: center;
    align-items: center;
    input{
        width: 50%;
        height: 5%;
        margin: 1%;
        padding: 1%;
        border-radius: 5%;
    }
    textarea{
        width: 50%;
        height: 10%;
        margin: 1%;
        padding: 1%;
        border-radius: 5%;
    }
    button{
        width: 50%;
        height: 30%;
        margin: 1%;
        padding: 1%;
        border-radius: 5%;
        background-color: black;
        color: white;
        border: 1px solid black;
    }
    button:hover{
        background-color: white;
        color: black;
    }
}
#contact{
    height: 30%;
    height: 40%;
}
@media (min-width: 1024px) {
    #navigation {
        justify-content: flex-end;
    }
    #Home h1, #Home h2 {
        font-size: 70px;
    }
    #Home img {
        width: 500px; /* Default size for large screens */
    }
    #contact a {
        font-size: 40px;
    }
    footer {
        font-size: 18px;
        height: 10%;
    }
    #skills img, #projects img {
        width: 400px; /* Default size for large screens */
        height: auto;
    }
    form input, form textarea, form button {
        width: 50%;
        min-height: 50px;
    }
}

/* Additional adjustments for better responsiveness */
body {
    font-size: 16px;
    line-height: 1.5;
}

#Home p {
    font-size: 16px;
    margin: 0.5rem;
}

form {
    margin: 1rem auto;
    padding: 1rem;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    font-size: 16px;
    padding: 1rem;
}
@media (max-width: 450px) {
    #navigation {
        justify-content: end;
    }
    #Home h1, #Home h2 {
        font-size: 40px;
    }
    #Home img {
        width: 330px; 
    }
    #contact a {
        font-size: 30px;
        transform: scale(1.4);
    }
    #about{
        img{
            width: 40%;
            float: left;
        }
        p{
            font-size: 20px;
        }
    }
    footer {
        font-size: 16px;
        height: auto;
    }
    #skills img, #projects img {
        margin-top: 10%;
        width: 180px; /* Minimum width for images */
        height: auto;
    }
    form input, form textarea, form button {
        width: 80%;
        font-size: 16px;
        min-height: 45px;
    }
}
@media (max-width: 440px) {
    #navigation {
        justify-content: end;
    }
    #Home h1, #Home h2 {
        font-size: 40px;
    }
    #Home img {
        width: 380px; 
    }
    #contact a {
        font-size: 30px;
        transform: scale(1.4);
    }
    #about{
        img{
            width: 40%;
            float: left;
        }
        p{
            font-size: 20px;
        }
    }
    footer {
        font-size: 16px;
        height: auto;
    }
    #skills img, #projects img {
        margin-top: 10%;
        width: 180px; /* Minimum width for images */
        height: auto;
    }
    form input, form textarea, form button {
        width: 80%;
        font-size: 16px;
        min-height: 45px;
    }
}
@media (max-width: 380px) {
    #navigation {
        justify-content: end;
    }
    #Home h1, #Home h2 {
        font-size: 40px;
    }
    #Home img {
        
        margin-left: 50%;
        width: 200px; 
    }
    #contact a {
        font-size: 30px;
        transform: scale(1.4);
    }
    #about{
        img{
            width: 40%;
            float: left;
        }
        p{
            font-size: 20px;
        }
    }
    footer {
        font-size: 16px;
        height: auto;
    }
    #skills img, #projects img {
        margin-top: 10%;
        width: 180px; /* Minimum width for images */
        height: auto;
    }
    form input, form textarea, form button {
        width: 80%;
        font-size: 16px;
        min-height: 45px;
    }
}
