.section {
    margin-bottom: 8rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #7dd3fc 0%, #6366f1 25%, #a855f7 50%, #f59e0b 75%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.03em;
    animation: titleFlow 8s linear infinite;
    background-size: 400% 400%;
    text-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #6366f1, #a855f7, #f59e0b);
    border-radius: 2px;
    animation: linePulse 3s ease-in-out infinite;
    transform-origin: center;
}

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

@keyframes linePulse {
    0%, 100% { transform: scaleX(1); opacity: 1; }
    50% { transform: scaleX(1.1); opacity: 0.8; }
}

.section-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    font-weight: 400;
    animation: subtitleFloat 6s ease-in-out infinite;
}

@keyframes subtitleFloat {
    0%, 100% { transform: translateY(0px); opacity: 1; }
    50% { transform: translateY(-3px); opacity: 0.9; }
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 2rem;
}

.link-card {
    background: linear-gradient(165deg, 
        rgba(25, 30, 50, 0.95) 0%, 
        rgba(20, 25, 40, 0.98) 50%,
        rgba(15, 20, 35, 1) 100%);
    border-radius: 28px;
    padding: 3rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.link-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: cardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    60% {
        transform: translateY(-12px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.link-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 30px;
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    filter: blur(12px);
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:hover::after {
    opacity: 0.6;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.link-card:hover .card-glow {
    opacity: 1;
}

.link-card .card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card:hover .card-content {
    transform: translateY(-8px);
}

.link-card .card-icon-wrapper {
    position: relative;
    padding: 1.4rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
}

.link-card:hover .card-icon-wrapper {
    transform: scale(1.2) rotate(5deg);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.link-card .card-icon {
    font-size: 2.6rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.link-card:hover .card-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.6));
}

.link-card .card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.01em;
}

.link-card:hover .card-title {
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.card-description-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.link-card .card-description {
    font-size: 1.05rem;
    opacity: 0;
    font-weight: 400;
    margin: 0;
    text-align: center;
    width: 100%;
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 1.6;
    max-height: 0;
    padding: 0 1rem;
    will-change: transform, opacity;
}

.link-card:hover .card-description {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    transition-delay: 0.1s;
}

@keyframes descriptionReveal {
    0% {
        opacity: 0;
        transform: translateY(25px);
        max-height: 0;
    }
    40% {
        opacity: 0.4;
        transform: translateY(12px);
    }
    70% {
        opacity: 0.7;
        transform: translateY(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 120px;
    }
}

.link-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(165deg, 
        rgba(35, 40, 60, 0.98) 0%, 
        rgba(28, 33, 50, 0.95) 50%,
        rgba(22, 27, 40, 1) 100%);
    z-index: 10;
}

.link-card:active {
    transform: translateY(-8px) scale(1.01);
    transition: all 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card:nth-child(1) { transition-delay: 0.1s; }
.link-card:nth-child(2) { transition-delay: 0.15s; }
.link-card:nth-child(3) { transition-delay: 0.2s; }
.link-card:nth-child(4) { transition-delay: 0.25s; }
.link-card:nth-child(5) { transition-delay: 0.3s; }

.link-grid .link-card {
    opacity: 1;
    transform: scale(1);
    filter: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1200px) {
    .link-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section {
        margin-bottom: 6rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 3.2rem;
    }
    
    .section-subtitle {
        font-size: 1.4rem;
    }
    
    .link-card {
        min-height: 180px;
        padding: 2.5rem;
    }
    
    .link-card .card-icon {
        font-size: 2.2rem;
    }
    
    .link-card .card-title {
        font-size: 1.4rem;
    }
    
    .link-card .card-description {
        display: block;
        opacity: 0.9;
        font-size: 0.95rem;
        max-height: none;
        transform: translateY(0);
    }
    
    .link-card:hover ~ .link-card,
    .link-grid:not(:hover) .link-card {
        opacity: 0.6;
        transform: scale(0.96);
        filter: blur(2px) brightness(0.8);
    }
}

@media (max-width: 480px) {
    .link-grid {
        padding: 0 1rem;
    }
    
    .link-card {
        padding: 2rem;
        min-height: 160px;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    .link-card .card-icon {
        font-size: 2rem;
    }
    
    .link-card .card-title {
        font-size: 1.3rem;
    }
    
    .link-card .card-description {
        font-size: 0.9rem;
    }
}