:root {
    --bg-color: #212529;
    --secondary-color: #343a40;
    --bs-nav-pills-link-active-bg: #343a40;
    --accent-color: #486581;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: inherit;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

*::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}

html {
    box-sizing: border-box;
    background-color: var(--bg-color);
    color: #f8f9fa;
    height: max-content;
}

button {
    border: none;
    outline: none;
    background: none;
}

svg {
    margin: auto;
}

.cascadia-mono-site {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    font-family: "Cascadia Mono", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-size: 1.25rem;
    padding: 2rem 1rem;
}

.header {
    display: flex;
    height: fit-content;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-direction: column;
    text-align: center;
}

.header > img {
    filter: drop-shadow(4px 0px 1px black);
    display: none; /* Initially hidden for smaller screens */
    width: 50%;
    margin-bottom: 1rem;
}

.header-text {
    display: flex;
    flex-direction: column;
    font-weight: 400;
    filter: drop-shadow(4px 0px 1px black);
    width: 100%;
    font-size: 1.5rem;
}

.title, .subtitle {
    width: fit-content;
    align-self: end;
    margin: auto;
}

hr {
    width: 100%;
    color: var(--accent-color);
    height: 3px;
    background-color: #486581;
}

.header hr {
    align-self: flex-end;
}

#about {
    text-align: justify;
    font-size: 1rem;
}

.content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.buttons {
    align-self: center;
    padding-bottom: 1rem;
    font-size: 1.2rem;
    background: var(--bg-color);
}

.buttons button {
    color: #f8f9fa;
    padding: 8px;
    border-radius: 12px;
    outline: none;
    filter: drop-shadow(8px 8px 8px #16181b);
}

.cards {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    filter: drop-shadow(8px 8px 8px #16181b);
    z-index: 3;
}

.card {
    margin: 2rem 0;
}

.cascadia-mono-hi {
    font-family: "Cascadia Mono", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
}

.quotes {
    font-style: italic;
    font-weight: 400;
}

.accordion {
    --bs-accordion-bg: var(--secondary-color);
    --bs-accordion-active-bg: var(--secondary-color);
    --bs-accordion-active-color: white;
    --bs-card-border-color: none;
    --bs-accordion-btn-focus-box-shadow: none;
}

.accordion-button:after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;
}

.schools {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: justify;
}

.schools > div {
    flex: 1;
    min-width: 250px; 
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

.logo img {
    width: 80vw;
    height: 100px;     
    object-fit: contain; 
    display: block;
    margin: 0 auto 1rem auto;
    filter: drop-shadow(1px 5px 12px black);
}

.accordion-body {
    text-align: start;
    font-size: 1.3rem;
}

#accordions {
    margin-top: 1rem;
}

#navbar {
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: #3d556ca5;
    border-radius: 0 0 0.375rem 0.375rem;
    color: #102a43;
    margin: auto;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem 1rem;
    width: 100%;
}

.exp-text {
    font-size: 1.5rem;
}

.exp-images {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 0;
    gap: 5rem;
}

.exp-images img {
    flex: 1 1 auto;
    object-fit: unset;

    max-width: 100%;
    height: auto;
}

a {
    padding: 0;
    margin: 0;
    color: inherit; 
    text-decoration: inherit; 
}

.socials {
    display: flex;
    flex-grow: 1;
    gap: 1rem;
    justify-content: center;
}

#github-link, #linkedin-link, #email-link, #phone-link, #cv-link, #certificate-link {
    height: 25px;
    width: auto;
}

#github-link {
    content: url(images/github-mark-white.png);
}

#github-link:hover,
#linkedin-link:hover,
#cv-link:hover {
    opacity: 0.5;
}

#linkedin-link {
    content: url(images/InBug-White.png);
}

#email-link {
    content: url(images/icons8-email-50.png);
}

#phone-link {
    content: url(images/icons8-phone-50.png);
}

#cv-link {
    content: url(images/resume-and-cv.png);
}

#certificate-link {
    content: url(images/certificate-icon-png-10312.png);

}

.container {
    margin: 0;
    width: 100%;
}

.projects-activities {
    margin: auto;
}


.card-img-top {
    height: 100%;
    width: 95%;
    margin: auto;
    margin-top: 2.5%;
}

