* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    background-color: black;
    font-family: Arial, sans-serif;
}

#main {
    position: relative;
    overflow: hidden;
    height: 100%;
}

h1 {
    color: #0F0;
    font-size: 20px;
    text-align: center;
    z-index: 2;
}

canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 10%;
    height: 100%;
    padding-top: 20px;
    z-index: 2;
}

#sidebar ul {
    list-style: none;
    position: relative;
    top: 30%;
    display: flex;
    flex-direction: column;
    left: 10%;
}

#sidebar ul li {
    margin: 10px 0;
}

#sidebar ul li a {
    color: #0F0;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
    display: flex;
    align-items: center;
    transition: background 0.3s, color 0.3s;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

#sidebar ul li a i {
    margin-right: 10px;
}

#sidebar ul li a span {
    opacity: 0;
    position: absolute;
    left: 30%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#sidebar ul li a:hover {
    background: black;
}

#sidebar ul li a:hover span {
    opacity: 1;
    transform: translateX(0);
}

.box {
    height: 90%;
    width: 90%;
    /* background-color: black; */
    border-radius: 5%;
    color: #00FF00;
}



/* body + sidebar Responsive Design */
@media (max-width: 1000px) {
    #sidebar {
        position: fixed;
        top: 0;
        width: 100%;
        height: auto;
        z-index: 10;
        background-color: black;
    }

    #sidebar ul li a span {
        position: unset;
    }

    #sidebar ul li a i {
        margin-right: 10px;
        margin-bottom: 10px;
    }

    #sidebar ul {
        flex-direction: row;
        justify-content: center;
        top: 0;
        left: 0;
    }

    #sidebar ul li {
        margin: 5px 0;
    }

    #sidebar ul li a {
        font-size: 16px;
        padding: 5px;
        display: flex;
        flex-direction: column;
    }

    .box {
        width: 90%;
        height: 80%;
        position: relative;
        top: 5%;

    }


}


/* Section home */
.mainbox {
    display: flex;
    justify-content: center;
    align-items: center;
}

#box1 {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: center;
    background: none;
}

.innerbox {
    display: flex;
    flex-direction: column;
    align-items: center;

}


.welcome {
    position: relative;
    left: 50px;
    width: 60%;
}


#home {
    height: 100vh;
    width: 100%;
}

.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 5px solid #4caf50;
    box-shadow: 0 0 20px 5px rgba(76, 175, 80, 0.5);
    margin-bottom: 20px;
}

.fontbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.fontbox h1 {
    font-size: 60px;

}

.fontbox p {
    font-size: 15px;
}



.social-links {
    margin-top: 20px;
    font-size: 25px;
    border: 3px solid #00FF00;
    padding: 15px;
    border-radius: 15px
}

.social-links a {
    text-decoration: none;
    color: #00FF00;
    font-size: 1.5em;
    margin-right: 10px;
}

.social-links a:hover {
    transform: scale(1.1);
    text-shadow: 0 0 8px #00FF00, 0 0 16px #00FF00, 0 0 24px #00FF00;
}

/* word animation */


.word-wrapper {
    position: relative;
}

.word-wrapper b {
    position: absolute;
    left: 0;
    color: #00FF00;

}

.word-wrapper b.hidden {
    display: none;
}

.word-wrapper b.visible,
.word-wrapper b.temporary {
    display: inline;
}


.word-wrapper b.visible {
    position: relative;
    font-size: 150px;
}

.word-wrapper b i:nth-of-type(2) {
    animation-delay: .05s;

}

.word-wrapper b i:nth-of-type(3) {
    animation-delay: .1s;
}

.word-wrapper b i:nth-of-type(4) {
    animation-delay: .15s;

}

.word-wrapper i:nth-of-type(5) {
    animation-delay: .2s;

}

.word-wrapper b i:nth-of-type(6) {
    animation-delay: .25s;

}

