
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    margin: 0;
    padding: 20px;
    color: #333;
}

header {
    background: linear-gradient(135deg, #6e8efb, #4a6cf7);
    color: white;
    padding: 40px 20px;
    border-radius: 0 0 20px 20px;
    text-align: center;
    margin-bottom: 40px;
}

header img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
}

header h1 {
    font-size: 2.5em;
    margin: 0;
}

header p {
    font-size: 1.2em;
    margin: 10px 0;
}

header a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

header a:hover {
    text-decoration: underline;
}

#addCardBtn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6e8efb, #4a6cf7);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

#addCardBtn:hover {
    background: linear-gradient(135deg, #4a6cf7, #6e8efb);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card {
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: #333;
}

.card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.card p {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}

.card button {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #6e8efb, #4a6cf7);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1em;
    transition: background 0.3s ease;
}

.card button:hover {
    background: linear-gradient(135deg, #4a6cf7, #6e8efb);
}

.card-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5em;
    color: #666;
}

.card-menu ul {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 0;
    list-style: none;
    margin: 0;
    z-index: 1;
}

.card-menu ul li {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9em;
}

.card-menu ul li:hover {
    background-color: #f1f1f1;
}

#cardsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    margin-top: 0;
    font-size: 1.8em;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    font-size: 1em;
    color: #555;
    margin-bottom: 8px;
}

.modal-content input[type="text"],
.modal-content textarea,
.modal-content input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content input[type="text"]:focus,
.modal-content textarea:focus,
.modal-content input[type="file"]:focus {
    border-color: #6e8efb;
    box-shadow: 0 0 8px rgba(110, 142, 251, 0.5);
    outline: none;
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-content input[type="file"] {
    padding: 10px;
    background-color: #fff;
}

.modal-content .button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-content button {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #6e8efb, #4a6cf7);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease, transform 0.2s ease;
}

.modal-content button:hover {
    background: linear-gradient(135deg, #4a6cf7, #6e8efb);
    transform: translateY(-2px);
}

.modal-content button#closeModalBtn {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
}

.modal-content button#closeModalBtn:hover {
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
}

#viewModal .modal-content img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 10px;
    object-fit: cover; /* lembrete pra mim: Garante que a imagem cubra o espaço sem distorcer */
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    .card {
        width: 100%;
    }
}

.technologies {
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tech-tag {
    background-color:rgb(92, 77, 255);
    color: #FFFF;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8em;
}

#viewModalLink{
    padding: 8px;
    background: linear-gradient(135deg, #6e8efb, #4a6cf7);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}