/* Animated Quick Links Styles */
.quick-links-section {
    background: linear-gradient(135deg, #0a192f 0%, #1a365d 100%);
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.quick-links-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 0, 0.8), 
        transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Quick Link Card - Hidden State */
.quick-link-card {
    background: rgba(10, 25, 47, 0.7);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid rgba(0, 255, 0, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Glow Animation for Hidden State */
.quick-link-card.hidden {
    animation: pulseGlow 2s infinite;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        0 0 40px rgba(0, 255, 0, 0.2),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
}

.quick-link-card.hidden:hover {
    animation: intensePulse 1s infinite;
    transform: translateY(-5px);
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.5),
        0 0 60px rgba(0, 255, 0, 0.3),
        inset 0 0 30px rgba(0, 255, 0, 0.2);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 255, 0, 0.3),
            0 0 40px rgba(0, 255, 0, 0.2),
            inset 0 0 20px rgba(0, 255, 0, 0.1);
        border-color: rgba(0, 255, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 255, 0, 0.5),
            0 0 50px rgba(0, 255, 0, 0.3),
            inset 0 0 25px rgba(0, 255, 0, 0.15);
        border-color: rgba(0, 255, 0, 0.4);
    }
}

@keyframes intensePulse {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(0, 255, 0, 0.5),
            0 0 60px rgba(0, 255, 0, 0.3),
            inset 0 0 30px rgba(0, 255, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(0, 255, 0, 0.7),
            0 0 80px rgba(0, 255, 0, 0.5),
            inset 0 0 40px rgba(0, 255, 0, 0.3);
    }
}

/* Click Indicator */
.click-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff00;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.click-indicator i {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hidden content message */
.hidden-content {
    color: #00ff00;
    font-size: 1.1rem;
    text-align: center;
    opacity: 0.8;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    position: relative;
}

.hidden-content::before {
    content: '>';
    margin-right: 10px;
    animation: blink 1s infinite;
}

/* Revealed State */
.quick-link-card.revealed {
    background: rgba(10, 25, 47, 0.9);
    border: 2px solid #00ff00;
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.4),
        0 10px 30px rgba(0, 255, 0, 0.2);
    animation: revealGlow 0.5s ease-out;
    min-height: auto;
    cursor: default;
}

@keyframes revealGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 
            0 0 50px rgba(0, 255, 0, 0.8),
            0 0 100px rgba(0, 255, 0, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            0 0 30px rgba(0, 255, 0, 0.4),
            0 10px 30px rgba(0, 255, 0, 0.2);
    }
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.card-header i {
    font-size: 1.8rem;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.card-header h3 {
    color: #00ff00;
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
}

/* Links List - Initially Hidden */
.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
}

.quick-link-card.revealed .links-list {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.links-list li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.links-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.links-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    position: relative;
    padding-left: 25px;
}

.links-list a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00ff00;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.links-list a:hover {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    padding-left: 30px;
}

.links-list a:hover::before {
    transform: translateX(5px);
}

/* Close button for revealed cards */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 255, 0, 0.2);
    border: none;
    color: #00ff00;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.quick-link-card.revealed .close-btn {
    opacity: 1;
}

.close-btn:hover {
    background: rgba(0, 255, 0, 0.4);
    transform: rotate(90deg);
}

/* Section header animation */
.section-header.quick-links-header .section-title {
    color: #00ff00;
    position: relative;
    display: inline-block;
}

.section-header.quick-links-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(0, 255, 0, 0.8), 
        transparent);
    animation: titleUnderline 3s linear infinite;
}

@keyframes titleUnderline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive */
@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quick-link-card {
        padding: 1.2rem;
        min-height: 100px;
    }
    
    .click-indicator {
        font-size: 1rem;
    }
    
    .click-indicator i {
        font-size: 1.5rem;
    }
}