.word-wrapper b i:nth-of-type(7) {
    animation-delay: .3s;
}

.word-wrapper b i:nth-of-type(8) {
    animation-delay: .35s;

}

.word-wrapper b i:nth-of-type(9) {
    animation-delay: .4s;
}

.word-wrapper b i:nth-of-type(10) {
    animation-delay: .45s;

}

.word-wrapper b i:nth-of-type(11) {
    animation-delay: .5s;
}

.word-wrapper b i:nth-of-type(12) {
    animation-delay: .55s;
}

.word-wrapper b i:nth-of-type(13) {
    animation-delay: .6s;
}


.word-wrapper i {
    font-style: normal;
    opacity: 0;
    transform: scale(0);
    animation-duration: .6s;
    animation-fill-mode: backwards;
}

.word-wrapper .visible i {
    opacity: 1;
    transform: scale(1);
    animation-name: scale-up;
}

.word-wrapper .hidden i {
    animation-name: scale-down;
}

.word-wrapper i:hover {
    text-shadow: 0 0 8px #00FF00, 0 0 16px #00FF00, 0 0 24px #00FF00;
    color: #00FF00;
    /* Glow color */
}


/* This animates individual letters of word */
@keyframes scale-up {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
        /* this creates bounce effect */
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scale-down {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* responsive home */

@media (max-width: 1500px) {
    .word-wrapper b.visible {
        font-size: 50px;
    }
}



@media (max-width: 1000px) {

    #box1 {
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-around;
    }

    .innerbox {
        align-items: center;
    }


    .welcome {
        position: relative;
        left: 0px;
        width: 100%;
        text-align: center;
    }

    .word-wrapper b.visible {
        font-size: 25px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }


    .fontbox h1 {
        font-size: 40px;
        padding: 10px;
    }

    .fontbox p {
        font-size: 15px;
        padding: 10px;
    }


    .social-links {

        font-size: 15px;
    }



}











/* Section About */
#about {
    height: 100vh;
    width: 100%;
}

/* Image Styling */
img {
    border-radius: 0.5em;
}

/* Centered Elements */
.centered {
    margin: auto;
    width: max-content;
}

