:root {
    --background-color: #ffffff;
    --text-color: #333;
    --header-background: #fff;
    --header-text-color: #333;
    --link-color: #333;
    --border-color: #ddd;
    --button-background: #50b3a2;
    --button-text-color: #fff;
    --footer-background: #50b3a2;
    --footer-text-color: #fff;
}

[data-theme="dark"] {
    --background-color: #060505;
    --text-color: #f1f1f1;
    --header-background: #2e2e2e;
    --header-text-color: #f1f1f1;
    --link-color: #f1f1f1;
    --border-color: #555;
    --button-background: #50b3a2;
    --button-text-color: #f1f1f1;
    --footer-background: #50b3a2;
    --footer-text-color: #f1f1f1;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

header {
    background: var(--header-background);
    color: var(--header-text-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    color: var(--link-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    margin: 0 10px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

header nav ul li {
    margin: 0 10px;
}

.theme-toggle {
    cursor: pointer;
    padding: 5px 10px;
    background: var(--button-background);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    margin-left: auto;
}

.container {
    width: 80%;
    margin: auto;
    padding: 20px 0;
}

.intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 0;
    animation: fadeIn 2s ease-in-out;
    flex-wrap: wrap;
}

.intro-text {
    max-width: 50%;
}

.intro h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.intro p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.cta-buttons {
    margin-top: 20px;
}

.cta-buttons a {
    text-decoration: none;
    color: var(--button-text-color);
    background: var(--button-background);
    padding: 10px 20px;
    border-radius: 5px;
    margin: 0 10px;
    display: inline-block;
}

.cta-buttons a:hover {
    background: #3a8473;
}

.social-icons a {
    text-decoration: none;
    color: var(--link-color);
    margin: 0 10px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
}

.social-icons a i {
    margin-right: 15px;
}

.social-icons a.fiverr i {
    color: #1dbf73;
}

.social-icons a.linkedin i {
    color: #0077b5;
}

.social-icons a.github i {
    color: #333;
}

.social-icons a.facebook i {
    color: #1877f2;
}

.social-icons a.instagram i {
    color: #e1306c;
}

.social-icons a:hover i {
    opacity: 0.7;
}

.illustration {
    max-width: 50%;
    text-align: right;
}

.illustration img {
    max-width: 80%;
    height: auto;
    animation: slideInRight 2s ease-in-out;
}

.section {
    padding: 40px 0;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.section ul {
    list-style: disc;
    padding-left: 20px;
    text-align: left;
}

.section ul li {
    font-size: 18px;
    margin: 10px 0;
}

.projects-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.projects-list {
    max-width: 100%;
    flex: 1;
}

.projects-image {
    max-width: 100%;
    text-align: right;
    flex: 1;
}

.projects-image img {
    max-width: 100%;
    height: auto;
    animation: slideInLeft 2s ease-in-out;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 120%;
    margin: auto;
}

.contact-info p {
    flex: 1;
    margin-right: 10px;
    text-align: left;
}

.contact-image {
    max-width: 30%;
    display: block;
    margin: auto;
    margin-top: 10px;
    animation: fadeIn 2s ease-in-out;
}

footer {
    background: var(--footer-background);
    color: var(--footer-text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    animation: fadeIn 2s ease-in-out;
}

.tasks-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.tasks-list {
    max-width: 100%;
    flex: 1;
}

.tasks-image {
    max-width: 100%;
    text-align: right;
    flex: 1;
}

.tasks-image img {
    max-width: 100%;
    height: auto;
    animation: fadeIn 2s ease-in-out;
}

.reduced-size-image {
    max-width: 100%;
    height: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {

    .intro,
    .projects-container,
    .tasks-container {
        flex-direction: column;
        align-items: center;
    }

    .intro-text,
    .projects-list,
    .tasks-list,
    .projects-image,
    .tasks-image {
        max-width: 100%;
        text-align: center;
    }

    .intro-text {
        margin-bottom: 20px;
    }

    .illustration img,
    .projects-image img,
    .tasks-image img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header nav ul {
        flex-direction: column;
    }

    .header nav ul li {
        margin: 5px 0;
    }

    .theme-toggle {
        margin-top: 10px;
    }
}