*{
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body{
    /* background-color: rgb(0, 0, 83); */
    background-color: rgb(5, 5, 39);
    color: white;
    font-family: 'Poppins', sans-serif;
    padding-top: 5rem;
}

.poppins-regular {
    font-family: "Poppins", serif;
    font-weight: 400;
    font-style: normal;
}
  
.poppins-bold {
    font-family: "Poppins", serif;
    font-weight: 700;
    font-style: normal;
}

.pattaya-regular {
    font-family: "Pattaya", serif;
    font-weight: 400;
    font-style: normal;
  }
  
nav{
    background-color: rgb(3, 3, 10);
    display: flex;
    /* flex-direction: row; */
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    height: 90px;
    position: fixed;  /* Fixes the navbar at the top */
    top: 0;           /* Places it at the top of the page */
    left: 0;          /* Aligns it to the left edge */
    right: 0;         /* Aligns it to the right edge */
    z-index: 1000;    /* Ensures the navbar stays on top of other elements */
}

nav ul{
    display: flex;
    list-style-type: none;
    justify-content: center;
    animation: slideInTop 1s ease-out forwards; /* Slide-in animation */
}

@keyframes slideInTop {
    0% {
        transform: translateY(-50%); /* Start off-screen above */
        opacity: 0; /* Start with 0 opacity */
    }
    100% {
        transform: translateY(0); /* End at normal position */
        opacity: 1; /* End with full opacity */
    }
}

nav ul li{
    margin:2rem;
    /* margin-right:1rem ; */
}

.left{
    font-family: "Pattaya", serif;
    font-size: 2.75rem;
    font-weight: 700;
    font-style: normal;
    margin-left: 3rem;
    padding: 0.5rem;
    letter-spacing: .2rem;
    border-radius: 50%;
    color: rgb(161, 69, 232);
    animation: slideInLeft 1s ease-out forwards; /* Slide-in animation */
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-100%); /* Start off-screen above */
    }
    100% {
        transform: translateY(0); /* End at normal position */
    }
}

.left:hover{
    background-color: rgb(0, 0, 0);
    /* border: 0.15rem solid rgb(109, 109, 197); */
    border: 0.15rem solid rgb(119 57 165);
    /* opacity: 50%; */
    cursor: pointer;
}

.firstSection{
    margin: 4.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.leftSection{
    width: 35%;
    /* background-color: red; */
    font-size: 3rem;
    display: inline;
    margin-top: 2rem;
    margin-left: 5rem;
    opacity: 0;
    transform: translateY(50px); /* Start below the final position */
    animation: fadeInUp 1.2s ease-in-out forwards;
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px); /* Start 50px below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* End at the original position */
    }
}



.rightSection{
    width: 28%;
    /* background-color: red; */
    margin-right: 9.5rem;
    transform: translateX(100%); /* Start off-screen to the right */
    animation: slideInRight 1s ease-out forwards; /* Slide-in animation */
}

/* Define the slide-in animation */
@keyframes slideInRight {
    0% {
        transform: translateX(40%); /* Start off-screen to the right */
    }
    100% {
        transform: translateX(0); /* End at the original position */
    }
}   

.nameFont{
    font-family: "Pattaya", serif;
    font-size: 4.3rem;
    margin-bottom: 2rem;
    /* color: rgb(155, 155, 250); */
    color : rgb(153, 77, 211);
}

.nameFontParent{
    margin-right: 6rem;
}

.rightSection img{
    height: 27rem ;
    width: 27rem;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 5rem;
}

ul li a {
    text-decoration: none;
    color: white; 
    background: linear-gradient(currentColor 0 0)
                bottom left / var(--underline-width, 0%) 0.1em no-repeat;
    display: inline-block;
    padding: 0 .5rem 0.2rem;
    text-decoration: none;
    transition: background-size 0.5s, color 0.5s;
}

.right ul li a:hover {
    --underline-width: 100%; /* Full width of the underline */
    color: rgb(168, 86, 230); /* Change text color on hover */
    background-size: 100% 0.1rem; /* Expands the underline */
}

.nameFont {
    text-decoration: none;
    background: linear-gradient(currentColor 0 0)
                bottom left / var(--underline-width, 0%) 0.1rem no-repeat;
    display: inline-block;
    text-decoration: none;
    transition: background-size 0.5s, color 0.5s;
}

.nameFont:hover{
    --underline-width: 100%; /* Full width of the underline */
    color: rgb(168, 86, 230); /* Change text color on hover */
    background-size: 100% 0.3rem; /* Expands the underline */
}

#element{
    /* color: rgb(119 57 165); */
    color: rgb(153, 77, 211);
    /* text-decoration: underline; */
    font-size: 3.1rem;
    font-style: normal;
}

