@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
    --bg-dark: #07080A;
    --bg2-dark: #1d1f23;
    --bg-light: #ffffff;
    --text-dark: #ffffff;
    --text-light: #000000;
    --active: #16A34A;
    --actived: #159946;
    --hover-bg: #222;
    --group2-hover-bg: #222;
    --shadow-light: rgba(255, 0255, 0255, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

.projects {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.projects h2 {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.projects .subheading {
    font-size: 1rem;
    color: #a3a3a3;
    margin-bottom: 40px;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--shadow-light);
    border-radius: 12px;
    overflow: hidden;
    flex: 1 1 calc(50% - 20px);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    cursor: default;
}

.project-card:hover {
    transform: translateY(-5px);
    border: 1px solid var(--active);
    box-shadow: 0 8px 24px var(--active);
}

.project-card:hover .project-image {
    background: linear-gradient(135deg, #074040, #0a3b3b);
    opacity: 1;
}

.project-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a3b3b, #074040);
}

.project-image img {
    max-width: 80px;
    opacity: 0.8;
}

.project-content {
    padding: 20px;
    text-align: left;
}

.project-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-content p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 12px;
}

.project-content .tags span {
    display: inline-block;
    background-color: #1f1f1f;
    color: white;
    padding: 4px 10px;
    font-size: 0.8rem;
    margin-right: 6px;
    border-radius: 100px;
}

a {
    text-decoration: none;
}

.view-all {
    margin-top: 30px;
}

.view-all .secondary {
    padding: 10px 20px;
    background-color: transparent;
    color: inherit;
    border: 1px solid var(--hover-bg);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.1s ease;
}

.view-all .secondary:hover {
    background-color: var(--hover-bg);
    border: 1px solid var(--hover-bg);
}

.view-all .secondary i {
    margin-left: 8px;
}

.light-mode .projects .subheading,
.light-mode .projects .project-card .project-content p {
    color: var(--text-light);
}

.light-mode .project-image {
    background: var(--actived);
}

.light-mode .project-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--text-light);
}

.light-mode .view-all .secondary:hover {
    color: var(--text-dark);
    border: 1px solid var(--hover-bg);
}

.light-mode .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px var(--shadow-dark);
}

.light-mode .project-card:hover .project-image {
    background: var(--active);
    opacity: 1;
}

@media (max-width: 768px) {
    .project-grid {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 100%;
    }
}