

/* Global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* font-family: 'Roboto', sans-serif; */
}

body {
    background-color: #181818;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3em 1em;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 100vh;
    /* background: linear-gradient(135deg, #1f1f1f, #2c2c2c); */
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3em;
}

.header h1 {
    font-size: 4em;
    color: #e60000;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    border-bottom: 4px solid #ff6f61;
    padding-bottom: 0.5em;
}

.header p {
    font-size: 1.2em;
    color: #d4d4d4;
    font-weight: 300;
    margin-top: 12px;
}

/* Sorting and Tag Cloud */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3em;
}

.controls select {
    padding: 1em 2em;
    font-size: 1.2em;
    border-radius: 5px;
    background-color: #3a3a3a;
    border: 2px solid #ff6f61;
    margin-bottom: 1.5em;
    transition: all 0.3s ease;
    color: #f5f5f5;
    text-transform: uppercase;
    font-weight: 700;
}

.controls select:hover {
    background-color: #282828;
    border-color: #ff6f61;
    cursor: pointer;
}

.controls .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px;
}

.tag-cloud span {
    background: #ff6f61;
    border-radius: 5px;
    color: #181818;
    font-size: 1.1em;
    padding: 0.2em 0.2em;
    margin: 2px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease, transform 0.2s;
    letter-spacing: 2px;
}

.tag-cloud div:hover {
    background-color: #d94e46;
    transform: translateY(-5px);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    width: 100%;
    max-width: 1200px;
}

.project-card {
    display: flex;    
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: space-between;
    justify-content: space-between;
    align-items: center;
    background: #222;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 3px solid #ff6f61;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8);
}

.project-card h3 {
    padding: 0.2em;
    margin: 0;
    font-size: 1.7em;
    width : 100%;
    color: #f5f5f5;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 3px solid #ff6f61;
    background-color: #3a3a3a;
}

.project-card p {
    padding: 1.5em;
    color: #d4d4d4;
    font-size: 1.1em;
    font-weight: 400;
}

.project-card .tags {
    background-color: #3a3a3a;
    border-top: 3px solid #ff6f61;
    width:100%;
    display: flex;
    flex-wrap: wrap;
    padding: 0 0.1em 0.1em;
    text-align: center;
    align-content: center;
    justify-content: space-around;
}

.project-card .img {
    width: 100%;
    max-width: 295px;
    object-fit: contain;
}

.project-card .tags span {
    /* background: #181818; */
    border-radius: 5px;
    color: #ff6f61;
    border: 1px solid #ff6f61;
    font-size: 0.9em;
    padding: 0.3em;
    margin: 3px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

/* .project-card .tags span:hover {
    background-color: #d94e46;
} */

/* Project Preview Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 3em;
}

.modal-content {
    background: #333;
    border-radius: 15px;
    max-width: 800px;
    padding: 3em;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8);
    width: 100%;
}

.modal-content h2 {
    font-size: 3em;
    color: #ff6f61;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}

#modal-description {
    font-size: 1.5em;
    color: #ff6f61;
    /* font-weight: bold; */
    /* text-transform: uppercase; */
    letter-spacing: 1.2px;
    margin-bottom: 0.6em;
}

.modal-content p {
    color: #d4d4d4;
    font-size: 1.1em;
    margin: 1em 0;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    color: #ff6f61;
    cursor: pointer;
}

/* Footer */
footer {
    width: 100%;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 2.5em 1em;
    margin-top: 4em;
}

footer a {
    color: #ff6f61;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #d94e46;
}

/* Responsive adjustments */
@media (max-width: 450px) {
    .header h1 {
        font-size: 3em;
    }

    .header p {
        font-size: 1.1em;
    }

    .project-card h3 {
        font-size: 1.4em;
    }

    .project-card p {
        font-size: 1em;
    }

    .modal-content h2 {
        font-size: 2.4em;
    }
}

#tagCloud {
    position: relative;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    /* background-color: #ffffff; */
    overflow: hidden;
}

.tag {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff6f6155;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    overflow: hidden;
}

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Playfair+Display:wght@700&family=Roboto:wght@400&family=Merriweather:wght@400&family=Lato:wght@300&family=Poppins:wght@300&display=swap');

/* Global styles */
body {
    font-family: 'Montserrat', sans-serif; /* Bold font for project names */
    font-weight: 700;
}

.project-card h3 {
    font-family: 'Montserrat', sans-serif; /* Bold font for project names */
    font-weight: 700;
}

.project-card p, .modal-content p {
    font-family: 'Merriweather', serif; /* Classic serif for readability */
}

.tag-cloud span, .project-card .tags span {
    font-family: 'Lato', sans-serif; /* Sleek, uppercase for tags */
    font-weight: 300;
    text-transform: uppercase;
}