/* General Styles */
@keyframes move {
    100% {
        transform: translate3d(0, 0, 1px) rotate(360deg);
    }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: #1a1a2e;
    overflow: hidden;
}

.background span {
    width: 1vmin;
    height: 1vmin;
    border-radius: 1vmin;
    backface-visibility: hidden;
    position: absolute;
    animation: move;
    animation-duration: 1;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.background span:nth-child(0) {
    color: #FFACAC;
    top: 50%;
    left: 53%;
    animation-duration: 222s;
    animation-delay: -9s;
    transform-origin: -5vw 15vh;
    box-shadow: 2vmin 0 1.2042687357372954vmin currentColor;
}
.background span:nth-child(1) {
    color: #583C87;
    top: 54%;
    left: 82%;
    animation-duration: 311s;
    animation-delay: -373s;
    transform-origin: -15vw -2vh;
    box-shadow: 2vmin 0 1.2169023398968157vmin currentColor;
}
.background span:nth-child(2) {
    color: #E45A84;
    top: 58%;
    left: 95%;
    animation-duration: 161s;
    animation-delay: -175s;
    transform-origin: 18vw -4vh;
    box-shadow: 2vmin 0 0.25234051820621795vmin currentColor;
}
.background span:nth-child(3) {
    color: #583C87;
    top: 82%;
    left: 2%;
    animation-duration: 314s;
    animation-delay: -263s;
    transform-origin: 10vw 21vh;
    box-shadow: 2vmin 0 0.6940221975166624vmin currentColor;
}
.background span:nth-child(4) {
    color: #E45A84;
    top: 72%;
    left: 60%;
    animation-duration: 303s;
    animation-delay: -88s;
    transform-origin: -4vw 24vh;
    box-shadow: 2vmin 0 0.8090723846036717vmin currentColor;
}
.background span:nth-child(5) {
    color: #583C87;
    top: 74%;
    left: 10%;
    animation-duration: 178s;
    animation-delay: -351s;
    transform-origin: -18vw -22vh;
    box-shadow: -2vmin 0 0.6328310146539932vmin currentColor;
}
.background span:nth-child(6) {
    color: #583C87;
    top: 26%;
    left: 17%;
    animation-duration: 237s;
    animation-delay: -89s;
    transform-origin: 5vw 22vh;
    box-shadow: -2vmin 0 0.3942307672705637vmin currentColor;
}
.background span:nth-child(7) {
    color: #FFACAC;
    top: 3%;
    left: 93%;
    animation-duration: 197s;
    animation-delay: -450s;
    transform-origin: 8vw -7vh;
    box-shadow: 2vmin 0 0.5919625364257927vmin currentColor;
}
.background span:nth-child(8) {
    color: #FFACAC;
    top: 8%;
    left: 43%;
    animation-duration: 72s;
    animation-delay: -153s;
    transform-origin: 25vw -7vh;
    box-shadow: -2vmin 0 0.6294551823733785vmin currentColor;
}
.background span:nth-child(9) {
    color: #E45A84;
    top: 89%;
    left: 64%;
    animation-duration: 340s;
    animation-delay: -453s;
    transform-origin: 22vw -13vh;
    box-shadow: -2vmin 0 0.40583478671572293vmin currentColor;
}
.background span:nth-child(10) {
    color: #FFACAC;
    top: 89%;
    left: 28%;
    animation-duration: 113s;
    animation-delay: -490s;
    transform-origin: 18vw -22vh;
    box-shadow: -2vmin 0 0.8610761497511237vmin currentColor;
}
.background span:nth-child(11) {
    color: #583C87;
    top: 1%;
    left: 26%;
    animation-duration: 450s;
    animation-delay: -367s;
    transform-origin: -7vw 11vh;
    box-shadow: 2vmin 0 0.44520995876263914vmin currentColor;
}
.background span:nth-child(12) {
    color: #E45A84;
    top: 8%;
    left: 20%;
    animation-duration: 295s;
    animation-delay: -227s;
    transform-origin: -7vw 9vh;
    box-shadow: 2vmin 0 1.1703001373769237vmin currentColor;
}
.background span:nth-child(13) {
    color: #583C87;
    top: 85%;
    left: 23%;
    animation-duration: 66s;
    animation-delay: -106s;
    transform-origin: -15vw -4vh;
    box-shadow: 2vmin 0 0.27122905949509846vmin currentColor;
}
.background span:nth-child(14) {
    color: #FFACAC;
    top: 29%;
    left: 65%;
    animation-duration: 483s;
    animation-delay: -395s;
    transform-origin: 18vw 24vh;
    box-shadow: 2vmin 0 0.4776940468918275vmin currentColor;
}
.background span:nth-child(15) {
    color: #E45A84;
    top: 89%;
    left: 95%;
    animation-duration: 279s;
    animation-delay: -195s;
    transform-origin: -7vw 2vh;
    box-shadow: -2vmin 0 0.829923901938149vmin currentColor;
}
.background span:nth-child(16) {
    color: #583C87;
    top: 75%;
    left: 89%;
    animation-duration: 255s;
    animation-delay: -135s;
    transform-origin: 6vw -19vh;
    box-shadow: 2vmin 0 0.7873742653393535vmin currentColor;
}
.background span:nth-child(17) {
    color: #E45A84;
    top: 85%;
    left: 17%;
    animation-duration: 381s;
    animation-delay: -269s;
    transform-origin: 15vw 20vh;
    box-shadow: -2vmin 0 0.8145296255934555vmin currentColor;
}
.background span:nth-child(18) {
    color: #E45A84;
    top: 70%;
    left: 74%;
    animation-duration: 335s;
    animation-delay: -298s;
    transform-origin: -20vw 22vh;
    box-shadow: 2vmin 0 0.4617565645507532vmin currentColor;
}
.background span:nth-child(19) {
    color: #FFACAC;
    top: 67%;
    left: 31%;
    animation-duration: 386s;
    animation-delay: -88s;
    transform-origin: -17vw 12vh;
    box-shadow: 2vmin 0 0.30206615533303527vmin currentColor;
}
.background span:nth-child(20) {
    color: #E45A84;
    top: 72%;
    left: 43%;
    animation-duration: 308s;
    animation-delay: -52s;
    transform-origin: 20vw 19vh;
    box-shadow: 2vmin 0 0.8755136262645322vmin currentColor;
}
.background span:nth-child(21) {
    color: #E45A84;
    top: 85%;
    left: 12%;
    animation-duration: 225s;
    animation-delay: -209s;
    transform-origin: -5vw -8vh;
    box-shadow: 2vmin 0 0.27088560976840004vmin currentColor;
}
.background span:nth-child(22) {
    color: #FFACAC;
    top: 83%;
    left: 78%;
    animation-duration: 64s;
    animation-delay: -65s;
    transform-origin: 17vw 14vh;
    box-shadow: -2vmin 0 0.4610370565725005vmin currentColor;
}
.background span:nth-child(23) {
    color: #FFACAC;
    top: 43%;
    left: 83%;
    animation-duration: 335s;
    animation-delay: -329s;
    transform-origin: 16vw 11vh;
    box-shadow: 2vmin 0 0.3121897470942605vmin currentColor;
}
.background span:nth-child(24) {
    color: #E45A84;
    top: 43%;
    left: 80%;
    animation-duration: 52s;
    animation-delay: -55s;
    transform-origin: -8vw 18vh;
    box-shadow: 2vmin 0 0.5301521770109782vmin currentColor;
}
.background span:nth-child(25) {
    color: #E45A84;
    top: 41%;
    left: 44%;
    animation-duration: 481s;
    animation-delay: -184s;
    transform-origin: -17vw -21vh;
    box-shadow: -2vmin 0 0.7491828564659387vmin currentColor;
}
.background span:nth-child(26) {
    color: #FFACAC;
    top: 41%;
    left: 70%;
    animation-duration: 290s;
    animation-delay: -367s;
    transform-origin: 17vw 25vh;
    box-shadow: -2vmin 0 1.2083892637296416vmin currentColor;
}
.background span:nth-child(27) {
    color: #E45A84;
    top: 5%;
    left: 54%;
    animation-duration: 138s;
    animation-delay: -25s;
    transform-origin: -16vw 10vh;
    box-shadow: 2vmin 0 0.8720680597980353vmin currentColor;
}
.background span:nth-child(28) {
    color: #E45A84;
    top: 60%;
    left: 86%;
    animation-duration: 489s;
    animation-delay: -429s;
    transform-origin: -19vw -21vh;
    box-shadow: -2vmin 0 0.9875609539200321vmin currentColor;
}
.background span:nth-child(29) {
    color: #583C87;
    top: 29%;
    left: 20%;
    animation-duration: 120s;
    animation-delay: -164s;
    transform-origin: -9vw 24vh;
    box-shadow: 2vmin 0 1.0642434841589994vmin currentColor;
}
.background span:nth-child(30) {
    color: #E45A84;
    top: 12%;
    left: 94%;
    animation-duration: 76s;
    animation-delay: -260s;
    transform-origin: -23vw -6vh;
    box-shadow: -2vmin 0 0.987126457799791vmin currentColor;
}
.background span:nth-child(31) {
    color: #E45A84;
    top: 65%;
    left: 71%;
    animation-duration: 344s;
    animation-delay: -148s;
    transform-origin: 8vw 2vh;
    box-shadow: 2vmin 0 0.41387367439927447vmin currentColor;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #9126a9, #16213e, #0f3460, #53354a);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

h1,
h2,
h3 {
    font-family: 'Montserrat', 'Verdana', sans-serif;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px #000;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0;
}

/* Header Section */
header {
    font-family: "Doto", sans-serif;
    text-align: center;
    padding: 40px 20px;
    background: black;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.8);
    position: relative;
}

header h1 {
    font-family: "Doto", sans-serif;
    font-size: 3.5rem;
    color: whitesmoke;
    margin: 0;
    text-transform: none;
    font-weight: 700;
}

header p {
    margin: 10px 0 20px;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 300;
    letter-spacing: 3px;
}

nav ul {
    font-family: "Doto", sans-serif;
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

nav ul li {
    display: inline-block;
    margin: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(7, 31, 82, 0.306);
    transition: all 0.3s ease-in-out;
    display: inline-block;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: #fff;
    background: rgba(167, 53, 175, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(167, 53, 175, 0.623);
}

/* About Section */
#about {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(15, 52, 96, 0.8));
    padding: 80px 20px;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
    position: relative;
}

#about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f39c12, #e74c3c, #f39c12);
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #9126a9, #16213e, #0f3460, #53354a);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    opacity: 0.4;
    z-index: 0;
}

#about .container {
    position: relative;
    z-index: 1;
}

