.contactwin {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4%;
  box-sizing: border-box;
  width: 100%;
}

.works-heading {
    font-family: 'soviet', Arial, sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    text-align: center;
    margin-bottom: 3rem;
    color: #1b1c1d;
}

.contactwin {
    background-color: #f9f9f9;
}

.contactwin.hidden {
    display: none;
}

.contactwin:not(.hidden) {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4%;
    box-sizing: border-box;
    width: 100%;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 45px;
  object-fit: cover;
  margin: 20px auto;
  display: block;
}

.cont {
    align-items: center;
    justify-content: center;
    padding: 2%;
    display: flex;
    flex-direction: column;
    background-color: #6c6d74;
    border-radius: 10px;
    border: 1px solid rgb(250 250 250 / 20%);
    position: relative; /* Added for pseudo-element positioning */
    overflow: hidden; /* Ensures the shimmer doesn't overflow */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth transition for hover effects */
}

.cont::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.7s ease;
}

.cont:hover::before {
    left: 100%;
}

.cont:hover {
    background-color: #7a7b82; /* Matches about-trigger hover color */
    transform: translateY(-4px); /* Slight lift effect on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* Adds shadow on hover */
    border-color: rgb(250 250 250 / 45%); /* Matches about-trigger border */
}

.profile-name {
    color: white;
    font-family: 'soviet', Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(24px, 5vw, 36px);
    text-align: center;
    margin-bottom: 20px;
}

.contact-boxx {
    display: flex;
    justify-content: space-evenly;
    border: 2px solid white;
    border-radius: 5px;
    width: 95%;
}

.contact-boxx a {
    filter: brightness(0) invert(1);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual icon size control */
.contact-link-vk img {
    width: 4em;
    height: 4em;
    transition: transform 0.2s;
}

.contact-link-telegram img {
    width: 4em;
    height: 4em;
    transition: transform 0.2s;
}

.contact-link-whatsapp img {
    width: 3.6em;
    height: 3.6em;
    transition: transform 0.2s;
}

.contact-link-mail img {
    width: 4em;
    height: 4em;
    transition: transform 0.2s;
}

.contact-link-phone img {
    width: 3em;
    height: 3em;
    transition: transform 0.2s;
}

.contact-link-vk:hover img,
.contact-link-telegram:hover img,
.contact-link-whatsapp:hover img,
.contact-link-mail:hover img,
.contact-link-phone:hover img {
    transform: scale(1.12);
}

/* New About Us button styles */
.about-us-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: #6c6d74;
    border-radius: 10px;
    border: 1px solid rgb(250 250 250 / 20%);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
    text-decoration: none;
}

.about-us-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.7s ease;
}

.about-us-button:hover::before {
    left: 100%;
}

.about-us-button:hover {
    background-color: #7a7b82;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: rgb(250 250 250 / 45%);
}

.about-us-button span {
    font-family: 'soviet', Arial, sans-serif;
    font-size: clamp(18px, 3vw, 24px);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-boxx {
        width: 90%;
    }
    
    .contact-link-vk img {
        width: 36px;
        height: 36px;
    }
    
    .contact-link-telegram img {
        width: 34px;
        height: 34px;
    }
    
    .contact-link-whatsapp img {
        width: 32px;
        height: 32px;
    }
    
    .contact-link-mail img {
        width: 35px;
        height: 35px;
    }
    
    .contact-link-phone img {
        width: 24px;
        height: 24px;
    }

    .about-us-button {
        padding: 0.8rem 1.5rem;
        max-width: 250px;
    }

    .about-us-button span {
        font-size: clamp(16px, 2.5vw, 20px);
    }
}