main hr{
    border:0;
    background-color:rgb(199, 134, 249);
    height: 1.2px;
    margin: 6rem 40rem;
    padding-top: 0.09rem;
}

#hr{
    border:0;
    background-color:rgb(199, 134, 249);
    height: 1.2px;
    margin: 6rem 40rem;
    padding-top: 0.09rem;
}

.section2{
    max-width: 75rem;
    margin: -3rem auto;
}

.section2 h1{
    font-size: 2rem;
    margin-bottom: 10rem;
}


.footer {
    text-align: center;
    margin-top:5rem;
    background-color: rgb(3, 3, 10);
}

.footer h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}


.footer ul {
    display: flex;
    justify-content: center;  
    padding: 0;
    list-style: none;
    margin: 0;
    gap: 1rem;
}

.footer li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-link {
    display: block;
    width: 5rem;      
    height: 5rem;     
    /* background-color: #007bff;  */
    border-radius: 50%;  
    overflow: hidden;    
    transition: transform 0.3s ease; 
}

.social-icon {
    width: 100%;     
    height: 100%;    
    object-fit: cover; 
}

#a1 {
    transform: scale(1.2); /* Scale the image 1.5 times larger */
}

#a1:hover {
    transform: scale(1.4); 
}

#a2 {
    transform: scale(1); /* Scale the image 1.5 times larger */
    padding-bottom: 0.5rem;
}

#a2:hover {
    transform: scale(1.2); 
}

#a3 {
    transform: scale(0.75); /* Scale the image 1.5 times larger */
    padding-top: 0.5rem;
}

#a3:hover {
    transform: scale(1); 
}

.footer hr {
    border:0;
    background-color:rgb(199, 134, 249);
    height: 1.2px;
    margin: 0rem 40rem;
    padding-top: 0.2rem;
}

/* .about-info{
    background-color: rgb(75, 25, 113);
    color: rgb(161, 69, 232);
    height: 15rem;
    width: 30rem;
    margin-top: -7.5rem;
    border: 0.1rem rgb(161, 69, 232) solid;
    border-radius: 6%;
    padding: 2rem;
    margin-left: -2rem;
} */

.about-info {
    color: rgb(161, 69, 232); /* Keeping the original text color */
    background: rgba(161, 69, 232, 0.1); /* Light background color */
    height: 15rem; /* As per your original height */
    width: 30rem; /* As per your original width */
    margin-top: -7.5rem; /* Keeping the margin-top as you requested */
    margin-left: -2rem; /* Keeping the margin-left as you requested */
    border: 0.1rem solid rgb(161, 69, 232); /* Thin border with your original color */
    border-radius: 12px; /* More rounded corners for a smoother look */
    padding: 2rem; /* Balanced padding */
    box-shadow: 0px 4px 12px rgba(161, 69, 232, 0.4); /* Purple shadow for visibility */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add a smooth transition for hover effects */
    text-align: center; /* Center text inside the div */
}

.about-info h3 {
    /* font-size: 2.5rem;  */
    margin-bottom: 1rem; /* Spacing below the heading */
    color: rgb(161, 69, 232); 
    /* color: #f0f0f0; */
}

.about-info p {
    /* font-size: 1.2rem;  */
    line-height: 1.6; /* Improve line height for readability */
    color: #f0f0f0; /* Light gray/white */
    ; /* Darker text color for better contrast */
}

/* Hover effect to bring attention */
.about-info:hover {
    transform: translateY(-10px); /* Slight lift effect */
    box-shadow: 2px 8px 24px rgba(161, 69, 232, 0.6); /* Stronger purple shadow on hover */
}

.aboutme{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/*---------------------------*/

/* Basic setup for the container and the skill circle */
/* Basic setup for the container and the skill circle */

.skill-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15rem; 
    width: 30rem;
    margin-left: 8rem;
    margin-top: -5rem;
    margin-bottom: 10rem;
}

.skill {
    position: relative;
    width: 8rem;
    height: 8rem;
    background-color: #6a1b9a;  
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0px 0px 140px rgb(187, 118, 203);
}

.bubble {
    position: absolute;
    background-color: #3f51b5;  
    color: white;
    border-radius: 50%;
    width: 4.9rem;
    height: 4.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; 
    transition: all 0.4s ease;
    font-size: 0.7rem;
}

.bubble-1 {
    top: 10%;
    left:10%;
}
.bubble-2 {
    top: 10%;
    right: 10%;
}
.bubble-3 {
    bottom: 10%;
    left: 10%;
}
.bubble-4 {
    bottom: 10%;
    right: 10%;
}
.bubble-5 {
    bottom: 10%;
    right: 10%;
}
.bubble-6 {
    bottom: 10%;
    right: 10%;
}
.bubble-7 {
    bottom: 10%;
    right: 10%;
}
.bubble-8 {
    bottom: 10%;
    right: 10%;
}
.bubble-9 {
    bottom: 10%;
    right: 10%;
}
.bubble-10 {
    bottom: 10%;
    right: 10%;
}

