body, html {
    margin: 0;
    padding: 0;
    font-family: "Source Sans 3", sans-serif;
    height: 100%;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 10px 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li {
    margin: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    border-radius: 50%;
    width: 100px;
    margin-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.navbar nav ul li a:hover {
    color: #7843e9; 
}

ul {
    margin-right: 50px;
}
.hero {
    background-image: url(../img/bg.jpg);
    background-size: cover;
    background-position: center;
    text-align: center;
    padding-top: 200px;
    padding-bottom: 200px;
    position: relative;
    color: #000;
    margin-top: 80px;
}
.hero-content h1 {
    font-size: 50px;
    font-weight: 800;
    text-align: center;
    color: rgb(17, 17, 17);
}

.hero-content p {
    font-size: 22.88px;
    margin: 20px 0;
    color: rgb(51, 51, 51);
}

.btn {
    display: inline-block;
    padding-bottom: 15px;
    padding-left: 80px;
    padding-right: 80px;
    padding-top: 15px;
    background-color: #7843e9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 20.8px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 70px;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid #000000;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: start;
}

.scroll-indicator-inner {
    width: 8px;
    height: 8px;
    background-color: #000000;
    border-radius: 50%;
    animation: scroll 1.5s infinite;
    margin-top: 10px;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

.about-me {
    text-align: center;
    padding: 50px;
    background-color: #fafafa;
}

.about-me h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: rgb(17, 17, 17);
}

.line{
    height: 5px;
    width: 3rem;
    background-color: #7843e9;
    background: #7843E9;
    margin: auto;
    border-radius: 5px;
}

.about-me p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgb(51, 51, 51);
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-top: 30px;
}

.about-description, .skills {
    width: 45%;
}

.about-description h3, .skills h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: rgb(17, 17, 17);
}

.about-description p {
    text-align: left;
    margin-bottom: 20px;
    color: rgb(51, 51, 51);
}

.about-description a {
    text-decoration: none;
}

.about-description a:hover {
    text-decoration: underline;
}

.about-description button {
    padding: 10px 20px;
    background-color: #7843e9;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

.about-description button:hover {
    background-color: #7843e9;
}

.cv-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #7843e9;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cv-button:hover {
    background-color: #7843e9;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 10px;
}

.skills-list span {
    background-color: #ddd;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 18px;
}

.projects-section {
    text-align: center;
    padding: 50px;
}

.projects-section h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: rgb(17, 17, 17);
}

.projects-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgb(51, 51, 51);
}

.portfolio-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

.portfolio-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.portfolio-image {
    flex: 1;
    text-align: center;
}

.portfolio-image img {
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.portfolio-description {
    flex: 1;
    padding-left: 30px;
}

.portfolio-description h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.portfolio-description p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-study-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #7843e9;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.case-study-button:hover {
    background-color: #7843e9;
}

footer {
    background-color: #000;
    padding: 20px 0;
    color: #ffffff;
    text-align: center;
}

.container {
    width: 80%;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-content .left, .footer-content .right {
    width: 45%;
}

.footer-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.footer-content p {
    font-size: 14px;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icons a img {
    width: 24px;
    height: 24px;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 10px;
    font-size: 12px;
}

.copyright a {
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 768px) {

    /* General: Centering and Adjustments */
    body, html {
        text-align: center;
    }

    /* Navbar */
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 10px;
        text-align: center;
    }

    .navbar nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .navbar nav ul li {
        width: auto;
        margin-bottom: 10px;
    }

    .navbar nav ul li a {
        display: block;
        padding: 10px;
        font-size: 18px;
    }

    /* Hero Section */
    .hero {
        padding-top: 80px;
        padding-bottom: 80px;
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .btn {
        padding: 12px 40px;
        font-size: 16px;
        border-radius: 5px;
        width: 20%;
    }

    /* About Me Section */
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .about-description, .skills {
        width: 90%;
        margin-bottom: 20px;
    }

    .about-description h3, .skills h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .about-description p, .skills-list span {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .cv-button {
        padding: 12px 40px;
        margin-top: 40px;
        font-size: 16px;
        width: 20%;
    }

    /* Skills */
    .skills-list {
        justify-content: center;
        gap: 8px;
    }

    /* Portfolio Section */
    .portfolio-container {
        width: 100%;
        padding: 20px 10px;
    }

    .portfolio-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
    }

    .portfolio-image img {
        width: 90%;
        max-width: none;
        margin: 0 auto;
    }

    .portfolio-description {
        padding-left: 0;
        margin-top: 20px;
        padding: 0 10px;
    }

    .portfolio-description h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .portfolio-description p {
        font-size: 16px;
    }

    .case-study-button {
        padding: 12px 40px;
        font-size: 16px;
        width: 30%;
        margin: 0 auto;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content .left, .footer-content .right {
        width: 100%;
        margin-bottom: 20px;
    }

    .social-icons {
        justify-content: center;
    }
}

