* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #F2F9FF;
}

::-webkit-scrollbar {
    width: 0.5em;
    background-color: #00008B;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #e7f3ff, #6610F2);
    border-radius: 4px;
}

/* Navigation Styles */
.navbar {
    background-color: #00008B;
}

.fa-bars {
    background-color: #F2F9FF;
}

.nav-item {
    background-color: #F2F9FF;
    border-radius: 8px;
    margin-left: 4px;
}

.nav-item:hover {
    background-color: #6610f2;
}

.nav-item .nav-link {
    color: #6610f2;
    font-weight: bold;
    text-align: center;

}

.nav-item.selected {
    background-color: #6610f2;
}

.nav-item.selected .nav-link {
    color: #F2F9FF;
}

.nav-item .nav-link:hover {
    color: #F2F9FF;
}


.navbar-title {
    color: #F2F9FF;
    text-decoration: none;
    font-size: 30px;
    font-weight: bold;
}

.navbar-title:hover {
    color: #F2F9FF;
    text-decoration: none;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}

.navbar-dark .navbar-toggler-icon {
    background-color: #F2F9FF;
}


/* Introduction Section Styles */
#introduction {
    padding: 80px 40px;
}


.me-text {
    font-size: 25px;
    font-weight: 500;
    animation: slideBottom 1s ease forwards;
    opacity: 0;
    animation-delay: .5s;
}

.name-text {
    font-size: 30px;
    margin-top: -25px;
    font-weight: bold;
    color: #007bff;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: .5s;
}

.display-4 {
    position: relative;
    font-size: 25px;
    margin-top: -30px;
    font-weight: 600;
    color: #00008B;
    animation: slideTop 1s ease forwards;
    opacity: 0;
    animation-delay: .5s;
}

.introduction-content {
    margin-top: 52px;
}

/* Animation */