.skill:hover{
    box-shadow: 0px 0px 20px rgb(231, 190, 248);
}

.skill:hover .bubble {
    opacity: 1;  
    transform: translate(0, 0);
    box-shadow: 0px 0px 30px rgba(105, 131, 226, 0.6);
    background-color: black;
    color: rgb(161, 69, 232);
    font-size: 0.9;
}

.skill:hover .bubble-1 {
    transform: translate(-65px, -75px); 
    width: 4rem;
    height: 4rem;
}

.skill:hover .bubble-2 {
    transform: translate(60px, -70px);  
    width: 4rem;
    height: 4rem;
}

.skill:hover .bubble-3 {
    transform: translate(-130px, -20px); 
    width: 6rem;
    height: 6rem;
}

.skill:hover .bubble-4 {
    transform: translate(80px, 60px);  
    width: 4rem;
    height: 4rem;
}

.skill:hover .bubble-5 {
    transform: translate(100px, -20px); 
    width: 4rem;
    height: 4rem;
}

.skill:hover .bubble-6 {
    transform: translate(150px, -100px); 
}
.skill:hover .bubble-7 {
    transform: translate(-190px, 55px); 
}
.skill:hover .bubble-8 {
    transform: translate(10px, 130px); 
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
}
.skill:hover .bubble-9 {
    transform: translate(-20px, -140px); 
}
.skill:hover .bubble-10 {
    transform: translate(-100px, 70px); 
}

.skill:hover .bubble-11 {
    transform: translate(-170px, -130px); 
    background-color: rgb(255, 255, 255);
    font-size: 1rem;
    box-shadow: 0px 0px 30px rgba(85, 104, 227, 0.6);
}

.skill:hover .bubble-12 {
    transform: translate(200px, 10px); 
    background-color:  rgb(255, 255, 255);
    font-size: 1rem;
}

.skill:hover .bubble-13 {
    transform: translate(120px, 170px); 
    background-color:  rgb(255, 255, 255);
    font-size: 1rem;
}

.skill:hover .bubble-14 {
    transform: translate(-110px, 180px); 
    background-color:  rgb(255, 255, 255);
    font-size: 1rem;
    width: 6rem;
    height: 6rem;
}

.skill:hover .bubble-15 {
    transform: translate(90px, -175px); 
    background-color: rgb(255, 255, 255);
    font-size: 1rem;
    box-shadow: 0px 0px 30px rgba(85, 104, 227, 0.6);
}

.skill:hover .bubble-16 {
    transform: translate(200px, 110px); 
}

.skill:hover .bubble-19 {
    transform: translate(180px, 65px); 
    height: 4rem;
    width: 4rem;
}


.podium{
    height: 20rem;
    /* width: 6rem; */
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    text-align: center;
    /* background-color: red; */
}

.podium-2{
    height: 10rem;
    width: 10rem;
    border-radius: 1.5rem 1.5rem 0.5rem 0.5rem;
    background-color: rgb(76, 13, 124);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 2rem;
}

.podium-1{
    height: 10rem;
    width: 10rem;
    border-radius: 1.5rem 1.5rem 0.5rem 0.5rem;
    background-color: rgb(76, 13, 124);
    padding-top: 2rem;
    padding-bottom: 3.5rem;
    margin-bottom: 3.5rem;
    /* display: flex;
    align-items: center; */
}

.podium-3{
    height: 10rem;
    width: 10rem;
    padding-top: 2rem;
    border-radius: 1.5rem 1.5rem 0.5rem 0.5rem;
    background-color: rgb(76, 13, 124);
}

.podium .content{
    visibility: hidden;
    opacity: 0; /* Ensure content is not visible initially */
    transition: opacity 0.3s ease, transform 1s ease; /* Add transition for both opacity and transform */
}

.podium-1:hover .content{
    visibility: visible;
    opacity: 1; /* Make content visible */
    background-color: black;
    height: 4rem;
    width: 20rem;
    transform: translateX(-5rem) translateY(-12rem) ; /* Translate to the right */
    border-radius: 2rem;
    padding: 1rem;
}

.podium-1 {
    transition: transform 0.3s ease; /* Add transition for smooth movement */
}

.podium-1:hover {
    transform: translateY(-1.5rem); /* Move podium 2rem upwards */
}


.podium-2:hover .content{
    visibility: visible;
    opacity: 1; /* Make content visible */
    background-color: black;
    height: 4rem;
    width: 20rem;
    transform: translateX(-5rem) translateY(-12rem) ; /* Translate to the right */
    border-radius: 2rem;
    padding: 1rem;
}

