/* 🍱 LinkBento — Links */
/* Links section, link buttons, platform hovers, tooltips, popular badge, scroll reveal */

/* =============== LINKS SECTION =============== */
.links-section {
    margin: 30px 0;
    text-align: center;
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.links-title {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============== LINK BUTTONS =============== */
.links-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 18px;
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: slideInBlur 0.6s ease forwards;
    overflow: hidden;
}

/* Shine Effect Overlay */
.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.link-btn:hover::before {
    left: 100%;
}

/* Gradient border animation */
.link-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent), var(--accent-color));
    background-size: 200% 200%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-btn:hover::after {
    opacity: 1;
    animation: gradientRotate 2s linear infinite;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Staggered Entrance */
.link-btn:nth-child(1) { animation-delay: 0.2s; }
.link-btn:nth-child(2) { animation-delay: 0.3s; }
.link-btn:nth-child(3) { animation-delay: 0.4s; }
.link-btn:nth-child(4) { animation-delay: 0.5s; }
.link-btn:nth-child(5) { animation-delay: 0.6s; }

.link-btn i {
    position: absolute;
    left: 20px;
    font-size: 1.4rem;
    color: var(--accent-color);
}

.link-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.link-btn:active {
    transform: scale(0.95);
}

/* Keyboard focus styles */
.link-btn:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.3);
}

.link-btn.focused {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

/* 3D Tilt Effect */
.link-btn.tilt-effect {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* =============== PLATFORM-SPECIFIC HOVER COLORS =============== */
.link-btn.instagram:hover {
    border-color: #E1306C;
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.3);
}
.link-btn.instagram:hover i { color: #E1306C; }

.link-btn.linkedin:hover {
    border-color: #0A66C2;
    box-shadow: 0 10px 30px rgba(10, 102, 194, 0.3);
}
.link-btn.linkedin:hover i { color: #0A66C2; }

.link-btn.github:hover {
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}
.link-btn.github:hover i { color: #fff; }

.link-btn.website:hover {
    border-color: #00d2ff;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
}

.link-btn.email:hover {
    border-color: #9d50bb;
    box-shadow: 0 10px 30px rgba(157, 80, 187, 0.3);
}
.link-btn.email:hover i { color: #9d50bb; }

.link-btn.calendly:hover {
    border-color: #006bff;
    box-shadow: 0 10px 30px rgba(0, 107, 255, 0.3);
}
.link-btn.calendly:hover i { color: #006bff; }

/* =============== TOOLTIPS =============== */
.link-btn .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    z-index: 10;
}

.link-btn .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.link-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* =============== SCROLL REVEAL =============== */
.link-btn {
    animation: fadeInUp 0.5s ease forwards;
}

.link-btn:nth-child(1) { animation-delay: 0.1s; }
.link-btn:nth-child(2) { animation-delay: 0.2s; }
.link-btn:nth-child(3) { animation-delay: 0.3s; }
.link-btn:nth-child(4) { animation-delay: 0.4s; }
.link-btn:nth-child(5) { animation-delay: 0.5s; }
.link-btn:nth-child(6) { animation-delay: 0.6s; }

/* =============== POPULAR BADGE =============== */
.popular-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b35, #ff4444);
    color: white;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
    animation: pulse 2s infinite;
    z-index: 10;
}

.popular-badge i {
    font-size: 0.6rem;
}
