/* GLOBAL LINK STYLE (밑줄 제거) */
a {
    text-decoration: none !important;
    color: inherit;
}

a:hover {
    text-decoration: none !important;
}

/* LINK SECTION */
.my-links {
    text-align: center;
    padding: 80px 20px;
}

.link-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* LINK CARD */
.link-card {
    width: 250px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.2s ease;
}

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

.link-card h3 {
    margin: 15px 0 10px;
    font-size: 20px;
}

.link-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.link-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* BUTTON */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    background: black;
    color: #fff !important;
    font-size: 14px;
}

/* DROPDOWN BASE */
.project-dropdown,
.contact-dropdown {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.6s ease;
    padding: 0 20px;
}

.project-dropdown.show,
.contact-dropdown.show {
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
    padding: 40px 20px;
}

/* DROPDOWN GRID */
.dropdown-projects,
.dropdown-contact {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* DROPDOWN CARD */
.dropdown-card {
    width: 260px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    text-align: center;
}

.dropdown-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.dropdown-card p {
    font-size: 14px;
    margin-bottom: 18px;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    width: 450px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    animation: modalPop 0.25s ease;
    position: relative;
    margin: 0 auto;
}

@keyframes modalPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

.modal-window h2 {
    margin-bottom: 15px;
}

.modal-window p {
    color: #444;
    line-height: 1.6;
}

.modal-stack {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.modal-stack img {
    height: 34px;
    opacity: 0.9;
    transition: 0.2s ease;
}

.modal-stack img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .link-grid,
    .dropdown-projects,
    .dropdown-contact {
        flex-direction: column;
        align-items: center;
    }

    .link-card,
    .dropdown-card {
        width: 90%;
        max-width: 300px;
    }

    .modal-window {
        width: 90%;
    }
}
