:root {
    --primary-bg: #fff5f7; /* Blush pink */
    --accent-color: #e8b4b8; /* Rose gold */
    --accent-hover: #d89ca0; /* Deeper rose */
    --title-color: #2e1e2a; /* Deep plum */
    --shadow-glow: 0 0 12px rgba(232, 180, 184, 0.5);
}

#SocialIcons {
    position: fixed;
    bottom: 100px; /* Aligned with contact button */
    right: 10px; /* Close to right edge */
    display: none; /* Initially hidden */
    flex-direction: column; /* Stack icons vertically */
    gap: 15px;
    z-index: 1000;
    animation: fadeIn 0.5s ease forwards;
}

#SocialIcons.show {
    display: flex;
}

/* Social icon container */
.icons {
    width: 45px;
    height: 45px;
    background: var(--primary-bg);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid var(--accent-color);
    box-shadow: var(--shadow-glow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For positioning iconName */
    display: block; /* Ensure <a> tag behaves as a block */
}

.icons:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), var(--shadow-glow);
}

/* Icon name tooltip */
.iconName {
    position: absolute;
    right: 60px; /* Position to the left of icons */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0; /* Hidden by default */
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    color: #fff;
    background: var(--accent-color);
    border-radius: 3px;
    padding: 4px 8px;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Prevent interaction */
}

.icons:hover .iconName {
    opacity: 1; /* Show on hover */
}

/* Specific hover effects for each icon */
.icons.instaIcon:hover .iconName {
    background: linear-gradient(30deg, #f56040, #e1306c, #833ab4); /* Instagram gradient */
}

.icons.zalo:hover .iconName {
    background: #0084FF; /* Zalo color */
}

.icons.whatsapp:hover .iconName {
    background: #25d366; /* WhatsApp/Phone color */
}

.icons.facebook:hover .iconName {
    background: #1877f2; /* Facebook color */
}

/* Icon styling */
.icon {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--title-color);
    transition: color 0.3s ease;
    position: relative;
}

.icon:hover {
    color: #fff;
}

.icon::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    border-radius: 50%;
    transition: height 0.3s ease;
    z-index: -1;
}

.icon:hover::before {
    height: 100%;
}

/* Specific icon background colors */
.icon.insta::before {
    background: linear-gradient(40deg, #f56040, #e1306c, #833ab4); /* Instagram gradient */
}

.icon.zalo::before {
    background: #0084FF; /* Zalo color */
}

.icon.whats::before {
    background: #25d366; /* WhatsApp/Phone color */
}

.icon.fb::before {
    background: #1877f2; /* Facebook color */
}

/* Close button styling */
.close-button {
    width: 45px;
    height: 45px;
    background: var(--primary-bg);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid var(--accent-color);
    box-shadow: var(--shadow-glow);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For positioning iconName */
}

.close-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), var(--shadow-glow);
}

.close-button:hover .iconName {
    opacity: 1;
}

.close-button svg {
    color: var(--title-color);
    transition: color 0.3s ease;
}

.close-button:hover svg {
    color: #fff;
}

.close-button::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    border-radius: 50%;
    background: #ff4444; /* Red for close button */
    transition: height 0.3s ease;
    z-index: -1;
}

.close-button:hover::before {
    height: 100%;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #SocialIcons {
        bottom: 70px; /* Adjusted to align with contact button */
        right: 5px;
    }
    .icons, .close-button {
        width: 40px;
        height: 40px;
    }
    .iconName {
        font-size: 11px;
        right: 50px;
    }
}

@media screen and (max-width: 480px) {
    #SocialIcons {
        bottom: 60px;
        right: 5px;
    }
    .icons, .close-button {
        width: 35px;
        height: 35px;
    }
    .iconName {
        font-size: 10px;
        right: 45px;
    }
}