/* Flipbook Styling */
.flipbook {
    margin: 3em auto;
    width: 90%;
    height: 70%;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.flipbook .leaf {
    position: absolute;
    transform-style: preserve-3d;
    height: 100%;
    width: 50%;
    background-color: #000;
    /* Matrix background */
    left: 50%;
    transition: transform 1s;
    transform: rotate3d(0, 1, 0, 0deg);
    transform-origin: left 0px;
    border: 8px solid #00FF00;
    /* Matrix green border */
}

.flipbook .leaf .page {
    transform-style: preserve-3d;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}

.page.front.title.external.page-title h1 {
    font-size: 40px;
    padding: 15px;
    text-decoration-line: underline;
    position: relative;
    top: 30%;
}

.page.front.title.external.page-title em {
    font-size: 20px;
    line-height: 30px;
    padding: 5px;
    font-style: normal;
    display: flex;
}

.flipbook .leaf .page.front {
    transform: rotate3d(0, 1, 0, 0deg) translate3d(0, 0, 0.1px);

    /* box-shadow: inset 0px 0px 20px 5px #00FF0050; */

}

.flipbook .leaf .page.back {
    transform: rotate3d(0, 1, 0, 180deg) translate3d(0, 0, 0.1px);

    /* box-shadow: inset 0px 0px 20px 5px #00FF0050; */

}

.flipbook .leaf.turned {
    transform: rotateY(180deg);
}

/* Disabled State */
.disabled {
    user-select: none;
    opacity: 0.6;
}

/* Title Styling */
.title {
    text-align: center;
    width: 100%;
    padding: 0em !important;
    padding-top: 2em;
    color: #00FF00;
    /* Matrix green text */
}

/* Page Styling */
.page {
    padding: 1em;
}

/* .page.front {
    border-radius: 0em 1em 1em 0;
}

.page.back {
    border-radius: 1em 0em 0em 1em;
} */

.page.front:hover,
.page.back:hover {
    box-shadow: inset 0px 0px 20px 15px #00FF0050;
    transition: 0.5s;
}

/* Leaf Styling */
.leaf {
    background-color: #000 !important;
    /* Matrix background */
}

/* Page Number Styling */
.pageNumber {
    font-size: 0.75em;
    position: absolute;
    bottom: 0.5em;
    color: #00FF00;
    /* Matrix green text */
}


.front .pageNumber {
    right: 0.75em;
}

.back .pageNumber {
    left: 0.75em;
}

/* Contents Row Styling */
.contents-row {
    display: flex;
    flex-flow: row nowrap;
}

.contents-row .spacer {
    flex: 1 1;
    height: 1em;
    border-bottom: 1px dashed #00FF00;
    /* Matrix green dashed line */
}

.contents-row .text {
    flex: 0 0 auto;
    color: #00FF00;
    /* Matrix green text */
}


/* Body Onload Styling */
body[onload] {
    transform: scale(1.5);
    transform-origin: center top;
}

body[onload] .leaf:nth-child(1) {
    transform: rotate3d(0, 1, 0, -128deg) !important;
}

body[onload] .leaf:nth-child(2) {
    transform: rotate3d(0, 1, 0, -70deg) !important;
}

body[onload] .leaf:nth-child(3) {
    transform: rotate3d(0, 1, 0, -40deg) !important;
}

body[onload] div.leaf:nth-child(4)>div:nth-child(1) {
    background-color: #0e0;
    /* Slight variation for effect */
}

/* Intro Section Styling */
.cd__intro {
    background-color: #000;
    /* Matrix background */
    color: #00FF00;
    /* Matrix green text */
}


button#prevPage {
    background-color: #000;
    color: #00FF00;
    padding: 15px;
    border: 3px solid #00FF00;
    border-radius: 15px 0 0 15px;
}

button#nextPage {
    background-color: #000;
    color: #00FF00;
    padding: 15px;
    border: 3px solid #00FF00;
    border-radius: 0 15px 15px 0px;
}


button#prevPage:hover,
button#nextPage:hover {
    box-shadow: inset 0 0 5px 10px #00FF0050;
    transition: 0.5s;
}


/* page 1 */

.page.back.page-back {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.page.back.page-back img {
    position: relative;
    max-width: 100%;
    height: auto;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

@media (min-width: 768px) {
    .image-container {
        flex-direction:column;
    }

    
}

@media (max-width: 767px) {
    .image-container img {
        width: 100%;
        /* 1 image per row on mobile */
    }
}





/* page 2 */
.page.front.page-contents h2 {
    font-size: 40px;
    padding: 13px;
}

.page.front.page-contents p {
    font-size: 30px;
    padding: 20px;
    border: 2px solid #00FF00;
}

/* responsive page 2 */
@media (max-width: 768px) {
    .page.front.page-contents h2 {
        font-size: 20px;
    }

    .page.front.page-contents p {
        font-size: 13px;
    }
}



/* page 3 */

.personal-details h2 {
    text-align: center;
    font-size: 30px;
    padding: 10px;
    text-decoration: underline;
}

.detail {
    font-size: 20px;
    padding: 10px;
}

/* Responsive  page 3 */

@media (max-width: 1000px) {

    .detail {
        font-size: 15px;

    }
}


@media (max-width: 768px) {
    .personal-details h2 {
        font-size: 20px;
    }

    .detail {
        font-size: 15px;
        padding: 6px;
    }
}



@media (max-width: 480px) {
    .personal-details h2 {
        font-size: 20px;
    }

    .detail {
        font-size: 9px;
        padding: 5px;
    }
}



/* page 4 */

.page.front.page-description {
    overflow: auto;
}

.page.front.page-description h2 {
    font-size: 30px;
    padding: 15px 15px 0;
}

.timeline {
    position: relative;
    width: 80%;
    padding: 10px 0;
    margin: 10px 0;
}

.timeline-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 2px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #00ff00;
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: 1px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #00ff00;
}

.timeline-content {
    background: rgba(0, 255, 0, 0.1);
    padding: 10px 20px;
    border-radius: 4px;
    position: relative;
}

.timeline-content h3 {
    margin: 0;
    font-size: 20px;
}

.timeline-content h4 {
    margin: 10px 0 0;
    font-size: 15px;
    text-align: end;
}

.timeline-content p {
    font-size: 15px;
}

/* page 4 responsive */
@media (max-width:1400px) {

    .timeline-content h3 {
        font-size: 10px;
    }

    .timeline-content h4 {
        font-size: 8px;

    }

    .timeline-content p {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .page.front.page-description h2 {
        font-size: 15px;
    }

    .timeline-content {
        padding: 0px 10px;

    }

    .timeline-content h3 {
        font-size: 8px;
    }

    .timeline-content p {
        font-size: 4px;
    }

}

@media (max-width: 480px) {}


/* page 5 */

.page.back.page-lorem-ipsum h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 10px;
}

.skills-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
}

