@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, 255, 255, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

.my-pro,
.fe-pro,
.ot-pro {
    padding: 60px 20px;
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.my-pro h1 {
    font-size: 3rem;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
}

.my-pro .subheading {
    font-size: 1rem;
    font-family: "Ubuntu", sans-serif;
    color: #a3a3a3;
    margin-bottom: 40px;
}

.fe-pro,
.ot-pro {
    margin-top: 10px;
}

.fe-pro h2,
.ot-pro h2 {
    text-align: left;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 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: pointer;
}

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

.project-image {
    height: 340px;
    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.5rem;
    font-family: "Poppins", sans-serif;
    margin-bottom: 10px;
}

.project-content p {
    font-size: 1rem;
    color: #a3a3a3;
    margin-bottom: 15px;
}

.project-footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: left;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 10px;
}


.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;
}

.secondary {
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--shadow-light);
    border-radius: 8px;
    font-size: 1.2rem;
    width: fit-content;
    padding: 2% 6%;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.secondary:hover {
    background-color: var(--hover-bg);
    color: var(--text-dark);
}

.other-pro {
    margin-top: 100px;
    text-align: center;
    padding: 20px;
}

.other-heading {
    font-size: 2rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    text-align: left;
    margin-bottom: 30px;
}

.other-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.other-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--shadow-light);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.other-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.other-icon img {
    max-width: 40px;
    opacity: 0.9;
}

.other-info h3 {
    font-size: 1.2rem;
    font-family: "Poppins", sans-serif;
    margin-bottom: 10px;
}

.other-info p {
    font-size: 0.95rem;
    color: #a3a3a3;
    margin-bottom: 15px;
}

.other-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.other-tags span {
    background: #1f1f1f;
    color: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    border-radius: 100px;
}

.other-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.other-secondary,
.other-primary {
    text-decoration: none;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}

.other-secondary {
    background: transparent;
    border: 1px solid var(--shadow-light);
    color: var(--text-dark);
}

.other-primary {
    background-color: var(--active);
    color: #fff;
    border: none;
}

.other-secondary:hover {
    background-color: var(--hover-bg);
}

.other-primary:hover {
    background-color: var(--actived);
}

.light-mode .subheading,
.light-mode p,
.light-mode a {
    color: var(--text-light);
}

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

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

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

.light-mode .secondary:hover,
.light-mode .other-secondary:hover {
    color: var(--text-dark);
}

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

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

@media (max-width: 1024px) {
    .other-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .other-grid {
        grid-template-columns: 1fr;
    }

    .other-heading {
        font-size: 1.5rem;
        text-align: center;
    }

    .other-card {
        padding: 16px;
    }

    .other-info p {
        font-size: 0.9rem;
    }

    .other-secondary,
    .other-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}


@media (max-width: 768px) {
    .my-pro h1 {
        font-size: 2rem;
    }

    .project-card {
        flex: 1 1 100%;
    }

    .project-image {
        height: 220px;
    }

    .project-image img {
        max-width: 60px;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .project-content p {
        font-size: 0.95rem;
    }

    .project-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .secondary {
        font-size: 1rem;
        padding: 8px 16px;
    }

    .project-content .tags span {
        margin-bottom: 6px;
        font-size: 0.75rem;
    }
}