#about h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.about-text {
    color: #fff;
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

#about a:link {
    color: #f39c12;
    background-color: transparent;
    text-decoration: none;
}

#about a:visited {
    color: #e74c3c;
    background-color: transparent;
    text-decoration: none;
}

#about a:active {
    color: rgb(167, 53, 175);
    background-color: transparent;
    text-decoration: underline;
}

.about-image {
    flex: 0 0 300px;
}

#about img.profile-picture {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #f39c12;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    transition: all 0.5s ease;
}

#about img.profile-picture:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 15px 35px #ebb051;
}

.badge-container {
    margin-top: 40px;
    width: 100%;
}

.badge-container h3 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.badge-container+.badge-container {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(243, 156, 18, 0.2);
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-badge, .interest-badge, .learning-badge {
    background: rgba(243, 156, 18, 0.15);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.skill-badge:hover, .interest-badge:hover, .learning-badge:hover{
    background: rgba(243, 156, 18, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}


/* Style for technical skills */
.badge-container:nth-child(3) .skill-badge {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-container:nth-child(3) .skill-badge:hover {
    background: rgba(231, 76, 60, 0.4);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Style for interest areas */
.badge-container:nth-child(4) .interest-badge {
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #fff;
}

.badge-container:nth-child(4) .interest-badge:hover {
    background: rgba(52, 152, 219, 0.4);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.badge-container:nth-child(4) h3 {
    color: #3498db;
}

/* Style for learning areas */
.badge-container:nth-child(5) .learning-badge {
    background: rgba(51, 48, 36, 0.703);
    border: 1px solid rgba(36, 34, 28, 0.703);
    color: #fff;
}

.badge-container:nth-child(5) .learning-badge:hover {
    background: rgba(103, 89, 19, 0.703);
    box-shadow: 0 5px 15px rgba(84, 73, 16, 0.703);
}

.badge-container:nth-child(5) h3 {
    color: #f39c12;
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.9), rgba(15, 52, 96, 0.9));
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #e74c3c, #f39c12);
    opacity: 0.3;
    z-index: 0;
}

#contact .container {
    position: relative;
    z-index: 1;
}

#contact h2 {
    color: #f39c12;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#contact p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #fff;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f39c12;
    text-align: left;
    letter-spacing: 1px;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.3);
}

#contact textarea {
    min-height: 120px;
    resize: vertical;
}