.skills-icons span {
    font-size: 20px;
    display: flex;
    flex-direction: column;
    border: 3px solid #0F0;
    align-items: center;
    padding: 8px;
    gap: 15px;
    border-radius: 15px;
}

.skills-icons span i {
    font-size: 4rem;
    padding-top: 10px;
}

/* page 5 responsive */
@media (max-width:1500px) {
    .skills-icons span i {
        font-size: 2rem;
    }

    .skills-icons span {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .page.back.page-lorem-ipsum h2 {
        font-size: 24px;
        /* Smaller font size for tablets and smaller screens */
    }

    .skills-icons span i {
        font-size: 15px;
        padding-top: 3px;
    }

    .skills-icons span {
        font-size: 4px;
    }

    .skills-icons {
        gap: 5px;
        padding: 0px;
    }

}

@media (max-width: 480px) {
    .page.back.page-lorem-ipsum h2 {
        font-size: 20px;
        /* Even smaller font size for mobile devices */
    }

    .skills-icons span {
        gap: 8px;
    }
}




/* page 6 */

.page.front.page-nullam {
    overflow: auto;
}

.page.front.page-nullam h2 {
    font-size: 30px;
    padding: 10px;
}

/* Experience line styles */
.experience-line {
    position: relative;
    padding: 20px 0;
    margin-top: 20px;
}

.experience-line::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #00ff00;
    /* Updated to green theme */
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -2px;
}

.line-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
}

.line-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #00ff00;
    /* Updated to green theme */
    left: 14px;
    top: 0;
}

.line-content {
    background-color: #00ff00;
    padding: 10px 15px;
    border-radius: 5px;
}

.line-content h3 {
    margin-top: 0;
    font-size: 18px;
    color: black;
}

.line-content h4 {
    margin: 5px 0;
    font-size: 16px;
    color: #333;
}

.line-content p {
    padding: 5px;
    margin: 0;
    color: #555;
}

.line-content a {
    color: blue;
    /* Updated to green theme */
    text-decoration: none;
    font-size: 14px;
}

.line-content a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for different screen sizes */

/* For medium-sized screens like tablets (less than 1000px) */
@media (max-width: 1000px) {
    .page.front.page-nullam h2 {
        font-size: 24px;
        padding: 8px;
    }

    .experience-line {
        padding: 15px 0;
    }

    .line-item {
        padding-left: 30px;
    }

    .line-item::before {
        left: 10px;
    }

    .line-content {
        padding: 8px 12px;
    }
}

