:root {
    --primary-color: #ffffff;
    --secondary-color: #a4b0be;
    --page-bg-color: #0c2461;
    --graph-color: #54a0ff;
    --card-bg-color: #3B3B98;
    --footer-bg-color: #5e27cd9a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    transition: 0.3s;
    scroll-behavior: smooth;
}

body {
    background: var(--page-bg-color);
    color: var(--primary-color);
}

.bg-spinning {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    opacity: 0.09;
    z-index: -1;
    animation: page-start-animation 0.8s forwards;
}

#bg-spining-image {
    width: 30rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


#bg-spining-image img {
    width: 100%;
    animation: wheel-spin 2s linear infinite;
}

@keyframes wheel-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}

/* Container Style */
.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Navbar (Header) Styles */
header {
    width: 100%;
    height: 50px;
    position: sticky;
    top: 0;
    background: transparent;
    backdrop-filter: blur(4px);
    z-index: 999;
}

nav {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--primary-color);
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
}

.menu>ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.menu>ul>li>a {
    color: var(--primary-color);
    text-decoration: none;
}

.menu>ul>li>a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 4px;
}

/* Main Section */
main {
    animation: page-start-animation 1s forwards;
}

@keyframes page-start-animation {
    0% {
        margin-top: -50px;
        opacity: 0;
    }
}

section,
footer {
    padding-top: 50px;
}

.section-title {
    text-align: center;
    padding-bottom: 3rem;
}

.section-title::before,
.section-title::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 25px;
    background: var(--primary-color);
    position: relative;
    top: 4px;
    border-radius: 10px;
}

.section-title::before {
    left: -10px;
}

.section-title::after {
    right: -10px;
}

/* Home Section Styles */
#home {
    height: 80vh;
}

#intro-text-name {
    font-size: 4rem;
}

#intro-text-name>span {
    font-size: 5rem;
    font-weight: bold;
    animation: name-animation 2s forwards;
}

@keyframes name-animation {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/* About Section Styles */

#about .content {
    display: flex;
}

#about .content>div {
    flex: 1;
}

/* About >> Text */
#about .content .about-text {
    padding: 0 2rem;
    text-align: justify;
}

#about .content .about-text>* {
    margin-bottom: 1rem;
}

/* About >> Expertise */
#about .expertise {
    width: 50%;
}

#expertise-title {
    text-align: left;
    letter-spacing: 5px;
}

.expertise-graph {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.expertise-graph:hover {
    transform: scale(1.1);
}

.expertise-graph .icon {
    width: 50px;
    font-size: 2rem;
}

.expertise-graph .graph {
    width: 100%;
    height: 10px;
    background: var(--primary-color);
    border-radius: 10px;
}

.expertise-graph .graph .inner-graph {
    height: 100%;
    background: var(--graph-color);
    border-radius: 10px;
}

.expertise-graph .graph .inner-graph.html-graph {
    width: 95%;
}

.expertise-graph .graph .inner-graph.css-graph {
    width: 90%;
}

.expertise-graph .graph .inner-graph.js-graph {
    width: 80%;
}

.expertise-graph .graph .inner-graph.react-graph {
    width: 90%;
}

.expertise-graph .graph .inner-graph.node-graph {
    width: 85%;
}

.expertise-graph .graph .inner-graph.mongo-graph {
    width: 80%;
}

.expertise-graph .graph .inner-graph.express-graph {
    width: 90%;
}

/* Projects Section */
#projects .content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.project-card {
    width: 20%;
    padding: 1rem;
    border-radius: 10px;
    background: var(--card-bg-color);
}

.project-card:hover {
    box-shadow: 0 0px 10px rgba(255, 255, 255, 0.582);
}

.project-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-text {
    padding: 1rem 0;
    text-align: center;
}

.project-text h3 {
    margin-bottom: 0.5rem;
}

.project-text a {
    text-decoration: none;
    color: var(--secondary-color);
}

.project-text a:hover {
    color: var(--primary-color);
    font-size: 1.1rem;
    text-decoration: underline;
}

/* Contact / Footer Section */
footer {
    background: var(--footer-bg-color);
    padding: 2rem;
    margin-top: 3rem;
}

#contact .content {
    display: flex;
    justify-content: space-between;
}

#contact .content>div {
    width: 45%;
}

#contact .content .contact-details {
    line-height: 2rem;
    text-align: justify;
    text-align: center;
}

#contact .content .contact-details a {
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0 0.5rem;
    color: var(--secondary-color);
    transition-duration: 0.1s;
}

#contact .content .contact-details a:hover {
    color: var(--primary-color);
    font-size: 1.4rem;
}

#contact .content .contact-form form fieldset {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 10px;
}

#contact .content .contact-form form fieldset>div {
    margin-bottom: 1rem;
}

#contact .content .contact-form form label {
    margin-bottom: 0.2rem;
    display: block;
}

#contact .content .contact-form form input,
#contact .content .contact-form form textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
}

#contact .content .contact-form form input:focus,
#contact .content .contact-form form textarea:focus {
    outline: none;
}

#contact .content .contact-form form input[type="submit"] {
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
}

#contact .content .contact-form form input[type="submit"]:hover {
    background: var(--primary-color);
    color: var(--page-bg-color);
}
/* Copyright text */
#contact > p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}