.vr {
    width: 5px;
    margin: auto;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: var(--bs-nav-pills-link-active-color);
    background-color: var(--bg-color);
}

.nav-link {
    color: white;
}

body {
    background: linear-gradient(rgb(33, 37, 41) 0%, rgb(52, 58, 64) 80%, rgb(33, 37, 41) 100%);
}

.card-text, .list-group-item {
    font-size: 1.25rem;
    text-align: justify;
}

.list-group-item {
    background-color: var(--bg-color);
}

.card-body, .card-header {
    background-color: var(--secondary-color);
    border-radius: 0 0 0.375rem 0.375rem;
}

.card, .display-1 {
    filter: drop-shadow(1px 5px 12px black);
}

.accented-text {
    color: var(--accent-color);
}

.text-shadow {
    filter: drop-shadow(2px 0px 1px black);
}

.thumbnail-container {
    position: relative;
    background-color: var(--secondary-color);
    border-radius: 0.375rem 0.375rem 0 0;
}

.image {
    opacity: 1;
    display: block;
    height: auto;
    transition: .5s ease;
    backface-visibility: hidden;
    border-radius: 0.375rem;
}

.middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.middle-double {
    border-radius: 0;
}

.thumbnail-container:hover .image {
    opacity: 0.3;
    filter: drop-shadow(1px 5px 12px black);
}

.thumbnail-container:hover .middle {
    opacity: 1;
}

.text {
    background-color: var(--secondary-color);
    color: white;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 0.375rem;
    opacity: 0.8;
    transition: 0.3s;
}

.text:hover {
    opacity: 1;
}

.card {
    --bs-card-border-width: none;
}

.email-container, .phone-container {
    display: inline-flex;
    overflow: hidden;
    align-items: center;
    position: relative;
}

.email-container:hover, .phone-container:hover {
    opacity: 0.5;
    cursor: pointer;
}

#email-link, #phone-link {
    transition: margin-left 0.5s ease;
    white-space: nowrap;
}

.email-text, .phone-text {
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 1s ease, opacity 1s ease;
    font-size: 1rem;
    padding-left: 0;
}

.email-text.revealed, .phone-text.revealed {
    max-width: 300px; 
    opacity: 1;
    padding-left: 12px;
}

.pgtk-title:hover, .tu-title:hover, .softuni-title:hover {
    opacity: 0.5;
    cursor: pointer;
}

.cards, .schools, .exp-images {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.subtitle {
    align-self: center;
}

.navbar-brand {
    margin: auto;
}

.here-links {
    text-decoration: underline;
}

.PERSONAL-LOGO {
    filter: drop-shadow(4px 0px 1px black);
    margin: auto;
    height: 35px;
    width: 35px;
}

.dropdown {
    display: none;
}

.btn.show {
    color: white;
}

.btn:hover {
    color: white;
}

.btn {
    margin-left: 5px;
    height: 100%;
}

.notification {
    background-color: var(--accent-color);
}

@media screen and (min-width: 768px) {
    .cascadia-mono-site {
        padding: 4rem 8rem;
        font-size: 1.75rem;
    }

    .notification {
        background-color: var(--accent-color);
    }

    .header {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .header > img {
        width: 25%;
        display: block; /* Show on larger screens */
    }

    .header-text {
        width: 75%;
        font-size: 4rem;
    }

    #navbar {
        width: 75%;
        border-radius: 0 0 0.375rem 0.375rem;
    }
}

@media screen and (min-width: 1200px) {
    svg {
        margin: 0;
    }

    .cascadia-mono-site {
        padding: 6rem 18rem;
        font-size: 2rem;
    }
    
    .logo img {
        width: 15vw;
    }

    .exp-images img {
        max-width: 35%;
    }

    .exp-images {
        justify-content: start;
        gap: 5rem;
    }

    .navbar-brand {
        margin-left: 16px;
    }

    #navbar {
        font-size: 1rem;
    }

    #about {
        font-size: 1.5rem;
    }

    .socials {
        justify-content: end;
    }

    .subtitle {
        align-self: flex-end;
    }

    .header hr {
        width: 90%;
    }

    .PERSONAL-LOGO {
        margin: 0;
    }

    .dropdown {
        display: block;
    }
    .title, .subtitle {
        margin: 0;
    }
    .bg-danger {
        background-color: #102a43;
    }
}