/* For smaller tablets and larger mobile devices (less than 768px) */
@media (max-width: 768px) {
    .page.front.page-nullam h2 {
        font-size: 20px;
        padding: 6px;
    }

    .experience-line::after {
        left: 15px;
    }

    .line-item {
        padding-left: 25px;
    }

    .line-item::before {
        left: 8px;
    }

    .line-content {
        padding: 8px 10px;
    }

    .line-content h3 {
        font-size: 16px;
    }

    .line-content h4 {
        font-size: 14px;
    }

    .line-content a {
        font-size: 13px;
    }
}

/* For small mobile devices (less than 480px) */
@media (max-width: 480px) {
    .page.front.page-nullam h2 {
        font-size: 18px;
        padding: 5px;
    }

    .experience-line::after {
        left: 10px;
    }

    .line-item {
        padding-left: 20px;
        margin-bottom: 15px;
    }

    .line-item::before {
        left: 5px;
    }

    .line-content {
        padding: 7px 8px;
    }

    .line-content h3 {
        font-size: 14px;
    }

    .line-content h4 {
        font-size: 12px;
    }

    .line-content p {
        padding: 3px;
    }

    .line-content a {
        font-size: 12px;
    }
}



/* end page 7 */

.page.back.external.page-end {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page.back.external.page-end h2 {
    font-size: 60px;
}

.page.back.external.page-end p {
    font-size: 30px;
}



/* page 7 responsive */

@media (max-width: 1000px) {}

@media (max-width: 768px) {
    .page.back.external.page-end h2 {
        font-size: 20px;
    }

    .page.back.external.page-end p {
        font-size: 8px;
    }

}

@media (max-width: 480px) {}





/* Home responsive */
@media (max-width: 1000px) {
    .page.front {
        font-size: 5px;
    }

    .page.back {
        font-size: 5px;
    }

    .page.front h2 {
        font-size: 8px;
    }

    .page.front.title.external.page-title h1 {
        font-size: 20px;
    }

    .page.front.title.external.page-title em {
        line-height: normal;
        font-size: 10px;
    }
}



/* section projects*/
#projects {
    height: 100vh;
    width: 100%;
    /* Set background to black */
    color: #0f0;
    /* Set text color to neon green */
}

#box3 {
    padding: 20px;
    display: flex;
    /* Set background to black */
}