@keyframes slideBottom {
    from {
        opacity: 0;
        transform: translateY(-80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideTop {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(180px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Home Section Styles */

.home {
    margin-top: 80px;
}

.animated-text {
    color: #6610f2;
}

/* Typing Animation Styles */
.animated-text::after {
    content: '|';
    color: #00008B;
    display: inline-block;
    animation: blinkCursor 0.7s infinite;
}

@keyframes typingAnimation {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blinkCursor {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #212B34;
    }
}

/* Neon Animated Links Styles */
.neon-links {
    margin-top: 10px;
    margin-left: -4px;
}

.neon-links .neon-link-1 {
    animation: fadeInRight 0.8s ease forwards;
    opacity: 0;
    animation-delay: 1s;
}

.neon-links .neon-link-2 {
    animation: fadeInRight 1s ease forwards;
    opacity: 0;
    animation-delay: 1s;
}

.neon-links .neon-link-3 {
    animation: fadeInRight 1.2s ease forwards;
    opacity: 0;
    animation-delay: 1s;
}

.neon-links .neon-link-4 {
    animation: fadeInRight 1.4s ease forwards;
    opacity: 0;
    animation-delay: 1s;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 2;
        transform: translateX(0);
    }
}

.neon-link {
    margin: 0 5px;
    padding: 10px 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    font-size: 22px;
    color: #00008B;
    border: 2px solid #00008B;
    box-shadow: 0 0 10px rgba(0, 0, 139);
}

.neon-link:hover {
    color: #FFC957;
    border: 2px solid #FFC957;
    box-shadow: 0 0 10px rgba(255, 201, 87);
}

.introduction-content .more {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #00008B;
    background-color: #6610f2;
    text-decoration: none;
    text-align: center;
    margin-top: 30px;
    color: #F2F9FF;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 0, 139);
    animation: slideTop 1s ease forwards;
    opacity: 0;
    animation-delay: 1.1s;
}

.introduction-content .more:hover {
    color: #F2F9FF;
    background-color: #00008B;
}

/* Portfolio Section Styles */
#portfolio {
    padding: 80px 25px;
}

.portfolio-project {
    padding: 20px 20px;
    background-color: #e7f3ff;
    border-radius: 10px;
    border: 1px solid #6610F2;
}

.portfolio-title {
    font-size: 2.5rem;
    color: #00008B;
    text-align: center;
    margin-bottom: 25px;
    padding-left: 15px;
    border-radius: 6px;
    background: linear-gradient(45deg, #F2F9FF, #F2F9FF);
    background-size: 100% 100%;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #F2F9FF;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 0, 139);
}

.portfolio-item img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 3/2;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 100%;
    /* Initially, set it below the container */
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), transparent), linear-gradient(to top, rgba(0, 0, 139, 0.8), rgba(231, 243, 255, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease, top 0.5s ease;
    /* Add top transition */
}

.portfolio-item:hover .portfolio-overlay {
    top: 0;
    /* Move it to the top on hover */
    opacity: 1;
}


.portfolio-details {
    text-align: center;
    color: #fff;
    display: none;
}

.portfolio-details h3 {
    animation: fadeInDown 0.8s forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.portfolio-details p {
    animation: fadeInRight 0.6s forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-details {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* About Section Styles */
#about {
    padding: 50px 40px;
    background-color: #F2F9FF;
}

.about {
    margin-top: 75px;
    padding: 30px 10px;
    background-color: #e7f3ff;
    border-radius: 10px;
    border: 1px solid #6610F2;
}

.about-content {
    animation: fadeInUp 1.5s ease-out;
}

.section-title {
    font-size: 2.5rem;
    color: #00008B;
    text-align: center;
    margin-bottom: 10px;
    padding-left: 15px;
    border-radius: 6px;
    background: linear-gradient(45deg, #F2F9FF, #F2F9FF);
    background-size: 100% 100%;
}

@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}


.about-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

.about-image {
    width: 300px;
    border: 2px solid #fff;
    border-radius: 50px 100px;
    box-shadow: 20px 0 50px rgba(0, 0, 139);
}

.home-image {
    width: 325px;
    border: 2px solid #fff;
    border-radius: 10px 150px 150px;
    box-shadow: 0 20px 50px rgba(0, 0, 139);
    filter: blur(10px);
    transition: filter 1s ease-out;
    animation: scaleIn 1.5s ease-out;
}

.home-image.loaded {
    filter: blur(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
    }

    to {
        transform: scale(1);
    }
}


/* skills */

#skills {
    padding: 80px 25px;
}

.skills-section {
    text-align: center;
    padding: 20px 20px;
    background-color: #e7f3ff;
    border-radius: 10px;
    border: 1px solid #6610F2;
}

.skills-title {
    font-size: 2.5rem;
    color: #00008B;
    text-align: center;
    margin-bottom: 15px;
    padding-left: 15px;
    border-radius: 6px;
    background: linear-gradient(45deg, #F2F9FF, #F2F9FF);
    background-size: 100% 100%;
}

.skill-box {
    margin: 5px;
    padding: 10px;
    border-radius: 8px;
    opacity: 0;
}

.skill-box:hover {
    transform: scale(1.05);
}

.skill-name {
    font-weight: bold;
    margin-bottom: 10px;
}

.progress-bar {
    background-color: #F2F9FF;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    width: 200px;
    margin-bottom: 10px;
}

.progress-bar .progress {
    height: 100%;
    width: 0;
    border-radius: 10px;
    transition: width 3s ease-in-out;
}

.percent {
    font-weight: bold;
    font-size: 18px;
    animation: fadeInUp 2s ease-in-out;
}

.icon {
    font-size: 25px;
    margin-right: 5px;
}


.br {
    display: none;
}

/* Multiple style */
/*Html*/
.skill-box-html {
    border: 2px solid #F2F9FF;
    background: linear-gradient(90deg, #e34c26, #F2F9FF, #f06529);
    box-shadow: 0 0 10px rgba(227, 76, 38);
}

.skill-name-html {
    color: #e34c26;
}

.progress-bar-html {
    background-color: #F2F9FF;
    border: 1px double #e34c26;
    box-shadow: 0 0 10px rgba(242, 249, 255);
}

.progress-bar .progress-html {
    background: linear-gradient(170deg, #F2F9FF, #e34c26, #F2F9FF, #e34c26, #F2F9FF, #e34c26, #F2F9FF, #e34c26);
}

.percent-html {
    color: #e34c26;
}

.icon-html {
    color: #e34c26;
}

/* CSS */
.skill-box-css {
    border: 2px solid #F2F9FF;
    background: linear-gradient(90deg, #2965f1, #F2F9FF, #2965f1);
    box-shadow: 0 0 10px rgba(41, 101, 241);
}

.skill-name-css {
    color: #2965f1;
}

.progress-bar-css {
    background-color: #F2F9FF;
    border: 1px double #2965f1;
    box-shadow: 0 0 10px rgba(242, 249, 255);
}

.progress-bar .progress-css {
    background: linear-gradient(170deg, #F2F9FF, #2965f1, #F2F9FF, #2965f1, #F2F9FF, #2965f1, #F2F9FF, #2965f1);
}

.percent-css {
    color: #2965f1;
}

.icon-css {
    color: #2965f1;
}

/* Bootstrap */
.skill-box-bst {
    border: 2px solid #F2F9FF;
    background: linear-gradient(90deg, #6610F2, #F2F9FF, #6610F2);
    box-shadow: 0 0 10px rgba(102, 16, 242);
}

.skill-name-bst {
    color: #6610F2;
}

.progress-bar-bst {
    background-color: #F2F9FF;
    border: 1px double #6610F2;
    box-shadow: 0 0 10px rgba(242, 249, 255);
}

.progress-bar .progress-bst {
    background: linear-gradient(170deg, #F2F9FF, #6610F2, #F2F9FF, #6610F2, #F2F9FF, #6610F2, #F2F9FF, #6610F2);
}

.percent-bst {
    color: #6610F2;
}

.icon-bst {
    color: #6610F2;
}

/* PHP */
.skill-box-php {
    border: 2px solid #F2F9FF;
    background: linear-gradient(90deg, #8993BE, #F2F9FF, #8993BE);
    box-shadow: 0 0 10px rgba(137, 147, 190);
}

.skill-name-php {
    color: #8993BE;
}

.progress-bar-php {
    background-color: #F2F9FF;
    border: 1px double #8993BE;
    box-shadow: 0 0 10px rgba(242, 249, 255);
}

.progress-bar .progress-php {
    background: linear-gradient(170deg, #F2F9FF, #8993BE, #F2F9FF, #8993BE, #F2F9FF, #8993BE, #F2F9FF, #8993BE);
}

.percent-php {
    color: #8993BE;
}

.icon-php {
    color: #8993BE;
}

/* SQL */
.skill-box-sql {
    border: 2px solid #F2F9FF;
    background: linear-gradient(90deg, #007bff, #F2F9FF, #007bff);
    box-shadow: 0 0 10px rgba(0, 123, 255);
}

.skill-name-sql {
    color: #007bff;
}

.progress-bar-sql {
    background-color: #F2F9FF;
    border: 1px double #007bff;
    box-shadow: 0 0 10px rgba(242, 249, 255);
}

.progress-bar .progress-sql {
    background: linear-gradient(170deg, #F2F9FF, #007bff, #F2F9FF, #007bff, #F2F9FF, #007bff, #F2F9FF, #007bff);
}

.percent-sql {
    color: #007bff;
}

.icon-sql {
    color: #007bff;
}

/* JS */
.skill-box-js {
    border: 2px solid #F2F9FF;
    background: linear-gradient(90deg, #F0DB4F, #F2F9FF, #F0DB4F);
    box-shadow: 0 0 10px rgba(240, 219, 79);
}

.skill-name-js {
    color: #F0DB4F;
}

.progress-bar-js {
    background-color: #F2F9FF;
    border: 1px double #F0DB4F;
    box-shadow: 0 0 10px rgba(242, 249, 255);
}

.progress-bar .progress-js {
    background: linear-gradient(170deg, #F2F9FF, #F0DB4F, #F2F9FF, #F0DB4F, #F2F9FF, #F0DB4F, #F2F9FF, #F0DB4F);
}

.percent-js {
    color: #F0DB4F;
}

.icon-js {
    color: #F0DB4F;
}

/* Contact Section Styles */
#contact {
    padding: 80px 25px;
}

.contact-section {
    padding: 20px 20px;
    background-color: #e7f3ff;
    border-radius: 10px;
    border: 1px solid #6610F2;
}

.contact-title {
    font-size: 2.5rem;
    color: #00008B;
    text-align: center;
    margin-bottom: 15px;
    padding-left: 15px;
    border-radius: 6px;
    background: linear-gradient(45deg, #F2F9FF, #F2F9FF);
    background-size: 100% 100%;
}

.form-group label {
    font-weight: bold;
    color: #00008B;
}

.form-control {
    border-radius: 20px;
    box-shadow: none;
    border: none;
}

.form-control:focus {
    box-shadow: 0 0 5px rgba(102, 16, 242);
    border: none;
    outline: 1px solid #6610F2;
}

.btn-submit {
    width: 50%;
    background-color: #FFF;
    color: #00008B;
    padding: 10px;
    border-radius: 40px;
}


.contact-section .btn-submit:hover {
    color: #e7f3ff;
    outline: 1px dashed #e7f3ff;
    background-color: #6610F2;
    box-shadow: 0 0 10px rgba(102, 16, 242);
}

/* Footer Styles */
footer {
    background-color: #00008B;
    color: #F2F9FF;
    padding: 20px 0;
}

footer span {
    background-color: #e7f3ff;
    color: #00008B;
    padding: 8px;
    border-radius: 4px;
}


/* Responsive Styles */
@media (max-width: 576px) {

    .nav-item {
        border-radius: 10px;
        margin-bottom: 4px;
    }

    .nav-link {
        margin-left: 8px;
    }

    .home-image {
        margin-top: 40px;
    }

    .about-image {
        margin-left: 0px;
        margin: 0 auto;
    }

    .skill-box-html {
        margin-bottom: 20px;
    }

    .skill-box-css {
        margin-bottom: 20px;
    }

    .skill-box-bst {
        margin-bottom: 20px;
    }

    .skill-box-php {
        margin-bottom: 20px;
    }

    .skill-box-sql {
        margin-bottom: 20px;
    }

    .me-text {
        font-size: 25px;
    }

    .name-text {
        font-size: 30px;
    }

    .display-4 {
        font-size: 25px;
    }

    .br {
        display: block;
    }

    .home {
        margin-top: -45px;
    }

    .neon-links {
        margin-top: -5px;
    }

    .introduction-content .more {
        margin-top: 20px;
    }

    .portfolio-item-1 {
        margin-bottom: 30px;
    }

    .portfolio-item-2 {
        margin-bottom: 30px;
    }

    #about {
        padding: 5px 15px;
    }

    #skills {
        padding: 80px 0px;
    }

    #portfolio {
        padding: 80px 0px;
    }

    #contact {
        padding: 80px 0px;
    }

    #introduction {
        padding: 80px 15px;
    }
}

@media (min-width: 577px) and (max-width: 767px) {

    .nav-item {
        border-radius: 10px;
        margin-bottom: 4px;
    }

    .nav-link {
        margin-left: 8px;
    }

    .home-image {
        margin-top: 40px;
    }

    .me-text {
        font-size: 20px;
        font-weight: bold;
    }

    .name-text {
        font-size: 25px;
        font-weight: bold;
    }

    .display-4 {
        font-size: 25px;
    }

    .container .home {
        margin-top: -20px;
    }

    .home-image {
        width: 400px;
    }

    .neon-links {
        margin-top: -10px;
    }

    .introduction-content .more {
        margin-top: 20px;
    }

    .skill-box-html {
        margin-bottom: 20px;
    }

    .skill-box-css {
        margin-bottom: 20px;
    }

    .skill-box-bst {
        margin-bottom: 20px;
    }

    .skill-box-php {
        margin-bottom: 20px;
    }

    .skill-box-sql {
        margin-bottom: 20px;
    }

    #introduction,
    #about,
    #portfolio,
    #contact,
    #skills {
        padding: 80px 18px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    .nav-item {
        border-radius: 10px;
        margin-bottom: 4px;
    }

    .nav-link {
        margin-left: 8px;
    }

    .home-image {
        margin-top: 40px;
    }

    .me-text {
        font-size: 20px;
        font-weight: bold;
    }

    .name-text {
        font-size: 25px;
        font-weight: bold;
    }

    .display-4 {
        font-size: 25px;
    }

    .container .home {
        margin-top: 20px;
    }

    .home-image {
        width: 250px;
    }

    .about-image {
        width: 250px;
        border: 2px solid #fff;
    }

    .neon-links {
        margin-top: -10px;
    }

    .introduction-content {
        margin-top: 60px;
    }

    .introduction-content .more {
        margin-top: 20px;
    }

    .portfolio-item-1 {
        margin-bottom: 30px;
    }

    .portfolio-item-2 {
        margin-bottom: 30px;
    }

    .portfolio-item img {
        height: 300px;
    }

    .skill-box-html {
        margin-bottom: 20px;
    }

    .skill-box-css {
        margin-bottom: 20px;
    }

    .skill-box-bst {
        margin-bottom: 20px;
    }

    .skill-box-php {
        margin-bottom: 20px;
    }

    .skill-box-sql {
        margin-bottom: 0px;
    }

    #skills {
        padding: 80px 5px;
    }

    #portfolio {
        padding: 80px 5px;
    }

    #contact {
        padding: 80px 5px;
    }

    #introduction,
    #about {
        padding: 80px 20px;
    }
}

@media (min-width: 992px) {
    .skill-box-html {
        margin-bottom: 20px;
    }

    .skill-box-css {
        margin-bottom: 20px;
    }

    .skill-box-bst {
        margin-bottom: 20px;
    }

    .skill-box-php {
        margin-bottom: 0px;
    }

    .skill-box-sql {
        margin-bottom: 0px;
    }
}