/* General Styles */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.255);
}

#demo {
    width: 80%;
    height: 50%;
    margin: auto;
    padding: 20px;
}

.card {
    margin: 20px;
    padding: 10px;
}

.cs {
    width: 80%;
}

.cc {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.mob {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.carder {
    width: 20%;
}

.f {
    margin: 2%;
}

.contact {
    align-items: center;
    display: flex;
    justify-content: center;
}

/* Web Projects Section Styles */
.web-projects-section {
    background: linear-gradient(135deg, #f8fafc 60%, #e0e7ff 100%);
    border-radius: 1rem;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.project-card {
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
    min-height: 420px;
    max-height: 520px;
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.project-card .btn {
    margin-top: auto;
}

.project-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.project-header {
    padding: 1rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #f43f5e, #a21caf);
}

.project-badges {
    margin-bottom: 0.5rem;
}

.project-badges .badge {
    margin-right: 0.3rem;
    margin-bottom: 0.2rem;
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 0.02em;
}

@media (max-width: 992px) {
    .project-card {
        height: 420px;
        min-height: 340px;
        max-height: 480px;
    }
}

@media (max-width: 768px) {
    .web-projects-section {
        padding: 1rem 0.2rem;
        border-radius: 0.5rem;
    }

    .project-card {
        border-radius: 0.7rem;
        height: auto;
        min-height: unset;
        max-height: unset;
    }

    .project-header {
        font-size: 1rem;
        border-top-left-radius: 0.7rem;
        border-top-right-radius: 0.7rem;
    }
}

@media screen and (max-width: 856px) {
    .mob {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .carder {
        width: 80%;
        align-items: center;
    }

    .cs {
        width: 100%;
    }

    .card {
        margin: 10px;
        padding: 5px;
    }

    .contact .card {
        max-width: 100%;
        min-width: 80%;
    }
}