/* @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fredoka:wght@300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap'); */

@font-face {
    font-family: 'InterBold';
    src: url('./fonts/Inter_28pt-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'InterRegular';
    src: url('./fonts/Inter_28pt-Regular.ttf') format('truetype');
}

html {
    scroll-behavior: smooth;
    transition: all .2s ease-in-out;
}

body {
    font-family: "InterBold";
    color: #121212;
    padding: 50px;
    display: grid;
    text-align: center;
    align-items: center;
    
}

a {
    color: #fff;
    text-decoration: none;
}

hr {
    height: 2px;
    color: #50505042;
    background-color: #50505042;
    border: none;
    margin: 70px auto;
    width: 70%;
    border-radius: 100px;
}

#text1 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

#text2 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 60px;
    gap: 10px;
}

#text {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 70px;
    gap: 10px;
}

/* -- */

#image-me {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    vertical-align: middle;
    filter: saturate(0);
    transition: all .2s ease-in-out;
}

#image-me:hover {
    transform: rotate(-5deg);
    filter: saturate(1);
    transition: all .2s ease-in-out;
}

/* -- */

#image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    vertical-align: middle;
    filter: saturate(0);
    transition: all .2s ease-in-out;
}

#image:hover {
    transform: rotate(-5deg);
    filter: saturate(1);
    transition: all .2s ease-in-out;
}

/* -- */

#image2 {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    vertical-align: middle;
    filter: saturate(0);
    transition: all .2s ease-in-out;
}

#image2:hover {
    transform: rotate(-5deg);
    filter: saturate(1);
    transition: all .2s ease-in-out;
}

/* -- */

.hover-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.hover-wrapper-0 {
    position: relative;
    display: inline-block;
    margin-right: 0px;
}

.hover-wrapper:last-child {
  margin-right: 0;
}

.hover-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #121212bb);
    color: #fff;
    padding: 6px 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.hover-wrapper:hover .hover-text {
    opacity: 1;
}

.highlight {
    background-color: #c9c9c981;
    padding: 5px 9px 5px 5px;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.highlight:hover {
    background-color: #9d4edde8;
    padding: 5px 9px 5px 5px;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

/* -- */

.highlight2 {
    background-color: #c9c9c981;
    padding: 6px;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.highlight2:hover {
    background-color: #9d4edde8;
    padding: 6px;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

/* -- */

.image-with-label {
    position: relative;
}

/* -- */

.social-icon {
    display: inline-block;
    margin-top: 5px;
    margin-right: 10px;
    border-radius: 10px;
    font-size: 40px;
    color: #9d4edd;
    transition: transform 0.2s ease-in-out, color 0.3s ease-in-out;
    cursor: pointer;
}

.social-icon:hover {
    transform: scale(1.15);
    color: #c77dff;
}

#footer {
    text-align: center;
    margin-top: 10px;
}


/* --- projects.html --- */

#back-button {
    position: absolute;
    top: 30px;
    left: 30px;
    font-size: 1.1rem;
    font-family: 'InterBold';
    background-color: #9d4edd;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    z-index: 1;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, color 0.3s ease-in-out;
}

#back-button:hover {
    transform: scale(1.15);
    background-color: #c77dff;
}

@media (max-width: 600px) {
    #back-button {
        top: 20px;
        left: 15px;
        padding: 8px 15px;
        font-size: 1rem;
    }
}

.projects-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.project-box {
    background-color: #1e1e1e;
    border-radius: 20px;
    padding: 30px;
    flex: 1 1 calc(33.33% - 30px);
    max-width: calc(33.33% - 30px);
    box-shadow: 0 0 10px #00000055;
    transition: transform 0.2s ease-in-out;
    box-sizing: border-box;
}

.project-box:hover {
    transform: translateY(-5px);
}

#preview-modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 0;
}

#modal-content {
    position: relative;
    width: 90vw;
    max-width: 1400px;
    height: 85vh;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#close-modal {
    display: inline-block;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    background-color: #9d4edd;
    color: #fff;
    font-size: 24px;
    font-family: 'InterBold';
    border: none;
    border-radius: 15px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.2s ease-in-out;
}

#close-modal:hover {
    background-color: #c77dff;
}

#modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.project-image {
    position: relative;
    background-color: #222;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 250px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    overflow: hidden;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

.project-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    border-radius: 15px;
    pointer-events: none;
    z-index: 1;
}

.project-image:hover::before {
    background-color: rgba(0, 0, 0, 0.5);
}

.project-image p {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    user-select: none;
}

.project-image:hover p {
    opacity: 1;
}

.project-image iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(1);
    transform-origin: top left;
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
}

.project-image:hover iframe {
    transform: scale(1.5);
    pointer-events: auto;
    cursor: zoom-in;
}

.project-title {
    font-family: "InterBold";
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #f3f3f3;
}

.project-paragraph {
    font-family: "InterRegular";
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .project-box {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 600px) {
    .project-box {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

#link {
    color: #9d4edd;
}

#link:hover {
    color: #8141b6;
}