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

:root {
    --pink-color: #f2726a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    background-image: url('https://github.com/imissher-Marshmallow/VIDEO/blob/main/cherry-blossoms_FHD.jpg?raw=true.');
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    width: 300px;
    height: 400px;
    border-radius: 10px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.75);
    overflow: hidden;
    margin: 0 30px;
}

.card__img {
    width: 120px;
    height: 120px;
    overflow: hidden;
    transition: 0.25s;
    margin: 0 auto;
    transform: translateY(25px);
    border-radius: 50%;
    border: 4px solid var(--pink-color);
    cursor: pointer;
}

.card__img:hover {
    width: 100%;
    height: 100%;
    border-radius: unset;
    border: unset;
    transform: unset;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

h2 {
    color: white;
    margin-top: 40px;
}

p {
    color: var(--pink-color);
}

.card__social a {
    text-decoration: none;
    color: white;
    margin: 25px 20px 40px;
    display: inline-block;
    font-size: 18px;
    transition: 0.25s;
}

.card__social a:hover {
    color: var(--pink-color);
}

button {
    outline: none;
    border: none;
    color: white;
    background-color: transparent;
    border: 1px solid var(--pink-color);
    padding: 10px 20px;
    border-radius: inherit;
    cursor: pointer;
    transition: 0.25s;
}

button:hover {
    background-color: var(--pink-color);
}


.modal {
    display: none; 
    position: fixed; 
    z-index: 100; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto;
    display: flex; 
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none; 
}


.modal-content {
    background-color: rgba(0,0,0,0.75); 
    color: #f0f0f0;
    padding: 30px;
    border-radius: 8px;
    width: 90%; 
    max-width: 750px; 
    position: relative; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-50px); 
    transition: transform 0.4s ease-out;
}


.close-button {
    color: #aaa;
    float: right; 
    font-size: 28px;
    font-weight: bold;
    position: absolute; 
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--pink-color);
    text-decoration: none;
    cursor: pointer;
}


.modal-body h2 { 
    color: white;
    margin-top: 0;
    text-align: left;
    margin-bottom: 25px;
    font-size: 28px; 
    font-weight: 700; 
}

.project-item {
    margin-bottom: 20px;
}

.project-item:last-child {
    margin-bottom: 0; 
}


.project-title i {
    margin-right: 8px;
}

.project-description {
    color: #cccccc; 
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}


.modal.active {
    opacity: 1; 
    pointer-events: auto; 
}

.modal.active .modal-content {
    transform: translateY(0); 
}
.card.hidden {
    opacity: 0; 
    pointer-events: none; 
    transform: scale(0.9); 
  
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}


.card {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}