/* for index page */
.back-button {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    text-decoration: underline;
}

.see-all {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.see-all a {
    color: var(--text);
    text-decoration: underline;
    font-size: 1.2rem;
    margin: 1rem;
}

/* Projects Page Styling */

.projects-container {
    padding: 2rem;
    margin-top: 2rem;
}

.projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-header h1 {
    /* font-family: 'World of Water', sans-serif; */
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.projects-header p {
    font-size: 1.2rem;
    color: var(--middle);
    font-weight: 300;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 0 auto;
    max-width: 1400px;
}

.project-card {
    background-color: var(--bg);
    border: 1px solid var(--middle-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 220px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.02);
}

.project-content {
    padding: 1.5rem;
}

.project-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.project-content p {
    color: var(--middle);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background-color: var(--middle-light);
    color: var(--text);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text);
    border: 1px solid var(--middle-light);
}

.project-button:hover {
    background-color: var(--text);
    color: var(--bg);
}

.project-button i {
    font-size: 1rem;
}

/* Footer styling for projects page */
.footer {
    padding: 2rem;
    border-top: 1px solid var(--middle-light);
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
}

.rights p {
    font-size: 0.9rem;
    color: var(--middle);
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--text);
    font-size: 0.95rem;
}

/* Additional styles for scroll-top button */
#scroll-top.hidden {
    scale: 0;
}

#scroll-top {
    height: 35px;
    width: 35px;
    position: fixed;
    bottom: 60px;
    right: 20px;
    background-color: var(--text);
    color: var(--bg);
    padding: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

#scroll-top i {
    font-weight: 700;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .projects-container {
        padding: 1rem;
    }

    .projects-header h1 {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
        gap: 1.5rem;
    }

    .socials {
        flex-wrap: wrap;
    }

    .back-button {
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .project-links {
        flex-direction: column;
    }

    .project-button {
        width: 100%;
        justify-content: center;
    }
}