#contact button {
    display: inline-block;
    width: auto;
    min-width: 150px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    margin-top: 10px;
}

#contact button:hover {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.6);
}

#formStatus {
    margin-top: 20px;
    padding: 10px;
    font-weight: 500;
    animation: fadeIn 0.5s ease;
}

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

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

/* Footer Section */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f39c12, #e74c3c, #f39c12);
}

footer p {
    margin: 15px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

footer .social-links {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer .social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.0);
    color: #f39c12;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

footer .social-link:hover:nth-child(1) {
    background: #9126a9;
    color: #1a1a2e;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px #9126a9;
}

footer .social-link:hover:nth-child(2) {
    background: #1578ca;
    color: #1a1a2e;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px #1578ca;
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    #about,
    #projects,
    #contact {
        padding: 30px 20px;
    }

    #about img.profile-picture {
        width: 180px;
        height: 180px;
    }

    .about-content {
        flex-direction: column-reverse;
    }

    .about-text {
        text-align: center;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    #about img.profile-picture {
        width: 150px;
        height: 150px;
    }

    .project-img {
        max-height: 180px;
    }

    .skill-badge {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    #projects .project h3 {
        font-size: 1.2rem;
    }

    header h1 {
        font-size: 2rem;
    }
}

/* General image responsiveness */
img {
    max-width: 100%;
    height: auto;
}