* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url("back.jpg") no-repeat center center/cover;
    padding: 20px;
}

/* Responsive Card with Frosted Glass Effect */
.card {
    width: 90%; /* Adjust width for responsiveness */
    max-width: 400px; /* Maximum size for larger screens */
    text-align: center;
    border-radius: 15px;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
    padding: 20px;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.6);
    object-fit: cover;
    margin-top: 15px;
}

.name {
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
    color: white;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.bio {
    font-size: 14px;
    color: white;
    margin: 10px 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.links {
    margin-top: 15px;
}

.links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    margin: 5px 0;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.links a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.links img {
    width: 18px;
    height: 18px;
}

.toggle-btn {
    margin-top: 15px;
    padding: 10px;
    background: rgba(40, 167, 69, 0.8);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.toggle-btn:hover {
    background: rgba(40, 167, 69, 1);
}

/* Projects Section */
.projects {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-radius: 10px 10px 0 0;
}

.projects a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #007BFF;
    padding: 10px;
    margin: 5px;
    border-bottom: 2px solid #007BFF;
    transition: 0.3s;
}

.projects a:hover {
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
}

.back-btn {
    margin-top: 15px;
    padding: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

/* Show Projects Section */
.projects.show-projects {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        max-width: 90%;
    }
    .profile-img {
        width: 80px;
        height: 80px;
    }
    .name {
        font-size: 18px;
    }
    .bio {
        font-size: 12px;
    }
    .links a {
        font-size: 12px;
        padding: 8px;
    }
    .toggle-btn, .back-btn {
        font-size: 12px;
        padding: 8px;
    }
}

.contact {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-radius: 10px 10px 0 0;
}

.contact a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
    padding: 10px;
    margin: 5px;
    border-bottom: 2px solid #28a745;
    transition: 0.3s;
}

.contact a:hover {
    color: #1e7e34;
    border-bottom: 2px solid #1e7e34;
}

.show-contact {
    display: flex;
}

.skills {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-radius: 10px 10px 0 0;
}

.skill-item {
    font-size: 16px;
    font-weight: bold;
    color: #ffc107;
    padding: 10px;
    margin: 5px;
}

.show-skills {
    display: flex;
}
