@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0091f1;
    --secondary-color: #9fa9b3;
    --background-color: #1a1a1a;
    --text-color: #f8f9fa;
    --card-background: #2c2c2c;
    --card-background-skill: #0d417b;
    --card-background-project: #0d417b;
    --card-background-dimed: #1a1a1aA0;
    --background-color-diploma: var(--card-background-dimed);
    --background-color-cross: #0091f11f;
}

h3 {
    font-size: xx-large;
}

body.light-mode {
    --primary-color: #23a6d5;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #1a1a1a;
    --card-background: #fff;
    --card-background-skill: #91c0ed80;
    --card-background-project: #008cff38;
    --card-background-dimed: #f8f9faA0;
    --background-color-diploma: var(--card-background-dimed);
    --background-color-cross: #23a6d51f;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.8;
}

html,
body {
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.gradiend {
    margin-top: -2rem;
    width: 100%;
    background: linear-gradient(-45deg, #003391, #23a6d5, #2370d5);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    max-width: none;
    padding-bottom: 6rem;
}

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

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

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


.toggles {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    padding: 1rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

header {
    text-align: center;
    padding: 2rem 0;
    perspective: 1000px;
}


header .profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    margin-bottom: 1rem;
    object-fit: cover;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

header h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-color);
    margin: 0;
    animation: fadeIn 1s ease-in-out 0.8s;
}

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

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

header .profile-pic {
    animation: scaleIn 1s ease-in-out;
}

#about .profile-pic {
    animation: scaleIn 4s ease-in-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

section {
    padding: 3rem 0;
    border-bottom: 1px solid #333;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

#skills ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

#skills li {
    background: var(--card-background);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#skills li:hover {
    transform: translateY(-5px);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-card {
    display: grid;
    background: linear-gradient(45deg, var(--card-background-skill), transparent);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card span {
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
}

.job,
.project,
.skill-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.job.visible,
.project.visible,
.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.job:nth-child(odd).visible,
.project:nth-child(odd).visible,
.skill-card:nth-child(odd).visible {
    transition-delay: 0.1s;
}

.job:nth-child(even).visible,
.project:nth-child(even).visible,
.skill-card:nth-child(even).visible {
    transition-delay: 0.2s;
}

.job,
.project {
    background: var(--card-background);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    position: relative;
    /* For the arrow */
}

.job:hover,
.project:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.job::after,
.project::after {
    content: '\25B6';
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    transition: transform 0.3s ease;
}

.job:has(.accordion-toggle.active)::after,
.project:has(.accordion-toggle.active)::after {
    transform: rotate(90deg);
}

.job h3,
.project h3 {
    color: var(--text-color);
    margin: 0;
    cursor: pointer;
}


.project {
    background: linear-gradient(45deg, var(--card-background) 1%, var(--card-background-dimed));
}

#experience {
    background: linear-gradient(180deg, var(--primary-color) 1%, #004caf 100%);
}

#experience h2 {
    color: var(--text-color);
}

#diplomes {
    /*background-color: #e5e5f7;
opacity: 0.8;
background: radial-gradient(circle, transparent 20%, var(--background-color-diploma) 20%, var(--background-color-diploma) 80%, transparent 80%, transparent), 
radial-gradient(circle, transparent 20%, var(--background-color-diploma) 20%, var(--background-color-diploma) 80%, transparent 80%, transparent) 25px 25px,
 linear-gradient(var(--background-color-cross) 2px, transparent 2px) 0 -1px, linear-gradient(90deg, var(--background-color-cross) 2px, var(--background-color-diploma) 2px) -1px 0;

background-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px;*/

    background-color: var(--background-color-diploma);
    opacity: 0.8;
    background-image: linear-gradient(var(--background-color-cross) 2px, transparent 2px),
        linear-gradient(90deg, var(--background-color-cross) 2px, transparent 2px),
        linear-gradient(var(--background-color-cross) 1px, transparent 1px),
        linear-gradient(90deg, var(--background-color-cross) 1px, var(--background-color-diploma) 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}







#projects {
    background: linear-gradient(180deg, var(--primary-color) 1%, #004caf 100%);
}

#projects h2 {
    color: var(--text-color);
}


.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    padding-top: 1rem;
    /* Add some space when opened */
    padding-bottom: 0.1rem;
}

.project-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.project-thumbnail {
    width: 100px;
    height: 67px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.project-summary {
    flex-grow: 1;
}

.project-date {
    font-style: italic;
    color: var(--secondary-color);
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.project-tags {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.job p em {
    color: var(--secondary-color);
}

/* Styles for Job Skills as Tags */
.job-tags-container {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    margin-top: 1rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#contact .contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

#contact a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    color: var(--secondary-color);
}


.separator {
    opacity: 0.3;
}



/* CSS */
.button-36 {
    background-image: linear-gradient(92.88deg, #455EB5 9.16%, #5643CC 43.89%, #673FD7 64.72%);
    border-radius: 8px;
    border-style: none;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    flex-shrink: 0;
    font-family: "Inter UI", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 500;
    height: 4rem;
    text-align: center;
    text-shadow: rgba(0, 0, 0, 0.25) 0 3px 8px;
    transition: all .5s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    padding: 0.5rem 1.5rem 0.5rem 1.5rem;
}

.button-36:hover {
    box-shadow: rgba(80, 63, 205, 0.5) 0 1px 30px;
    transition-duration: .1s;
}


.label {
    padding: 1rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    #contact .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

.project-img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}

.img-small {
    width: 16%;
}

.img-medium {
    width: 33%;
}

.img-large {
    width: 100%;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 85%;
}

/* Add Animation */
.modal-content,
#caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}


/* Dotted border */
hr.dotted {
    border-top: 3px dotted #bbb;
    opacity: 0.2;
}