.cards_section {
    display: flex;
    justify-content: space-around;
    align-content: center;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.cards {
    height: 300px;
    width: 450px;
    margin-bottom: 20px;
    display: flex;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    background-color: rgba(0, 255, 0, 0.1);
    /* Add a translucent green background */
    border: 2px solid #0f0;
    /* Add green border */
}

.slide_left_window {
    height: 90%;
    width: 60%;
    transform: skew(20deg);
    border-radius: 20px;
    overflow: hidden;
    position: absolute;
    left: 5%;
    margin-left: 25px;
}

/* Uncomment the background images if you want to use them */


.bg1 {
    background-image: url('1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


.bg2 {
    background-image: url('2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.bg3 {
    background-image: url();
}

.cards_slide_left {
    background: linear-gradient(to right, #000 0%, #0f0 100%);
    /* Gradient from black to green */
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 500px;
    transform-origin: top left;
    transform: skew(-20deg);
    border-right: 20px solid #0f0;
    /* Green border */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cards_slide_right {
    background: linear-gradient(to right, #0f0 0%, #000 100%);
    /* Gradient from green to black */
    position: absolute;
    right: -100px;
    top: 0;
    height: 100%;
    width: 250px;
    transform-origin: top right;
    transform: skew(-20deg);
}

.cards_slide_inner_left {
    background: linear-gradient(to right, #000 0%, #0f0 100%);
    /* Gradient from black to green */
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 500px;
    transform-origin: bottom left;
    transform: skew(20deg);
}

.cards_slide_inner_right {
    background-color: #0f0;
    /* Set inner right background to green */
    position: absolute;
    right: -100px;
    top: 0;
    height: 100%;
    width: 250px;
    transform-origin: bottom right;
    transform: skew(20deg);
}

.text_rear {

    color: #0f0;
    font-size: 40px;
    position: absolute;
    right: 20%;
    bottom: 70px;
    text-decoration: none;
    transition: ease;
}

.text_rear i {
    font-size: 60px;
}

.text_rear:hover {
    text-decoration: underline;
    color: blue;

}

/* section project */
@media (max-width: 1000px) {

    #box3 {
        overflow-x: auto;
        align-items: center;
        flex-wrap: wrap;
    }

    .cards_section {
        flex-direction: column;
    }

    .cards {
        height: 200px;
        width: 300px;
    }

    .cards_slide_left {
        width: 200px !important;
    }

    .text_rear {
        color: #0f0;
        /* Set text color to neon green */
        font-size: 35px;
        position: absolute;
        right: 12%;
        bottom: 50px;
    }

    .cards_slide_right {
        width: 80px !important;
    }
}




/* section contact */
#contact {
    height: 100vh;
    width: 100%;
}

#box4 {
    position: relative;
}

.formbox {
    height: 100%;
    width: 100%;
    padding: 60px;
}

.formbox h2 {
    text-align: center;
    font-size: 36px;
    animation: fadeInUp 1s ease;
    padding: 20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form {

    /* background: black; */
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;

    animation: slideIn 1s ease;
    border: 4px solid #0f0;
}

form:hover {
    box-shadow: 0 0 20px 10px rgb(3 255 29);
    transition: ease 1s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-container {
    position: relative;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.formbox input[type="text"],
.formbox input[type="email"],
.formbox input[type="tel"],
.formbox textarea {
    width: calc(100% - 40px);
    padding: 20px;
    border: none;
    border-radius: 5px;
    background-color: black;
    color: #7b7b7b;
    outline: none;
    transition: box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border: 5px solid #0f0;
}

.input-container input:hover,
.input-container input:focus {
    background-color: #0f0;
    box-shadow: 0 0 20px 9px rgb(42 255 0);
}

.input-container input:focus {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.5);
}

.icon-placeholder {
    position: absolute;
    top: 50%;
    right: 90px;
    transform: translateY(-50%);
    color: #0f0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.input-container:hover .icon-placeholder,
.input-container:focus-within .icon-placeholder {
    opacity: 1;
}

.error {
    color: #ff5050;
    font-size: 14px;
    margin-left: 5px;
    display: flex;
}

button[type="button"] {
    background-color: black;
    color: #0F0;
    padding: 10px 20px;
    border: none;
    border: 3px solid #0f0;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

button[type="button"]:hover {
    background-color: #0f0;
    transform: scale(1.05);
    color: black;
}

.popup {

    position: fixed;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    background-color: #0f0;
    color: black;
    padding: 28px;
    display: none;
    z-index: 999;
    animation: fadeIn 0.5s ease forwards;
    font-size: 20px;
}

.popup .close {
    color: black;
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;

}

.popup .close:hover {
    color: #fff;
    transform: scale(1.2);
}

.popup p {
    margin: 0;
}

.success,
.error {
    transition: opacity 0.5s ease;
}

/* Media queries for responsiveness */
@media only screen and (max-width: 768px) {
    .formbox {
        padding: 5px;
    }

    .input-container input[type="text"],
    .input-container input[type="email"],
    .input-container input[type="tel"],
    .input-container textarea {
        width: calc(100% - 5px);
    }

    .icon-placeholder {
        right: 20px;
    }

    .popup {
        left: 20%;
        padding: 20px;

        font-size: 11px;
    }
}

/* Media queries for smaller screens */
@media only screen and (max-width: 480px) {
    form {
        max-width: 90%;
        margin-top: 10px;
    }

    .input-container {
        margin-bottom: 5px;
    }

    .popup {
        padding: 30px;
        font-size: 19px;
    }
}