.podium-2 {
    transition: transform 0.3s ease; /* Add transition for smooth movement */
}

.podium-2:hover {
    transform: translateY(-1.5rem); /* Move podium 2rem upwards */
}

.podium-3:hover .content{
    visibility: visible;
    opacity: 1; /* Make content visible */
    background-color: black;
    height: 4rem;
    width: 20rem;
    transform: translateX(-5rem) translateY(-15rem) ; /* Translate to the right */
    border-radius: 2rem;
    padding: 1rem;
}

.podium-3 {
    transition: transform 0.3s ease; /* Add transition for smooth movement */
}

.podium-3:hover {
    transform: translateY(-1.5rem); /* Move podium 2rem upwards */
}

.section3 h1{
    max-width: 75rem;
    margin: -3rem auto;
    font-size: 2rem;
    margin-bottom: 5rem;
}

.sec3{
    max-width: 75rem;
    margin: -3rem auto;
    display: flex;
    /* background-color: aqua; */
    justify-content: space-around;
}

.proj1{
    background-color: rgb(76, 13, 124);
    height:20rem;
    width: 20rem;
    padding: 1rem;
    border-radius: 10%;
    /* box-shadow: 0px 0px 0 rgb(187, 118, 203); */
    box-shadow: 0px 0px 30px rgb(187, 118, 203);
    transition: box-shadow 0.3s ease-in-out; 
}

.proj1:hover {
    box-shadow: 0 0 100px rgb(187, 118, 203);
}

.proj2{
    background-color: rgb(76, 13, 124);
    height:20rem;
    width: 20rem;
    padding: 1rem;
    border-radius: 10%;
    box-shadow: 0px 0px 30px rgb(187, 118, 203);
    transition: box-shadow 0.3s ease-in-out;
}

.proj2:hover {
    box-shadow: 0 0 100px rgb(187, 118, 203);
}

.proj3{
    background-color: rgb(76, 13, 124);
    height:20rem;
    width: 20rem;
    padding: 1rem;
    border-radius: 10%;
    box-shadow: 0px 0px 30px rgb(187, 118, 203);
    transition: box-shadow 0.3s ease-in-out;
}

.proj3:hover {
    box-shadow: 0 0 100px rgb(187, 118, 203);
}

.section3 a{
    text-decoration: none;
    color: white;
    text-align: justify;
}

.sec32{
    max-width: 75rem;
    margin: -3rem auto;
    display: flex;
    /* background-color: aqua; */
    justify-content: center;
    gap: 3rem;
}

.proj4{
    background-color: rgb(76, 13, 124);
    height:20rem;
    width: 20rem;
    padding: 1rem;
    border-radius: 10%;
    margin-top: 5rem;
    box-shadow: 0px 0px 30px rgb(187, 118, 203);
    transition: box-shadow 0.3s ease-in-out;
}

.proj4:hover {
    box-shadow: 0 0 100px rgb(187, 118, 203);
}

.proj5{
    background-color: rgb(76, 13, 124);
    height:20rem;
    width: 20rem;
    padding: 1rem;
    border-radius: 10%;
    margin-top: 5rem;
    box-shadow: 0px 0px 30px rgb(187, 118, 203);
    transition: box-shadow 0.3s ease-in-out;
}

.proj5:hover {
    box-shadow: 0 0 100px rgb(187, 118, 203);
}

/* CONTACT */

.contact-form-container {
    background-color: rgb(76, 13, 124);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.contact-form-container h2 {
    text-align: center;
    color: white;
}

.contact-form-container .form-group {
    margin-bottom: 15px;
}

.contact-form-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.contact-form-container input, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
}

.contact-form-container textarea {
    resize: vertical;
}

.contact-form-container button {
    width: 100%;
    padding: 10px;
    background-color: rgb(0, 0, 0);
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form-container button:hover {
    background-color: rgb(41, 16, 61);
}

.contact-form-container:hover {
    box-shadow: 1rem -1rem 3rem rgb(187, 118, 203);
}

.contact-form-container #form-status {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: rgb(255, 255, 255);
}

.contact{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}

.myLinks{
    width: 30rem;
    height: 25rem;
    background-color: rgb(76, 13, 124);
    border-radius: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10rem;
    padding: 0.5rem;
}

.myLinks:hover{
    background-color: rgb(91, 39, 130);
    box-shadow: 1rem -1rem 3rem rgb(187, 118, 203);
}

input::placeholder,
textarea::placeholder {
    font-family: 'Poppins', sans-serif; /* Change font family */
    font-size: 16px; /* Change font size */
    font-weight: bold; /* Change font weight */
    color: rgba(0, 0, 0, 0.5); /* Change placeholder color */
}